What's in the title basically..
I have this script in a gun that works fine:
local BV = Instance.new("BodyVelocity",bullet) BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge) BV.Velocity = mouse.Hit.lookVector *300
But now I'm working on a special boss that throws rocks at players, and I'm not sure how to set the velocity to the player's torso position..
--v is the players by the way.. local BV = Instance.new("BodyVelocity",rock) BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge) BV.Velocity = v.Character.Torso.CFrame.p * 50 --The rock just flyes off to the direction the boss is looking at.
I aprecciate any help!
Now i dont know if this would work at all
since i dont use body velocity at all
so dont hate pls
you can probably get what you want through lookvector
--v is the players by the way.. local BV = Instance.new("BodyVelocity",rock) BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge) BV.Velocity = v.Character.Torso.CFrame.lookVector * 50 --The rock just flyes off to the direction the boss is looking at.