Still have questions? Join our Discord server and get real time help.
Log in to vote

Whats the script for `Push a key to run a script`? [closed]

Asked by 2 years ago

I`ve been trying to figure out how to run a certain script by pressing a key. Also if you could add how to make it so the owner of the game can only run it then thanks.

Closed as Not Constructive by Griffi0n, climethestair, and minikitkat

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
Answered by 2 years ago

Use UserInputService for the key part, found here:

Then use If statements (conditional statements) to detect the players name and or UserId:

Then you'd want to change the WalkSpeed of the Humanoid, properties of the humanoid: