while script.Parent.anxiety.Value == true do wait(1) script.Parent.timeSpent.Value = script.Parent.timeSpent.Value + 1 end
Nothing happens when I do this. The value remains the same at 0. It runs through this loop I know it works I've used print to get it but the value does NOT change. Yes this is a normal script. Didn't run it with a LocalScript 'cause I figure that wouldn't work either since LocalScript is mostly useful for like keybinding and such. Plus laziness. It's 2:49 PM.
Maybe try this script out?
while true do wait(1) if script.Parent.anxiety.Value == true then script.Parent.timeSpent.Value = script.Parent.timeSpent.Value + 1 end end