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

Hide Teleporting To Places?

Asked by
Lacin1a 12
5 years ago
Edited 5 years ago

I'm developing a game where the player is teleporting to different places (under one game). I was wondering if there is a way to hide the screen showing the place name and who its by. I currently use a script that makes a ScreenGUI Frame to appear and thats it.

Script For Making GUIs appear when touching a part

script.Parent.Touched:connect(function(hit)
 if hit.Parent:FindFirstChild('Humanoid') then
  game.Players:GetPlayerFromCharacter(hit.Parent).PlayerGui.ScreenGui.Frame.Visible = true
  game.Players:GetPlayerFromCharacter(hit.Parent).PlayerGui.ScreenGui.ImageLabel.Visible = true
  game.Players:GetPlayerFromCharacter(hit.Parent).PlayerGui.ScreenGui.TextLabel.Visible = true
 end
end)

Script For Teleporting To A Place

local TeleportService = game:GetService("TeleportService")
local placeID = 3217710173

local function onPartTouch(otherPart)
wait(2)

    local player = game.Players:GetPlayerFromCharacter(otherPart.Parent)
    if player then
        TeleportService:Teleport(placeID, player)
    end
end
script.Parent.Touched:Connect(onPartTouch)

I want it to act a lot like Vesteria's Teleporting system.

1 answer

Log in to vote
0
Answered by 5 years ago

If you would like to learn how to implement Custom Loading Screens to your game, here is a link to the Roblox Developer Hub on Custom Loading Screens.

What you should learn from this page is how to remove Roblox's default loading screen you see after pressing Play on your game page. You will also learn how to display your own load screen while teleporting to places within your game universe. I do not believe you are able to add your own load screen if you are teleporting to a place that is not your own. (load screen for teleport is on the bottom of the page)

Ad

Answer this question