debounce = true
script.Parent.Touched:connect(function(hit)
local H = hit.Parent:FindFirstChild("Humanoid")
if H then
if debounce == true then
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
local Gui = Player.PlayerGui:FindFirstChild("Teleport1")
if Gui then
Gui.Enabled = true
else
warn("bruh nothin her")
end
wait(0.5)
debounce = false
end
end
end)
so i put a warn in the script if the gui is there but no it warned me so when i look at the player Gui iTS THERE WHAT WHAT IS IT DOING!!

2 comments
^ Wrong. The server can access the PlayerGui through RemoteEvents.
Actually its not wrong, since he's not using an event, what would be the point anyway, it's supposed to open a screengui in the player's gui