01 | wait( 5 ) |
02 |
03 | --services |
04 | local Tween = game.GetService( "TweenService" ) |
05 |
06 | --Variables |
07 | local SideBar = script.Parent:WaitForChild( "SideBar" ) |
08 | local PlayBtn = SideBar:WaitForChild( "Play" ) |
09 | local CreditsBtn = SideBar:WaitForChild( "Credits" ) |
10 | local Title = SideBar:WaitForChild( "Title" ) |
11 |
12 | Tween:Create( |
13 | SideBar, |
14 | TweenInfo.new( 0.4 ,Enum.EasingStyle.Quad,Enum.EasingDirection.Out, 0 , false , 0 ) |
15 | { Position = UDim 2. new( 0 , 0 , 0 , 0 ) } |
16 | ):Play() |
You typed :GetService to .GetService, which means your punctuation is wrong but it does not send any errors which have only one reason, the script does not run
If it's a normal script, make sure it is located at ServerScriptService, if it's a LocalScript, then put it in StarterGui
Okay, I fixed it, here's the script
01 | local TweenService = game:GetService( "TweenService" ) |
02 | local SideBar = script.Parent:WaitForChild( "SideBar" ) |
03 | local PlayBtn = SideBar:WaitForChild( "Play" ) |
04 | local CreditsBtn = SideBar:WaitForChild( "Credits" ) |
05 | local Title = SideBar:WaitForChild( "Title" ) |
06 |
07 | local create = TweenService:Create(SideBar, TweenInfo.new( 0.4 ,Enum.EasingStyle.Quad,Enum.EasingDirection.Out), { Position = UDim 2. new( 0 , 0 , 0 , 0 ) } ) |
08 |
09 | wait( 5 ) |
10 |
11 | create:Play() |
if it doesn't work try removing waitforchild if it doesn't work too change waitforchild to findfirstchild or just put repeat wait() until game:IsLoaded() == true at the first line
So uh I just opened up the output cause i just realized that i didnt have the output on, and when i opened the output, it said Players.TypicalVictorlks.PlayerGui.Menu.MenuMain:14: attempt to call a TweenInfo value. So um what does that mean and what do i need to fix to my script?