Hi, I made a post about a tween script not working correctly. Somebody did help me fix the problem. But there was a script I accidentally left out. Here is the part that doesn’t work:
local HoverOverPlayBtn = Tween:Create(PlayBtn, TweenInfo.new(0.3, Enum.EasingStyle.Back.Enum.EasingDirection.Out)
Here’s the top script:
local TweenService = game:GetService(“TweenService”)
local Sidebar = script.Parent:WaitForChild(“Sidebar”)
local PlayBtn = Sidebar:WaitForFirstChild(“Play”)
local Title = Sidebar:WaitForFirstChild(“Title”)
local Tween = function(obj, prop, sty, dir, t)
return TweenService:Create(
obj,
TweenInfo.new(
t,
Enum.EasingStyle[sty],
Enum.EasingDirection[dir]
),
prop
)
end
local T_0 = Tween(Sidebar, {Position = UDim2.new()}, “Quad”, “InOut”, 0.4)T_0:Play()