Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game:GetService("TeleportService").LocalPlayerArrivedFromTeleport:Connect(function(customLoadingScreen, data)
- spawn(function()
- -- Tạo ra một chức năng để thiết lập độ trong suốt của thanh trên cùng ngay khi PlayerGui được tạo
- local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- PlayerGui:SetTopbarTransparency(0)
- end)
- local loadingGuiScript = script.AnimateLoadingGui:Clone() -- We can add a script to animate the customLoadingScreen now, it is static while the teleport is taking place.
- loadingGuiScript.Disabled = false
- loadingGuiScript.Parent = customLoadingScreen
- wait(5) -- Đợi cho đến khi load vào game
- customLoadingScreen:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment