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)

1 comment
It's MaxForce.