local bodyVelocity = script.Parent.BodyVelocity
local bodyPosition = script.Parent.BodyPosition
while true do
if 280 < (part.Position - part2.Position).magnitude < 300 then
bodyVelocity.Velocity = Vector3.new(0,0,0)
bodyPosition.Position = game.Players.tuanorn.Character.HumanoidRootPart.Position
bodyPosition.MaxForce = Vector3.new(4000,4000,4000)
end
wait()
end
The part doesn't return to my character's HumanoidRootPart. The output said: "attempt to compare boolean and number". How can I fix this?
