Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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

0
Can you put a print(SideBar) on line 17 and tell us what prints? This will help debugging it. movementkeys 163 — 3y
0
ok i will do it after school i am in online school rn lol TypicalVictorlks 17 — 3y
0
wait do u have discord? TypicalVictorlks 17 — 3y
0
Can you post it on here? movementkeys 163 — 3y
View all comments (2 more)
0
um sure i will post it in about 30 min-an hour (sorry im quite busy today lol) TypicalVictorlks 17 — 3y
0
so um it says this 16:49:33.517 SideBar - Client - MenuMain:17 TypicalVictorlks 17 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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)

Ad

Answer this question