I put a script into my frame I want visible with this script:
local p = game.Workspace.TouchDetectPart
p.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
if script.Parent.Visible == false then
script.Parent.Visible = true
end
end
end)
The script works perfectly fine, but whenever I click the gui away with my close button and I try touching the part again, the gui wont go open again.
I can’t figure out how this can be fixed.