I have a script for a Gui and it works fine. But when the player respawns the gui pops up again and i don't want that. Is there any possible way? If so can anyone modify this script.
wait(1) script.Parent.Main.Close.MouseButton1Down:connect(function() script.Parent:remove() end)
Thank you.
function onPlayerAdded(Player) Player:WaitForDataReady() copy = game.Workspace.NAMEofGUI:Clone() --Make sure the GUI is already set to be visible copy.Parent = Player.StarterGui end game.Players.PlayerAdded:connect(onPlayerAdded)
I haven't tested this I just wrote it up really fast. If it doesn't work I know I have one at home that I made that works that I will send you. Just tell me if you need it via a ROBLOX PM ~PropheticExtinction