I have a gui and when u click "Play" is closes. Then when u die it pops up again!
"Play button that closes it"
script.Parent.MouseButton1Down:connect(function()
p = game.Players.LocalPlayer
p.PlayerGui.ExampleGui:Destroy()
end)
I want this moving gui/frame to close too!
Startposition=script.Parent.Position
while true do
local RightBorder=script.Parent.AbsolutePosition.X+script.Parent.AbsoluteSize.X
if RightBorder<=0 then
script.Parent.Position=Startposition
else
script.Parent.Position=script.Parent.Position-UDim2.new(0.005,0,0,0)
end
wait()
end

1 comment
An easy way is creating the GUI only when the player first joins the server (Using PlayerAdded) then it will only show every server they join. If you want it to be forever, such as playing the game and not getting the GUI in another server, It's DataStore