So It's a server script and It shows no error? Code: `game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local head = character:WaitForChild("Head") local humanoid = character:WaitForChild("Humanoid")
local StepsAmountGui = script.StepsAmount:Clone()
local StepsGui = script.StepsGui:Clone()
StepsAmountGui.Parent = head
StepsGui.Parent = head
local steps = math.random(1, 500)
spawn(function()
while task.wait() do
StepsAmountGui.TextLabel.Text = steps
end
end)
StepsAmountGui.TextLabel.Text = steps
local amount = humanoid:ChangeState("Running")
if amount >= steps then
player:Kick("You don't have any steps left!")
else
steps = steps - amount
end
end)
end)`

1 comment
what?