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

3 comments
try cloning popup in the for loop to make a clone for all of the players
how do I do that? the Popup clone is already inside the for loop.
OH WAIT NVM GOT IT