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

how do i find out f a player is standing still or stopped moving?

1 answer

✓ Accepted answer

Don't know how effective my method is, but it should work if you put this inside a normal script.

game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(character)
		local humanoid = character:FindFirstChild("Humanoid")
		if humanoid then -- If we can find the humanoid
			humanoid.Running:connect(function(WalkSpeed) -- connects the humanoid running function
				if WalkSpeed == 0 then -- we know they are standing still
					print("Standing")
				elseif WalkSpeed > 0 then -- we know that they are moving
					print("Running")
				end
			end)
		end
	end)
end)

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