:GetPropertyChangedSignal() Not detecting Change in Value?
Asked by
4 years ago Edited 4 years ago
Im having this weird issue. Basically when the PlayerCount goes up when you enter a lobby and I have a script here to start a timer if the playercount > 3 but the script never detects the GetPropertyChangesSignal().
01 | script.Parent.Parent.Players:GetPropertyChangedSignal( "Value" ):Connect( function () |
02 | if script.Parent.Players.Value > = 3 then |
03 | if script.Parent.Value = = 0 then |
04 | script.Parent.Value = 30 |
07 | if script.Parent.Players.Value < 3 then |
08 | script.Parent.Value = 0 |
Same with the other script I have that does the timer.
1 | script.Parent:GetPropertyChangedSignal( "Value" ):Connect( function () |
2 | if script.Parent.Value ~ = 0 then |
4 | script.Parent.Value = script.Parent.Value - 1 |
I also tested printing right after the value change was detected and it would never print anything for both scripts.
The weird this is that in the PlayerGUI scripts it detects them just fine