We need more information to properly help you (ex what errors are you encountering (check the Output box if in studio or press F9 for the developer console in online mode))? What happens when you run it vs what you want to have happen?), but there is a bug in the code you've shown: you can't do arithmetic on strings. That is, "sp.Text" is a string, but you're trying to subtract 1 from it.
Instead, refer to the 'i' variable, and perhaps have the for loop count down instead of up:
for i = 11, 1, -1 do
sp.Text = i
wait(1)
end
(Note that lua automatically converts the number to a string in this case).
Also note that Hints (created via Instance.new("Hint")) are deprecated and could theoretically be removed from Roblox in a future update.
1 comment
Give us your whole code.