I looked for this, couldn’t find it.
I’m trying to Rotate a Model, constantly at a reasonable speed. Using CFrame and PrimaryPart, along with the model also “floating”… This is what I have, but it’s not going in the direction I’d like and it’s not going a full 360.
local TweenService = game:GetService("TweenService")
local FloatTInfo = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, -1, true, 0)
local Model = script.Parent
local PrimaryPart = Model.PrimaryPart
local function Rotation()
while wait(.1) do
Model:SetPrimaryPartCFrame(PrimaryPart.CFrame * CFrame.Angles(1, 1, 1))
end
end
TweenService:Create(PrimaryPart, FloatTInfo, {CFrame = PrimaryPart.CFrame * CFrame.new(0, .25, 0)}):Play()
Rotation()