Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

. Can someone help me please? Its about tweening. Also im not a bot if u have seen my last question

Im not a bot i swear i just need ppl to answer me whats wrong with my script bc I actually don't understand whats wrong with it and I need the script to work like rlly badly. Please help

So I have asked two questions about this script and while both were correct and corrected the script, the script still does not work. Please help

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 = UDim2.new(0,0,0,0)}
16  ):Play()

I have tried what other ppl said abut my script, but it still does not work sooooooooo please help

6 comments

0

Can you put a print(SideBar) on line 17 and tell us what prints? This will help debugging it.

0

ok i will do it after school i am in online school rn lol

0

wait do u have discord?

0

Can you post it on here?

0

um sure i will post it in about 30 min-an hour (sorry im quite busy today lol)

0

so um it says this 16:49:33.517 SideBar - Client - MenuMain:17

1 answer

See GUI Animations, you can use :TweenPosition instead of tween service. Here is your code rewritten.

SideBar:TweenPosition(UDim2.new(0,0,0,0), Enum.EasingDirection.Out, Enum.EasingStyle.Quad, 0.4, false)

This discussion is preserved as it was. New answers, comments, and votes are closed.