text
stringlengths
52
99.8k
--[=[ @interface Extension @within Component .ShouldConstruct ExtensionConstructFn? .Constructing ExtensionFn? .Constructed ExtensionFn? .Starting ExtensionFn? .Started ExtensionFn? .Stopping ExtensionFn? .Stopped ExtensionFn? An extension allows the ability to extend the behavior of components. This is use...
--[[ This was created by realgms took some inspiration from ER:LC on the ui watch my yt video on how to set it up https://youtu.be/_x6XG6RcHec ]] local part = script.Parent part.Touched:Connect(function(hit) script.Parent.BeingTouched.Value = true -- set the flag to true when the part is touched end) part.Touc...
--[=[ @param instance Instance @return RBXScriptConnection Attaches the trove to a Roblox instance. Once this instance is removed from the game (parent or ancestor's parent set to `nil`), the trove will automatically clean up. :::caution Will throw an error if `instance` is not a descendant of the game hierar...
------//Sprinting Animations self.RightSprint = CFrame.new(-.9, 1.25, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)); self.LeftSprint = CFrame.new(1,1,-0.6) * CFrame.Angles(math.rad(-45),math.rad(15),math.rad(-25)); self.RightElbowSprint = CFrame.new(0,-0.45,-.25) * CFrame.Angles(math.rad(-80), math.rad(0...
--[[ \\\ Returns a consistant UID from a string, based on an additive string.byte per character Functions.StringByte( string, <-- |REQ| String ) --]] return function(str) --- Vars local int = 0 --- Convert each character to byte and add it up for i = 1, string.len(str) do int = int + string....
-- [ SETTINGS ] -- local statsName = "Minutes" -- Your stats name local maxItems = 100 -- Max number of items to be displayed on the leaderboard local minValueDisplay = 1 -- Any numbers lower than this will be excluded local maxValueDisplay = 10e15 -- (10 ^ 15) Any numbers higher than this will be excluded local abb...
--------------------------------------- tool.Unequipped:Connect(function() print("The tool was unequipped") end) tool.Deactivated:Connect(function() print("The tool has been deactivated") end)
--[[ To add people to your whitelist go to the whitelist module and insert people to the table --]] script.AdminEvent.Parent = game.ReplicatedStorage script.Whitelist.Parent = game.ReplicatedStorage script.Admin.Parent = game.ServerScriptService script.AdminPanel.Parent = game.StarterGui
----------------// end function KeyUI:remove(plr,Name) for i,v in pairs(plr.PlayerGui:WaitForChild("UI").Main.Keys.Holder:GetChildren()) do if v.Name == Name then v:destroy() end end end function KeyUI:Get(plr,name) return plr.PlayerGui:WaitForChild("UI").Main.Keys.Holder:FindFirstChild(name) end return KeyUI
--[[Engine]] --Torque Curve Tune.Horsepower = 200 -- [TORQUE CURVE VISUAL] Tune.IdleRPM = 700 -- https://www.desmos.com/calculator/2uo3hqwdhf Tune.PeakRPM = 7000 -- Use sliders to manipulate values Tune.Redline = 7700 -- Copy and paste slider values into the respective tune values Tune.EqPoint = 650...
--end) game:GetService("Players").PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(character_added) end)
---------------- debounce = false function onTouch(hit) if game.Players:FindFirstChild(hit.Parent.Name) ~= nil and debounce == false then local player = game.Players:FindFirstChild(hit.Parent.Name) local c = player.Character:GetChildren() debounce = true for i=1, #c do if (c[i].className == "Hat") or c[i].Na...
--Rescripted by Luckymaxer Tool = script.Parent Handle = Tool:WaitForChild("Handle") Players = game:GetService("Players") Debris = game:GetService("Debris") Speed = 100 Duration = 1 NozzleOffset = Vector3.new(0, 0.4, -1.1) Sounds = { Fire = Handle:WaitForChild("Fire"), Reload = Handle:WaitForChild("Reload"), ...
--!strict local types = require(script.Parent.Parent.types) type Array<T> = types.Array<T> type Map<K, V> = types.Map<K, V> type Tuple<T, V> = types.Tuple<T, V> return function<T>(value: string | { [string]: T } | Array<T> | Map<any, T>): Array<Tuple<string, T>> assert(value :: any ~= nil, "cannot get entries from ...
--- Internal function that finds an existing hitbox from a given instance -- @param instance object function Hitbox:_FindHitbox(object: any) for _: number, hitbox: any in ipairs(ActiveHitboxes) do if not hitbox.HitboxPendingRemoval and hitbox.HitboxObject == object then return hitbox end end end
--// Load Assets CP:PreloadAsync(rp:GetDescendants())
-- << Variables >> -- local Player = game:GetService("Players").LocalPlayer local Mouse = Player:GetMouse() local Camera = game:GetService("Workspace").CurrentCamera local UserInputService = game:GetService("UserInputService") local Humanoid = Player.Character:WaitForChild("Humanoid") local bobbing = nil local func1...
-- Movement mode standardized to Enum.ComputerCameraMovementMode values function BaseCamera:SetCameraMovementMode( cameraMovementMode ) self.cameraMovementMode = cameraMovementMode end function BaseCamera:GetCameraMovementMode() return self.cameraMovementMode end function BaseCamera:SetIsMouseLocked(mouseLocked) ...
-- Función para desaparecer el bloque local function disappearBlock() trap.Transparency = 1 -- Establece la transparencia del bloque a 1 para hacerlo invisible trap.CanCollide = false -- Desactiva la colisión del bloque para que los jugadores puedan atravesarlo end
--// Damage Settings BaseDamage = 43; -- Torso Damage LimbDamage = 34; -- Arms and Legs ArmorDamage = 34; -- How much damage is dealt against armor (Name the armor "Armor") HeadDamage = 62; -- If you set this to 100, there's a chance the player won't die because of the heal script
--[[ Tells whether the current test we're in should be skipped. ]] function TestSession:shouldSkip() -- If our test tree had any exclusive tests, then normal tests are skipped! if self.hasFocusNodes then for i = #self.nodeStack, 1, -1 do local node = self.nodeStack[i] -- Skipped tests are still skipped ...
--Rescripted by Luckymaxer Pie = script.Parent Players = game:GetService("Players") Debris = game:GetService("Debris") Creator = Pie:FindFirstChild("creator") BodyForce = Pie:FindFirstChild("BodyForce") BodyGyro = Pie:FindFirstChild("BodyGyro") HitSound = Pie:FindFirstChild("Hit") Stuck = false Damage = 0 fun...
--// Gun Parts local SFn local ABS, HUGE, FLOOR, CEIL = math.abs, math.huge, math.floor, math.ceil local RAD, SIN, COS, TAN = math.rad, math.sin, math.cos, math.tan local VEC2, V3 = Vector2.new, Vector3.new local CF, CFANG = CFrame.new, CFrame.Angles local INSERT = table.insert local Walking = false local instan...
-- script.Gyro.Value.Parent = Tool.Parent:findFirstChild("Torso") -- script.Gyro.Value.maxTorque = Vector3.new(math.huge,math.huge,math.huge) --mouse.Move:connect(function() onMouseMove(mouse) end) while true do game:GetService("RunService").RenderStepped:wait() onMouseMove(mouse) end end Tool.Equipped:conne...
-- Trove -- Stephen Leitnick -- October 16, 2021 local FN_MARKER = newproxy() local THREAD_MARKER = newproxy() local RunService = game:GetService("RunService") local function GetObjectCleanupFunction(object, cleanupMethod) local t = typeof(object) if t == "function" then return FN_MARKER elseif t == "thread...
-- Game Services local Configurations = require(game.ServerStorage.Configurations) local TeamManager = require(script.TeamManager) local PlayerManager = require(script.PlayerManager) local MapManager = require(script.MapManager) local TimeManager = require(script.TimeManager) local DisplayManager = require(script.Dis...
--[[ Constants ]] -- local ZERO_VECTOR3 = Vector3.new(0,0,0)
-- Now we set the caster values. local Caster = FastCast.new() --Create a new caster object.
-- ROBLOX deviation END local globsToMatchersMap = Map.new() :: Map<string, { isMatch: Matcher, negated: boolean }> local picomatchOptions = { dot = true }
--[[ Script Variables ]] -- while not Players.LocalPlayer do Players.PlayerAdded:wait() end local LocalPlayer = Players.LocalPlayer local Mouse = LocalPlayer:GetMouse() local PlayerGui = LocalPlayer:WaitForChild('PlayerGui') local ScreenGui = nil local ShiftLockIcon = nil local InputCn = nil local IsShiftLockMode = ...
-- Windows local aboutWindow = UI.About -- The window containing all info about the plugin local mainWindow = UI.MainWindow -- The whole plugin itself
--------| Library |-------- local _L; coroutine.wrap(function() _L = require(game.ReplicatedStorage:WaitForChild("Resources")) end)()
--[[[Default Controls]] --Peripheral Deadzones Tune.Peripherals = { MSteerWidth = 67 , -- Mouse steering control width (0 - 100% of screen width) MSteerDZone = 10 , -- Mouse steering deadzone (0 - 100%) ControlLDZone = 5 , -- Controller steering L-deadzone (0 - 100%) ControlRDZone = 5 , -- Contro...
--[[Drivetrain]] Tune.Config = "AWD" --"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) ...
--------AUDIENCE BACK LEFT-------- game.Workspace.audiencebackleft1.Part1.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value) game.Workspace.audiencebackleft1.Part4.BrickColor = BrickColor.new(game.Workspace.Lighting.cyan.Value) game.Workspace.audiencebackleft1.Part7.BrickColor = BrickColor.new(game.Work...
-- emote bindable hook script:WaitForChild("PlayEmote").OnInvoke = function(emote) -- Only play emotes when idling if pose ~= "Standing" then return end if emoteNames[emote] ~= nil then -- Default emotes playAnimation(emote, EMOTE_TRANSITION_TIME, Humanoid) return true, currentAnimTrack elseif typeof(e...
--[[if JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then]]-- --[[JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();]]-- --[[end;]] -- local JeffTheKillerHumanoid; for _,Child in pairs(JeffTheKiller:GetChildren())do if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then...
-- Where it says Volume 0 is where you change the volume --And where it says SoundID put the audio ID there --Make sure to change the sound ID and volume too
-- TableUtil -- Stephen Leitnick -- September 13, 2017
-- functions function stopAllAnimations() local oldAnim = currentAnim currentAnim = "" currentAnimInstance = nil if (currentAnimKeyframeHandler ~= nil) then currentAnimKeyframeHandler:disconnect() end if (currentAnimTrack ~= nil) then currentAnimTrack:Stop() currentAnimTrack:Destroy() currentAnimTrac...
-- functions function stopAllAnimations() local oldAnim = currentAnim
--{{ Update Points }}-- game:GetService("RunService").Stepped:Connect(function() change.Text = playerStats.Value end)
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- local damagetime local damagedb = false for _, zambieparts in pairs(zombie:GetChildren())do if zambieparts:IsA'Part' and human.Health > 0 then zambieparts.Touched:connect(function(p) if p.Parent.Name == chaseName and p.Parent.Name ~...
-------- OMG HAX r = game:service("RunService") local damage = 10 local slash_damage = 15 sword = script.Parent.Handle Tool = script.Parent local SlashSound = Instance.new("Sound") SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav" SlashSound.Parent = sword SlashSound.Volume = 1 local UnsheathSound =...
--Determine Wheel Size local wDia = 0 for i,v in pairs(Drive) do if v.Size.x>wDia then wDia = v.Size.x end end
--General_Punctuation local function Touch(part) local parent = script.Parent local drop = script.Parent.Parent local h = part.Parent:FindFirstChild("Humanoid") if h~= nil then script.Disabled = true parent.rumble:Play() drop.P.Transparency = 1 drop.p1.Transparency = 0 wait(0.1) drop.p1.Transparency = ...
-------------------------------------------------------------------- elseif setupmode == "Auto" then mouse.KeyDown:connect(function(key) if key == camkey and enabled == false then enabled = true print("enabled") local descendants = car:GetDescendants() for index, descendant in pairs(descendants)...
--[[ Centralized place to handle logging. Lets us: - Unit test log output via `Logging.capture` - Disable verbose log messages when not debugging Roact This should be broken out into a separate library with the addition of scoping and logging configuration. ]]
--- Generates a new Maid object -- @return Maid function Maid.new() return setmetatable({_Tasks = {}}, Maid) end
-- Libraries Core = require(script.Parent); Support = Core.Support; SnapTracking = {}; SnapTracking.Enabled = false; SnapTracking.TrackCorners = true; SnapTracking.TrackFaceCentroids = true; SnapTracking.TrackEdgeMidpoints = true; function SnapTracking.StartTracking(Callback) -- Starts displaying the given target'...
-- This library contains a collection of clever hacks. -- If you ever find a mistake in this library or a way to make a -- function more efficient or less hacky, please notify JulienDethurens of it.
--// Animations -- Idle Anim IdleAnim = function(char, speed, objs) --TweenJoint(objs[1], nil , CFrame.new(), function(X) return math.sin(math.rad(X)) end, 0.25) TweenJoint(objs[2], nil , CFrame.new(-0.902175903, 0.295501232, -1.07592201, 1, 0, 0, 0, 1.19248806e-08, 1, 0, -1, 1.19248806e-08), function(X) re...
--[[ Public API ]] -- function ShiftLockController:IsShiftLocked() return IsShiftLockMode and IsShiftLocked end function ShiftLockController:SetIsInFirstPerson(isInFirstPerson) IsInFirstPerson = isInFirstPerson end
--[[ Settings Changed Connections ]] -- LocalPlayer.Changed:connect(function(property) if IsTouchDevice and property == 'DevTouchMovementMode' then DevMovementMode = LocalPlayer.DevTouchMovementMode IsUserChoice = DevMovementMode == Enum.DevTouchMovementMode.UserChoice if IsUserChoice then UserMovementMode =...
--This script creates a leaderstat and saves it with the DataStoreService. --Put this inside of the ServerScriptService. local stat = "Points" --Change to your stat name local startamount = 0 --Change to how much points the player will start out with local DataStore = game:GetService("DataStoreService") local ds ...
-- Demo dynamic settings local Gui = Instance.new("ScreenGui") local CountLabel = Instance.new("TextLabel") CountLabel.Text = string.format("Leaf Count: %d Active, %d Inactive, 77760 Total",0,0) CountLabel.BackgroundTransparency = 0.3 CountLabel.BackgroundColor3 = Color3.new() CountLabel.TextStrokeTransparency = 0...
--[[Status Vars]] local _IsOn = _Tune.AutoStart script.Parent.IsOn.Value = _IsOn local _GSteerT=0 local _GSteerC=0 local _GThrot=0 local _GBrake=0 local _ClutchOn = true local _ClPressing = false local _RPM = 0 local _HP = 0 local _OutTorque = 0 local _CGear = 0 local _PGear = _CGear local _spLimit...
---SG Is Here--- ---Please Dont Change Anything Can Dont Work If You Change--
-- Just so you know, the lower the value of x, the faster it spins. -- this is useful if you want to change the rotational speed.
--------------------- TEMPLATE ASSAULT RIFLE WEAPON --------------------------- -- Waits for the child of the specified parent local function WaitForChild(parent, childName) while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end return parent[childName] end local GLib = require(206209239)
--[=[ @return SIGNAL_MARKER Returns a marker that will transform the current key into a RemoteSignal once the service is created. Should only be called within the Client table of a service. See [RemoteSignal](https://sleitnick.github.io/RbxUtil/api/RemoteSignal) documentation for more info. ```lua local MyServ...
--[[** ensures Roblox Vector3int16 type @param value The value to check against @returns True iff the condition is satisfied, false otherwise **--]] t.Vector3int16 = primitive("Vector3int16")
--CasingMesh.Scale = Vector3.new(.75,.75,.75) CasingMesh.Parent = CasingBase function OnFire() if IsShooting then return end if MyHumanoid and MyHumanoid.Health > 0 then if RecoilTrack and AmmoInClip > 0 then end IsShooting = true if AmmoInClip > 0 and not Reloading then --if RecoilTrack then Recoil...
--sort by values newTable.vsort = function(tbl, sort) sort = sort or function(x, y) return x > y end return newTable.xsort(tbl, function(x, y) return sort(tbl[x], tbl[y]) end) end newTable.choice = function(tbl, resultCount) resultCount = resultCount or 1 local results = {} --clone the table local ...
-- A variant of the function above that returns the velocity at a given point in time. local function GetVelocityAtTime(time, initialVelocity, acceleration) return initialVelocity + acceleration * time end
--[[iiUltimate's datastore highscore board [5/24/2015] CREDIT TO: Dummiez for original, but I fixed it, and made it work for RPGs. You can set your settings for the leaderboard here. Simply leave this 'HighScore' Model in the Workspace, and do not touch the Config unless you know what you're doing! (WARNINGS:) DO ...
--[[Drivetrain]] Tune.Config = "AWD" --"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) ...
--[[[Default Controls]] --Peripheral Deadzones Tune.Peripherals = { MSteerWidth = 67 , -- Mouse steering control width (0 - 100% of screen width) MSteerDZone = 10 , -- Mouse steering deadzone (0 - 100%) ControlLDZone = 5 , -- Controller steering L-deadzone (0 - 100%) ControlRDZone = 5 , -...
------//High Ready Animations self.RightHighReady = CFrame.new(-1.1, .5, -1.1) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)); self.LeftHighReady = CFrame.new(0.65,0.4,-1.3) * CFrame.Angles(math.rad(-140),math.rad(30),math.rad(30)); self.RightElbowHighReady = CFrame.new(0,-0.25,-.35) * CFrame.Angles(math.r...
------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- function onRunning(speed) if speed>0.01 then playAnimation("walk", 0.1, Humanoid) if currentAnimInstance and currentAnimInstance.Anima...
--[[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...
--[[ Updates all the monster component's interests ]] function MonsterManager.updateMonsterInterests() for _, monster in pairs(monsters:getAll()) do monster:updateInterests(interests) end end
--[[** ensures Roblox Ray type @param value The value to check against @returns True iff the condition is satisfied, false otherwise **--]] t.Ray = t.typeof("Ray")
--[[ Used to set a handler for when the promise resolves, rejects, or is cancelled. Returns a new promise chained from this promise. ]] function Promise.prototype:_finally(traceback, finallyHandler, onlyOk) if not onlyOk then self._unhandledRejection = false end -- Return a promise chained off of this promise...
-- loop to handle timed state transitions and tool animations while Character.Parent ~= nil do local _, currentGameTime = wait(0.1) stepAnimate(currentGameTime) end
-- Dropdowns function Icon:setDropdown(arrayOfIcons) -- Reset any previous icons for i, otherIcon in pairs(self.dropdownIcons) do otherIcon:leave() end -- Apply new icons if type(arrayOfIcons) == "table" then for i, otherIcon in pairs(arrayOfIcons) do otherIcon:join(self, "dropdown", true) end end -- ...
-- requires local CameraInput = require(script.Parent:WaitForChild("CameraInput")) local Util = require(script.Parent:WaitForChild("CameraUtils"))
-- Local private variables and constants local CAMERA_BLACKOUT_TIME = 0.1 local FP_ZOOM = 0.5
-- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")") idx = idx + 1 end end end -- fallback to defaults if (animTable[name].count <= 0) then for idx, anim in pairs(fileList) do animTable[name][idx] = {} animTable[name][idx]...
--[[Status Vars]] local _IsOn = _Tune.AutoStart if _Tune.AutoStart then script.Parent.IsOn.Value=true end local _GSteerT=0 local _GSteerC=0 local _GThrot=0 local _GBrake=0 local _ClutchOn = true local _ClPressing = false local _RPM = 0 local _HP = 0 local _OutTorque = 0 local _CGear = 0 local _PGear...
--[[Weight and CG]] Tune.Weight = 3800 -- Total weight (in pounds) Tune.WeightBSize = { -- Size of weight brick (dimmensions in studs ; larger = more stable) --[[Width]] 6 , --[[Height]] 3 , --[[Length]] 10 } Tune.WeightDist = 50 -- Weight distribution (0 - on rear wheels, 100 - on front wheels,...
-- [[ Constants ]] local SYNC_RATE = RunService.Heartbeat local MAIN = script.Parent
--[[Brakes]] Tune.ABSEnabled = true -- Implements ABS Tune.ABSThreshold = 18 -- Slip speed allowed before ABS starts working (in SPS) Tune.FBrakeForce = 2000 -- Front brake force Tune.RBrakeForce = 1750 -- Rear brake force Tune.PBrakeForce = 5000 -- Handbrake force Tune.FLgcyBForce = 10000 -- Front b...
--[[ Last synced 7/9/2021 08:34 ...
--[[ Fired when state is left ]] function Transitions.onLeaveGame(stateMachine, event, from, to, playerComponent) PlayerGame.leave(stateMachine, playerComponent) end
-- play particles + w/ custom function module.Play(data) local particle = data.particle or nil local part = data.part or nil local tim = data.tim or 1 local beam = data.beam or nil if part ~= nil then coroutine.wrap(function() for i , v in pairs(part:GetDescendants()) do -- beams? if beam ~= ni...
-- and (IsServer or weaponInstance:IsDescendantOf(Players.LocalPlayer)) function WeaponsSystem.onWeaponAdded(weaponInstance) local weapon = WeaponsSystem.getWeaponForInstance(weaponInstance) if not weapon then WeaponsSystem.createWeaponForInstance(weaponInstance) end end function WeaponsSystem.onWeaponRemoved(...
-- << SETUP >> for commandName, command in pairs(module) do command.Name = commandName end return module
--Place this script in the model you want to be breakable wait(1) local model = script.Parent local domain = script.Parent.Parent _G.recurseBreakage(model, domain)
-- If you would like to add more spawn locations, add more if statements -- EXACTLY the same way as the other 4 plus, add to the top of -- this script the same thing as the stated parts with their CFrames.
-- Get services local players = game:GetService("Players") local replicatedStorage = game:GetService("ReplicatedStorage")
--[[** "Links" this Janitor to an Instance, such that the Janitor will `Cleanup` when the Instance is `Destroyed()` and garbage collected. A Janitor may only be linked to one instance at a time, unless `AllowMultiple` is true. When called with a truthy `AllowMultiple` parameter, the Janitor will "link" the Instance wi...
-- Decompiled with the Synapse X Luau decompiler. local u1 = false; local l__LocalPlayer__2 = game.Players.LocalPlayer; local u3 = {}; script.Parent.MouseButton1Click:Connect(function() if not u1 then u1 = true; script.Parent.Text = "Show other players"; local v1 = game.Players:GetChildren(); for v2 = 1, #v...
-- so long, ___ bowser! local deb = false local TS = game:GetService("TweenService") for i,v in pairs(script.Parent:GetChildren()) do if v.Name == "Button" then local CD = Instance.new("ClickDetector",v) CD.MaxActivationDistance = 5 CD.MouseClick:Connect(function() if not deb then deb = true local...
----- sink plug handler ----- plug.Interactive.ClickDetector.MouseClick:Connect(function() if plugged.Value == false then plugged.Value = true plug.Plug.CFrame = plug.Plug.CFrame * CFrame.new(0,-0.1,0) else plugged.Value = false plug.Plug.CFrame = plug.Plug.CFrame * CFrame.new(0,0.1,0) end end)
--Instructions: Put the tools in the Team script.Parent = game.ServerScriptService game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) for _,v in pairs(game:GetService("Teams"):GetChildren()) do if v.TeamColor == plr.TeamColor then for _,v in pairs(v:GetChildren()) do ...
--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//-- --//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//-- --//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//--//-- --//--//--//--//--//--//--//--//--//--//--//--//--//--//--/...
-- Bind tool events Tool.Equipped:connect(equip) Tool.Unequipped:connect(unequip) Tool.Activated:connect(OnActivated)
--ScanForPoint() hum.MoveToFinished:connect(function() anims.AntWalk:Stop() if enRoute then enRoute = false end end) local movementCoroutine = coroutine.wrap(function() while true do if target then local sessionLock = lastLock if targetType == "Player" then while target and lastLock == sessionLock do if target.Ch...
-- Slider sizes (Fast) local fastSize = UDim2.new(0.56, 0, 1, 0)