So, I used this to make a GUI open by a part touch, but when I tested it in studio it worked, in game.. It worked when I touched it while I was alone in the server, but when I told someone to join the part didn't open to GUI for me, or the other person...!
debounce = false
GUIopen = script.Parent.Value
function onTouched(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr and debounce == false then
if GUIopen.Value == false then
debounce = true
GUIopen.Value = true
wait(0.1)
plr:WaitForChild("PlayerGui").TeleportMenu.Background.Visible = false
debounce = false
end
end
end
script.Parent.Touched:connect(onTouched
Help please D:

2 comments
Are there any errors? Do you ever disable GUIopen?
No errors, yeah I put a scipt in the "Close" button in the GUI thats ment to open, that makes the boolvalue of the GUIopen false when pressed...