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!