local RepStorage = game:GetService("ReplicatedStorage")
local ShootEvent = RepStorage.Aero.AeroRemoteServices.GameplayService.Shoot
local KeyEvent = RepStorage.Net
local GetKey = function()
local RandomFunc = Random.new(KeyEvent:InvokeServer())
return RandomFunc:NextNumber()
end
local StartShot = function()
local Key = GetKey()
local Action = {
Key;
{Action = "Shoot"; Start = true};
}
ShootEvent:FireServer(Action)
end
local EndShot = function()
local Key = GetKey()
local Action = {
Key;
{Start = false};
}
ShootEvent:FireServer(Action)
end
-- do shot lol
StartShot()
task.wait(0.5)
EndShot()