Hiya, my bullet isn’t spawning in the proper direction, can someone explain why this is and a possible solution?
Example:
Code:
local MaxAmmo = 8
local CurrentAmmo = 8
local Debounce = false
script.Parent.Parent.Activated:Connect(function()
if Debounce == true then
else
Debounce = true
script.Parent.Parent.Shoot:Play()
local Bullet = game.ReplicatedStorage.Objects.Bullet:Clone()
Bullet.Parent = workspace
Bullet.CFrame = script.Parent.Parent.Handle.BulletSpawnA.CFrame
wait(0.2)
Bullet.Anchored = false
local BV = Instance.new("BodyVelocity",Bullet)
BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
BV.Velocity = script.Parent.Parent.Handle.BulletSpawnA.CFrame.LookVector * 20
wait(0.25)
Debounce = false
end
end)