Hello developers,
I have an issue that I have no idea how to fix basically, it skips one line of a gui tween,
script;
local Home = script.Parent.Main
local Economy = script.Parent.Economy
local Loading = script.Parent.Loading
Home.Classes.Economy.MouseButton1Click:Connect(function()
Home.Classes.Economy:TweenPosition(UDim2.new(0,0,1.5,0),"In","Back")
wait(0.5)
Home.Classes.Business:TweenPosition(UDim2.new(0.367,0,1.5,0),"In","Back")
wait(0.5)
Home.Classes.Flex:TweenPosition(UDim2.new(0.735,0,1.5,0),"In","Back")
wait(1)
Home.Classes.Economy.Visible = false
Home.Classes.Business.Visible = false
Home.Classes.Flex.Visible = false
Home:TweenPosition(UDim2.new(0,0,-1,0))
Loading:TweenPosition(UDim2.new(0,0,0,0)) -- Brings loading screen to middle
wait(5)
Loading:TweenPosition(UDim2.new(0,0,-1,0)) -- Brings loading screen to up
Economy:TweenPosition(UDim2.new(0,0,0,0)) -- Brings Economy screen to middle
wait(0.3)
print("BriningLoadingDown")
Home:TweenPosition(UDim2.new(0,0,1,0))
Loading:TweenPosition(UDim2.new(0,0,1,0)) -- Skips this line.
wait(2)
end)
EDIT: The Loading screeen needs to go to 0,0,0,0 then 0,0,-1,0 then 0,0,1,0 . It doesnt stay at 0,0,-1,0 as when it appears again, I dont want it to over lap with other screens (Frames)