Unable to cast to Dictionary

I’m trying to make an image randomly appear from the bottom of the screen in a random position, the random position is already set I just have to tween it up, but it doesn’t work and I get the error Unable to cast to Dictionary:

random Pos:

newClickFrame.Position = UDim2.new(math.random(1,9)/10,0,1,25)

Tweening:

tweenService:Create(newClickFrame,TweenInfo.new(tweenTime),Enum.EasingStyle.Circular,{Position = newClickFrame.Position + UDim2.new(0,0,math.random(75,85)/100,-25)}):Play()

Try using Enum.EasingStyle.Sine instead because I think Enum.EasingStyle.Circular doesn’t exist.

It does exist, but it doesn’t change when I use sine

	tweenService:Create(newClickFrame,
		TweenInfo.new(tweenTime, Enum.EasingStyle.Circular),
		{Position = newClickFrame.Position + UDim2.new(0,0,math.random(75,85)/100,-25)}):Play()

Easing style, direction should all be applied inside of the TweenInfo object, not as a tween creation parameter.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.