--!strict -- ASTXYAL HUB | FIFA Super Soccer -- Features: Infinite Stamina, Walk Speed, Live Status Monitor, Discord Access local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local DISCORD_INVITE = "https://discord.gg/astxyal" local LocalPlayer = Players.LocalPlayer if not LocalPlayer then Players:GetPropertyChangedSignal("LocalPlayer"):Wait() LocalPlayer = Players.LocalPlayer end -- Wait for game controllers & states to load local PlayerScripts = LocalPlayer:WaitForChild("PlayerScripts") local Controllers = PlayerScripts:WaitForChild("Client"):WaitForChild("Controllers") local StaminaController = require(Controllers:WaitForChild("Stamina")) local States = require(ReplicatedStorage:WaitForChild("Shared"):WaitForChild("States")) local Movement = require(ReplicatedStorage:WaitForChild("Shared"):WaitForChild("Defaults"):WaitForChild("Movement")) -- Backup original references for clean restoration local originalConsume = StaminaController.Consume local originalUpdateInfinite = StaminaController._UpdateInfiniteStamina -- Shared executor environment (openbrowser / setclipboard differ per executor) local ExecutorEnv: any = (rawget(_G :: any, "getgenv") :: any) if type(ExecutorEnv) == "function" then ExecutorEnv = ExecutorEnv() end if type(ExecutorEnv) ~= "table" then ExecutorEnv = _G end -- State local infiniteStaminaEnabled = false local staminaConn: RBXScriptConnection? = nil local speedEnabled = false local speedValue = 32 local speedConn: RBXScriptConnection? = nil local characterConn: RBXScriptConnection? = nil --============================================================ -- Discord helpers --============================================================ -- Executors expose these under different names and in different tables, -- so probe both the executor env and raw _G. local function findFunction(names: { string }): any local sources: { any } = { ExecutorEnv, _G } for _, source in ipairs(sources) do if type(source) == "table" then for _, name in ipairs(names) do local fn = (source :: any)[name] if type(fn) == "function" then return fn end end end end return nil end local function openLink(url: string): boolean local open = findFunction({ "openbrowser", "openBrowser", "openlink", "openLink", "open_url", "OpenBrowser", }) if open then local ok, result = pcall(open, url) if ok and result ~= false then return true end end return false end -- Returns true only if a clipboard write actually succeeded local function copyText(text: string): boolean local write = findFunction({ "setclipboard", "setClipboard", "SetClipboard", "writeclipboard", "writeClipboard", "toclipboard", "toClipboard", "set_clipboard", "copy_to_clipboard", }) if not write then return false end local ok = pcall(write, text) if not ok then return false end -- Some executors accept the call but silently no-op; verify when possible local read = findFunction({ "getclipboard", "getClipboard", "readclipboard", "readClipboard" }) if read then local readOk, content = pcall(read) if readOk and type(content) == "string" and content ~= "" then return content == text or string.find(content, text, 1, true) ~= nil end end return true end -- Last resort: a selectable text box the user can Ctrl+A / Ctrl+C local copyPrompt: ScreenGui? = nil local function showCopyFallback(text: string) if copyPrompt then copyPrompt:Destroy() copyPrompt = nil end local getHui = findFunction({ "gethui", "getgui" }) local parent: Instance = game:GetService("CoreGui") if getHui then local ok, hidden = pcall(getHui) if ok and typeof(hidden) == "Instance" then parent = hidden end end local gui = Instance.new("ScreenGui") gui.Name = "AstxyalCopyPrompt" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.DisplayOrder = 999 local frame = Instance.new("Frame") frame.Size = UDim2.fromOffset(420, 128) frame.Position = UDim2.new(0.5, -210, 0.5, -64) frame.BackgroundColor3 = Color3.fromRGB(20, 20, 24) frame.BorderSizePixel = 0 frame.Parent = gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = frame local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(120, 80, 200) stroke.Thickness = 1 stroke.Parent = frame local title = Instance.new("TextLabel") title.Size = UDim2.new(1, -24, 0, 28) title.Position = UDim2.new(0, 12, 0, 10) title.BackgroundTransparency = 1 title.Font = Enum.Font.GothamBold title.TextSize = 14 title.TextXAlignment = Enum.TextXAlignment.Left title.TextColor3 = Color3.fromRGB(235, 235, 245) title.Text = "ASTXYAL | Ctrl+A then Ctrl+C" title.Parent = frame local box = Instance.new("TextBox") box.Size = UDim2.new(1, -24, 0, 40) box.Position = UDim2.new(0, 12, 0, 44) box.BackgroundColor3 = Color3.fromRGB(32, 32, 38) box.BorderSizePixel = 0 box.ClearTextOnFocus = false box.Font = Enum.Font.Code box.TextSize = 14 box.TextColor3 = Color3.fromRGB(255, 255, 255) box.Text = text box.TextXAlignment = Enum.TextXAlignment.Left box.Parent = frame local boxCorner = Instance.new("UICorner") boxCorner.CornerRadius = UDim.new(0, 6) boxCorner.Parent = box local close = Instance.new("TextButton") close.Size = UDim2.new(1, -24, 0, 28) close.Position = UDim2.new(0, 12, 0, 92) close.BackgroundColor3 = Color3.fromRGB(60, 40, 100) close.BorderSizePixel = 0 close.Font = Enum.Font.GothamMedium close.TextSize = 13 close.TextColor3 = Color3.fromRGB(255, 255, 255) close.Text = "Close" close.Parent = frame close.MouseButton1Click:Connect(function() gui:Destroy() copyPrompt = nil end) gui.Parent = parent copyPrompt = gui task.defer(function() pcall(function() box:CaptureFocus() end) end) end --============================================================ -- Stamina --============================================================ local function enableInfiniteStamina() infiniteStaminaEnabled = true -- Hook Consume method (used by sprinting, sliding, jumping, tackles) StaminaController.Consume = function(self, amount) if infiniteStaminaEnabled then States.Stamina.Amount:set(Movement.Stamina.Maximum) return true end return originalConsume(self, amount) end -- Hook Infinite Stamina state updater StaminaController._UpdateInfiniteStamina = function(self) if infiniteStaminaEnabled then self.HasInfiniteStamina:set(true) States.Stamina.Amount:set(Movement.Stamina.Maximum) return end return originalUpdateInfinite(self) end -- Force immediate state pcall(function() StaminaController.HasInfiniteStamina:set(true) States.Stamina.Amount:set(Movement.Stamina.Maximum) end) -- Heartbeat enforcement to prevent server/client drift if not staminaConn then staminaConn = RunService.Heartbeat:Connect(function() if infiniteStaminaEnabled then if States.Stamina.Amount:get(false) < Movement.Stamina.Maximum then States.Stamina.Amount:set(Movement.Stamina.Maximum) end end end) end end local function disableInfiniteStamina() infiniteStaminaEnabled = false if staminaConn then staminaConn:Disconnect() staminaConn = nil end -- Restore original functions StaminaController.Consume = originalConsume StaminaController._UpdateInfiniteStamina = originalUpdateInfinite -- Refresh normal game state pcall(function() StaminaController:_UpdateInfiniteStamina() end) end --============================================================ -- Walk speed --============================================================ local function getHumanoid(): Humanoid? local character = LocalPlayer.Character if not character then return nil end return character:FindFirstChildOfClass("Humanoid") end local function applySpeed() if not speedEnabled then return end local humanoid = getHumanoid() if humanoid and humanoid.WalkSpeed ~= speedValue then humanoid.WalkSpeed = speedValue end end local function enableSpeed() speedEnabled = true applySpeed() if not speedConn then speedConn = RunService.Heartbeat:Connect(applySpeed) end if not characterConn then characterConn = LocalPlayer.CharacterAdded:Connect(function() -- New character resets WalkSpeed, re-apply once it is ready task.wait(0.2) applySpeed() end) end end local function disableSpeed() speedEnabled = false if speedConn then speedConn:Disconnect() speedConn = nil end if characterConn then characterConn:Disconnect() characterConn = nil end local humanoid = getHumanoid() if humanoid then humanoid.WalkSpeed = 16 end end --============================================================ -- UI --============================================================ local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))() local Window = Rayfield:CreateWindow({ Name = "ASTXYAL HUB | FIFA SUPER SOCCER", LoadingTitle = "ASTXYAL HUB", LoadingSubtitle = "by astxyal", Theme = "Default", DisableRayfieldPrompts = false, DisableBuildWarnings = false, ConfigurationSaving = { Enabled = true, FolderName = "AstxyalHub", FileName = "Config" }, KeySystem = false }) -- Main Tab local MainTab = Window:CreateTab("Main", nil) MainTab:CreateSection("Stamina Exploits") local StaminaToggle = MainTab:CreateToggle({ Name = "Infinite Stamina", CurrentValue = true, Flag = "InfiniteStamina", Callback = function(Value) if Value then enableInfiniteStamina() Rayfield:Notify({ Title = "Stamina", Content = "Infinite Stamina Enabled", Duration = 2, Image = nil }) else disableInfiniteStamina() Rayfield:Notify({ Title = "Stamina", Content = "Infinite Stamina Disabled", Duration = 2, Image = nil }) end end }) MainTab:CreateButton({ Name = "Instant Stamina Refill (100%)", Callback = function() States.Stamina.Amount:set(Movement.Stamina.Maximum) Rayfield:Notify({ Title = "Stamina", Content = "Stamina Refilled to 100", Duration = 2, Image = nil }) end }) MainTab:CreateSection("Movement") local SpeedToggle = MainTab:CreateToggle({ Name = "Increase Speed", CurrentValue = false, Flag = "IncreaseSpeed", Callback = function(Value) if Value then enableSpeed() else disableSpeed() end Rayfield:Notify({ Title = "Movement", Content = Value and "Speed Boost Enabled" or "Speed Boost Disabled", Duration = 2, Image = nil }) end }) MainTab:CreateSlider({ Name = "Walk Speed", Range = {16, 120}, Increment = 1, Suffix = "studs/s", CurrentValue = 32, Flag = "WalkSpeed", Callback = function(Value) speedValue = Value applySpeed() end }) MainTab:CreateSection("Live Status") local StatusParagraph = MainTab:CreateParagraph({ Title = "Current Stamina", Content = "100 / 100" }) -- Background task to update live UI reading task.spawn(function() while Window do task.wait(0.5) pcall(function() local current = States.Stamina.Amount:get(false) local max = Movement.Stamina.Maximum local humanoid = getHumanoid() local walkSpeed = if humanoid then humanoid.WalkSpeed else 16 StatusParagraph:Set({ Title = "Current Stamina", Content = string.format( "%.1f / %.1f (Infinite: %s) | Speed: %.0f (Boost: %s)", current, max, infiniteStaminaEnabled and "ON" or "OFF", walkSpeed, speedEnabled and "ON" or "OFF" ) }) end) end end) -- Discord Tab local DiscordTab = Window:CreateTab("Discord", nil) DiscordTab:CreateSection("ASTXYAL") DiscordTab:CreateParagraph({ Title = "Join the server", Content = "discord.gg/astxyal - more scripts for FIFA Super Soccer and many other games." }) DiscordTab:CreateButton({ Name = "Join Discord Server", Callback = function() if openLink(DISCORD_INVITE) then Rayfield:Notify({ Title = "ASTXYAL", Content = "Opening discord.gg/astxyal", Duration = 4, Image = nil }) return end if copyText(DISCORD_INVITE) then Rayfield:Notify({ Title = "ASTXYAL", Content = "Browser blocked - link copied, paste it in Discord", Duration = 5, Image = nil }) return end showCopyFallback(DISCORD_INVITE) end }) DiscordTab:CreateButton({ Name = "Copy Invite Link", Callback = function() if copyText(DISCORD_INVITE) then Rayfield:Notify({ Title = "ASTXYAL", Content = "Copied discord.gg/astxyal", Duration = 3, Image = nil }) else showCopyFallback(DISCORD_INVITE) end end }) -- Settings Tab local SettingsTab = Window:CreateTab("Settings", nil) SettingsTab:CreateSection("Hub Control") SettingsTab:CreateButton({ Name = "Unload Hub", Callback = function() disableInfiniteStamina() disableSpeed() Rayfield:Destroy() end }) -- Auto-enable if toggle default is true enableInfiniteStamina() -- Discord popup shortly after execution task.delay(2, function() if openLink(DISCORD_INVITE) then pcall(function() Rayfield:Notify({ Title = "ASTXYAL HUB", Content = "Discord opened - join for more scripts", Duration = 5, Image = nil }) end) return end if copyText(DISCORD_INVITE) then pcall(function() Rayfield:Notify({ Title = "ASTXYAL HUB", Content = "Join us: discord.gg/astxyal (copied)", Duration = 6, Image = nil }) end) return end showCopyFallback(DISCORD_INVITE) end)