Hi all,
I'm making a custom player list, and I'm trying to make it tween into position, but I'm getting the error Unable to cast to Dictionary
. It worked before I added Enum.EasingStyle.Sine
, but when I added it, it magically didn't work anymore. Unless I'm doing something wrong, I have no clue why this wouldn't work.
Code:
local Cont = script.Parent local TweenService = game:GetService("TweenService") local TwnInfo = TweenInfo.new(1) local ContTween = TweenService:Create(Cont, TwnInfo, Enum.EasingStyle.Sine, {Position = UDim2.new(0.875, 0, -0.005, 0)}) wait() ContTween:Play()
EasingStyle and EasingDirection is put inside TweenInfo not when you create the Tween
local Cont = script.Parent local TweenService = game:GetService("TweenService") local TwnInfo = TweenInfo.new(1, Enum.EasingStyle.Sine,Enum.EasingDirection.InOut) local ContTween = TweenService:Create(Cont, TwnInfo, {Position = UDim2.new(0.875, 0, -0.005, 0)}) wait() ContTween:Play()