local replicatedStorage = game:GetService("ReplicatedStorage")
local signal = replicatedStorage:WaitForChild("Signal")
_G.Toggles = {
AutoComplete = true,
UpgradeRamp = true,
Boost = true,
FirstBoost = true,
UpgradeCar = true
}
local function triggerEvent(eventName, arg1, arg2)
local event = signal:WaitForChild(eventName)
event:FireServer(arg1, arg2)
end
local function startLoop(toggleName, eventName, arg1, arg2)
task.spawn(function()
while _G.Toggles[toggleName] do
triggerEvent(eventName, arg1, arg2)
task.wait(0)
end
end)
end
startLoop("AutoComplete", "Car", "Done", 1)
startLoop("UpgradeRamp", "Place", "Upgrade", "Ramp")
startLoop("Boost", "Car", "Boost")
startLoop("FirstBoost", "Car", "FirstBoost", 0.4773718249915717)
startLoop("UpgradeCar", "Place", "Upgrade", "Car")
task.spawn(function()
for i = 1, 85 do
triggerEvent("Car", "Done", 1)
task.wait(0)
end
end)
Comments
No comments yet
Be the first to share your thoughts!