Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

BodyPosition moving the character wrongly?

Asked by 7 days ago

I am using BodyPosition to create a jumping kind of effect for a projectile. And it works, but it takes the character to some random place around the map. Instead of holding the player airborne in the position they are. I have listed my code. I would appreciate some help!

        local BP = Instance.new("BodyPosition")
        BP.Parent = Char.HumanoidRootPart
        BP.Position = Vector3.new(Char.HumanoidRootPart.Position)
        BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
        BP.P = 25000
        BP.D = 100

Answer this question