Version / Update: v1.0.0
- Download / Script Link
- --[[
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
-- 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)[ View More ]
Free inf stamina and HP but if doenst work, not my fault