hey guys, so im trying to make a script that updates the value of an IntValue, which is supposed to be the number of players in the game, I feel like the script should be pretty simple, so I did this
1 | local plrInGame = script.Parent.Value |
2 |
3 | while wait( 1 ) do |
4 | plrInGame.Value = #game.Players:GetChildren() |
5 | end |
However, when I do that I get the "Attempt to index number with 'Value'" error, anyone got a clue?