-
What do you want to achieve? Keep it simple and clear!
I want to do something if a player does not move for 10 seconds! -
What is the issue? Include screenshots / videos if possible!
I don’t know how to do this, I know how to detect if a player does not move but not if they don’t move for a set period of time -
What solutions have you tried so far?
I looked up the problem and only things about detecting no movement which I already know.
Just use UserInputService.InputBegan and check for all of the movement keys, like W, S, A, D, and Space. If it detects it, change the last moved time to the current tick and repeatedly check if the time is 10 seconds behind the current time and do what you want to do.
1 Like
Thank you! It worked
characters
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.