Fast Train
Key Required

Fast Train

Swim League [ Xmas🎅]chillunskchillunsk 5.4K views 157 executesUpdated Dec 21, 2024
5.0/ 5(3 votes)
30100% Positive
Lua Script•78 lines (2214 chars)
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()

local Window = Rayfield:CreateWindow({
   Name = "💪 Faster Training | Swim League [ Xmas🎅]",
   LoadingTitle = "Loading GUI...",
   LoadingSubtitle = "by chillunsk",
   ConfigurationSaving = {
      Enabled = true,
      FolderName = "SWIM_LEAGUE",
      FileName = "Faster_TrainingGUI"
   },
   Discord = {
      Enabled = false,
      Invite = "noinvitelink",
      RememberJoins = true
   },
   KeySystem = false
})

local MainTab = Window:CreateTab("🏋️ Training", nil)
local MainSection = MainTab:CreateSection("Training Controls")

local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TrainRemote = ReplicatedStorage:WaitForChild("Train"):WaitForChild("Remote"):WaitForChild("TrainAnimeHasEnded")

local isToggled = false
local loopConnection

local function toggleLoop()
    isToggled = not isToggled
    if isToggled then
        Rayfield:Notify({
            Title = "Script Activated",
            Content = "Faster_Training!",
            Duration = 5
        })
        loopConnection = RunService.Heartbeat:Connect(function()
            local success, err = pcall(function()
                TrainRemote:FireServer()
            end)
            if not success then
                warn("[Faster_Training] Error firing remote:", err)
            end
            task.wait(0.1)
        end)
    else
        Rayfield:Notify({
            Title = "Script Deactivated",
            Content = "Faster Training stopped.",
            Duration = 5
        })
        if loopConnection then
            loopConnection:Disconnect()
            loopConnection = nil
        end
    end
end

MainTab:CreateButton({
   Name = "Toggle Training (T)",
   Callback = function()
       toggleLoop()
   end,
})

UserInputService.InputBegan:Connect(function(input, isProcessed)
    if not isProcessed and input.KeyCode == Enum.KeyCode.T then
        toggleLoop()
    end
end)

Rayfield:Notify({
    Title = "Welcome!",
    Content = "Press T or use the GUI button to toggle the Fast Training!",
    Duration = 8
})

Features & Information

Faster Train K to close/open GUI *works on every executor*

Community Comments (2)

DumbRobloxUserDumbRobloxUserDec 21, 2024(edited)

W

LamberkzLamberkzDec 21, 2024(edited)

W

More Scripts for Swim League [ Xmas🎅]