I have a script that doesnt work

Here is the script its very simple.

Its supposed to make the player move faster when they click the text button, but for some reason it doesnt work and in the output there are no errors. Can someone help?

Walkspeed should be spelt WalkSpeed - that is your issue.

1 Like

ohh ok thanks

Summary

i hate this 30 characters thing

You might also want to add some error handling in the event that Character doesn’t exist etc.

Glad I can help though :slightly_smiling_face:

Heads up, use game:GetService("Players") instead of game.Players.

It’s good practice to always use game:GetService("Service name") when getting/using a service.

1 Like