hello! I am currently making a tool where if the player is jumping or free falling, the tool will be unequipped. however for some reason, the code does not work. even if I remove the if statements.
can someone help me?
local state = script.Parent.Parent.Humanoid:GetState()
if state == Enum.HumanoidStateType.Freefall then
script.Parent.Parent.Humanoid:UnequipTools()
end
and yes, I do have the equipped function.
error - “Something unexpectedly tried to set the parent of Tool to Backpack while trying to set the parent of Tool. Current parent is Rescripted_Developer.”