UI Frame not showing up on the screen

Hello!

I have made a script where when the script recieves the remote event, it teleports the player to another game place and makes a frame visible. However the frame does not become visible. I have also added prints in the script and that works fine.

Furthermore, when I look in the explorer the frame is visible, but it is not showing on my screen when i play test it. Any Help?

local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local MMlogo = script.Parent
if MMlogo then
	print("MMlogo")
end
MMlogo.Visible = false

local TeleportPlayerRemote = ReplicatedStorage.TeleportPlayer
local placeId = 127328420928633 

TeleportPlayerRemote.OnClientEvent:Connect(function()
	print("teleported")
	local player = Players.LocalPlayer
	MMlogo.Visible = true
	print("MMlogo visible")
	
    TeleportService:Teleport(placeId, player)
end)

Output
Screenshot 2024-12-26 103316

3 Likes

Where is this script located? inside the teleport game or in the parent game? and where is the frame you want to make visible? again inside the teleport game or the parent game?

1 Like

Here’s a picture of the explorer. I want to make the MMLogo visible and the script is called TeleportScript

image_2024-12-26_103838271

1 Like

The logo to be visible when the player joins? or when the player is teleporting or before the teleport, sorry Im asking so many questions, im just trying to understand the situation.

When i checked in the explorer, the MMlogo is already visible but it doesn’t show on my screen. The logo is to be visble when the remote event has been recieved. And the MMlogo is to be invisible when the player joins.

1 Like

It may be that you’re teleporting the player right after you set the logo to visible. But it does teleport the player, correct?

Yes it does teleport the player. Though it takes a long time to teleport the player, so i made the MMlogo to tell the player that they are loading.

very interesting, I don’t really see an issue in your script, add if statements to check if its visible, add more print statements.

Everything seems to be working. its just I can’t see the MMlogo on my screen, even though it says its visible.

1 Like

add this at the top, I would also try to add a task.wait(0.1) before teleporting, just to make sure it actually has time to run.

if not MMlogo then
    warn("MMlogo not found!")
    return
end
1 Like

I did what you told, but I still cannot see the MMlogo.

Interesting, check if the image is transparent rather than visible, alternatively I would set a custom teleport UI, you can use TeleportService:SetTeleportGui(). But it might not be what you want.

Nope all of the gui’s are set to 0 for transparency.

1 Like

Im out of ideas then, the script seems to be fine, if the rest of the properties are to what they should be, there shouldn’t be a problem, maybe try to teleport them on the server and send a remote to show the UI? Im not sure how else otherwise.

1 Like

It may work on roblox but not on roblox studio. Because you can only teleport in roblox not studio.

1 Like

I put the MMLogo in its seperate screengui and it worked!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.