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

Script wont work? My script is where only admins can run fast . This is so owner have admin powers.

Asked by 5 years ago
Edited 5 years ago

Can you please fix my script? It should be where only admins can run fast. Thanks. Admins are the people who i want to have power in the game.

game.Players.PlayerAdded:Connect(function(plr)
if plr.Name=="Bowser_Films" then
plr.WalkSpeed=200

0
is this a request? EliteRayGawnX2 124 — 5y
0
EliteRayGawnX2, no a request is when im asking for free code. Im giving you the code and asking people to fix. So its not a request Bowser_Films -50 — 5y

1 answer

Log in to vote
0
Answered by
HaveASip 494 Moderation Voter
5 years ago

You have two errors in your script. First is that WalkSpeed is a not property of player. WalkSpeed is a Humanoid property. Second that you forgot to close your function and if. Here is a correct script. I hope you understand what I mean.

game.Players.PlayerAdded:Connect(function(player)
    if plr.Name == "Bowser_Films" then
        local char = plr.Character or plr.CharacterAdded:Wait()
        local Human = char:WaitForChild("Humanoid")
        Human.WalkSpeed = 200 -- changing humanoid's walkspeed to 200
    end -- Closing "if"
end) -- Closing players added function
Ad

Answer this question