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

How To Put A Gui In All Players?

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

✓ Accepted answer
for i,v in pairs (game.Players:GetPlayers()) do
	local gui = guiyouwantinthescript:Clone()
	gui.Parent = v.PlayerGui
end

2 comments

1

Thanks

1

And do you know a fix to the detect if game was updated?

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