Quick actions

cmd+k|ctrl+k

Navigation

Languages

HoopJourney

Snippet info

Language

Lua

Visibility

public

Author

legacy-v1-16166

Created

2023-08-27T19:50:11.740901Z

Updated

2023-08-27T19:50:11.740901Z

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()
INFO