Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a script that changes the players walkspeed once they click a button on StarterGUI?

--StarterGui.AnimationsGui.RunButton.LocalScript or ServerScript
--I made a script but it does not work please help
--I used a server script
function onClicked(run)
	if run then 
		game.LocalPlayer.WalkSpeed = 32
	end
end

1 answer

✓ Accepted answer

Try doing this, I haven't tested it yet, but it should work c:

function onClick(mouse)
script.Parent.Parent.Parent.Parent.Character.Humanoid.WalkSpeed = 50 

end
script.Parent.MouseButton1Click:connect(onClick)


3 comments

0

(You can always change the walkspeed at: script.Parent.Parent.Parent.Parent.Character.Humanoid.WalkSpeed = 50 (Change 50 to another number, 16 is normal roblox speed.)

0

Thanks!

0

Your welcome!

This discussion is preserved as it was. New answers, comments, and votes are closed.