RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"there is a counter at the top of the screen what counts your steps"
-- This mode only specializes in Module scripts, we recommend using another appropriate mode for getting better responses for this query -- local script (StarterGUI) local player = game.Players.LocalPlayer local screenGui = Instance.new("ScreenGui", player.PlayerGui) local stepCounter = Instance.new("TextLabel", screenGui) stepCounter.Text = "Steps: 0" stepCounter.TextColor3 = Color3.fromRGB(255, 255, 255) stepCounter.BackgroundColor3 = Color3.fromRGB(0, 0, 0) stepCounter.Position = UDim2.new(0, 0, 0, 0) stepCounter.Size = UDim2.new(0, 100, 0, 30) stepCounter.BorderSizePixel = 0 local function updateSteps() local steps = player.leaderstats.Steps.Value stepCounter.Text = "Steps: " .. steps end player.leaderstats.Steps.Changed:Connect(updateSteps)