text
stringlengths
52
99.8k
------------------------------------------------------------------------ -- returns current 'pc' and marks it as a jump target (to avoid wrong -- optimizations with consecutive instructions not in the same basic block). -- * used in multiple locations -- * fs.lasttarget tested only by luaK:_nil() when optimizing OP_LOA...
--Incline Compensation Tune.InclineComp = 1.7 -- Torque compensation multiplier for inclines (applies gradient from 0-90 degrees)
-- CONSTRUCTOR function Signal.new(createConnectionsChangedSignal) local self = setmetatable({}, Signal) if createConnectionsChangedSignal then self.connectionsChanged = Signal.new() end self.connections = {} self.totalConnections = 0 self.waiting = {} self.totalWaiting = 0 return self end
--[[ Creates a new controller associated with the specified vehicle. ]] function VehicleLightsComponent.new(model) local component = { model = model, state = { headLights = false, brakeLights = false } } setmetatable(component, {__index = VehicleLightsComponent}) component:setup() return compon...
-- Emits valid links in format Brio.new(link, linkValue) function RxLinkUtils.observeValidLinksBrio(linkName, parent) assert(type(linkName) == "string", "linkName should be 'string'") assert(typeof(parent) == "Instance", "parent should be 'Instance'") return RxInstanceUtils.observeChildrenBrio(parent) :Pipe({ ...
--////////////////////////////// Methods --////////////////////////////////////// local methods = {} methods.__index = methods function methods:AddChannel(channelName, autoJoin) if (self.ChatChannels[channelName:lower()]) then error(string.format("Channel %q alrady exists.", channelName)) end local function De...
---Buttons for _,v in pairs(script.Parent.ShopFrame.ButtonsFrame:GetChildren()) do if v:IsA("TextButton") then v.MouseButton1Click:Connect(function() v.Parent.Visible = false script.Parent.ShopFrame.Boxes.Weapon.Value = v.Name script.Parent.ShopFrame.Boxes.Visible = true end) end end
-- Decompiled with the Synapse X Luau decompiler. local l__HDAdminMain__1 = _G.HDAdminMain; local u1 = { Phone = 1, Tablet = 0.8, Computer = 0.6 }; local u2 = { [l__HDAdminMain__1.gui.MainFrame] = 0.78, [l__HDAdminMain__1.gui.MenuTemplates.Template5] = 0.78, [l__HDAdminMain__1.gui.MenuTemplates.Template6] ...
--skip stage product id: 940704785 MarketplaceService = Game:GetService("MarketplaceService") MarketplaceService.ProcessReceipt = function(receiptInfo) players = game.Players:GetPlayers() currency = "Stage" done = 0 for i=1,#players do if players[i].userId == receiptInfo.PlayerId then if receiptInfo.ProductI...
--[[** <description> Increment the cached result by value. </description> <parameter name = "value"> The value to increment by. </parameter> <parameter name = "defaultValue"> If there is no cached result, set it to this before incrementing. </parameter> **--]] function DataStore:Increment(value, defaultVal...
--[[ Input/Settings Changed Events ]] -- local mouseLockSwitchFunc = function(actionName, inputState, inputObject) if IsShiftLockMode then onShiftLockToggled() end end local function disableShiftLock() if ScreenGui then ScreenGui.Parent = nil end IsShiftLockMode = false Mouse.Icon = "" if InputCn then Input...
-- Offsets for the volume visibility test local SCAN_SAMPLE_OFFSETS = { Vector2.new( 0.4, 0.0), Vector2.new(-0.4, 0.0), Vector2.new( 0.0,-0.4), Vector2.new( 0.0, 0.4), Vector2.new( 0.0, 0.2), }
-- useless comment here function waitForChild(parent, child) while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end end local model = script.Parent local doorOpenTime = 3 local weld1RelativePosition = CFrame.new() + Vector3.new(0, -1.1, .55) local weld2RelativePosition = CFrame.new() + Vector3.new...
--// Handling Settings Firerate = 60 / 720; -- 60 = 1 Minute, 700 = Rounds per that 60 seconds. DO NOT TOUCH THE 60! FireMode = 1; -- 1 = Semi, 2 = Auto, 3 = Burst, 4 = Bolt Action, 5 = Shot, 6 = Explosive
-- Tool local Tool = script.Parent local Handle = Tool:WaitForChild("Handle")
-- << MAIN >> --Touch Pad for a,b in pairs(script.Parent:GetChildren()) do local touchPart = b:FindFirstChild("TouchPart") if touchPart then local touchDe = {} local originalColor = touchPart.Color local particles = touchPart.Particles touchPart.Touched:Connect(function(hit) local character = hit.Parent ...
--Stickmasterluke sp=script.Parent local bv=sp:WaitForChild("BodyVelocity") wait(.5+math.random()) bv.velocity=bv.velocity*Vector3.new(1,0,1) for _=1,100 do bv.velocity=bv.velocity+Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*5 wait(.5+math.random()) end sp:Destroy()
------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- local toolAnimName = "" local toolAnimTrack = nil local toolAnimInstance = nil local currentToolAnimKeyframeHandler = nil function t...
--------RIGHT DOOR -------- game.Workspace.doorright.l11.BrickColor = BrickColor.new(1023) game.Workspace.doorright.l23.BrickColor = BrickColor.new(1023) game.Workspace.doorright.l32.BrickColor = BrickColor.new(1023) game.Workspace.doorright.l53.BrickColor = BrickColor.new(1023) game.Workspace.doorright.l62.BrickColo...
--[[** ensures Roblox Random type @param value The value to check against @returns True iff the condition is satisfied, false otherwise **--]] t.Random = t.typeof("Random")
--------------------) i = true script.Parent[BoneModelName]:MoveTo(Vector3.new(0,10000,0)) script.Parent[BoneModelName]:Clone().Parent = game.ServerStorage script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr,X,Y,Z) if i then i = false local zone = game.ServerStorage:WaitForChild(BoneModelName):Clone() z...
-- Reproduza a faixa de animação em loop idleAnimationTrack:Play(0, 1, 1) local uis = game:GetService("UserInputService") local runservice = game:GetService("RunService") local camera = workspace.CurrentCamera local bobCF = CFrame.new() local swayCF = CFrame.new() local running = 0 runservice.RenderStepped:Conne...
--// Renders local L_161_ L_103_:connect(function() if L_15_ then L_156_, L_157_ = L_156_ or 0, L_157_ or 0 if L_159_ == nil or L_158_ == nil then L_159_ = L_45_.C0 L_158_ = L_45_.C1 end local L_271_ = (math.sin(L_150_ * L_152_ / 2) * L_151_) local L_272_ = (math.sin(L_150_ * L_152_) * L_151_) ...
--[[** ensures value is a number where min <= value <= max @param min The minimum to use @param max The maximum to use @returns A function that will return true iff the condition is passed **--]] function t.numberConstrained(min, max) assert(t.number(min) and t.number(max)) local minCheck = t.numberMin(min) ...
--[=[ The same as [Promise.new](/api/Promise#new), except execution begins after the next `Heartbeat` event. This is a spiritual replacement for `spawn`, but it does not suffer from the same [issues](https://eryn.io/gist/3db84579866c099cdd5bb2ff37947cec) as `spawn`. ```lua local function waitForChild(instance, ch...
--Made by Luckymaxer Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") RunService = game:GetService("RunService") ContentProvider = game:GetService("ContentProvider") RbxUtility = LoadLibrary("RbxUtility") Create = RbxUtility.Create Animations = {} ServerControl = Too...
--// Char Parts local Humanoid = char:WaitForChild('Humanoid') local Head = char:WaitForChild('Head') local Torso = char:WaitForChild('UpperTorso') local HumanoidRootPart = char:WaitForChild('HumanoidRootPart') local RootJoint = char.LowerTorso:WaitForChild('Root') local Neck = Head:WaitForChild('Neck') local Right_S...
--[[Steering]] Tune.SteerInner = 36 -- Inner wheel steering angle (in degrees) Tune.SteerOuter = 37 -- Outer wheel steering angle (in degrees) Tune.SteerSpeed = .05 -- Steering increment per tick (in degrees) Tune.ReturnSpeed = .1 -- Steering increment per tick (in degrees) Tune.SteerDecay = 320 -- Spee...
--script.Parent.HH.Velocity = script.Parent.HH.CFrame.lookVector *script.Parent.Speed.Value --script.Parent.HHH.Velocity = script.Parent.HHH.CFrame.lookVector *script.Parent.Speed.Value script.Parent.HHHH.Velocity = script.Parent.HHHH.CFrame.lookVector *script.Parent.Speed.Value script.Parent.I.Velocity = script.Pare...
--////////////////////////////// Methods --////////////////////////////////////// local methods = {} methods.__index = methods local function CreateGuiObjects() local BaseFrame = Instance.new("Frame") BaseFrame.Selectable = false BaseFrame.Size = UDim2.new(1, 0, 1, 0) BaseFrame.BackgroundTransparency = 1 loca...
-- Base script for NPC enemy movement, -- still a work in progress
-- -- -- -- -- -- -- --DIRECTION SCROLL-- -- -- -- -- -- -- -- Elevator:WaitForChild("Direction").Changed:connect(function(val) if val == 1 then This.Display.ARW1.U.Color = DisplayColor This.Display.ARW1.M.Color = DisplayColor This.Display.ARW1.D.Color = DisabledColor This.Display.ARW1.U.Material = Lit T...
-- CONSTRUCTOR function Signal.new(trackConnectionsChanged) local self = setmetatable({}, Signal) self._bindableEvent = Instance.new("BindableEvent") if trackConnectionsChanged then self.connectionsChanged = Signal.new() end return self end
--[[ Gamepad Support ]] -- local THUMBSTICK_DEADZONE = 0.2 local r3ButtonDown = false local l3ButtonDown = false local currentZoomSpeed = 1 -- Multiplier, so 1 == no zooming local function clamp(value, minValue, maxValue) if maxValue < minValue then maxValue = minValue end return math.clamp(value, minValue, maxV...
--[[killEvent.OnClientEvent:connect(function() KillText.TextTransparency = 0 delay(2, function() local testTween = tweenService:Create(KillText,killInfo,killGoals) testTween:Play() end) end)]] --
--[[Drivetrain]] Tune.Config = "FWD" --"FWD" , "RWD" , "AWD" --Differential Settings Tune.FDiffSlipThres = 50 -- 1 - 100% (Max threshold of applying full lock determined by deviation from avg speed) Tune.FDiffLockThres = 50 -- 0 - 100% (0 - Bias toward slower wheel, 100 - Bias toward faster wheel) ...
---------------------------------------------------------------------------------------------------- --------------------=[ OUTROS ]=-------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- ,FastReload = ...
--Automatic Settings Tune.AutoShiftMode = "Speed" --[[ [Modes] "Speed" : Shifts based on wheel speed "RPM" : Shifts based on RPM ]] Tune.AutoUpThresh = -200 --Automatic upshift point (relative to peak RPM, positive = Over-rev) Tune.AutoDownThresh = 1400 --Automatic downshift point (rel...
--[[** ensures all values in given table pass check @param check The function to use to check the values @returns A function that will return true iff the condition is passed **--]] function t.values(check) assert(t.callback(check)) return function(value) local tableSuccess, tableErrMsg = t.table(value) if...
-- ROBLOX deviation: matcher does not have RawMatcherFn type annotation and the -- the function return is not annotated with ThrowingMatcherFn function makeThrowingMatcher( matcher: RawMatcherFn, isNot: boolean, promise: string, actual: any, err: JestAssertionError? ): ThrowingMatcherFn return function(...) l...
-- t: a runtime typechecker for Roblox local t = {} function t.type(typeName) return function(value) local valueType = type(value) if valueType == typeName then return true else return false end end end function t.typeof(typeName) return function(value) local valueType = typeof(value) if value...
--[[ Main RenderStep Update. The camera controller and occlusion module both have opportunities to set and modify (respectively) the CFrame and Focus before it is set once on CurrentCamera. The camera and occlusion modules should only return CFrames, not set the CFrame property of CurrentCamera directly. --]] fun...
--[=[ Like [GetRemoteEvent] but in promise form. @function PromiseGetRemoteEvent @within PromiseGetRemoteEvent @param name string @return Promise<RemoteEvent> ]=] if not RunService:IsRunning() then -- Handle testing return function(name) return Promise.resolved(GetRemoteEvent(name)) end elseif RunService:I...
--Misc Tune.RevAccel = 150 -- RPM acceleration when clutch is off Tune.RevDecay = 75 -- RPM decay when clutch is off Tune.RevBounce = 500 -- RPM kickback from redline Tune.IdleThrottle = 3 -- Percent throttle at idle Tune.ClutchTol = 500 -- Clutch engagement threshold (higher = faster response)
-- Requires local Database = require(ReplicatedStorage.Common.Database) local APIEquipment = require(ReplicatedStorage.Common.APIEquipment)
--[[ Remove the range from the list starting from the index. ]] local function removeRange(list, startIndex, endIndex) assert(startIndex <= endIndex, "startIndex must be less than or equal to endIndex") local new = {} local index = 1 for i = 1, math.min(#list, startIndex - 1) do new[index] = list[i] index ...
--------------------------------------------------- This = script.Parent Elevator = This.Parent.Parent.Parent.Parent.Parent Characters = require(script.Characters) CustomLabel = require(Elevator.CustomLabel) CustomText = CustomLabel["CUSTOMFLOORLABEL"] This.Parent.Parent.Parent.Parent.Parent:WaitForChild("Floor")....
--// Recoil Settings gunrecoil = -0.5; -- How much the gun recoils backwards when not aiming camrecoil = 0.5; -- How much the camera flicks when not aiming AimGunRecoil = -0.5; -- How much the gun recoils backwards when aiming AimCamRecoil = 0.13; -- How much the camera flicks when aiming CamShake = 0.5; -- T...
--local function module.locaL(part,cf) local thing = part thing.CFrame = cf thing.Parent = game.Workspace.World.Visuals return thing end module.weld = function(data) local part = data.part local base = data.basepart local tim = data.tim or nil local name = data.name or "Weld" part.Anchored = false --bas...
-- Camera math utility library local CameraUtils = require(script:WaitForChild("CameraUtils"))
------------------------------------------------------- -- изменение размера контескта под рамку local context = me.frmContext context.Size = UDim2.new(0,me.AbsoluteSize.X-29,0,me.AbsoluteSize.Y-29)
-- Function to update the loading time local function UpdateLoadingTime(remainingTime) loadingBar.Text = tostring(remainingTime) .. "s" end
-- main program local runService = game:service("RunService");
-- functions function stopAllAnimations() local oldAnim = currentAnim -- return to idle if finishing an emote if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then oldAnim = "idle" end currentAnim = "" currentAnimInstance = nil if (currentAnimKeyframeHandler ~= nil) then currentAnimKeyfr...
--Precalculated paths local t,f,n=true,false,{} local r={ [58]={{72,71,61,59,41,30,56,58},t}, [49]={{72,71,61,59,41,39,35,34,32,31,29,28,44,45,49},t}, [16]={n,f}, [19]={{72,71,61,59,41,30,56,58,20,19},t}, [59]={{72,71,61,59},t}, [63]={{72,71,61,59,41,30,56,58,23,62,63},t}, [34]={{72,71,61,59,41,39,35,34},t}, [21]={{7...
--cam.FieldOfView=math.random(68,72) task.wait() end
-- map a value from one range to another function CameraUtils.map(x, inMin, inMax, outMin, outMax) return (x - inMin)*(outMax - outMin)/(inMax - inMin) + outMin end
--[[** ensures Roblox RaycastResult type @param value The value to check against @returns True iff the condition is satisfied, false otherwise **--]] t.RaycastResult = t.typeof("RaycastResult")
-- message recieved, delete StringValue animStringValueObject.Parent = nil toolAnimTime = time + .3 end if time > toolAnimTime then toolAnimTime = 0 toolAnim = "None" end animateTool() else stopToolAnimations() toolAnim = "None" toolAnimInstance = nil toolAnimTime = 0 end end
--//Controller//-- Trigger.MouseClick:Connect(function(Player) if not Settings.OnCD then local Backpack = Player.Backpack local StarterGear = Player.StarterGear for _, Tool in pairs(Backpack:GetChildren()) do if Tool then Tool:Destroy() end end for _, Tool in pairs(StarterGear:GetChildren()...
--[[Transmission]] Tune.TransModes = {"Semi"} --"Auto", "Semi", or "Manual". Can have more than one; order from first to last --Automatic Settings Tune.AutoShiftMode = "Speed" --"Speed" or "RPM" Tune.AutoUpThresh = -200 --Automatic upshift point (relative to peak RPM, positive = Over-rev) Tune.AutoDownThresh...
--[=[ Constructs a new Maid object ```lua local maid = Maid.new() ``` @return Maid ]=] function Maid.new() return setmetatable({ _tasks = {} }, Maid) end
--// Positioning SprintPos = CFrame.new(0, 0, 0, 0.844756603, -0.251352191, 0.472449303, 0.103136979, 0.942750931, 0.317149073, -0.525118113, -0.219186768, 0.822318792);
------------------------- while true do R.BrickColor = BrickColor.new("CGA brown") wait(0.3) R.BrickColor = BrickColor.new("Really black") wait(0.3) end
-- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false} math.randomseed(tick()) function configureAnimationSet(name, fileList) if (animTable[name...
-- Use entrance-easing when adding elements to the view such as a modal or toaster appearing, or moving in response to users’ input, such as dropdown opening or toggle. An element quickly appears and slows down to a stop. local EntranceProductive = Bezier(0, 0, 0.38, 0.9) local EntranceExpressive = Bezier(0, 0, 0.3, ...
-- Roblox character sound script local Players = game:GetService("Players") local RunService = game:GetService("RunService") local SOUND_DATA = { Climbing = { SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3", Looped = true, }, Died = { SoundId = "rbxasset://sounds/uuhhh.mp3", }, FreeFalling = {...
--// Recoil Settings gunrecoil = -0.2; -- How much the gun recoils backwards when not aiming camrecoil = 0.2; -- How much the camera flicks when not aiming AimGunRecoil = -0.2; -- How much the gun recoils backwards when aiming AimCamRecoil = 0.2; -- How much the camera flicks when aiming CamShake = 2; -- THIS...
--[[Engine]] --Torque Curve Tune.Horsepower = 1400 Tune.IdleRPM = 600 Tune.PeakRPM = 7000 Tune.Redline = 8100 Tune.EqPoint = 7000 Tune.PeakSharpness = 9.4 Tune.CurveMult = 0 --Incline Compensation Tune.InclineComp = 1.7 -- Torque compensation multiplier for inclines (applies gradient from 0-90 deg...
--Give player when join game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local equipped = player:WaitForChild("BackpackShop").Equipped if equipped.Value ~= "" then local a = game.ServerStorage.Backpacks[equipped.Value]:Clone() a.Name = "Backpack" a.Paren...
------------------------------------------------------------------ function FixVars() --This function fixes any errors in the Customize folder Acceleration2 = (Acceleration.Value < 0 and 0 or Acceleration.Value > 1000 and 1000 or Acceleration.Value) MaxBank2 = (MaxBank.Value < -90 and -90 or MaxBank.Value > 90 and ...
--// All global vars will be wiped/replaced except script return function(data, env) if env then setfenv(1, env) end local gui = client.UI.Prepare(script.Parent.Parent) -- Change it to a TextLabel to avoid chat clearing local playergui = service.PlayerGui local frame = gui.Frame local msg = gui.Frame.Messag...
-- spring for an array of linear values local LinearSpring = {} do LinearSpring.__index = LinearSpring function LinearSpring.new(dampingRatio, frequency, pos, typedat, rawTarget) local linearPos = typedat.toIntermediate(pos) return setmetatable( { d = dampingRatio, f = frequency, g = linearPos, ...
-- Helper functions function angleBetweenPoints(p0, p1) local p = p0 - p1 return -math.atan2(p.z, p.x) end function getCameraAngle(camera) local cf, f = camera.CoordinateFrame, camera.Focus return angleBetweenPoints(cf.p, f.p) end
-- ROBLOX deviation: alias for internal React$ flow types export type React_Node = nil | boolean | number | string | React_Element<any> -- ROBLOX TODO: only include this once it's more specific than `any` -- | React_Portal | Array<React_Node?> -- ROBLOX TODO Luau: this more closely matches the upstream Itera...
--// Dump log on disconnect local isStudio = game:GetService("RunService"):IsStudio() game:GetService("NetworkClient").ChildRemoved:Connect(function(p) if not isStudio then warn("~! PLAYER DISCONNECTED/KICKED! DUMPING ADONIS CLIENT LOG!") dumplog() end end) local unique = {} local origEnv = getfenv() setfenv(1...
--!strict local function defaultFilter(...: any) return true end local function onSpawned<U>(parent: Instance, callback: (child: U) -> (), filter: ((child: Instance) -> boolean)?) local filterer = (filter or defaultFilter) :: (Instance) -> boolean for _, child in parent:GetChildren() :: { any } do if filterer...
--[[Drivetrain]] Tune.Config = "FWD" --"FWD" , "RWD" , "AWD"
------------------------------------------------------------------------ -- parse function declaration body -- * used in simpleexp(), localfunc(), funcstat() ------------------------------------------------------------------------ function luaY:body(ls, e, needself, line) -- body -> '(' parlist ')' chunk END loc...
-- end end end) keyset.Event:wait() script.Parent.Key.Transparency=0 _G.Tween(script.Parent.Key,{CFrame=script.Parent.KeyC.CFrame},1,"Sine","In"):Play() wait(1.2) script.Parent.Key.ClickDetector.MaxActivationDistance=10 script.Parent.KeyBase.ClickDetector.MaxActivationDistance=0 script.Parent.Key.ClickDetector.Mous...
--[[Controls]] local _CTRL = _Tune.Controls local Controls = Instance.new("Folder",script.Parent) Controls.Name = "Controls" for i,v in pairs(_CTRL) do local a=Instance.new("StringValue",Controls) a.Name=i a.Value=v.Name a.Changed:connect(function() if i=="MouseThrottle" or i=="MouseBrake" then if a.Value =...
--[[ for a,b in pairs(game.ServerScriptService.MainModule.Server.Morphs:GetDescendants()) do if b:IsA("Decal") and b.Name ~= "face" and b.Parent.Name == "Head" then print("CHANGED: ".. b.Name.." | "..b.Parent.Parent.Name) b.Name = "face" end end --]] local bundleCache = {} -- cache HumanoidDescriptions retriev...
-- Get references to the DockShelf and its children local dockShelf = script.Parent.Parent.Parent.Parent.Parent.DockShelf local shlf = script.Parent.Parent.Parent.Parent.Parent.WindowManager.CtxtMenu local aFinderButton = shlf.About local Minimalise = script.Parent local window = script.Parent.Parent.Parent
--[[Susupension]] Tune.SusEnabled = true -- works only in with PGSPhysicsSolverEnabled, defaults to false when PGS is disabled --Front Suspension Tune.FSusDamping = 500 -- Spring Dampening Tune.FSusStiffness = 9000 -- Spring Force Tune.FAntiRoll = 50 -- Anti-Roll (Gyro Dampening) Tune.FSusLength = 1...
-- Defaultly Changes Color give.BrickColor = SC color.BrickColor = SC
--PUT THIS SCRIPT IN STARTERPACK, STOP DISLIKING IT BECAUSE YOU DIDN'T USE IT RIGHT local sounds = game:GetService('SoundService') local runtime = game:GetService('RunService') script:WaitForChild('FootstepSounds').Parent = sounds local materials = sounds:WaitForChild('FootstepSounds') local plr = game.Players.Local...
-- m.DesiredAngle = -1 -- script.Parent.Parent.DoorOpen:Play() end end end)
-- [[ Flags ]] local FFlagUserCameraGamepadZoomFix do local success, result = pcall(function() return UserSettings():IsUserFeatureEnabled("UserCameraGamepadZoomFix") end) FFlagUserCameraGamepadZoomFix = success and result end
-- Enable this if you want to test ragdolls in zero - g local buildRagdoll = require(ReplicatedStorage:WaitForChild("buildRagdoll"))
--Variables local player = game.Players.LocalPlayer local open = false
--//wipers local wpr = Instance.new("Motor", script.Parent.Parent.Misc.WPR.SS) wpr.MaxVelocity = 0.05 wpr.Part0 = script.Parent.WPR wpr.Part1 = wpr.Parent local wpr2 = Instance.new("Motor", script.Parent.Parent.Misc.WPR2.SS) wpr2.MaxVelocity = 0.05 wpr2.Part0 = script.Parent.WPR2 wpr2.Part1 = wpr2.Parent
-- Don't edit below unless you know what you're doing. local O = true function onClicked() if O == true then O = false One() elseif O == false then O = true Two() end end script.Parent.MouseButton1Down:connect(onClicked)
-- grab the mouse local mouse = localPlayer:GetMouse()
-- FEATURE METHODS function Icon:bindEvent(iconEventName, eventFunction) local event = self[iconEventName] assert(event and typeof(event) == "table" and event.Connect, "argument[1] must be a valid topbarplus icon event name!") assert(typeof(eventFunction) == "function", "argument[2] must be a function!") self._bi...
--step 3: move your ScreenGui to the "Part" inside "Model" (you can re-name the part whatever and the ScreenGui)
-- The script needs this to check the state to not update the Last Standing Y Position Variable. local function getHumanoidState(h) return h:GetState() end
-- Gets the closest player within range to the given mob. If the closest player is the player the mob is already following, distance is 2x. -- Note: If streaming is enabled, MoveTo may produce undesired results if the max distance is ever higher than streaming minimum, such as the enemy -- appearing to 'idle' if the cu...
--///////////////////////// Constructors --////////////////////////////////////// function module.new() local obj = setmetatable({}, methods) obj.MessageIdCounter = 0 obj.ChatChannels = {} obj.Speakers = {} obj.FilterMessageFunctions = Util:NewSortedFunctionContainer() obj.ProcessCommandsFunctions = Util:Ne...
--[=[ Counts the number of times a char appears in a string. :::note Note that this is not UTF8 safe ::: @param str string @param char string @return number ]=] function String.checkNumOfCharacterInString(str: string, char: string): number local count = 0 for _ in string.gmatch(str, char) do count = coun...
--[=[ @prop Player Player @within KnitClient @readonly Reference to the LocalPlayer. ]=] KnitClient.Player = game:GetService("Players").LocalPlayer