function onClicked(playerWhoClicked) game.Workspace.Model_CH.Building_Door_House.CanCollide=true end script.Parent.ClickDetector.MouseClick:connect(onClicked)
There is a ClickDetector in the brick and it doesn't work the door stays CanCollide False Thanks!
If the script is a local script that make it a regular script and then also try the script without the "playerWhoClicked". It would look like this.
function onClicked() game.Workspace.Model_CH.Building_Door_House.CanCollide = true end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Make sure to put this in a regular script.
local CD = script.Parent:WaitForChild("ClickDetector") -- CD = Click Detector function onClicked(player) game.Workspace.Model_CH.Building_Door_House.CanCollide = true end CD.MouseClick:connect(onClicked)