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

How do I remove roblox's loading screen and put a custom one when teleporting?

Asked by 5 years ago
Edited 5 years ago

I tried almost everything for example in a server script that is inside ServerScriptService I put

game.ReplicatedFirst:RemoveDefaultLoadingScreen()
game:GetService("TeleportService").CustomizedTeleportUI = true

I also tried putting one in replicatedfirst too but it wont remove it for some reason

0
You use a LocalScript inside of ReplicatedFirst. User#19524 175 — 5y
0
Any UIs should be in ReplicatedFirst as well, and not in other areas, otherwise the benefit of ReplicatedFirst is lost. User#19524 175 — 5y
0
no work User#22788 5 — 5y

1 answer

Log in to vote
0
Answered by
iladoga 129
5 years ago

You can most certainly do this in roblox studio, you don't need to set any properties of teleport service or ReplicatedFirst. In fact its all done with Teleport service. You can teleport any player through client or server, (which I like about it. No hassle of making Remote events). For an example I set up a basic script that teleport you to another game with a custom loading screen, while you might thinks the loading screen is a decal its actually a GUI.

So here is my example

local plr = game:GetService("Players").LocalPlayer -- Player to teleport(usually defined as an arguement or parameter)
local PlaceId = 1330501612 --- PLace to teleport the player

script.Parent.TextButton.MouseButton1Click:connect(function()
    local TeleportScreen = game:GetService("TeleportService"):SetTeleportGui(script.Parent.Parent)
    game:GetService("TeleportService"):Teleport(PlaceId,plr,nil,TeleportScreen)
end)

This was a local script positioned inside the frame of a gui, again you can use this on client or server. You can get the player instance via a parameter or arguement but in this case I just used LocalPlayer.

ALSO CHNAGE THE PLACE ID THATS WHERE IT TELEPORTS YOU (I set it to a random place)

Enjoy!

Ad

Answer this question