menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
What do I use?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
What do I use?
Fearlessblocky202
Join Date: 2010-06-16
Post Count: 391
#149847535
Sunday, November 16, 2014 2:48 AM GMT
Would it be better to use in pairs or in ipairs for getting players and changing something in their PlayerGui?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
128GB
Join Date: 2014-04-17
Post Count: 8056
#149848402
Sunday, November 16, 2014 3:01 AM GMT
use a numeric for loop, pairs, ipairs, or next its up to you, in this case numeric would be fastest (Unnoticeable) but I used next for _, player in next, game.Players:GetPlayers() do if player:FindFirstChild("PlayerGui") then --stuff end end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
JarodOfOrbiter
Join Date: 2011-02-17
Post Count: 20029
#149850140
Sunday, November 16, 2014 3:29 AM GMT
ipairs is probably better for this, since the others do unnecessary things too, but idk.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Goulstem
Join Date: 2012-07-04
Post Count: 7177
#149850356
Sunday, November 16, 2014 3:33 AM GMT
simple pairs bruh,
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right