im trying to make a announcement thing and i want it to clone a gui from the server to all clients
so if i was to press a button it would clone a gui to every client
You can use a for loop! Let me know if you dont understand
for _,v in pairs(game.Players:GetPlayers()) do local clone = gui:Clone() gui.Parent = v.PlayerGui -- v is the player which is got through the loop end
--server local announcementThing = Instance.new("RemoteEvent", game.ReplicatedStorage); announcementThing:FireAllClients() --client local function cloneAll() local requestedGui = ________________:Clone(); requestedGui.Parent = game.Players.LocalPlayer.PlayerGui; end announcementThing.OnServerEvent:Connect(cloneAll)