Answered by
4 years ago Edited 4 years ago
Rather than writing it as:
1 | game.StarterPlayer.CharacterWalkSpeed = 5 |
instead do (in the server script):
1 | player.Character.humanoid.Walkspeed = 5 |
Use a remove event that fires when you would normally have the speed change that goes into a local script. If you need to learn how they work this website will help.
https://www.google.com/search?client=firefox-b-1-d&q=Roblox+Studio+Remote+events
Make sure you change this for the crawl, crouch, and when you go back to standing.
Also, Make sure that it is in a Server Script. If this answered your question be sure to accept it. If something is the wrong comment and I'll try and figure it out.