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

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

Asked by 5 years ago
Edited 5 years ago

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)
0
What errors came up xxcoordinatorxx 135 — 5y
0
None User#22788 5 — 5y
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 xxcoordinatorxx 135 — 5y
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 User#22788 5 — 5y
View all comments (8 more)
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 ? xxcoordinatorxx 135 — 5y
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 xxcoordinatorxx 135 — 5y
0
Cool xxcoordinatorxx 135 — 5y
0
when I open up dev console it saids 06:56:54 ReplicatedFirst.LocalScript User#22788 5 — 5y
0
Was it red or orange line xxcoordinatorxx 135 — 5y
1
red User#22788 5 — 5y
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 xxcoordinatorxx 135 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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 :)
Ad

Answer this question