I want to try making the gun script, automatic. But the problem is I don't know how to trigger it properly. Look down for examples.
Here's an brief-example of what I did so far:
mouse.Button1Down:connect(function()
mouse.Button1Up:connect(function()
game.ReplicatedStorage.ROBLOX_MP5FireEvent:FireServer(mouse.Hit.p)
end)
Then here's my next one, it works fine but it shoots not automatic but pistol type. Where you have to spam click.
mouse.Button1Down:connect(function()
game.ReplicatedStorage.ROBLOX_MP5FireEvent:FireServer(mouse.Hit.p)
end)

3 comments
renderstepped still works fine but if you want use while wait() do
Where do I put the while wait() at?
and also, it didnt work.