Why does this GUI not slide?

Hello. I am Jamie_scripts. I have been scripting for a few months.
I recently tried to make a sidebar thing for a showcase.
What this was SUPPOSED to do was make a gui slide into view when you join the server. But for some reason, the gui doesn’t slide. Can someone please explain what i did wrong.
Code:

wait(5)

– Services

local Tween = game:GetService(“TweenService”)

– Variables

local Sidebar = script.Parent:WaitForChild(“SideBar”)
local PlayBtn = Sidebar:WaitForChild(“Play”)
local CreditsBtn = Sidebar:WaitForChild(“Credits”)
local Title = Sidebar:Waitforchild(“Title”)
Tween:Create(
Sidebar,
TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0),
{Position = UDim2.new(0, 0, 0, 0)}
):Play()

Thanks! :smiley:

1 Like

Were there any errors in the output?

No. The output didn’t show any errors involving the localscript.

Maybe this might help you. Why wont my gui tween work?

goal is a list of goals for the tween to achieve. Therefore it allows you to do more than position at once. As well as keeping your info organized.

You misspelt :WaitForChild().while localing the Title. Not really misspelt but you did casing mistakes.

3 Likes

Oh yes! It works now. Good work! I would’ve never noticed that…