I'm making a script so that when a certain gui is destroyed then another one will appear but it's not working.
Here is my script
while script.Parent.Parent.MenuGui do
repeat wait() until not script.Parent.Parent:FindFirstChild("MenuGui")
if not script.Parent.Parent:FindFirstChild("MenuGui") then
break
end
end
script.Parent.Enabled = true

1 comment
Please accept and upvote if this helped :D