After much blood, sweat, and tears, I have decided that I must resort to this site for answers. I have been trying to add to a numbervalue located in StarterGUI by use of a local script. However, my efforts have ended with absolutely no progress. Here is my code:
1 | while true do |
2 | wait( 1 ) |
3 | script.Parent.Value = script.Parent.Value + 1 |
4 | end |
I'm starting to think that values can't be changed by local scripts and FE is not enabled.
Maybe a :WaitForChild() and you can!
1 | local val = script.Parent:WaitForChild( "Value" ) |
2 |
3 | while true do |
4 |
5 | wait( 3 ) |
6 |
7 | val.Value = val.Value + 1 |
8 |
9 | end |
1 | while wait( 1 ) do |
2 |
3 | script.Parent.ValueNameHere.Value + 1 |
4 |
5 | end |
Put the value inside the script and change ValueNameHere to the name of the value.
AHA!! I solved it myself. Apparently the script doesn't work in StarterGui but instead works in PlayerGui. Thanks for the help though guys!