-- LocalScript (place this in StarterPlayer > StarterPlayerScripts) local Players = game:GetService("Players") local player = Players.LocalPlayer -- Create the ScreenGui local screenGui = Instance.new("ScreenGui") screenGui.Name = "SpeedBoosterGui" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") -- Create the centered button local button = Instance.new("TextButton") button.Name = "BoostButton" button.Size = UDim2.new(0, 300, 0, 100) button.Position = UDim2.new(0.5, 0, 0.5, 0) button.AnchorPoint = Vector2.new(0.5, 0.5) button.BackgroundColor3 = Color3.fromRGB(0, 170, 255) button.TextColor3 = Color3.new(1, 1, 1) button.Font = Enum.Font.GothamBold button.TextSize = 24 button.Text = "Activate Speed Boost\n(Max 200)" button.Parent = screenGui -- Optional: add rounded corners local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 12) corner.Parent = button -- Speed settings local NORMAL_SPEED = 16 local BOOST_SPEED = 200 local boosted = false -- Function to apply current speed local function applySpeed() if player.Character and player.Character:FindFirstChild("Humanoid") then player.Character.Humanoid.WalkSpeed = boosted and BOOST_SPEED or NORMAL_SPEED end end -- Button click: toggle boost button.MouseButton1Click:Connect(function() boosted = not boosted if boosted then button.Text = "Deactivate Speed Boost\n(Current: 200)" button.BackgroundColor3 = Color3.fromRGB(255, 50, 50) else button.Text = "Activate Speed Boost\n(Max 200)" button.BackgroundColor3 = Color3.fromRGB(0, 170, 255) end applySpeed() end) -- Apply speed on character spawn/respawn player.CharacterAdded:Connect(function(character) local humanoid = character:WaitForChild("Humanoid") humanoid.WalkSpeed = boosted and BOOST_SPEED or NORMAL_SPEED -- If they die and respawn while boosted, keep it active humanoid.Died:Connect(function() -- Boost state persists across deaths end) end) -- Initial apply if character already exists if player.Character then applySpeed() end