So I’m trying to make a Tween animation using GUI built in tween functions. One of them was TweenPosition, it works. But the EasingStyle always defaults to Linear even when I have something is written like Elastic or Bounce.
I tried creating a TweenService to see if I could avoid this problem but… its not working, the code isn’t working. I’m hoping someone very smart could explain this complicated problem to my little brain.
PS: I can’t write a topic in Studio Bug.
local enterInfo = TweenInfo.new(1,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
local clickTween = TweenService:Create(inputClicker,enterInfo,{Size = UDim2.new(0.25,0,0.25,0)})
local storeTween = TweenService:Create(inputClicker,enterInfo,{Position = UDim2.new(0.5,0,0.5,0)})
local function enter(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
menu.Visible = true
inputClicker.Size = UDim2.new(0,1,0,1)
inputClicker.Position = UDim2.new(0.5,0,0.5,0)
store.Position = UDim2.new(0.16,0,1.3,0)
clickTween:Play()
store:TweenPosition(UDim2.new(0.16,0,0.65,0,Enum.EasingDirection.Out,Enum.EasingStyle.Exponential,0.25)) -- The problem
end
end
menu.InputBegan:Connect(enter)
I don’t know if you haven’t seen your output console, but it should print this out. You have put all the properties in the brackets of the UDim2.new() constructor, whereas it should be like this: