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