I'm trying to make an ice trail that follows a player as they move, but below them. How would I be able to detect if a players lower leg is moving so that I could duplicate the trail as they move?
Try this, keep in mind this applies to the whole player, and not just the leg.
if *HUMANOID*.MoveDirection ~= Vector3.zero then -- whatever end
Check the 'AssemblyLinearVelocity' of one of the left leg's parts. Example:
local leftLeg = character:FindFirstChild("LeftLowerLeg") if leftLeg.AssemblyLinerVelocity ~= Vector3.zero then print("left leg is moving") end
Also might be worth having a threshold for miniscule movements such as an idle animation.