text
stringlengths
52
99.8k
-- The middle number adjusts how high/low the hat will be placed on the head. The higher the number is, the lower the hat will be -- placed. If you are at zero, and you want the hat to go lower, make the number a negative. Negative numbers will make the hat -- be place higher on your robloxian head.
--[[Flip]] local function Flip() --Detect Orientation if (car.DriveSeat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.y > .1 or FlipDB then FlipWait=tick() --Apply Flip else if tick()-FlipWait>=3 then FlipDB=true local gyro = car.DriveSeat.Flip gyro.maxTorque = Vector3.new(10000,0,10000) gyro...
-- listeners local function onProductPurchased(player, id) local product, class = getAsset(id) if product then local data = Datastore:GetData(player) if product.onPurchased then product.onPurchased(player) end if class == "Passes" and data then local gamepasses = data.Gamepasses or {} table.inser...
--[[ ___ _______ _ / _ |____/ ___/ / ___ ____ ___ (_)__ / __ /___/ /__/ _ \/ _ `(_-<(_-</ (_-< /_/ |_| \___/_//_/\_,_/___/___/_/___/ SecondLogic @ Inspare ]] local autoscaling = false --Estimates top speed local UNITS = { --Click on speed to change units ...
-- print("Wha " .. pose) amplitude = 0.1 frequency = 1 setAngles = true end if (setAngles) then local desiredAngle = amplitude * math.sin(time * frequency) RightShoulder:SetDesiredAngle(desiredAngle + climbFudge) LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge) RightHip:SetDesiredAngle(-desi...
-- Handle event fire local function toggleDoor(player, door) -- Check distance to the character's Torso. If too far, don't do anything if player.Character and player.Character:FindFirstChild("Torso") then local torso = player.Character:FindFirstChild("Torso") local toTorso = torso.Position - stove.Door.Posit...
--[[ * Look for single edits surrounded on both sides by equalities * which can be shifted sideways to align the edit to a word boundary. * e.g: The c<ins>at c</ins>ame. -> The <ins>cat </ins>came. * @param {Array.<Array.<number|string>>} diffs Array of diff tuples. --]] _diff_cleanupSemanticLossless = function(diffs...
-- ======================================== -- ActionManager -- ======================================== -- Bind/Unbind actions function ActionManager:BindGameActions(players) for i, player in pairs(players) do bind:FireClient(player, "Action1", Enum.UserInputType.MouseButton1, Enum.KeyCode.ButtonR2) end end fun...
---------- Brake Lights On ---------- lights.Brake1.BrickColor = BrickColor.new("Really red") lights.Brake2.BrickColor = BrickColor.new("Really red") lights.Brake1.Material = "Neon" lights.Brake2.Material = "Neon" end end
--ball.SparkSound.Looped = false --ball.SparkSound:Stop() ball.Parent = nil
-- Shorthand for creating a tweenable "variable" using value object local function makeProperty(valueObjectClass, defaultValue, setter) local valueObject = Instance.new(valueObjectClass) if defaultValue then valueObject.Value = defaultValue end valueObject.Changed:connect(setter) setter(valueObject.Value) ret...
--[[------------------------------------- REMOTE FUNCTIONS ------------------------------]] -- local function validateAndSendSoundRequest(requestingPly, parent, soundObj, vol, pit, timePos) if not soundObj then return end for _, v in pairs(serverWorkerModule.getAllOtherPlayers(requestingPly)) do playSoundEffectEv...
-- Settings local allow_duplicates = false local allow_team ={ "Players", "Players" }
--not sure --local function PlaySound() -- game.SoundSerivce.SealOrb:Play() --end -- local triggerEnabled = true local function touched(otherPart) if( not triggerEnabled ) then return end if(otherPart.Name == "HumanoidRootPart" ) then local player = game.Players:FindFirstChild(otherPart.Parent.Name) if(pla...
-- How many studs the zombie can wander on the x and z axis in studs ; 0, 0 to stay still
-- functions function onRunning(speed) if isSeated then return end if speed>0 then pose = "Running" else pose = "Standing" end end function onDied() pose = "Dead" end function onJumping() isSeated = false pose = "Jumping" end function onClimbing() pose = "Climbing" end function onGettingUp() pose =...
--------------| MODIFY COMMANDS |-------------- SetCommandRankByName = { --["jump"] = "VIP"; }; SetCommandRankByTag = { --["abusive"] = "Admin"; }; };
-- fetch the ID list local IDList = require(script.Parent.IDList)
--[[ Public API ]] -- function DPad:Enable() DPadFrame.Visible = true end function DPad:Disable() DPadFrame.Visible = false OnInputEnded() end function DPad:Create(parentFrame) if DPadFrame then DPadFrame:Destroy() DPadFrame = nil end local position = UDim2.new(0, 10, 1, -230) DPadFrame = Instance.new('...
--[[Initialize]] script.Parent:WaitForChild("A-Chassis Interface") script.Parent:WaitForChild("Plugins") script.Parent:WaitForChild("README") local car=script.Parent.Parent local _Tune=require(script.Parent) wait(_Tune.LoadDelay) --Weight Scaling local weightScaling = _Tune.WeightScaling if not worksp...
-- Functions function httpGet(url) return game:HttpGet(url,true) end
-- setup emote chat hook game:GetService("Players").LocalPlayer.Chatted:connect(function(msg) local emote = "" if (string.sub(msg, 1, 3) == "/e ") then emote = string.sub(msg, 4) elseif (string.sub(msg, 1, 7) == "/emote ") then emote = string.sub(msg, 8) end if (pose == "Standing" and emoteNames[emote] ~= ...
--[[ OrbitalCamera - Spherical coordinates control camera for top-down games 2018 Camera Update - AllYourBlox --]]
---------------------------------- ------------FUNCTIONS------------- ---------------------------------- function Receive(player, action, ...) local args = {...} if player == User and action == "play" then Connector:FireAllClients("play", User, args[1], Settings.SoundSource.Position, Settings.PianoSoundRange, Se...
-- Local Functions local function GetTeamFromColor(teamColor) for _, team in ipairs(Teams:GetTeams()) do if team.TeamColor == teamColor then return team end end return nil end
--[[Drivetrain]] Tune.Config = "RWD" --"FWD" , "RWD" , "AWD" --Differential Settings Tune.FDiffSlipThres = 50 -- 1 - 100% (Max threshold of applying full lock determined by deviation from avg speed) Tune.FDiffLockThres = 0 -- 0 - 100% (0 - Bias toward slower wheel, 100 - Bias toward faster wheel) ...
--Disconnect MoveToFinished connection when pathfinding ends local function disconnectMoveConnection(self) self._moveConnection:Disconnect() self._moveConnection = nil end
-- / Wind Shake / -- WindShake:SetDefaultSettings(WindShakeSettings) WindShake:Init() for _, ShakeObject in pairs(game.Workspace:GetDescendants()) do if ShakeObject:IsA("BasePart") then if table.find(ShakableObjects, ShakeObject.Name) then WindShake:AddObjectShake(ShakeObject, WindShakeSettings) end end en...
--[=[ Alias for [Subscription.Destroy]. ]=] function Subscription:Disconnect() self:Destroy() end return Subscription
--pathfind function GoTo(Target) Path:ComputeAsync(NPC.HumanoidRootPart.Position, Target) if Path.Status == Enum.PathStatus.NoPath then else local WayPoints = Path:GetWaypoints() for _, WayPoint in ipairs(WayPoints) do NPC.Humanoid:MoveTo(WayPoint.Position) if WayPoint.Action == Enum.PathWaypointActi...
-- idle bob settings local speed = 1.5 local intensity = 0.2 local smoothness = 0.2
---------------------------------------------------------------------------------------------------------------------------------------------------------------- -- Events -----------------------------------------------------------------------------------------------------------------------------------------------------...
-- Gamepad thumbstick utilities local k = 0.5 local lowerK = 0.9 local function SCurveTransform(t) t = math.clamp(t, -1,1) if t >= 0 then return (k*t) / (k - t + 1) end return -((lowerK*-t) / (lowerK + t + 1)) end local DEADZONE = 0.25 local function toSCurveSpace(t) return (1 + DEADZONE) * (2*math.abs(t) - 1...
--bendarobloxian 2020, Owner Title Script Version 4.2 | Now supporting rainbow colors, but with a less colorful and more simplistic icon.
-- щит над деревней me = script.Parent me.Position = Vector3.new(0,0,0) local radius = game.Workspace.Village.Radius.Value me.Size = Vector3.new(radius,radius,radius)
--////////////////////////////// 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 local...
-- Sound Button.MouseClick:Sound(function(Sound) play.Sound() end)
--Code if year == 2007 then script.Parent.ClickToChat.TextColor3 = Color3.new(0, 0, 0) script.Parent.ChatBar.BackgroundColor3 = Color3.new(255/255, 255/255, 255/255) end local Chat = { ChatColors = { BrickColor.new("Bright red"), BrickColor.new("Bright blue"), BrickColor.new("Earth green"), BrickColor.n...
--Much efficient way to hide the backpack without causing lag local StarterGui = game:GetService("StarterGui") StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
-- Get points and listen for changes: local initialPoints = PointsService:GetPoints() PointsChanged(initialPoints) PointsService.PointsChanged:Connect(PointsChanged)
-------------------------------------------------------------------- if backfire == true then mouse.KeyDown:connect(function(key) if key == camkey and enabled == false then local children = car.Body.Exhaust:GetChildren() for index, child in pairs(children) do if child.Name == "Backfire1" or child...
--Variable local MovementMap = { [Enum.KeyCode.W] = Vector3.new(0, 0, -1); [Enum.KeyCode.A] = Vector3.new(-1, 0, 0); [Enum.KeyCode.S] = Vector3.new(0, 0, 1); [Enum.KeyCode.D] = Vector3.new(1, 0, 0) } local Maid local MovementController = {} function MovementController:GetInput() local totalVect...
-- ==================== -- BASIC -- A basic settings for the gun -- ==================== Auto = false; MuzzleOffset = Vector3.new(0, 0.625, 1.25); BaseDamage = 20; FireRate = 0.15; --In second ReloadTime = 2; --In second AmmoPerClip = 17; --Put "math.huge" to make this gun has infinite ammo and never rel...
--[=[ Yields until the promise is complete, then returns a boolean indicating the result, followed by the values from the promise. @yields @return boolean, T ]=] function Promise:Yield() if self._fulfilled then return true, unpack(self._fulfilled, 1, self._valuesLength) elseif self._rejected then return fa...
-- Don't edit below unless you know what you're doing. function onClicked() Option() end script.Parent.MouseButton1Down:connect (onClicked)
--[[** Adds an `Object` to Janitor for later cleanup, where `MethodName` is the key of the method within `Object` which should be called at cleanup time. If the `MethodName` is `true` the `Object` itself will be called instead. If passed an index it will occupy a namespace which can be `Remove()`d or overwritten. Retu...
--[[ When the player plays a chord, this method will deduce which animation to play based on the chord number ]] local function GetAnimationFromChord(chord: number, hold: boolean): Animation if hold then return AnimationsDB.Sustain end if chord == 1 then return AnimationsDB.SpecialA elseif chord == 2 then...
-- Backpack Version 5.1 -- OnlyTwentyCharacters, SolarCrane local BackpackScript = {} BackpackScript.OpenClose = nil -- Function to toggle open/close BackpackScript.IsOpen = false BackpackScript.StateChanged = Instance.new("BindableEvent") -- Fires after any open/close, passes IsNowOpen BackpackScript.ModuleName = ...
-- simple if statements, decides where the Tool will spawn -- depending on the generated number. if BlockPosition == 1 then Block.CFrame = Pos1 end if BlockPosition == 2 then Block.CFrame = Pos2 end if BlockPosition == 3 then Block.CFrame = Pos3 end if BlockPosition == 4 then Block.CFrame = Pos4 end
--Zombie.Humanoid.Running:Connect(d) Zombie.Humanoid.Died:Connect(function() script.Parent:Destroy() end) Zombie.Humanoid.HealthChanged:Connect(function() Zombie.Damage = math.ceil((script.Parent.Humanoid.Health * 1.2) / 2) end)
-- int rd_int_le(string src, int s, int e) -- @src - Source binary string -- @s - Start index of a little endian integer -- @e - End index of the integer local function rd_int_le(src, s, e) return rd_int_basic(src, s, e - 1, 1) end
--------LEFT DOOR -------- game.Workspace.doorleft.l13.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorleft.l22.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultlights.Value) game.Workspace.doorleft.l31.BrickColor = BrickColor.new(game.Workspace.Lighting.defaultli...
--// # key, ally mouse.KeyDown:connect(function(key) if key=="m" then veh.Lightbar.middle.Beep:Play() veh.Lightbar.Remotes.AllyEvent:FireServer(true) end end)
--Funcion Del AutoClick local plr = script.Parent.Parent.Parent local autoclick = false local autoclickDD = false function GetAuto() game.Workspace.Tree.Size = game.Workspace.Tree.Size + Vector3.new(1,1,1) game.Workspace.Base.Size = game.Workspace.Base.Size + Vector3.new(1,0,1) game.Workspace.Pop:Play() end scri...
--spawn(function() while game:GetService("RunService").Heartbeat:wait() and car:FindFirstChild("DriveSeat") and character.Humanoid.SeatPart == car.DriveSeat do --game:GetService("RunService").RenderStepped:wait() if IsGrounded() then if movement.Y ~= 0 then local velocity = humanoidRootPart.CFrame.lookVec...
-- Bookkeeping of all active GlobalDataStore/OrderedDataStore interfaces indexed by data table: local Interfaces = {}
--// Events local L_108_ = L_20_:WaitForChild('Equipped') local L_109_ = L_20_:WaitForChild('ShootEvent') local L_110_ = L_20_:WaitForChild('DamageEvent') local L_111_ = L_20_:WaitForChild('CreateOwner') local L_112_ = L_20_:WaitForChild('Stance') local L_113_ = L_20_:WaitForChild('HitEvent') local L_114_ = L_20_:Wai...
-------------------------------------------------------------------------------- while true do while Humanoid.Health < Humanoid.MaxHealth do local dt = wait(REGEN_STEP) local dh = dt*REGEN_RATE*Humanoid.MaxHealth Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth) end Humanoid.HealthChanged...
-- Define the function to open or close the window with gene-alike effect local function toggleWindow(button) local windowName = button.Name -- Find the corresponding frame in the AppManager using the window name local window = gui:FindFirstChild(windowName) if window then if window.Visible == false then --...
--[[** <description> Takes a function to be called after :Save(). </description> <parameter name = "callback"> The callback function. </parameter> **--]] function DataStore:AfterSave(callback) table.insert(self.afterSave, callback) end
-- RbxApi Stuff local maxChunkSize = 100 * 1000 local ApiJson if script:FindFirstChild("RawApiJson") then ApiJson = script.RawApiJson else ApiJson = "" end local jsonToParse = require(ApiJson) function getRbxApi()
--tone hz elseif sv.Value==5 then while s.Pitch<1 do s.Pitch=s.Pitch+0.010 s:Play() if s.Pitch>1 then s.Pitch=1 end wait(-9) end while true do for x = 1, 500 do s:play() wait(-9) end wait() end
--//Suspension//-- RideHeightFront = 1.4 --{This value will increase the ride height for front} RideHeightRear = 1.4--{This value will increase the ride height for rear} StiffnessFront = 3 --[0-10]{HIGHER STIFFNESS DECREASES SPAWNING STABILITY} StiffnessRear = 4 --[0-10]{This value will increase the stiffness for re...
--- Swaps keys with values, overwriting additional values if duplicated -- @tparam table orig original table -- @treturn table function Table.swapKeyValue(orig) local tab = {} for key, val in pairs(orig) do tab[val] = key end return tab end
--[[ Written by Eti the Spirit (18406183) The latest patch notes can be located here (and do note, the version at the top of this script might be outdated. I have a thing for forgetting to change it): > https://etithespirit.github.io/FastCastAPIDocs/changelog *** If anything is broken, please don't hesitate...
--[[ These keys invert the condition expressed by the Expectation. ]] local NEGATION_KEYS = { never = true, }
--[=[ Gets or creates the global localization table. If the game isn't running (i.e. test mode), then we'll just not parent it. @return string -- The locale ]=] function JsonToLocalizationTable.getOrCreateLocalizationTable() local localizationTable = LocalizationService:FindFirstChild(LOCALIZATION_TABLE_NAME) ...
--------END RIGHT DOOR -------- end wait(0.15) if game.Workspace.DoorFlashing.Value == true then
-- Should messages to channels other than general be echoed into the general channel. -- Setting this to false should be used with ShowChannelsBar module.EchoMessagesInGeneralChannel = true module.ChannelsBarFullTabSize = 4 -- number of tabs in bar before it starts to scroll module.MaxChannelNameLength = 12
--[[ Render the child component so that ExternalEventConnections can be nested like so: Roact.createElement(ExternalEventConnection, { event = UserInputService.InputBegan, callback = inputBeganCallback, }, { Roact.createElement(ExternalEventConnection, { event = UserInputService.InputEnded, callb...
---[[ Font Settings ]] module.DefaultFont = Enum.Font.SourceSansBold module.ChatBarFont = Enum.Font.SourceSansBold
--------END BACKLIGHTS-------- end script.Parent.ClickDetector.MouseClick:connect(onClicked)
--[[Steering]] Tune.SteerInner = 45 -- Inner wheel steering angle (in degrees) Tune.SteerOuter = 41 -- 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...
--[=[ @param fn (...: any) -> any @return Connection Connects a function to the remote signal. The function will be called anytime the equivalent server-side RemoteSignal is fired at this specific client that created this client signal. ]=] function ClientRemoteSignal:Connect(fn) if self._directConnect then r...
-- print("Loading anims " .. name) table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end)) table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end)) local idx = 1 fo...
--Miscellaneous Settings FADE_TIME,FADE_TWNSTYLE,FADE_TWNDIRECTION = nil IND_TICK_TIME = nil L_BEAM_COLOR,L_BEAM_RANGE,L_BEAM_BRIGHTNESS = nil H_BEAM_COLOR,H_BEAM_RANGE,H_BEAM_BRIGHTNESS = nil T_LIGHT_RANGE,T_LIGHT_BRIGHTNESS = nil B_LIGHT_RANGE,B_LIGHT_BRIGHTNESS,B_LIGHT_FADE_TIME = nil
-- Modules Ragdoll = require(script.Parent.Ragdoll)
--[[ Add a new describe node with the given method as a callback. Generates or reuses all the describe nodes along the path. ]] function TestPlan:addRoot(path, method) local curNode = self for i = #path, 1, -1 do local nextNode = nil for _, child in ipairs(curNode.children) do if child.phrase == path[i] t...
-- print(animName .. " * " .. idx .. " [" .. origRoll .. "]") local anim = animTable[animName][idx].anim -- load it to the humanoid; get AnimationTrack toolOldAnimTrack = toolAnimTrack toolAnimTrack = humanoid:LoadAnimation(anim) -- play the animation toolAnimTrack:Play(transitionTime) toolAnimNam...
--[[Engine]] --Torque Curve Tune.Horsepower = 600 -- [TORQUE CURVE VISUAL] Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf Tune.PeakRPM = 6000 -- Use sliders to manipulate values Tune.Redline = 6700 -- Copy and paste slider values into the respective tune values Tune.EqPoint = 550...
-- This function selects the lowest number gamepad from the currently-connected gamepad -- and sets it as the active gamepad function Gamepad:GetHighestPriorityGamepad() local connectedGamepads = UserInputService:GetConnectedGamepads() local bestGamepad = NONE -- Note that this value is higher than all valid gamepa...
-- Services local players = game:GetService("Players")
--[=[ @within TableUtil @function Truncate @param tbl table @param length number @return table Returns a new table truncated to the length of `length`. Any length equal or greater than the current length will simply return a shallow copy of the table. ```lua local t = {10, 20, 30, 40, 50, 60, 70, 80} local...
---Burst Settings--- elseif Settings.Mode == "Burst" and Settings.FireModes.Auto == true then Gui.FText.Text = "Auto" Settings.Mode = "Auto" elseif Settings.Mode == "Burst" and Settings.FireModes.Explosive == true and Settings.FireModes.Auto == false then Gui.FText.Text = "Explosive" Settings.Mo...
-------- function Handler:add(hitboxObject) assert(typeof(hitboxObject) ~= "Instance", "Make sure you are initializing from the Raycast module, not from this handler.") table.insert(ActiveHitboxes, hitboxObject) end function Handler:remove(object) for i in ipairs(ActiveHitboxes) do if ActiveHitboxes[i].object =...
--DO NOT CHANGE ANYTHING INSIDE OF THIS SCRIPT BESIDES WHAT YOU ARE TOLD TO UNLESS YOU KNOW WHAT YOU'RE DOING OR THE SCRIPT WILL NOT WORK!! local hitPart = script.Parent local debounce = true local tool = game.ServerStorage.Floral -- Change "Sword" to the name of your tool, make sure your tool is in ServerStorage hi...
--[[ Creates a new copy of the list with the given elements appended to it. ]] function Immutable.Append(list, ...) local new = {} local len = #list for key = 1, len do new[key] = list[key] end for i = 1, select("#", ...) do new[len + i] = select(i, ...) end return new end
----------------------------------------------------------------------------------------------- local player=game.Players.LocalPlayer local mouse=player:GetMouse() local car = script.Parent.Parent.Car.Value local _Tune = require(car["A-Chassis Tune"]) local gauges = script.Parent local values = script.Parent.Paren...
-- (Hat Giver Script - Loaded.) debounce = true function onTouched(hit) if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then debounce = false h = Instance.new("Hat") p = Instance.new("Part") h.Name = "2006 Visor" p.Parent = h p.Position = hit.Parent:findFirstChild("Head").Positio...
-- Handle joining general channel first. for i, channelData in pairs(initData.Channels) do if channelData[1] == ChatSettings.GeneralChannelName then HandleChannelJoined(channelData[1], channelData[2], channelData[3], channelData[4], true, false) end end for i, channelData in pairs(initData.Channels) do if chann...
--[[ CONSTRUCTOR ]] -- function Path.new(agent, agentParameters, override) if not (agent and agent:IsA("Model") and agent.PrimaryPart) then output(error, "Pathfinding agent must be a valid Model Instance with a set PrimaryPart.") end local self = setmetatable({ _settings = override or DEFAULT_SETTINGS; _even...
-- Connect to all Players so we can ignore their Characters PlayersService.ChildRemoved:connect(OnPlayersChildRemoved) PlayersService.ChildAdded:connect(OnPlayersChildAdded) for _, player in pairs(PlayersService:GetPlayers()) do OnPlayersChildAdded(player) end return PopperCam
--[=[ Observes for the key @param key TKey @return Observable<TEmit> ]=] function ObservableSubscriptionTable:Observe(key) assert(key ~= nil, "Bad key") return Observable.new(function(sub) if not self._subMap[key] then self._subMap[key] = { sub } else table.insert(self._subMap[key], sub) end retu...
-- This script works with any part, feel free to move it into a different part if needed. local parentPart = script.Parent parentPart.Touched:Connect(function(hit) local human = hit.Parent:FindFirstChild("Humanoid") if human then human:TakeDamage(human.MaxHealth) end end)
--script.Parent.Parent.Parent.Parent.Values.Win.Changed:Connect(function() --if script.Parent.Parent.Parent.Parent.Values.Win.Value == true then --PLR_CLICKED.leaderstats.Wins.Value = PLR_CLICKED.leaderstats.Wins.Value + 1 --script.Disabled = true --end --end) end)
-- Roblox User Input Control Modules - each returns a new() constructor function used to create controllers as needed local Keyboard = require(script:WaitForChild("Keyboard")) local Gamepad = require(script:WaitForChild("Gamepad")) local DynamicThumbstick = require(script:WaitForChild("DynamicThumbstick")) local FFl...
-- Create a FormatByKey() function that uses a fallback translator if the first fails to load or return successfully function TranslationHelper.translateByKey(key, arguments) local translation = "" local foundTranslation = false -- First tries to translate for the player's language (if a translator was found) i...
--// Remote return function(Vargs, GetEnv) local env = GetEnv(nil, {script = script}) setfenv(1, env) local _G, game, script, getfenv, setfenv, workspace, getmetatable, setmetatable, loadstring, coroutine, rawequal, typeof, print, math, warn, error, pcall, xpcall, select, rawset, rawget, ipairs, pairs, n...
-- Unequip logic here function OnUnequipped() LeftButtonDown = false Reloading = false MyCharacter = nil MyHumanoid = nil MyTorso = nil MyPlayer = nil if OnFireConnection then OnFireConnection:disconnect() end if OnReloadConnection then OnReloadConnection:disconnect() end if FlashHolder then FlashHol...
-- Import relevant references Selection = Core.Selection; Support = Core.Support; Security = Core.Security; Support.ImportServices();