My projectile is facing sideways, how can i turn it?
Asked by
7 years ago Edited 7 years ago
So i made a projectile script because i am making a throwing kunai knife.
I got it to throw in the direction of my mouse, but the kunai is turned sideways ( it looks kinda funny, but not very effective)
So the problem isnt the kunai flying in the right direction the problem is that
I can't figure out how to turn the actual model of the kunai to face forward
here is my local script inside of the tool
01 | player = game.Players.LocalPlayer |
04 | mouse = player:GetMouse() |
07 | if throwable = = true then |
09 | local kunai = game.ReplicatedStorage.kunaiProjectile:Clone() |
10 | kunai.Parent = workspace |
11 | kunai.CanCollide = false |
12 | kunai.CFrame = tool.Handle.CFrame |
13 | kunai.CFrame = CFrame.new(kunai.Position, mouse.Hit.p) |
14 | local bv = Instance.new( 'BodyVelocity' , kunai) |
15 | bv.Velocity = kunai.CFrame.lookVector * 230 |
16 | bv.MaxForce = Vector 3. new( math.huge , math.huge , math.huge ) |
22 | tool.Activated:Connect(shoot) |