Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My Image won't come up after teleport (Read Description)?

So what im trying to do is Im trying to make a custom gui when its teleporting not roblox's boring grey screen you see when you teleport. But when I added variable on the teleport button which means Frame a frame I made so that It shows up when I teleport. Roblox's screen dosen't show which is good but all I see is the sky when I teleport not the Image ALSO THERE ARE NO ERRORS HAPPENING IN THE OUTPUT

local teleportservice = game:GetService("TeleportService")

local place = 2476193997

local player = game.Players.LocalPlayer



Frame = script.Parent.Frame
WaitFrame = script.Parent:WaitForChild('Frame')
ImageLabel = Frame:WaitForChild('ImageLabel')

rs = game:GetService("RunService").RenderStepped

Startbutton = script.Parent.Parent.ScreenGui.Part -- the button when it clicks it gonna teleport






Startbutton.MouseButton1Click:Connect(function()
    local teleportscreen = game:GetService("TeleportService"):SetTeleportGui(Frame) -- Frame is defined to make it show
    wait(2) -- I just thought wait would fix it
    teleportservice:Teleport(place,player,nil,teleportscreen) -- teleport screen is a frame as defined above
end)

12 comments

0

What errors came up

0

None

0

You can press some buttons like F9 or Shift + F9 idk to bring up the console i guess it would be a way to get more information about this

0

But any Idea the Frame won't come up when teleportation starts im not talking about like when you press it and your still in game i'm talking about when you are teleporting going to another place

0

What you can do is check how your frame looks like and also the important bit is to simply check the gui and how it loads because if the normal loading thing is gone then on the new place hoping that it's one of your own or your friends you can add a gui there in rep first and make a loading screen essentially ?

0

Lol you didn't get my point i said the console because you can open it once you're in the new place it's just like the output but it doesn't matter tbh

0

Cool

0

when I open up dev console it saids 06:56:54 ReplicatedFirst.LocalScript

0

Was it red or orange line

1

red

0

Youvknow what good job for opening console and reading it nicely you're a natural and secondly it means there's something wrong with a script or a script is conflicting with it

1 answer

Alright, I joined you in game and you said the frame is in a gui. What I suggest doing is creating a screengui + a frame + all whatever you doing and then put it in the replicated storage.

Roblox Api for this: Teleport stuff

local TPService = game:GetService("TeleportService")
local LoadingGui = game.ReplicatedStorage:WaitForChild("LoadingGui")
local TeleportScreen = TPService:SetTeleportGui(Frame)

-- teleport the player
teleportservice:Teleport(placeID,game.Players.LocalPlayer,nil,TeleportScreen)

-- sen_trix :)

This discussion is preserved as it was. New answers, comments, and votes are closed.