I want to make a large door that swings open on one side and the opposite door swings the other. Since I'm extremely new to scripting, Ive done the following with the model on each individual part, meaning each part needs a different name. Ive made two models, one is the door's first position, the second is the latter position after being "opened"
script.Parent."DoorPosA"."PartName".Transparency = 1
script.Parent."DoorPosA"."SamePart".CanCollide = false
script.Parent.DoorPosB."PartName2".Transparency = 0
script.Parent.DoorPosB."PartName2".CanCollide = true
ive done it so that a clickdetector is used to make one model completely transparent and disable all its collisions, whilst making another model visible and enabling collisions. Doing this makes the door appear to "open", but writing lines for each individual brick is tedious, and the end result isnt very satisfactory. Im sure there is a much more efficient way of doing this, and a way to make it look like the door is swinging open. I would include images of what i am trying to achieve, but im not sure how to attach such files on this website.

1 comment
You would use SetPrimaryPartCFrame most likely