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

Making a GUI shown server wide? [closed]

Asked by 4 years ago

Trying to make a GUI that appears for all players when one player clicks on a block. Attempted several times but with no luck.

Closed as Not Constructive by namespace25 and User#5423

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago

If I were you, I would want to make it so it clones the ScreenGui on every persons screen in the players, assuming you have screengui parented under the script, you could achieve it by doing this:

for i,v in pairs(game:GetService("Players"):GetPlayers()) do
    local GlobalGui = script:FindFirstChildWhichIsA("ScreenGui"):Clone()
    GlobalGui.Parent = v.PlayerGui
end
Ad