So I want the script to activate when someone says a number greater than 0. It should then count up, printing all of the lower numbers. For example, if I say "5", it should print this: 1 2 3 4 5
If I said 3, it should print this: 1 2 3
It isn't working at all, here is my code.
x=0
function onChatted(message, player)
if string.lower(message) >= 0 then
repeat
x = x+1
print(x)
wait(0.1)
until x == (message)
x = 0
end
end
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(message) onChatted(message, player) end)
end)
