I test it but nothing happens and output does not return me any error or message.
local brick = script.Parent local cd = script.Parent.ClickDetector local RD = script.Parent.Parent.Door1.RD local LD = script.Parent.Parent.Door1.LD local RDS = script.Parent.Parent.Door1.RDS local LDS = script.Parent.Parent.Door1.LDS function onMouseClick(player) if not player then return end LD.BodyPosition.position = Vector3.new(0, 0, 5) LD.BodyPosition.maxForce = Vector3.new(0, 0, 5000) end cd.MouseClick:connect(onMouseClick)
Your use of the argument is wrong. It HAS to be clicked by a player, so the check is unneeded at line 11 and 12. Take out the argument and the whole of line 12 and try running it.