You can just use :SetPrimaryPartCFrame()
method
But make sure to set it's Primary Part first.
------------------------------------
If you decide to instead use a iterator (for i, v
) to loop through and rotate/move it. This is how to do it.
01 | affectaccessories = true |
02 | model = game.Workspace.Model |
03 | for i, v in ipairs (model:GetChildren()) do |
04 | if v:IsA( "Part" ) or v:IsA( "MeshPart" ) then |
05 | v.CFrame = CFrame.new() |
06 | elseif v:IsA( "Accessory" ) and affectaccessories = = true then |
07 | if v:FindFirstChild( "Handle" ) then |
08 | v.Handle.CFrame = CFrame.new() |
Make sure to accept my answer if it helped you!
dank memes