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