Hello, devs!
I was writing script about tweening object. I had an error so I am posting it on scriptinghelpers. My error is "Unable to cast to dictionary".
CODE:
local tweenService = game:GetService("TweenService")
local part = script.Parent
local tweeningInfo = TweenInfo.new(
5,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
5,
true,
3
)
local PartPro = {
Vector3.new(78.6, 4.4, -2.5)
}
local Tween = tweenService:Create(part, tweeningInfo, PartPro)
Tween:Play()
ERRORS:
Unable to cast to dictionary
Line 18

1 comment
its probally position