So, here is a detailed list of what happens
-CLOSED have the ClickDetectors -OPEN and CLOSED have the scripts -When CLOSED is clicked, it's CD's are removed and the OPEN have a ClickDetector Cloned -When OPEN is clicked, it's CD's are removed and the CLOSED have a ClickDetector Cloned.
OPEN:
local OPEN = script.Parent.Parent.OPEN
local CLOSED = script.Parent.Parent.CLOSED
function onClick()
OPEN.Transparency = 1
OPEN.CanCollide = false
OPEN.ClickDetector:Destroy()
wait(0.5)
CLOSED.Transparency = 0
CLOSED.CanCollide = true
CLOSED:Clone(game.Lighting.ClickDetector)
end
script.Parent.ClickDetector.MouseClick:connect(onClick)
CLOSED:
local OPEN = script.Parent.Parent.OPEN
local CLOSED = script.Parent.Parent.CLOSED
function onClick()
CLOSED.Transparency = 1
CLOSED.CanCollide = false
CLOSED.ClickDetector:Destroy()
wait(0.5)
OPENTransparency = 0
OPEN.CanCollide = true
OPEN:Clone(game.Lighting.ClickDetector)
end
script.Parent.ClickDetector.MouseClick:connect(onClick)

2 comments
I dont think the way you used :Clone() is right.
^ Then how do I use it? Wiki/Wikia ain't of any help :/