Unable to cast to dictionary

trying to tween a meshpart

local TweenService = game:GetService("TweenService")

local Fumo = script.Parent

local Info = TweenInfo.new(
0.2, --speed
Enum.EasingStyle.Back, --easing style
Enum.EasingDirection.Out, --easing direction
-1, --repeating (-1 to continue for evah)
true, -- repeat?
0) --delay before start
local Goal = Vector3.new(0, 4.353, 5.348)

local tween = TweenService:Create(Fumo, Info, Goal)

tween:Play()

Goal must be a dictionary in order to tween the parts with the given property.

local Goal = {Position = Vector3.new(0, 4.353, 5.348)}

it worked, but i dont want the part to move position, only scaling (like make the part small or big)

Then, replace position with size.

local Goal = {Size = Vector3.new(0, 4.353, 5.348)}
1 Like