debounce = false
workspace.Island.Teleport.IslandTP1.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and debounce == false then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local GUI = plr.PlayerGui.ScreenGui:FindFirstChild("Frame")
debounce = true
if GUI.Visible == false then
GUI.Visible = true
wait(1)
debounce = false
end
end
end)
I touch the part it shows me the gui but after I make my gui invisible it doesnt work unless I reset.

2 comments
Thank you!
No problem!