The title is my question pretty much. How can you?
Here's the script
01 | local players = 0 |
02 | local vip = false |
03 |
04 | game.Players.PlayerAdded:connect( function (player) |
05 | if game.VIPServerId ~ = 0 then |
06 | vip = true |
07 | for i,v in pairs (game.Players:GetChildren()) do |
08 | players = players + 1 |
09 | end |
10 | end |
11 | end ) |
12 |
13 | game.Players.PlayerRemoving:connect( function (player) |
14 | if game.VIPServerId ~ = nil and vip = = true then |
15 | for i,v in pairs (game.Players:GetChildren()) do |
16 | players = players - 1 |
17 |
18 | end |
19 | end |
20 | end ) |