Tweens Not Working

here is the code:
local tweenService = game:GetService(“TweenService”)

local goal = {}

goal.Orientation = Vector3.new(0,360,0)

local tweenInfo = TweenInfo.new(20, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1, true, 2)

local part = script.Parent

local tween = tweenService:Create(part,tweenService,goal)

tween:Play()

and here is the error is generating:
image

I have no idea whats wrong, help!

1 Like
local tween = tweenService:Create(part,tweenService,goal)

I think you mean:

local tween = tweenService:Create(part,tweenInfo,goal)
2 Likes
part, tweenService, goal

Should be:

part, tweenInfo, goal