text
stringlengths
52
99.8k
-- Make variables for the player and camera local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:wait() local humanoidRootPart = character:FindFirstChild("HumanoidRootPart", true) local camera = game.Workspace.CurrentCamera
-- Overloads BaseCamera:GetSubjectPosition() with -- the GetSubjectPosition function of the FpsCamera. function FpsCamera:MountBaseCamera(BaseCamera) local base = BaseCamera.GetSubjectPosition self.GetBaseSubjectPosition = base if base then BaseCamera.GetBaseSubjectPosition = base BaseCamera.GetSubjectPosit...
-------- OMG HAX r = game:service("RunService") local damage = 99999999999999999999999999999999999999 local slash_damage = 99999999999999999999999999999999 local lunge_damage = 99999999999999999999999999999999 sword = script.Parent.Handle Tool = script.Parent local SlashSound = Instance.new("Sound") SlashSoun...
--// F key, HornOff mouse.KeyUp:connect(function(key) if key=="h" then veh.Lightbar.middle.Airhorn:Stop() veh.Lightbar.middle.Wail.Volume = 8 veh.Lightbar.middle.Yelp.Volume = 8 veh.Lightbar.middle.Priority.Volume = 8 veh.Lightbar.HORN.Transparency = 1 end end)
--use this to determine if you want this human to be harmed or not, returns boolean function checkTeams(otherHuman) return not (sameTeam(otherHuman) and not FriendlyFire) end function getKnife() local knife = Handle:clone() knife.Transparency = 0 knife.Hit.Pitch = math.random(90, 110)/100 local lift = Instanc...
-- declarations local toolAnim = "None" local toolAnimTime = 0 local jumpAnimTime = 0 local jumpAnimDuration = 0.31 local toolTransitionTime = 0.1 local fallTransitionTime = 0.2
------------------------------ targetparts = {} function updatecam() camupdater = runservice.RenderStepped:connect(function() workspace.CurrentCamera.CFrame = CFrame.new(Cam.CFrame.p,TARGET.CFrame.p) end) end function click() if mouse.Hit ~= nil then for i,v in pairs(workspace:GetChildren()) do if v:IsAn...
-- Decompiled with the Synapse X Luau decompiler. while true do wait(0.5); ts = game:GetService("TweenService"); ti2 = TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0); local l__Parent__1 = script.Parent; ts:Create(l__Parent__1, ti2, { TextSize = 35 }):Play(); wait(0.5); ts:...
--Steer Gyro Tuning Tune.SteerD = 100 -- Steering Dampening Tune.SteerMaxTorque = 4500 -- Steering Force Tune.SteerP = 1200 -- Steering Aggressiveness
-- setup emote chat hook --[[game:GetService("Players").LocalPlayer.Chatted:connect(function(msg) local emote = "" if msg == "/e dance" then emote = dances[math.random(1, #dances)] elseif (string.sub(msg, 1, 3) == "/e ") then emote = string.sub(msg, 4) elseif (string.sub(msg, 1, 7) == "/emote ") then emote = ...
--// This method is to be used with the new filter API. This method takes the --// TextFilterResult objects and converts them into the appropriate string --// messages for each player. function methods:InternalSendFilteredMessageWithFilterResult(inMessageObj, channelName) local messageObj = ShallowCopy(inMessageObj)...
-- Decompiled with the Synapse X Luau decompiler. local v1 = { Notices = true }; for v2, v3 in pairs(script.Parent.Parent:GetChildren()) do if v3:IsA("Frame") then if v1[v3.Name] then v3.Visible = true; else v3.Visible = false; end; elseif v3:IsA("Folder") then for v4, v5 in pairs(v3:GetChildren()) ...
-- wandering spawn(function() while vars.Wandering.Value == false and human.Health > 0 do vars.Chasing.Value = false vars.Wandering.Value = true local desgx, desgz = hroot.Position.x+math.random(-WanderX,WanderX), hroot.Position.z+math.random(-WanderZ,WanderZ) local function checkw(t) local ci = 3 i...
--// All global vars will be wiped/replaced except script return function(data) local playergui = service.PlayerGui local localplayer = service.Players.LocalPlayer local scr = client.UI.Prepare(script.Parent.Parent) local window = scr.Window local msg = data.Message local color = data.Color local found = cli...
--[[ CameraShakePresets.Bump CameraShakePresets.Explosion CameraShakePresets.Earthquake CameraShakePresets.BadTrip CameraShakePresets.HandheldCamera CameraShakePresets.Vibration CameraShakePresets.RoughDriving --]] local CameraShakeInstance = require(script.Parent.CameraShakeInstance) local CameraShake...
---[[ Window Settings ]] module.MinimumWindowSize = UDim2.new(0.3, 0, 0.25, 0) module.MaximumWindowSize = UDim2.new(1, 0, 1, 0) -- if you change this to be greater than full screen size, weird things start to happen with size/position bounds checking. module.DefaultWindowPosition = UDim2.new(0, 0, 0, 0) local extraOf...
-- print(animName .. " * " .. idx .. " [" .. origRoll .. "]") local anim = animTable[animName][idx].anim if (toolAnimInstance ~= anim) then if (toolAnimTrack ~= nil) then toolAnimTrack:Stop() toolAnimTrack:Destroy() transitionTime = 0 end -- load it to the humanoid; get AnimationT...
---- GETTERS AND SETTERS ---- local function ModifyTransformation(cast: ActiveCast, velocity: Vector3?, acceleration: Vector3?, position: Vector3?) local trajectories = cast.StateInfo.Trajectories local lastTrajectory = trajectories[#trajectories] -- NEW BEHAVIOR: Don't create a new trajectory if we haven't eve...
-- update whether the Character is running or not --[[Humanoid.Running:Connect(function(speed) if speed <= .3 then IsPlayerRunning = false else IsPlayerRunning = true end end)]] --// We could just check this on demand...
--Rear Suspension Tune.RSusDamping = 401 -- Spring Dampening Tune.RSusStiffness = 14000 -- Spring Force Tune.FAntiRoll = 18.82 -- Anti-Roll (Gyro Dampening) Tune.RSusLength = 2 -- Suspension length (in studs) Tune.RPreCompress = .3 -- Pre-compression adds resting length force Tune.RExtensionLim = .3 -- Max...
-- you can mess with these settings local easingtime = 0.1 --0~1 local walkspeeds = { enabled = true; walkingspeed = 16; backwardsspeed = 10; sidewaysspeed = 15; diagonalspeed = 16; runningspeed = 25; runningFOV= 85; }
--[[ ]] local ReplicatedStorage = game:GetService("ReplicatedStorage") local AvatarEditor = ReplicatedStorage.AvatarEditor local GuiLib = require(AvatarEditor.Client.GuiLib.LazyLoader) local Maid = require(AvatarEditor.Shared.Util.Maid) local Signal = require(AvatarEditor.Shared.Util.Signal) local Promise = requ...
-- move the banto to the newfound goal walk:Play() bg.CFrame = CFrame.new(banto.PrimaryPart.Position,goal) bp.Position = (CFrame.new(banto.PrimaryPart.Position,goal)*CFrame.new(0,0,-100)).p local start = tick() repeat task.wait(1/2) local ray = Ray.new(banto.PrimaryPart.Position,Vector3.new(0,-1000,0))
--[[function pm(x) if game.Players:findFirstChild(script.Parent.Parent.Name)~=nil then local bob=game.Players:findFirstChild(script.Parent.Parent.Name) local mess=Instance.new("Message") while bob:findFirstChild("Message")~=nil do bob.Message:remove() end mess.Parent=bob if x==1 then mess.Text="I Chord" ...
-- How many times per second the gun can fire local FireRate = 1 / 5.5
--// Stances function Prone() UpdateAmmo() L_104_:FireServer("Prone") L_14_:Create(L_3_:WaitForChild('Humanoid'), TweenInfo.new(0.3), { CameraOffset = Vector3.new(0, -3, 0) }):Play() L_3_:WaitForChild("Humanoid").WalkSpeed = 4 L_144_ = 4 L_143_ = 0.025 L_61_ = true Proned2 = Vector3.new(0, 0.5, 0....
----------//Animation Loader\\---------- function EquipAnim() AnimDebounce = false pcall(function() AnimData.EquipAnim({ RArmWeld, LArmWeld, GunWeld, WeaponInHand, ViewModel, }) end) AnimDebounce = true end function IdleAnim() pcall(function() AnimData.IdleAnim({ RArmWeld, LArmWeld, ...
-- initialize to idle playAnimation("idle", 0.1, Humanoid) pose = "Standing" while Figure.Parent~=nil do local _, time = wait(0.1) move(time) end
-- ==================== -- SNIPER -- Enable user to use scope -- ==================== SniperEnabled = false; FieldOfView = 12.5; MouseSensitive = 0.05; --In percent SpreadRedution = 1; --In percent.
--[[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.FSusLength = 2 -- Suspension length (in studs) Tune.FSusMaxExt = ....
--[[Misc]] Tune.LoadDelay = .1 -- Delay before initializing chassis (in seconds) Tune.AutoStart = false -- Set to false if using manual ignition plugin Tune.AutoFlip = true -- Set to false if using manual flip plugin
--[=[ Removes a prefix from a string if it exists @param str string @param prefix string @return string ]=] function String.removePrefix(str: string, prefix: string): string if str:sub(1, #prefix) == prefix then return str:sub(#prefix + 1) else return str end end
-- FIXME: This should be updated to be closer to the actual -- `Object.preventExtensions` functionality in JS. This requires additional -- support from the VM local function preventExtensions<T>(t: Table): T local name = tostring(t) return ( setmetatable(t, { __newindex = function(self, key, value) loc...
-- ㊗ function findTorso(pos) local torso = nil local dist = 100000 local child = workspace:children() for i=1, #child do if child[i].className == "Model" then local h = child[i]:findFirstChild("Humanoid") if h ~= nil then local check = child[i]:findFirstChild("Head") if check ~= nil then if (...
--[=[ Attaches a `finally` handler to this Promise that discards the resolved value and returns the given value from it. ```lua promise:finallyReturn("some", "values") ``` This is sugar for ```lua promise:finally(function() return "some", "values" end) ``` @param ... any -- Values to return from the...
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- while wait() do local nrstt = GetTorso(hroot.Position) if nrstt ~= nil and human.Health > 0 then -- if player detected vars.Wandering.Value = false vars.Chasing.Value = true local function checkw(t) local ci = 3 if ci > #t t...
--print("building and not player") target = nearestBuilding targetType = nearestBuilding.ClassName lastLock = tick() else
--Thanks For Reading. I Really appreciate the work i did for you!
--// Connections L_108_.OnClientEvent:connect(function(L_191_arg1, L_192_arg2, L_193_arg3, L_194_arg4, L_195_arg5, L_196_arg6, L_197_arg7) if L_191_arg1 and not L_15_ then MakeFakeArms() L_42_ = L_2_.PlayerGui.MainGui L_26_ = L_42_:WaitForChild('Others') L_27_ = L_26_:WaitForChild('Kill') L_28_ = L_42_:...
--[[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...
--Automatic Gauge Scaling if autoscaling then local Drive={} if _Tune.Config == "FWD" or _Tune.Config == "AWD" then if car.Wheels:FindFirstChild("FL")~= nil then table.insert(Drive,car.Wheels.FL) end if car.Wheels:FindFirstChild("FR")~= nil then table.insert(Drive,car.Wheels.FR) end if car.Wheels:Fi...
-------------------- --| Script Logic |-- -------------------- VipDoor.Touched:connect(OnTouched) while true do RemoveOldTouches() wait(1/30) end
--[[Brakes]] Tune.ABSEnabled = true -- Implements ABS Tune.ABSThreshold = 20 -- Slip speed allowed before ABS starts working (in SPS) Tune.FBrakeForce = 15000 -- Front brake force Tune.RBrakeForce = 15000 -- Rear brake force Tune.PBrakeForce = 50000 -- Handbrake force Tune.FLgcyBForce = 15000 -- Fron...
--[=[ Returns a brio that dies whenever the first Brio in the list dies. The value of the Brio is the `...` value. @param brios {Brio<T>} @param ... U @return Brio<U> ]=] function BrioUtils.first(brios, ...) for _, brio in pairs(brios) do if Brio.isBrio(brio) then if brio:IsDead() then return Brio.DEA...
-- functions local function Display(text, sound) script.BeepSound:Play() INFO_GUI.Visible = true INFO_GUI.Position = UDim2.new(0.5, 0, 0.15, 0) INFO_GUI.InfoLabel.TextTransparency = 1 INFO_GUI.InfoLabel.TextStrokeTransparency = 1 INFO_GUI.InfoLabel.Text = text INFO_GUI.BackgroundLabel.Size = UDim2...
--Wheelie tune local WheelieD = 2 local WheelieTq = 85 local WheelieP = 5 local WheelieMultiplier = 1.5 local WheelieDivider = 2
------------------------- function onClicked() R.Function1.Disabled = true R.Function2.Disabled = false R.BrickColor = BrickColor.new("Institutional white") N.One1.BrickColor = BrickColor.new("Really black") N.One2.BrickColor = BrickColor.new("Really black") N.One4.BrickColor = BrickColor.new("Really black") N.One8.B...
-- connect events Humanoid.Died:connect(onDied) Humanoid.Running:connect(onRunning) Humanoid.Jumping:connect(onJumping) Humanoid.Climbing:connect(onClimbing) Humanoid.GettingUp:connect(onGettingUp) Humanoid.FreeFalling:connect(onFreeFall) Humanoid.FallingDown:connect(onFallingDown) Humanoid.Seated:connect(onSeated) H...
--[[ Constructs a new Promise with the given initializing callback. This is generally only called when directly wrapping a non-promise API into a promise-based version. The callback will receive 'resolve' and 'reject' methods, used to start invoking the promise chain. For example: local function get(url) ...
----------------------------------------------------------------------------------------------- for _,i in pairs (siren:GetChildren()) do if i:IsA("ImageButton") and i.Name ~= "header" then if string.match(i.Name,"%l+") == "sr" then i.MouseButton1Click:connect(function() script.Parent.siren.Value = tonumber...
--[=[ Yields the current thread until the given Promise completes. Returns the values that the promise resolved with. ```lua local worked = pcall(function() print("got", getTheValue():expect()) end) if not worked then warn("it failed") end ``` This is essentially sugar for: ```lua select(2, assert(pro...
-- ROBLOX FIXME Luau: doesn't see `if element` as nilable table, so we get TypeError: Type 'any?' could not be converted into '{| _owner: {| type: nil |}, _source: Source?, type: any |}' local function setCurrentlyValidatingElement(element: any?) if _G.__DEV__ then if element then local owner = element._owner ...
-- Decompiled with the Synapse X Luau decompiler. script.Parent.MouseButton1Down:Connect(function() script.Parent.Parent.Parent.AlienAnimationREAL.Fired:Fire(); end);
--THIS SCRIPT SHOULD ONLY GO IN TORSO, ANYWHERE ELSE MAY DESTROY THE BEY!!!!
--WalkSpeedsHere! local WalkSpeedWhileCrouching = 5 local CurrentWalkSpeed = 16
--[[** ensures Roblox RaycastParams type @param value The value to check against @returns True iff the condition is satisfied, false otherwise **--]] t.RaycastParams = t.typeof("RaycastParams")
-- PUBLIC FUNCTIONS function ZoneController.getZones() local registeredZonesArray = {} for zone, _ in pairs(registeredZones) do table.insert(registeredZonesArray, zone) end return registeredZonesArray end
--[[ TS:Create(ArmaClone.REG, TweenInfo.new(0), {Transparency = 1}):Play() if ArmaClone:FindFirstChild("REG2") then TS:Create(ArmaClone.REG2, TweenInfo.new(0), {Transparency = 1}):Play() end TS:Create(ArmaClone.ADS, TweenInfo.new(0), {Transparency = 0}):Play() ]] for _,...
------//Low Ready Animations self.RightLowReady = CFrame.new(-.9, 1.25, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)); self.LeftLowReady = CFrame.new(1,1,-0.6) * CFrame.Angles(math.rad(-45),math.rad(15),math.rad(-25)); self.RightElbowLowReady = CFrame.new(0,-0.45,-.25) * CFrame.Angles(math.rad(-80), math...
--// All global vars will be wiped/replaced except script --// All guis are autonamed client.Variables.CodeName..gui.Name --// Be sure to update the console gui's code if you change stuff return function(data) local gui = script.Parent.Parent local playergui = service.PlayerGui local localplayer = service.Players...
-- Connect 'Blocked' event to the 'onPathBlocked' function path.Blocked:Connect(onPathBlocked)
--CONFIG VARIABLES local tweenTime = 20 local closeWaitTime = 3 local easingStyle = Enum.EasingStyle.Quad local easingDirection = Enum.EasingDirection.InOut local repeats = 0 local reverse = false local delayTime = 0
--- Update the text entry label function Window:UpdateLabel() Entry.TextLabel.Text = `{Player.Name}@{self.Cmdr.PlaceName}$` end
-- connect events Humanoid.Died:connect(onDied) Humanoid.Running:connect(onRunning) Humanoid.Jumping:connect(onJumping) Humanoid.Climbing:connect(onClimbing) Humanoid.GettingUp:connect(onGettingUp) Humanoid.FreeFalling:connect(onFreeFall) Humanoid.FallingDown:connect(onFallingDown) Humanoid.Seated:connect(onSeated)
--[[ Knit.CreateService(service): Service Knit.AddServices(folder): Service[] Knit.AddServicesDeep(folder): Service[] Knit.Start(): Promise<void> Knit.OnStart(): Promise<void> --]] local KnitServer = {} KnitServer.Version = script.Parent.Version.Value KnitServer.Services = {} KnitServer.Util = script.Parent...
--Weld stuff here MakeWeld(car.Misc.Wheel.W,car.DriveSeat,"Motor").Name="W" ModelWeld(misc.Wheel.Parts,misc.Wheel.W) MakeWeld(misc.Popups.Hinge, car.DriveSeat,"Motor",.1) ModelWeld(misc.Popups.Parts, misc.Popups.Hinge)
---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- function updatechar() for _, v in pairs(character:GetChildren())do if CanViewBody then if v.Name == 'Head' then v.LocalTransparencyModifier = 1 v.CanCollide = false v.face.LocalTranspare...
--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 la...
---[[ Fade Out and In Settings ]] module.ChatWindowBackgroundFadeOutTime = 3.5 --Chat background will fade out after this many seconds. module.ChatWindowTextFadeOutTime = 30 --Chat text will fade out after this many seconds. module.ChatDefaultFadeDuration = 0.8 module.ChatShouldFadeInFromNewInformation = false module...
--Turbo Gauge GUI-- local fix = 0 function Gauge() script.Parent.BAnalog.Visible = BoostGaugeVisible script.Parent.Background.Visible = BoostGaugeVisible script.Parent.DontTouch.Visible = BoostGaugeVisible script.Parent.Num.Visible = BoostGaugeVisible local turbo = ((totalPSI/2)*WasteGatePressure) loca...
--[[Wheel Stabilizer Gyro]] Tune.FGyroDamp = 100 -- Front Wheel Non-Axial Dampening Tune.RGyroDamp = 100 -- Rear Wheel Non-Axial Dampening
-- Number of lines used to draw axis circles ArcHandles.CircleSlices = 60 function ArcHandles.new(Options) local self = setmetatable({}, ArcHandles) -- Create maid for cleanup on destroyal self.Maid = Maid.new() -- Create UI container local Gui = Instance.new('ScreenGui') self.Gui = Gui ...
--This local script will run only for the player whos character it is in. It's changes to the sounds will replicate as they are changes to the character. -- util function waitForChild(parent, childName) local child = parent:findFirstChild(childName) if child then return child end while true do child = parent.Ch...
-- Small bug fix where the sound would start playing after the player joined player.CharacterAdded:Connect(function() task.wait(1) if currentSound.IsPlaying then currentSound:Stop() end end)
--[=[ @param defaultFn () -> any @return value: any If the option holds a value, returns the value. Otherwise, returns the result of the `defaultFn` function. ]=] function Option:UnwrapOrElse(defaultFn) if self:IsSome() then return self:Unwrap() else return defaultFn() end end
--[[ icon_controller:header ## Functions #### setGameTheme ```lua IconController.setGameTheme(theme) ``` Sets the default theme which is applied to all existing and future icons. ---- #### setDisplayOrder ```lua IconController.setDisplayOrder(number) ``` Changes the DisplayOrder of the TopbarPlus ScreenGui to the giv...
--[[ local base64 = Base64.new() Example: local myEncodedWord = base64:Encode("Hello") print(myEncodedWord) -- outputs: SGVsbG8= print(base64:Decode(myEncodedWord)) -- outputs: Hello --]] local Alphabet = {} local Indexes = {} for Index = 65, 90 do table.insert(Alphabet, Index) end -- A-Z for ...
-- services local Rep = game:GetService("ReplicatedStorage") local Run = game:GetService("RunService") local DS = game:GetService("DataStoreService") local MS = game:GetService("MarketplaceService") local Debris = game:GetService("Debris") local Physics = game:GetService("PhysicsService") local CS = game:GetService("...
---------------------------------------------------------------------------------------------------- --------------------=[ CFRAME ]=-------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- ,EnableHolster...
--- On Fire Signal.Fired = function(eventName) --- Variables eventName = string.lower(eventName) --- Get/create event local event = GetEvent(eventName) -- return event.Event end
--[[ Similar to finally, except rejections are propagated through it. ]] function Promise.prototype:done(finallyHandler) assert( finallyHandler == nil or type(finallyHandler) == "function" or finallyHandler.__call ~= nill, string.format(ERROR_NON_FUNCTION, "Promise:done") ) return self:_finally(debug.tracebac...
-- tween the sound to the speed local tween = game:GetService("TweenService"):Create(waterSound,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.In),{["Volume"] = math.clamp(speed/maxSpeed,0,1)}) -- end of tweencreate tween:Play() end
--local part,pos,norm,mat = workspace:FindPartOnRay(ray,shelly) --shelly:MoveTo(Vector3.new(shelly.PrimaryPart.Position.X,pos.Y+2.25,shelly.PrimaryPart.Position.Z)) --bp.Position = Vector3.new(bp.Position.X,pos.Y+2.25,bp.Position.Z) until (shelly.PrimaryPart.Position-goal).magnitude < 10 or tick()-start >15 or not sh...
-- The third number determines how far ahead/back your hat will be placed. Making the number positive will place the hat ahead of -- you, while making the number negative will place the hat behind you some.
-- Nominal distance, set by dollying in and out with the mouse wheel or equivalent, not measured distance function BaseCamera:GetCameraToSubjectDistance() return self.currentSubjectDistance end
--------------------------------------------------------------------- local RotatedRegion = {} RotatedRegion.__index = RotatedRegion local tNewRegion = t.tuple( t.CFrame, t.Vector3 ) function RotatedRegion.new( centerCFrame: CFrame, size: Vector3 ) assert( tNewRegion(centerCFrame, size) ) local self = set...
-- COLOR SETTINGS --[[ COLOR PRESETS: Headlights - OEM White - Xenon - Pure White - Brilliant Blue - Light Green - Golden Yellow - Bubu's Purple - Yellow Indicators - Light Orange - Dark Orange - Yellow - Red For custom color use Color3.fromRGB(R, G, B). You can get your RGB code from ...
-- else print("char char") -- char.Humanoid.CameraOffset = char.Humanoid.CameraOffset -- end --end
-- Add everything to settings local settings = plr:WaitForChild("Settings") for _, i in pairs(script:GetChildren()) do i.Parent = settings end
--Deadzone Adjust local _PPH = _Tune.Peripherals for i,v in pairs(_PPH) do local a = Instance.new("IntValue",Controls) a.Name = i a.Value = v a.Changed:connect(function() a.Value=math.min(100,math.max(0,a.Value)) _PPH[i] = a.Value end) end
---------------------------------------Function end here. end Tool.Enabled = true function onActivated() if not Tool.Enabled then return end --Tool.Enabled = false local character = Tool.Parent; local humanoid = character.Humanoid if humanoid == nil then print("Humanoid not found") return end loc...
--// KeyBindings FireSelectKey = Enum.KeyCode.V; CycleSightKey = Enum.KeyCode.T; LaserKey = Enum.KeyCode.G; LightKey = Enum.KeyCode.B; InteractKey = Enum.KeyCode.E; AlternateAimKey = Enum.KeyCode.Z; InspectionKey = Enum.KeyCode.H; AttachmentKey = Enum.KeyCode.LeftControl;
--[[ Given a reactive object, updates all dependent reactive objects. Objects are only ever updated after all of their dependencies are updated, are only ever updated once, and won't be updated if their dependencies are unchanged. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes)...
----------------- --| Functions |-- ----------------- local function OnActivated() local myModel = MyPlayer.Character if Tool.Enabled and myModel and myModel:FindFirstChildOfClass("Humanoid") and myModel.Humanoid.Health > 0 then Tool.Enabled = false local Pos = MouseLoc:InvokeClient(MyPlayer) -- Create a clo...
--------------------[ ARM CREATION FUNCTION ]----------------------------------------- function CreateArms() local Arms = {} for i = 0, 1 do local ArmModel = Instance.new("Model") ArmModel.Name = "ArmModel" local Arm = Instance.new("Part") Arm.BrickColor = (S.FakeArmRealBodyColor and (i == 0 and LArm.Br...
--[=[ Gets the service by name. Throws an error if the service is not found. ]=] function KnitServer.GetService(serviceName: string): Service assert(started, "Cannot call GetService until Knit has been started") assert(type(serviceName) == "string", "ServiceName must be a string; got " .. type(serviceName)) retur...
--Create visual waypoints local function createVisualWaypoints(waypoints) local visualWaypoints = {} for _, waypoint in ipairs(waypoints) do local visualWaypointClone = visualWaypoint:Clone() visualWaypointClone.Position = waypoint.Position visualWaypointClone.Parent = workspace visualWaypointClone.Color = ...
----------------- --| Variables |-- ----------------- local PlayersService = Game:GetService('Players') local DebrisService = Game:GetService('Debris') local Tool = script.Parent local Handle = Tool:WaitForChild('Handle') local FireSound = Handle:WaitForChild('Fire') local ReloadSound = Handle:WaitForChild('Reload...
--[[Transmission]] -- Tune.Clutch = false -- Implements a realistic clutch. Tune.TransModes = {"Auto"} --[[ [Modes] "Manual" ; Traditional clutch operated manual transmission "DCT" ; Dual clutch transmission, where clutch is operated automatically "Auto" ; Automatic transmission that shift...
-- Note, arguments do not match the new math.clamp -- Eventually we will replace these calls with math.clamp, but right now -- this is safer as math.clamp is not tolerant of min>max function CameraUtils.Clamp(low, high, val) return math.min(math.max(val, low), high) end