local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer -- GUI Settings local ScreenGui = Instance.new("ScreenGui", game.CoreGui) local TextLabel = Instance.new("TextLabel", ScreenGui) TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextLabel.BackgroundTransparency = 0.5 TextLabel.Position = UDim2.new(1, -80, 0, 10) TextLabel.Size = UDim2.new(0, 70, 0, 30) TextLabel.Text = "Speed: 0" TextLabel.Font = Enum.Font.SourceSansBold TextLabel.TextSize = 16 TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0) -- Reset Button local ResetButton = Instance.new("TextButton", ScreenGui) ResetButton.Name = "ResetButton" ResetButton.AutoButtonColor = true ResetButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) -- Red color ResetButton.Position = UDim2.new(0.5, -50, 0.5, -15) -- Centered on screen ResetButton.Size = UDim2.new(0, 100, 0, 30) ResetButton.Text = "Reset Speed" ResetButton.Font = Enum.Font.SourceSansBold ResetButton.TextSize = 16 ResetButton.TextColor3 = Color3.fromRGB(255, 255, 255) -- Speed storage variable local currentSpeed = 0 -- Interface text update function local function updateGUI() TextLabel.Text = "Speed: " .. tostring(currentSpeed) end -- Speed reset button click event handler ResetButton.MouseButton1Click:Connect(function() currentSpeed = 0 -- Get player character with humanoid component local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() if character and character:FindFirstChildOfClass("Humanoid") then character.Humanoid.WalkSpeed = currentSpeed end -- Update GUI display after resetting speed updateGUI() end) -- Speed update every second task.spawn(function() while true do -- Wait one second before updating. task.wait(1) -- Check for player's character and its humanoid component local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() if character and character:FindFirstChildOfClass("Humanoid") then currentSpeed = currentSpeed + 1 -- Set new walk speed for character character.Humanoid.WalkSpeed = currentSpeed -- Update GUI display updateGUI() else print("No Character!") end end end)