-- Inf stam script UI - @kamani94 | w1nd scripts edition
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local player = [Link]
local Speed = 20
local Enabled = true
local UIVisible = true
-- UI Setup
local screenGui = [Link]("ScreenGui")
[Link] = "SpeedControlUI"
[Link] = false
[Link] = player:WaitForChild("PlayerGui")
-- Main Frame with custom background
local mainFrame = [Link]("ImageLabel")
[Link] = [Link](0, 300, 0, 270)
[Link] = [Link](0.5, -150, 0.8, -135)
[Link] = 1
[Link] = "rbxassetid://130598370208416" -- Your background image
[Link] = [Link](0.5, 0.5)
[Link] = [Link]
[Link] = screenGui
[Link] = true
[Link] = true
-- Rounded corners
local corner = [Link]("UICorner", mainFrame)
[Link] = [Link](0, 12)
-- Dark overlay for readability
local overlay = [Link]("Frame")
[Link] = [Link](1, 0, 1, 0)
overlay.BackgroundColor3 = [Link](0, 0, 0)
[Link] = 0.4
[Link] = mainFrame
[Link]("UICorner", overlay).CornerRadius = [Link](0, 12)
-- Title (Company name)
local company = [Link]("TextLabel")
[Link] = [Link](1, 0, 0, 25)
[Link] = [Link](0, 0, 0, 5)
[Link] = 1
[Link] = "w1nd scripts"
[Link] = [Link]
[Link] = 18
company.TextColor3 = [Link](100, 200, 255)
[Link] = [Link]
[Link] = overlay
-- Script Title
local title = [Link]("TextLabel")
[Link] = [Link](1, 0, 0, 30)
[Link] = [Link](0, 0, 0, 30)
[Link] = 1
[Link] = "Inf Stam Script - @kamani94"
[Link] = [Link]
[Link] = 16
title.TextColor3 = [Link](255, 255, 255)
[Link] = [Link]
[Link] = overlay
-- Speed Input
local speedBox = [Link]("TextBox")
[Link] = [Link](0.8, 0, 0, 35)
[Link] = [Link](0.1, 0, 0.25, 0)
[Link] = "Enter speed"
[Link] = tostring(Speed)
[Link] = [Link]
[Link] = 16
speedBox.BackgroundColor3 = [Link](40, 40, 40)
speedBox.TextColor3 = [Link](255, 255, 255)
[Link] = overlay
[Link]("UICorner", speedBox).CornerRadius = [Link](0, 8)
-- Recommended value
local recommendLabel = [Link]("TextLabel")
[Link] = [Link](1, 0, 0, 20)
[Link] = [Link](0, 0, 0.42, 0)
[Link] = 1
[Link] = "Recommended value: 2 or 3"
[Link] = [Link]
[Link] = 14
recommendLabel.TextColor3 = [Link](200, 255, 200)
[Link] = [Link]
[Link] = overlay
-- Toggle Button
local toggleButton = [Link]("TextButton")
[Link] = [Link](0.8, 0, 0, 35)
[Link] = [Link](0.1, 0, 0.55, 0)
toggleButton.BackgroundColor3 = [Link](50, 200, 100)
[Link] = "Enabled"
[Link] = [Link]
[Link] = 16
toggleButton.TextColor3 = [Link](255, 255, 255)
[Link] = overlay
[Link]("UICorner", toggleButton).CornerRadius = [Link](0, 10)
-- Toggle logic
local function updateToggle()
if Enabled then
[Link] = "Enabled"
toggleButton.BackgroundColor3 = [Link](50, 200, 100)
else
[Link] = "Disabled"
toggleButton.BackgroundColor3 = [Link](200, 50, 50)
end
end
toggleButton.MouseButton1Click:Connect(function()
Enabled = not Enabled
updateToggle()
end)
updateToggle()
-- Discord Label (Centralized and made larger)
local discordLabel = [Link]("TextButton")
[Link] = [Link](0.9, 0, 0, 30)
[Link] = [Link](0.05, 0, 0.75, 0)
[Link] = 1
[Link] = "Discord: [Link]
[Link] = [Link]
[Link] = 16
discordLabel.TextColor3 = [Link](150, 150, 255)
[Link] = [Link]
[Link] = false
[Link] = overlay
discordLabel.MouseButton1Click:Connect(function()
if setclipboard then
setclipboard("[Link]
[Link] = "Copied Discord link!"
[Link](1.5)
[Link] = "Discord: [Link]
end
end)
-- Toggle UI instruction
local toggleHint = [Link]("TextLabel")
[Link] = [Link](1, 0, 0, 20)
[Link] = [Link](0, 0, 0.88, 0)
[Link] = 1
[Link] = "Press 0 to hide/show UI"
[Link] = [Link]
[Link] = 14
toggleHint.TextColor3 = [Link](255, 255, 255)
[Link] = [Link]
[Link] = overlay
-- Show/hide logic
[Link]:Connect(function(input, gameProcessed)
if not gameProcessed and [Link] == [Link] then
UIVisible = not UIVisible
[Link] = UIVisible
end
end)
-- Speed box logic
[Link]:Connect(function()
local val = tonumber([Link])
if val and val > 0 then
Speed = val
else
[Link] = tostring(Speed)
end
end)
-- Movement logic
[Link]:Connect(function()
if not Enabled then return end
local character = [Link]
local humanoid = character and character:FindFirstChild("Humanoid")
local hrp = character and character:FindFirstChild("HumanoidRootPart")
if not humanoid or not hrp then return end
local isCrouching = [Link] < 10 or [Link] or
humanoid:GetState() == [Link]
if not isCrouching and [Link] > 0 then
local moveStep = Speed / 60
[Link] = [Link] * [Link](0, 0, -moveStep)
end
end)