local Door = script.Parent.Parent.Parent
local mainPart = script.Parent.Parent.Parent.Union
local Handle = script.Parent
local openDoor = false
Handle.ClickDetector.MouseClick:Connect(function()
if openDoor == false then
for i = 1, 13 do
Door:SetPrimaryPartCFrame(Door:GetPrimaryPartCFrame(Vector3.new(-6.152, 3, -8.748)) * CFrame.Angles(0,math.rad(-i),0))
wait(0.01)
end
openDoor = true
end
end)
The problem I'm having is when I click the handle it rotates the door, but I also want it to move as well, so the door looks realistic and isn't just rotated in the middle of the doorway.

1 comment
GetPrimaryPartCFrame() returns the CFrame of the PrimaryPart in the model. (The same as Model.PrimaryPart.CFrame, If you've set a primaryPart.) you've placed a Vector3.new() inside of it, that won't do a thing.