Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I rotate a tween part?

Asked by 5 years ago

I'm trying to rotate a part using TweenService, but I seem to get into an error every time I do. Any help? Here is my code.

local TweeningService = game:GetService("TweenService")
local partChanges = {
Rotation = Vector3.FromAxis(0,0,90)
}
local TweenInformation = TweenInfo.new(
    15, 
    Enum.EasingStyle.Linear, 
    Enum.EasingDirection.In,
    0,
    false,
    0           
)
local tween = TweeningService:Create(script.Parent,TweenInformation,partChanges)
wait(2)
tween:Play()

0
Post the error. User#19524 175 — 5y
0
- Vector3.FromAxis expects Enum.Axis input IPhoneDrew 9 — 5y
0
FromAxis requires an Enum argument. So like Vector3.FromAxis(Enum.Axis.Z) User#19524 175 — 5y
0
Orientation = Vector3.new(x, y, z) Azuc 112 — 5y

Answer this question