don't clone if the player already has?
i want to make this script where if the player already has this gui in it's playergui then don't clone it, but if the player doesn't then you do clone it. But this script doesn't work.
02 | local Players = game:GetService( "Players" ) |
03 | local storage = game:GetService( "ServerStorage" ) |
04 | local aaaa = storage.aaaa |
05 | script.Parent.Touched:Connect( function (hit) |
09 | local player = Players:GetPlayerFromCharacter(hit.Parent) |
10 | if player.PlayerGui.aaaa then |
16 | aaaa:Clone().Parent = player.PlayerGui |
18 | wait( 99999999999999999999999999999999999999999999999999999999999999999999 ) |