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

Help. What is wrong with my tween script? Roblox is not showing any detections of mistakes

Asked by 3 years ago
01wait(5)
02 
03--services
04local Tween = game.GetService("TweenService")
05 
06--Variables
07local SideBar = script.Parent:WaitForChild("SideBar")
08local PlayBtn = SideBar:WaitForChild("Play")
09local CreditsBtn = SideBar:WaitForChild("Credits")
10local Title = SideBar:WaitForChild("Title")
11 
12Tween: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()

3 answers

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
3 years ago

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

Ad
Log in to vote
0
Answered by 3 years ago

Okay, I fixed it, here's the script

01local TweenService = game:GetService("TweenService")
02local SideBar = script.Parent:WaitForChild("SideBar")
03local PlayBtn = SideBar:WaitForChild("Play")
04local CreditsBtn = SideBar:WaitForChild("Credits")
05local Title = SideBar:WaitForChild("Title")
06 
07local create = TweenService:Create(SideBar, TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out), {Position = UDim2.new(0,0,0,0)})
08 
09wait(5)
10 
11create: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

Log in to vote
0
Answered by 3 years ago

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?

Answer this question