Run it
Copy the script and paste it into your executor.
--// BuyUnit Auto Caller
--// Toggle: K
--// Unload: M
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UserInputService = game:GetService("UserInputService")
--====================
-- CONFIG
--====================
local TOGGLE_KEY = Enum.KeyCode.K
local UNLOAD_KEY = Enum.KeyCode.M
local FIRE_DELAY = 0.05 -- adjust if needed
local remote = ReplicatedStorage:()
ARGS = {
,
,
{
Legendary = ,
Common = ,
Epic = ,
Mythic = ,
Rare = ,
}
}
SINGLETON_KEY =
env = ( ())
env[SINGLETON_KEY]
(env[SINGLETON_KEY])
enabled =
loopToken =
connections = {}
()
enabled =
loopToken +=
_, c (connections)
(() c:() )
connections = {}
env[SINGLETON_KEY] =
()
env[SINGLETON_KEY] = cleanup
(sig, fn)
c = sig:(fn)
.(connections, c)
c
()
loopToken +=
myToken = loopToken
.(()
()
enabled loopToken == myToken
(()
remote:(.(ARGS))
)
.(FIRE_DELAY)
()
)
(UserInputService.InputBegan, (input, gp)
gp
input.KeyCode == TOGGLE_KEY
enabled = enabled
enabled
()
()
input.KeyCode == UNLOAD_KEY
()
)
()