I'm trying to detect if my character has moved using this script:
local hrp = script.Parent.Parent:FindFirstChild("HumanoidRootPart")
hrp.Changed:Connect(function(p)
print(p)
if p == "Position" then
print("Your position has changed!")
end
end)
but for some reason it won't work
Edit: Nevermind i just put the script in the wrong place. If i put the script in starter player, then it works!

2 comments
Connect to the Changed instance in the HumanoidRootPart. It will fire whenever the player moves.
changed doesnt fire on busy events, such as position