Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would you rotate an object using tweenservice?

local CandleDownPOS = {CFrame = CFrame.fromOrientation(-47.81, -99.48, 12.47)}

I know that the tween:Play() isn't there, but whenever I click the candle, it rotates but teleports. Please help!

1 comment

0

You are only specifying the rotation. Try adding the position you want for the object in the CFrame.

1 answer

Example:

local ts = game:GetService("TweenService")
local part = script.Parent

ts:Create(part, TweenInfo.new(1), {CFrame = part.CFrame * CFrame.Angles(0, math.rad(180), 0)}):Play()

1 comment

0

When I do this, I put in the orientation and it doesn't rotate the way I want it to.

This discussion is preserved as it was. New answers, comments, and votes are closed.