Works fine when I remove the loading screen from my game, by doesn’t when I add it back.
This is the script:
if IsMobile == true then
game.Players.LocalPlayer.PlayerGui.Menu.ButtonsBackground:TweenPosition(UDim2.new(0.051, 0,0.543, 0), "Out", "Quint", 0)
game.Players.LocalPlayer.PlayerGui.Menu.CurrenciesBackground:TweenPosition(UDim2.new(0.905, 0,0.484, 0), "Out", "Quint", 0)
game.Players.LocalPlayer.PlayerGui.Menu.LevelBarBackground:TweenPosition(UDim2.new(0.005, 0, 0.859, 0), "Out", "Quint", 0)
game.Players.LocalPlayer.PlayerGui.Inventory.Hotbar:TweenPosition(UDim2.new(0.5, 0,0.95, 0), "Out", "Quint", 0)
game.Players.LocalPlayer.PlayerGui.SprintButton.SprintButton:TweenPosition(UDim2.new(0.9, 0,0.75, 0), "Out", "Quint", 0)
game.Players.LocalPlayer.PlayerGui.Menu.BoostsBackground:TweenPosition(UDim2.new(0.05, 0, 0.847, 0), "Out", "Quint", 0)
script.Parent.Parent.Parent.Menu.BoostsBackground.Position = UDim2.new(script.Parent.Parent.Parent.Menu.BoostsBackground.Position.X.Scale, 20, script.Parent.Parent.Parent.Menu.BoostsBackground.Position.Y.Scale, script.Parent.Parent.Parent.Menu.BoostsBackground.Position.Y.Offset)
script.Parent.Parent.Parent.Menu.ButtonsBackground.Position = UDim2.new(script.Parent.Parent.Parent.Menu.ButtonsBackground.Position.X.Scale, 20, script.Parent.Parent.Parent.Menu.ButtonsBackground.Position.Y.Scale, script.Parent.Parent.Parent.Menu.ButtonsBackground.Position.Y.Offset)
script.Parent.Parent.Parent.Menu.CurrenciesBackground.Position = UDim2.new(script.Parent.Parent.Parent.Menu.CurrenciesBackground.Position.X.Scale, -35, script.Parent.Parent.Parent.Menu.CurrenciesBackground.Position.Y.Scale, script.Parent.Parent.Parent.Menu.CurrenciesBackground.Position.Y.Offset)
script.Parent.Parent.Parent.Menu.LevelBarBackground.Position = UDim2.new(script.Parent.Parent.Parent.Menu.LevelBarBackground.Position.X.Scale, 5, script.Parent.Parent.Parent.Menu.LevelBarBackground.Position.Y.Scale, -10)
Inventory.Hotbar.Position = UDim2.new(Inventory.Hotbar.Position.X.Scale, 20, Inventory.Hotbar.Position.Y.Scale, Inventory.Hotbar.Position.Y.Offset)
game.Players.LocalPlayer.PlayerGui.TestGUIs.AddExp.Position = UDim2.new(game.Players.LocalPlayer.PlayerGui.TestGUIs.AddExp.Position.X.Scale, -40, game.Players.LocalPlayer.PlayerGui.TestGUIs.AddExp.Position.Y.Scale, game.Players.LocalPlayer.PlayerGui.TestGUIs.AddExp.Position.Y.Offset)
else
game.Players.LocalPlayer.PlayerGui.Menu.ButtonsBackground:TweenPosition(UDim2.new(0.051, 0,0.543, 0), "Out", "Quint", 1)
game.Players.LocalPlayer.PlayerGui.Menu.CurrenciesBackground:TweenPosition(UDim2.new(0.905, 0,0.484, 0), "Out", "Quint", 1)
game.Players.LocalPlayer.PlayerGui.Menu.LevelBarBackground:TweenPosition(UDim2.new(0.005, 0, 0.859, 0), "Out", "Quint", 1)
game.Players.LocalPlayer.PlayerGui.Inventory.Hotbar:TweenPosition(UDim2.new(0.5, 0,0.95, 0), "Out", "Quint", 1)
game.Players.LocalPlayer.PlayerGui.SprintButton.SprintButton:TweenPosition(UDim2.new(0.9, 0,0.75, 0), "Out", "Quint", 1)
game.Players.LocalPlayer.PlayerGui.Menu.BoostsBackground:TweenPosition(UDim2.new(0.05, 0, 0.847, 0), "Out", "Quint", 1)
end
end