I made a click door script. It works correctly on Studio** Test **mode but on the ROBLOX client it is not working.
Door = script.Parent.Parent.Door function onClicked() Door.Transparency = 0 Door.CanCollide = true end script.Parent.ClickDetector.MouseClick:connect(onClicked)
You probably are trying to reference the door/clickdetector before it exists. Try using this instead as it waits for both the door and the click detector before it references them.
Door = script.Parent.Parent:WaitForChild("Door") function onClicked() Door.Transparency = 0 Door.CanCollide = true end script.Parent:WaitForChild("ClickDetector").MouseClick:connect(onClicked)
If this doesnt fix it, press F9 in game, and look at the server log, and tell me if there is any output.