I’m trying to make it so that a part is cloned from ReplicatedStorage
and has it’s PrimaryPart rotated such that it is identical to the Orientation of another PrimaryPart in the game.
local floor = workspace:FindFirstChild("Floor").PrimaryPart
local clone = game:GetService("ReplicatedStorage"):FindFirstChild("Wall")
clone.PrimaryPart = clone:FindFirstChild("Base")
clone:SetPrimaryPartCFrame(CFrame.new(floor.Position))
clone.PrimaryPart.Orientation = Vector3.new(floor.Orientation.X, floor.Orientation.Y, floor.Orientation.Z)
clone.Parent = workspace
At the moment the model will indeed be placed into position but only the PrimaryPart itself has it’s Orientation changed to match. It was my understanding that the whole model is supposed to follow suit?
If this is not the case I suppose I could run a loop through all the descendants of the model but surely there must be another way to go about it?