-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local Speed = 20 local Enabled = true local UIVisible = true -- UI Setup local screenGui = Instance.new("ScreenGui") screenGui.Name = "SpeedControlUI" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") -- Main Frame with custom background local mainFrame = Instance.new("ImageLabel") mainFrame.Size = UDim2.new(0, 300, 0, 270) mainFrame.Position = UDim2.new(0.5, -150, 0.8, -135) mainFrame.BackgroundTransparency = 1 mainFrame.Image = "rbxassetid://130598370208416" -- Your background image mainFrame.AnchorPoint = Vector2.new(0.5, 0.5) mainFrame.ScaleType = Enum.ScaleType.Crop mainFrame.Parent = screenGui mainFrame.Active = true mainFrame.Draggable = true -- Rounded corners local corner = Instance.new("UICorner", mainFrame) corner.CornerRadius = UDim.new(0, 12) -- Dark overlay for readability local overlay = Instance.new("Frame") overlay.Size = UDim2.new(1, 0, 1, 0) overlay.BackgroundColor3 = Color3.fromRGB(0, 0, 0) overlay.BackgroundTransparency = 0.4 overlay.Parent = mainFrame Instance.new("UICorner", overlay).CornerRadius = UDim.new(0, 12) -- Title (Company name) local company = Instance.new("TextLabel") company.Size = UDim2.new(1, 0, 0, 25) company.Position = UDim2.new(0, 0, 0, 5) company.BackgroundTransparency = 1 company.Text = "w1nd scripts" company.Font = Enum.Font.GothamBold company.TextSize = 18 company.TextColor3 = Color3.fromRGB(100, 200, 255) company.TextXAlignment = Enum.TextXAlignment.Center company.Parent = overlay -- Script Title local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.Position = UDim2.new(0, 0, 0, 30) title.BackgroundTransparency = 1 title.Text = "Inf Stam Script - @kamani94" title.Font = Enum.Font.GothamBold title.TextSize = 16 title.TextColor3 = Color3.fromRGB(255, 255, 255) title.TextXAlignment = Enum.TextXAlignment.Center title.Parent = overlay -- Speed Input local speedBox = Instance.new("TextBox") speedBox.Size = UDim2.new(0.8, 0, 0, 35) speedBox.Position = UDim2.new(0.1, 0, 0.25, 0) speedBox.PlaceholderText = "Enter speed" speedBox.Text = tostring(Speed) speedBox.Font = Enum.Font.Gotham speedBox.TextSize = 16 speedBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40) speedBox.TextColor3 = Color3.fromRGB(255, 255, 255) speedBox.Parent = overlay Instance.new("UICorner", speedBox).CornerRadius = UDim.new(0, 8) -- Recommended value local recommendLabel = Instance.new("TextLabel") recommendLabel.Size = UDim2.new(1, 0, 0, 20) recommendLabel.Position = UDim2.new(0, 0, 0.42, 0) recommendLabel.BackgroundTransparency = 1 recommendLabel.Text = "Recommended value: 2 or 3" recommendLabel.Font = Enum.Font.Gotham recommendLabel.TextSize = 14 recommendLabel.TextColor3 = Color3.fromRGB(200, 255, 200) recommendLabel.TextXAlignment = Enum.TextXAlignment.Center recommendLabel.Parent = overlay -- Toggle Button local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(0.8, 0, 0, 35) toggleButton.Position = UDim2.new(0.1, 0, 0.55, 0) toggleButton.BackgroundColor3 = Color3.fromRGB(50, 200, 100) toggleButton.Text = "Enabled" toggleButton.Font = Enum.Font.GothamBold toggleButton.TextSize = 16 toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) toggleButton.Parent = overlay Instance.new("UICorner", toggleButton).CornerRadius = UDim.new(0, 10) -- Toggle logic local function updateToggle() if Enabled then toggleButton.Text = "Enabled" toggleButton.BackgroundColor3 = Color3.fromRGB(50, 200, 100) else toggleButton.Text = "Disabled" toggleButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50) end end toggleButton.MouseButton1Click:Connect(function() Enabled = not Enabled updateToggle() end) updateToggle() -- Discord Label (Centralized and made larger) local discordLabel = Instance.new("TextButton") discordLabel.Size = UDim2.new(0.9, 0, 0, 30) discordLabel.Position = UDim2.new(0.05, 0, 0.75, 0) discordLabel.BackgroundTransparency = 1 discordLabel.Text = "Discord: https://discord.gg/jaBa5x5xa5" discordLabel.Font = Enum.Font.GothamBold discordLabel.TextSize = 16 discordLabel.TextColor3 = Color3.fromRGB(150, 150, 255) discordLabel.TextXAlignment = Enum.TextXAlignment.Center discordLabel.AutoButtonColor = false discordLabel.Parent = overlay discordLabel.MouseButton1Click:Connect(function() if setclipboard then setclipboard("https://discord.gg/jaBa5x5xa5") discordLabel.Text = "Copied Discord link!" task.wait(1.5) discordLabel.Text = "Discord: https://discord.gg/jaBa5x5xa5" end end) -- Toggle UI instruction local toggleHint = Instance.new("TextLabel") toggleHint.Size = UDim2.new(1, 0, 0, 20) toggleHint.Position = UDim2.new(0, 0, 0.88, 0) toggleHint.BackgroundTransparency = 1 toggleHint.Text = "Press 0 to hide/show UI" toggleHint.Font = Enum.Font.GothamBold toggleHint.TextSize = 14 toggleHint.TextColor3 = Color3.fromRGB(255, 255, 255) toggleHint.TextXAlignment = Enum.TextXAlignment.Center toggleHint.Parent = overlay -- Show/hide logic UserInputService.InputBegan:Connect(function(input, gameProcessed) if not gameProcessed and input.KeyCode == Enum.KeyCode.Zero then UIVisible = not UIVisible screenGui.Enabled = UIVisible end end) -- Speed box logic speedBox.FocusLost:Connect(function() local val = tonumber(speedBox.Text) if val and val > 0 then Speed = val else speedBox.Text = tostring(Speed) end end) -- Movement logic RunService.Heartbeat:Connect(function() if not Enabled then return end local character = player.Character 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 = humanoid.WalkSpeed < 10 or humanoid.Sit or humanoid:GetState() == Enum.HumanoidStateType.Seated if not isCrouching and humanoid.MoveDirection.Magnitude > 0 then local moveStep = Speed / 60 hrp.CFrame = hrp.CFrame * CFrame.new(0, 0, -moveStep) end end)