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

0101  wait(5)
0202 
0303  --services
0404  local Tween = game:GetService("TweenService")
0505 
0606  --Variables
0707  local SideBar = script.Parent:WaitForChild("SideBar")
0808  local PlayBtn = SideBar:WaitForChild("Play")
0909  local CreditsBtn = SideBar:WaitForChild("Credits")
1010  local Title = SideBar:WaitForChild("Title")
1111 
1212  Tween:Create(
1313      SideBar,
1414      TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,0),
1515      {Position = UDim2.new(0,0,0,0)}
1616  ):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.

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

Answer this question