Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Đầu tiên thiết lập GUI mờ dần để dịch chuyển đẹp mắt hơn.
- local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- PlayerGui:SetTopbarTransparency(0)
- local screen = Instance.new("ScreenGui")
- screen.Parent = PlayerGui
- local textLabel = Instance.new("TextLabel")
- textLabel.Text = "Teleporting"
- textLabel.Size = UDim2.new(1,0,1,0)
- textLabel.FontSize = Enum.FontSize.Size18
- textLabel.BackgroundTransparency = 1
- textLabel.Parent = screen
- spawn(function()
- for i = 50, 0, -1 do
- textLabel.BackgroundTransparency = i/50
- wait()
- end
- end)
- -- Khởi động dịch chuyển tức thời, chuyển GUI đang tải mà bạn muốn sử dụng làm tham số.
- game:GetService("TeleportService"):Teleport(PLACE_ID, game.Players.LocalPlayer, {}, game.ReplicatedStorage.LoadingGUI)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement