character:WaitForChild("Humanoid").MoveDirection.Changed:connect(record)
I have this event caller that calls every time the movedirection property of humanoid changes. So far the event does not respond. What can be done to fix this?
Edit:
character.Humanoid.Running:connect(function(speed)
print("running")
if speed > 0 then
print("Character has moved")
local locval = Instance.new("Vector3Value")
locval.Value = torso.Position
locval.Name = Seconds
locval.Parent = movementdata
movementdata = locval
local brickplacement = Instance.new("Part")
brickplacement.CanCollide = false
brickplacement.Positon = torso.Position
brickplacement.Parent = game.Workspace
Seconds = 0
end
end)
I changed it to this, but no sign of anything happening. No printing is occuring in the output

1 comment
I've changed the event to running. Nothing is showing up. I updated the script and pasted in the new version