Adding on to my previous question, answered by parkderp1, I have yet another problem concerning scripts and Lighting.
Before, I display my scripts, this is the Hierarchy: gyazo.com/2f33372121ba844cce55db528b89423b
This is the code inside the script "cash."
lighting = script.Parent.Parent.Parent while true do wait(2.5) lighting.Money.Value = lighting.Parent.Money.Value + script.Parent.Value print "earn" wait(2.5) end
This adds the value of "Earnings" to the value of "Money."
This is the code inside the script "Script."
lighting = script.Parent.Parent.Parent while true do wait(30) lighting.Money.Value = lighting.Money.Value - script.Parent.Value print "fee" wait(30) end
This subtracts the value of "Fees" from the value of "Money."
Both of these scripts are enabled when the game is "started" by a TextButton. But the thing is, they do not run in Lighting for some reason, and the prints do not show up in the output. If anyone could help with this I'd very, very much appreciate it.
I got it to work, nevermind guys! Thanks for your help anyway.