cuhieu9xk

Sử dụng màn hình loading mới kết hợp với Teleport - End

Dec 10th, 2019
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. game:GetService("TeleportService").LocalPlayerArrivedFromTeleport:Connect(function(customLoadingScreen, data)
  2. spawn(function()
  3. -- 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
  4. local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  5. PlayerGui:SetTopbarTransparency(0)
  6. end)
  7. local loadingGuiScript = script.AnimateLoadingGui:Clone() -- We can add a script to animate the customLoadingScreen now, it is static while the teleport is taking place.
  8. loadingGuiScript.Disabled = false
  9. loadingGuiScript.Parent = customLoadingScreen
  10. wait(5) -- Đợi cho đến khi load vào game
  11. customLoadingScreen:Destroy()
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment