What do you want to achieve? Keep it simple and clear!
I want my model to rotate with the primary part.
What is the issue? Include screenshots / videos if possible!
The primary part rotates but not the rest of the model.
local Variables = script.Variables -- A folder with bool values
local Canopy = script.Parent.Canopy -- Model
Variables.Canopy:GetPropertyChangedSignal("Value"):Connect(function()
if Variables.Canopy.Value == true then Canopy.PrimaryPart.Orientation = Vector3.new(0, 0, 65) return end
if Variables.Canopy.Value == false then Canopy.PrimaryPart.Orientation = Vector3.new(0, 0, 0) return end
end)
local model = workspace.Model
local currentPivot = model:GetPivot()
local newPivot = currentPivot * CFrame.Angles(0, 0, math.rad(65))
task.wait(5) -- Test purposes
model:PivotTo(newPivot)