Yeah So For Another One Of My Games,I Am Gonna Put A Door That Players Can Click So When They Click,It Opens.But Since I Have Got 2 Seperate Bits Of The ClickDetector The Door Doesn't Open?
Here It Is:
local clickdetector = script.Parent:WaitForChild("ClickDetector")
clickdetector.MouseClick:Connect(function(player)
workspace["Door"].Transparency = 1
workspace["Door"].CanCollide = false
end)
local clickdetector = script.Parent:WaitForChild("ClickDetector")
clickdetector.MouseClick:Connect(function(player)
workspace["Door"].Transparency = 0
workspace["Door"].CanCollide = true
end)
