of     2   
chevron_rightchevron_rightchevron_right

WolfOfScarlet
#197833590Monday, September 05, 2016 3:12 AM GMT

local Players = game:GetService("Players") local PlayerTable = {} Players.PlayerAdded:connect(function(Player) for Index = 1,#PlayerTable do if Player ~= nil then PlayerTable[#PlayerTable + 1] = Player.Name end end end)
RevenantVandetta
#197833887Monday, September 05, 2016 3:15 AM GMT

Does this count how many players there are on the server, or does it assign a number to their name
WolfOfScarlet
#197834299Monday, September 05, 2016 3:21 AM GMT

it counts how many players are in the server and then adds them to the table. most people don't know this, but that blank table up there is actually; PlayersTable = {nil, nil, nil, ...}
JorDandere
#197834365Monday, September 05, 2016 3:22 AM GMT

SLOTHFUL! SLOTHFUL! SLOTHFUL!
RevenantVandetta
#197834738Monday, September 05, 2016 3:27 AM GMT

Ah, I had a feeling that it was a counter.
WolfOfScarlet
#197834864Monday, September 05, 2016 3:29 AM GMT

Betelgeuse is best girl
RevenantVandetta
#197835177Monday, September 05, 2016 3:33 AM GMT

Oh my god dude, Subaru's neck cracked. I'm so sad rn, idk where he will respanw this time.
WolfOfScarlet
#197835282Monday, September 05, 2016 3:35 AM GMT

Felix saved Subaru af from that Witch Cult memer who blew himself up LOL "My hands are the gentlest in the world" "But, they're capable of doing some nasty things..."
WolfOfScarlet
#197838274Monday, September 05, 2016 4:17 AM GMT

LOL
WolfOfScarlet
#197860737Monday, September 05, 2016 2:01 PM GMT

xdd
LordRevamp
#197861482Monday, September 05, 2016 2:15 PM GMT

Not sure if your looking for a fix or not, but anyway... Here is some new code: ------------------------------- local PlayerTable = {} local PlayerCount = 0 game.Players.PlayerAdded:connect(function(Player) PlayerTable[Player.Name] = Player.Name local Count = 0 for i, v in pairs(PlayerTable) do Count = Count + 1 end PlayerCount = Count end) game.Players.PlayerRemoving:connect(function(Player) PlayerTable[Player.Name] = nil local Count = 0 for i, v in pairs(PlayerTable) do Count = Count + 1 end PlayerCount = Count end) ------------------------------- By the way, if your just trying to get the player count.... just do #game.Players:GetPlayers() There really is no need to do all the code above when you can retrieve all players through game.Players:GetPlayers()
Valkeri
#197861569Monday, September 05, 2016 2:16 PM GMT

felix mvp. healing magic so op
[rfa#hidefromsearch]
#197861970Monday, September 05, 2016 2:24 PM GMT

[rfa#hidefromsearch]
WolfOfScarlet
#197865519Monday, September 05, 2016 3:17 PM GMT

sir why would i use in pairs?! dis is an array not a dictionary >:(
Graffyboo
#197865976Monday, September 05, 2016 3:23 PM GMT

LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE LOVE
[rfa#hidefromsearch]
#197866216Monday, September 05, 2016 3:26 PM GMT

[rfa#hidefromsearch]
WolfOfScarlet
#197866603Monday, September 05, 2016 3:31 PM GMT

Yes, but in pairs() functions are inefficient in my opinion, I found the generic for loop to be more efficient! :D
NinjaofRobloxia
#197866820Monday, September 05, 2016 3:33 PM GMT

*has no clue what is going on*
WolfOfScarlet
#197868389Monday, September 05, 2016 3:53 PM GMT

@Ninja The point of my code is to have the player added to the table, in the most efficient manner, once the player joins and connects to the game. So like, I am basically trying to figure out how to make my code as efficient as possible! ^_^
WolfOfScarlet
#197883343Monday, September 05, 2016 6:22 PM GMT

Nerds
Meliorus
#197884225Monday, September 05, 2016 6:30 PM GMT

This weeb gonna try and learn how to script to make an anime remake
JorDandere
#197930873Tuesday, September 06, 2016 3:28 AM GMT

My new favorite word is DESU.
[rfa#hidefromsearch]
#197930938Tuesday, September 06, 2016 3:29 AM GMT

[rfa#hidefromsearch]
JorDandere
#197934196Tuesday, September 06, 2016 4:29 AM GMT

I like Ram's voice and how she says Barusu.
WolfOfScarlet
#197962254Tuesday, September 06, 2016 7:26 PM GMT

TEAM REM

    of     2   
chevron_rightchevron_rightchevron_right