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.
1 | game.Players.PlayerAdded:Connect( function (plr) |
2 | if plr.Name = = "Bowser_Films" then |
3 | plr.WalkSpeed = 200 |
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.
1 | game.Players.PlayerAdded:Connect( function (player) |
2 | if plr.Name = = "Bowser_Films" then |
3 | local char = plr.Character or plr.CharacterAdded:Wait() |
4 | local Human = char:WaitForChild( "Humanoid" ) |
5 | Human.WalkSpeed = 200 -- changing humanoid's walkspeed to 200 |
6 | end -- Closing "if" |
7 | end ) -- Closing players added function |