Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 9 years ago

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!

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. M39a9am3R 3210 — 9y

1 answer

Log in to vote
0
Answered by
Validark 1580 Snack Break Moderation Voter
9 years ago

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.

Ad

Answer this question