game.Players.PlayerAdded:Connect(function(player)
while wait() do
local char = player.CharacterAdded:wait()
local hum = char:WaitForChild("Humanoid")
local pastpos = char:WaitForChild("HumanoidRootPart").Position
wait(0.1)
local newpos = char:WaitForChild("HumanoidRootPart").Position
local mag = (newpos-pastpos).magnitude
print(mag)
end
end)
I get no errors and mag is only printed once.
