Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a gun spread like in Phantom Forces?

Asked by
WoTrox 345 Moderation Voter
4 years ago
Edited 4 years ago

Here's a picture. I want to make like when I click, it will not shoot in the perfect direction of my click, spreads out among the lines in the crossaim. Now I have this script:

mouse.Button1Down:Connect(function()
    canSprint = false

    if ammo == 0 or reloading == true then


    else

        local target = mouse.Target

        if target == nil then


        else

            local targetZombie = target.Parent:FindFirstChild("Zombie")

            if targetZombie then

            --And a lot more            

            end
        end

    end

end)

Here's the game link, if someone wants to try it out

Answer this question