So… How do i make bullet that would goes spread when the gun is active?
The bullet still go forward to the cursor instead of spread like what i wanted it to be.
I tried many methods but them doesn’t working well, so i decided to make this topic.
local bullet = game.ReplicatedStorage.Folders.Parts.Bullet:Clone()
bullet.Parent = workspace
local speed = 700
local antiGravity = 0.9
local bf = Instance.new("BodyForce")
bf.Force = Vector3.new(0, workspace.Gravity * bullet:GetMass() * antiGravity, 0)
bf.Parent = bullet
bullet.CFrame = CFrame.new(script.Parent["AK-47 EffectsPart"].Position, mouse.Hit.Position) * CFrame.Angles(math.random(0,30),math.rad(90),math.random(0,20))
wait(0.02)
debris:AddItem(bullet, 1)
bullet.Velocity = mouse.Hit.LookVector * speed