script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
hit.Parent.HumanoidRootPart.CFrame = workspace:FindFirstChild("CC").CFrame
if player.PlayerGui.CafeTeleport.Frame.Visible == false then
player.PlayerGui.CafeTeleport.Frame.Visible = true
end
end
end)
Problem is that the gui only pops up the first time and doesnt pop up everytime the player touches the door.... Im confused on why this is happening since i added the check part "if" so it checks if its false then sets the value to true.
This is a server script.

2 comments
Is this local or global script
global ^^