BodyVelocity bugging out when making a Grappling Hook Script

Upon trying to make a grappling hook system, i stumbled upon this bug


The image explains:
The red dot is where i was SUPPOSED to go, but instead I flew off the map

here is the script i coded that was bugging out

	local velocity=Instance.new('BodyVelocity',character:FindFirstChild('HumanoidRootPart'))
			velocity.MaxForce=Vector3.new(5,5,5)*5000000000
			velocity.P=9000
			velocity.Name='GrappleVelocity'
			velocity.Velocity=gotMouseTarget.Position
			game:GetService('Debris'):AddItem(velocity,.3)

if you know any fixes, please let me know!

I also tried to use BodyPosition, but that ended up slowing me down and I didnt get much speed from it.

You’d have to mess with “P” and “MaxForce” if you want to speed-up “BodyPosition”.

That fixed it, thanks!

The Dampening helped alot more

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.