Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Change your teleport UI?

Asked by
Kblow1 53
6 years ago

Is there way i can change my teleport UI on roblox. Im trying to teleport players between the hub. And to the main game. But i want to change the ugly roblox one to a custom one. Ive been trying to find it and i cant find it anywhere. Ive been using the roblox wiki but its not doing the same thing. Here is the souce ive been using

https://wiki.roblox.com/index.php?title=Creating_a_Custom_Teleport_UI

1 answer

Log in to vote
0
Answered by
Rare_tendo 3000 Moderation Voter Community Moderator
6 years ago

In the TeleportService:Teleport() function, there's an argument called 'customTeleportGui' (correct me if I'm wrong). For the teleportGui, the guis are static, meaning that any gui function( like TweenPosition and TweenSize) or property will not work.

You could create your own teleportGui in ReplicatedStorage, and when you used this script, it will teleport the player to your game, with your custom teleportUi on your screen, instead of roblox's UI.

local ts = game:GetService('TeleportService')

function teleport(placeid,customui,player)
       ts:Teleport(placeid,player,nil,customui)
end

--For example, we'll teleport 'Player1' to a place associated with the placeid 1818, with a customui with a textlabel with its backgroundcolour3 set to black, and text is 'Teleporting..'

teleport(1818,game.ReplicatedStorage.TeleportUi,game.Players.Player1)
0
Sir... why doesnt this work... using your answer doesnt work https://pastebin.com/raw/EW5dGRdd Kblow1 53 — 6y
0
And Also the game was published i just took it off Kblow1 53 — 6y
0
Because you were doing it wrong. Use this: https://pastebin.com/raw/NrvPNYUW Rare_tendo 3000 — 6y
Ad

Answer this question