Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Problem with LookVector(In BodyVelocity),dummy fly to sky?

Asked by
lamgogo 56
1 year ago

Im making a code that will make the dummy get pushed to the player,after the player use star finger(dont ask what is star finger cuz maybe u dont even know what is jojo,its just a thing activate the code if it hits a dummy),and this is the code:

local bv = Instance.new("BodyVelocity",hit.Parent.HumanoidRootPart)
            bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
            bv.Velocity = char.HumanoidRootPart.CFrame.lookVector * -55
            game.Debris:AddItem(bv,0.75)

Welp the dummy start to flying to the sky slowly instead of coming back(same without negate velocity) and i have no idea why

And there isnt any error in output Pretty confuse rn,so any suggestion or help will be appriciated :D Ty for reading lol

Answer this question