Hello. so im trying to change a parts cframe and when i change it the parts inside the part won’t follow with the part.
any idea how to fix this?
here is my code:
local ConnectPart = pickedRoom.ConnectPart
ConnectPart.CFrame = lastRoom.ConnectPart.Door.Primary.Door.CFrame
1 Like
aron01224
(Arotje)
#2
You should use connectpart:SetPrimaryPartCFrame and also make sure its welded
1 Like
SetPrimaryPartCFrame is not a valid member Part"ReplicatedStorage.Rooms.RoomType1.ConnectPart"
aron01224
(Arotje)
#4
Wait is connectpart a model or part of a model and if its a model what is the primarypart
1 Like
its a part
i tried with a model but it wouldn’t work, i couldn’t put a primarypart
wait couldn’t i just put the connectpart inside a model and then find the primary?
aron01224
(Arotje)
#6
If pickedroom is a model with a primarypart you could use pickedroom:setprimarypartcframe(cframr.new(lastRoom.ConnectPart.Door.Primary.Door.CFrame))
1 Like
i got it working thank you so much figured it out
1 Like