im new to scripting and im trying to make a timer. on the last line of this script, there is an error saying Players.Swolcu.PlayerGui.ScreenGui.TextBox.Script:13: bad argument #3 to 'Text' (string expected, got nil)
debounce = true
function b()
if debounce == true then
debouce = false
wait (1)
timeS = (timeS + 1)
end
debounce = true
end
script.Parent.Text = (timeS)
how come there needs to be a string even thought i put brackets
thanks!

2 comments
im pretty sure to turn a number into a string you have to use ToString(timeS) dont quote me on that though im not too good with strings
now it's showing the textbox text as "TextBox" and when you click on it you can change it. help?