Infinite Stamina Button
Key Required

Infinite Stamina Button

[CUSTOMIZATION] Live of Life [DoD, but good?]RetredRetred 1.5K views 798 executesUpdated Dec 19, 2025
2.5/ 5(2 votes)
1150% Positive
Lua Script•90 lines (2498 chars)
-- u can use it to your script <3
local Players = game:GetService("Players")
local player = Players.LocalPlayer


local screenGui = Instance.new("ScreenGui")
screenGui.Parent = player:WaitForChild("PlayerGui")

local toggleButton = Instance.new("TextButton")
toggleButton.Parent = screenGui
toggleButton.Size = UDim2.new(0, 140, 0, 50)
toggleButton.Position = UDim2.new(0.8, 0, 0.4, 0)
toggleButton.Text = "Infinite Stamina: OFF"
toggleButton.BackgroundColor3 = Color3.fromRGB(200, 60, 60)
toggleButton.TextColor3 = Color3.new(1, 1, 1)
toggleButton.Font = Enum.Font.GothamBold
toggleButton.TextSize = 18
toggleButton.Active = true
toggleButton.Draggable = true


local stroke = Instance.new("UIStroke")
stroke.Parent = toggleButton
stroke.Thickness = 2
stroke.Color = Color3.fromRGB(0, 0, 0)


local corner = Instance.new("UICorner")
corner.Parent = toggleButton
corner.CornerRadius = UDim.new(0, 10)

-----------------------------------------------------
-- toggle code 
-----------------------------------------------------

local infiniteEnabled = false
local staminaConnections = {}

local function enableInfiniteStamina(plr)
    local character = plr.Character or plr.CharacterAdded:Wait()
    local SprintStuff = character:WaitForChild("SprintStuff")
    local Stamina = SprintStuff:WaitForChild("Stamina")
    local MaxStamina = SprintStuff:WaitForChild("MaxStamina")
    
    local infiniteValue = MaxStamina.Value

    
    if staminaConnections[plr] then
        staminaConnections[plr]:Disconnect()
    end

    
    staminaConnections[plr] = Stamina.Changed:Connect(function()
        if infiniteEnabled then
            Stamina.Value = infiniteValue
        end
    end)

    Stamina.Value = infiniteValue
end

local function disableInfiniteStamina(plr)
    if staminaConnections[plr] then
        staminaConnections[plr]:Disconnect()
        staminaConnections[plr] = nil
    end
end

-----------------------------------------------------
-- betten 
-----------------------------------------------------

toggleButton.MouseButton1Click:Connect(function()
    infiniteEnabled = not infiniteEnabled

    if infiniteEnabled then
        toggleButton.Text = "Infinite Stamina: ON"
        toggleButton.BackgroundColor3 = Color3.fromRGB(60, 180, 60)

        
        enableInfiniteStamina(player)

    else
        toggleButton.Text = "Infinite Stamina: OFF"
        toggleButton.BackgroundColor3 = Color3.fromRGB(200, 60, 60)

        
        disableInfiniteStamina(player)
    end
end)

Features & Information

+Infinite Stamina +Toggle
#roblox#liveoflife

Community Comments (0)

No comments yet for this script.

More Scripts for [CUSTOMIZATION] Live of Life [DoD, but good?]