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 check If a player is moving?

I actually have no idea

2 answers

✓ Accepted answer
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.Character:Wait()
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")

local Velocity = HumanoidRootPart.Velocity.Magnitude

while wait(0.01) do
if Player.Character.HumanoidRootPart.Velocity.Magnitude >= 16 then
		-- Do stuff here
		end
end

Create a LocalScript in StarterCharacterScripts and insert this there.

Hope this helps!

2 comments

0

thank you

0

No problem!

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