Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Disable Character Control

Asked by
Trewier 146
10 years ago

I would like to disable player's from controlling their character for a short period of time, is there a way I could do this. (No, I don't mean changing walkspeed or something like that.)

3 answers

Log in to vote
4
Answered by 10 years ago

You might want to check out the ControllerService and the Controller object.

Ad
Log in to vote
1
Answered by
modFrost 130
10 years ago

You can clear ControllService to disable all input, to replace the input you instance a new HumanoindController into ControllerService.

0
Thanks for answering, but Trioxide already answered it for me. Upvoted because it is still a correct answer. Trewier 146 — 10y
0
Okay modFrost 130 — 10y
Log in to vote
0
Answered by 10 years ago

The easiest way to do this is to just set the WalkSpeed to 0 and then anchor the entire character. You could get fancy with cloning the character and such, but that's really just not worth the work for nearly the same outcome.

0
Well, I kinda said, no walkspeed 0 because that's what I currently have, but it doesnt work... Trewier 146 — 10y

Answer this question