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

How To Know If Player Stopped Moving?

How Can You Find Out If A player has stopped moving? Or how can you check if someone has let go of the W Key?

1 answer

Checking if someone let go of the "W" key (and that only) wouldn't work, because of A, S, Spacebar, and D.

I'd check the player's MoveDirection.

Here's an example:

script.Parent.Humanoid.Changed:connect(function()
	wait(2.5)
	if script.Parent.Humanoid.TargetPoint.X == 0 and script.Parent.Humanoid.TargetPoint.Y == 0 and script.Parent.Humanoid.TargetPoint.Z == 0 then
	print("player is still.")
	end
	end)

Hope I helped!

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