Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make the character run faster if they bought a gamepass?

Asked by
iHavoc101 127
5 years ago
Edited 5 years ago

local mouse = game.Players.LocalPlayer:GetMouse() local running = false

function getTool() for _, kid in ipairs(script.Parent:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end

mouse.KeyDown:connect(function (key) -- Run function key = string.lower(key) if string.byte(key) == 48 then running = true local keyConnection = mouse.KeyUp:connect(function (key) if string.byte(key) == 48 then running = false end end) for i = 1,5 do game.Workspace.CurrentCamera.FieldOfView = (70+(i*2)) wait() end game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30 repeat wait () until running == false keyConnection:disconnect() game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 for i = 1,5 do game.Workspace.CurrentCamera.FieldOfView = (80-(i*2)) wait() end end end)

I want to make it so if they have a gamepass, their speed is 1.5 times faster

0
Can you use code blocks HomieFirePGN 137 — 5y
0
Please format your code. Thetacah 712 — 5y
0
ok iHavoc101 127 — 5y

Answer this question