Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would you get the frame into every players PlayerGui's?

I have a script, it makes a frame and then the frames parent becomes the player's PlayerGui. How could i make it so that it goes into ALL of the player's PlayerGui? Is it even possible? !!!THIS IS NOT A REQUEST, I AM NOT ASKING FOR THE SCRIPT, JUST IF IT IS POSSIBLE AND HOW YOU WOULD DO IT!!! Please help! Thank you!

1 comment

0

Yes, you can make a gui show up for all players. You need a for loop to go through all players and add the frame to their playergui.

1 answer

Yup, it's possible. We are going to need to use some sort of loop to do it though. Here's how I would do it:

for a,v in pairs(game.Players:GetChildren()) do
	Frame:Clone().Parent=v.PlayerGui
end

If you don't understand how this loop works, you can read about it here.

This discussion is preserved as it was. New answers, comments, and votes are closed.