pasje1312
(pasje1312)
November 10, 2024, 10:16am
#1
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.
pasje1312
(pasje1312)
November 10, 2024, 10:21am
#3
Ozzie_obj:
Sine
It does exist, but it doesn’t change when I use sine
pasje1312:
tweenService:Create(newClickFrame,TweenInfo.new(tweenTime),Enum.EasingStyle.Circular,{Position = newClickFrame.Position + UDim2.new(0,0,math.random(75,85)/100,-25)}):Play()
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.
system
(system)
Closed
November 24, 2024, 10:24am
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.