I'm trying to make a door open on a button push, When somebody pushes the button door 1 position and rotation will be the same as door 2's to give the impression that it swung open I am havening trouble finding the exact numbers, is there a way to do something like this
door1.postion = door2 postion
with this script?
local cframe = game.Workspace.Door1.PrimaryPart.CFrame function onclick() game.workspace.Door1:SetPrimaryPartCFrame(CFrame.new(240.909, 1.283, 221.164)) end game.workspace.button.ClickDetector.MouseClick:Connect(onclick)
local cframe = game.Workspace.Door1.PrimaryPart.CFrame
idk why you have the variable above. I would set this to Door 1 or something not the CFrame
This will set the CFrame of Door 1 to the CFrame of Door2
function onclick() Door1:SetPrimaryPartCFrame(Door2.CFrame) end game.workspace.button.ClickDetector.MouseClick:Connect(onclick)