0

# Script scans every players but How do I clone a GUI to every player it scans?

Edited 11 days ago

I made a script that scans all the existing players then server clones the GUI I made inside the player's playergui. Code is below

Message = script.Message Popup = Message:Clone()

game.ReplicatedStorage.DialogueEvent.OnServerEvent:Connect(function()

wait(2)
for i, v in pairs(game.Players:GetPlayers()) do

print(v)
Popup.Parent = v.PlayerGui
end

wait(24)
Popup:Remove()


end)

Now it works, but the PROBLEM is, the for loop scans all the players but only clones the GUI to the LAST player in the list.

how do I make it so it clones the gui to All the players it scanned? thanks in advance

1
try cloning popup in the for loop to make a clone for all of the players bdam3000 25 — 11d
0
how do I do that? the Popup clone is already inside the for loop. charles600 0 — 11d
0
OH WAIT NVM GOT IT charles600 0 — 11d