Okay I want to use a function to fire off this while loop
while true do
stats.Score.Value = stats.Score.Value + 1
local str = stats.Score.Value
local str1 = "Your income: "
player.PlayerGui.ScreenGui.Frame.TextButton.Text = str1..str
wait(1)
end

2 comments
Well, I am trying to make it to where when I click a TextButton it starts a while loop.
I edited it, read it now.