I’m trying to tween a textlabel but it errors what’s in the title… I don’t understand what is wrong so please help. I have tried several things but they didn’t work
Code:
local TweenService = game:GetService("TweenService")
local Pos = script.Parent.Parent.DEAD.Position
local Goal = UDim2.new(0, 0,0.022, 0)
local Info = TweenInfo.new(
5,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
local Tween = TweenService:Create(script.Parent.Parent.DEAD, Info, { Pos == Goal })
Tween:Play()
local TweenService = game:GetService("TweenService")
local Pos = script.Parent.Parent.DEAD.Position
local Goal = {Position = UDim2.new(0, 0,0.022, 0)}
local Info = TweenInfo.new(
5,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
local Tween = TweenService:Create(script.Parent.Parent.DEAD, Info, Goal)
Tween:Play()
Try this - let me know how it goes.
The reason why this works is because the third argument of a Tween must be a dictionary, with a key of Property and a value of EndValue