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
wait(5)

--services
local Tween = game.GetService("TweenService")

--Variables
local SideBar = script.Parent:WaitForChild("SideBar")
local PlayBtn = SideBar:WaitForChild("Play")
local CreditsBtn = SideBar:WaitForChild("Credits")
local Title = SideBar:WaitForChild("Title")

Tween:Create(
    SideBar,
    TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,0)
    {Position = UDim2.new(0,0,0,0)}
):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

local TweenService = game:GetService("TweenService")
local SideBar = script.Parent:WaitForChild("SideBar")
local PlayBtn = SideBar:WaitForChild("Play")
local CreditsBtn = SideBar:WaitForChild("Credits")
local Title = SideBar:WaitForChild("Title")

local create = TweenService:Create(SideBar, TweenInfo.new(0.4,Enum.EasingStyle.Quad,Enum.EasingDirection.Out), {Position = UDim2.new(0,0,0,0)})

wait(5)

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

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