I made a shooting game but the guns accuracy are REALLY BAD, and this will really affect the gameplay, would anyone share a thought of how to stop this? :)
function Shoot()
if not db then
db = true
Sound:Play()
NewBullet = Bullet:Clone()
NewBullet.Parent = game.Workspace
NewBullet.Position = Aim.Position
NewBullet.Touched:Connect(function(hit)
pcall(function()
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(20)
print(hit.Name)
end)
end)
local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.Parent = NewBullet
BodyVelocity.Velocity = Mouse.Hit.LookVector*100
BodyVelocity.MaxForce = Vector3.new(50, 50, 50)
wait(1)
Reload:Play()
wait(1)
db = false
end
end
