I did everything from rotating models tutorial in Youtube but it doens't spin as i like and as a UFO rotate.
Model i want to make rotate like a UFO: https://i.imgur.com/A2ZaVjj.png
Sorry for my bad english, i am brazilian and i'm pretty new at scripting
Do this:
local model = workspace.UFO --The UFO while true do wait() model:SetPrimaryPartCFrame(model:GetPrimaryPartCFrame() * CFrame.Angles(0, math.rad(1), 0)) -- This rotates the model 1 degree end
Make sure that you have set the PrimaryPart property of the model to a part that is exactly in the middle of your UFO
The most efficient way (as far as I know) to rotate a model is by using the "SetPrimaryPartCFrame" function. It takes a model and rotates it around its PrimaryPart, but take note that you must set that before you use it, or else you will encounter an error. As an example, this rotates the model 90 degrees along its Y axis:
local model = workspace.yourModel model:SetPrimaryPartCFrame(CFrame.new(0, math.deg(90), 0))