Is there a CFrame script?

Is there a CFrame script to make a model:


1 Like

You can usee CFrame.Angles to rotate it, or for i = 1 loop and using Model:MoveTo() or :SetPrimaryPartCFrame()


If you are trying to rotate the entire building around the cylinder, I would recommend the following:

  1. Group all of the parts you with to rotate together.
  2. If rotating the cylinder, make sure that you set the model’s PrimaryPart property to the cylinder part.
  3. If not rotating around the cylinder, create a new part that would server as your rotation point. Make sure that this new part is set to the PrimaryPart of the model.
  4. Create a script inside the model that contains:
while wait() do
	script.Parent:SetPrimaryPartCFrame(script.Parent.PrimaryPart.CFrame * CFrame.Angles(0,0.1,0))

*Note: You can change the 0.1 inside the CFrame.Angles to increase or decrease spinning speed.

Hope this helps! Have a great day. c;

  • Galactiq

thank you so much! it spins but not in the direction i would like it to.
it goes:

into the ground
is there any way to make the model to spin right-left ?

Re-orient the part you’re using as the primary part, or use a different axis when you multiply the CFrame.

1 Like

this worked, thank you so much!! and @Galactiq im new to building and everything, sorry !