Im trying to animate my main menu like when the play button is clicked, some other things show up, and the ui enabling once a loading sceeen has finished. But im working on the UI part. But nothing is working amd there are no errors. Heres my script
– T2 - {0.481, 0},{0.074,
– T - {0.442, 0},{-0, 0}
– QL2 - {0.013, 0},{0.423, 0}
– QL - {0.013, 0},{0.478, 0}
– PB - {0.013, 0},{0.791, 0}
– LB - {0.312, 0},{0.907, 0}
– CB - {0.013, 0},{0.907, 0}
– UB - {0.639, 0},{0.907, 0}
– CS - {-0, 0},{0.513, 0}
– SK - {0.01, 0},{0.048, 0}
local UI = game.StarterGui.MainMenuScreen
local Bck = UI.Background
local MF = Bck.MainFrame
local Scroller = MF.CountryScroller
local SKT = Scroller.SLOVAKIA
local Label1 = MF.QuestionLabel
local Label2 = MF.QuestionLabel2
local Label3 = MF.Title
local Label4 = MF.Title2
local CLB = Bck.ChangelogBut
local CRB = Bck.CreditsButt
local STB = Bck.PlayButton
local LBT = Bck.LeaveButt
CLB.Position = UDim2.new(0.639, 0, 2, 0)
CRB.Position = UDim2.new(0.013, 0, 2, 0)
STB.Position = UDim2.new(0.013, 0, 2, 0)
CLB.Position = UDim2.new(0.312, 0, 2, 0)
Label1.Position = UDim2.new(-1, 0, 0.423, 0)
Label2.Position = UDim2.new(-1, 0, 0.478, 0)
Label3.Position = UDim2.new(0.442, 0, -1, 0)
Label4.Position = UDim2.new(0.481, 0, -1, 0)
Scroller.Position = UDim2.new(-0, 0, 3, 0)
local TweeS = game:GetService(“TweenService”)
wait(3)
STB:TweenPosition(UDim2.new (0.013, 0,0.791, 0), “Out”, “Quad”, 1.5, false)
Label1:TweenPosition(UDim2.new (0.013, 0 ,0.478, 0), “Out”, “Quad”, 1.5, false)
Label2:TweenPosition(UDim2.new (0.013, 0 ,0.423, 0), “Out”, “Quad”, 1.5, false)
Label3:TweenPosition(UDim2.new (0.442, 0 ,-0, 0), “Out”, “Quad”, 1.5, false)
Label4:TweenPosition(UDim2.new (0.481, 0 ,0.074, 0), “Out”, “Quad”, 1.5, false)
STB.MouseButton1Click:Connect(function()
wait(0.001)
STB:TweenPosition(UDim2.new (0.013, 0, 2, 0), “In”, “Quad”, 1.5, false)
wait(0.0001)
CRB:TweenPosition(UDim2.new (0.013, 0, 0.907, 0), “Out”, “Quad”, 1.5, false)
CLB:TweenPosition(UDim2.new (0.639, 0,0.907, 0), “Out”, “Quad”, 1.5, false)
LBT:TweenPosition(UDim2.new (0.312, 0 ,0.907, 0), “Out”, “Quad”, 1.5, false)
wait(0.01)
Scroller:TweenPosition(UDim2.new (-0, 0, 0.513, 0), “Out”, “Quad”, 1.5, false)
end)