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

How To Put A Gui In All Players?

Asked by 4 years ago
Edited 4 years ago

I Asked How To Make If An Update Happens Something Happens (https://scriptinghelpers.org/questions/94364/how-to-make-an-update-system#) It (Did) Work (Just Stopped) But Im Wondering How I Would Clone A Gui Into All Players As It Dont Work!

local UpdateGui = game.ServerStorage.Update
local Update = UpdateGui:Clone()

game.Players.PlayerAdded:Connect(function(Player)
    while wait() do
        if game:GetService("MarketplaceService"):GetProductInfo(game.PlaceVersion).Updated == true then
            Update.Parent = Player.PlayerGui
        end
    end
end)

1 answer

Log in to vote
2
Answered by 4 years ago
for i,v in pairs (game.Players:GetPlayers()) do
    local gui = guiyouwantinthescript:Clone()
    gui.Parent = v.PlayerGui
end
1
Thanks EnzoTDZ_YT 275 — 4y
1
And do you know a fix to the detect if game was updated? EnzoTDZ_YT 275 — 4y
Ad

Answer this question