-- Toggle Script for CrimeHandler
-- Press 'T' to toggle on/off

local UserInputService = game:GetService("UserInputService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local CrimeHandler = ReplicatedStorage:WaitForChild("Events"):WaitForChild("CrimeHandler")

local isToggled = false
local connection = nil

local function fireEndRescue()
    local args = { "EndRescue", {} }
    CrimeHandler:FireServer(unpack(args))
end

local function toggleLoop()
    isToggled = not isToggled

    if isToggled then
        -- Start the loop
        print("Script Activated")
        connection = game:GetService("RunService").Heartbeat:Connect(fireEndRescue)
    else
        -- Stop the loop
        print("Script Deactivated")
        if connection then
            connection:Disconnect()
            connection = nil
        end
    end
end

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    -- Check if the key pressed was 'T' and the player isn't typing in chat
    if input.KeyCode == Enum.KeyCode.T and not gameProcessed then
        toggleLoop()
    end
end)
Era Of Supes  Infinite Levels & Money
Mobile Friendly
1,379 views
8 months ago

Infinite Levels & Money

WORKING
Free

Description

Boost your progress in Era Of Supes with this Infinite Levels & Money Script. Instantly unlock maximum levels and endless in-game currency to purchase the best upgrades, gear, and more. Skip the grind and unlock your potential in seconds!

Features

  • Infinite Levels
  • Infinite Money

Related Scripts