My UI Isn't appearing while the Visible Property is true

Yeah I just tried and it still won’t appear. I set it to 100 for both X,Y.

2 Likes

Also, you only need to do scale if you want it to fit the whole screen for any devices. (1,0,1,0)

1 Like

maybe you should learn from @Quwanterz instead of me

Yeah I just tried thanks for that useful information. But the UI still isn’t appearing?

Thanks For Trying :slight_smile:

1 Like

Are you sure? Can you please show the new UI property?

Is the ScreenGUI Enabled property set to true?

1 Like

It says visible and I even input the same size numbers that you gave me.

Yes Indeed it has enabled set to true.

I’ve even set a print(“Completed”) for debugging reasons and it has been printed out. Its placed after the Events been fired

  1. Why are you setting the UI to enabled in the server?

  2. Setting the visibility in the StarterGui won’t change to the player’s, the GUIs will get replicated to the PlayerGui in the Player service. Did you set the visibility of the GUI from the player’s GUI?

5 Likes

I’ve tried multiple ways including you’re suggestion. It just has the boolean true for the visible property and I really don’t know why its not appearing? One more thing to add is that this issue started happening to me today. Couple other days the same code I’m using right now worked perfectly.

You really didn’t answer my questions, may you please answer them?

Yeah I stated I’ve tried multiple ways including you’re suggestion, I apologize for the misunderstanding. And for the 1st question I didn’t really know that it mattered that It’s set to the server.

GUIs should always be handled on the client, and you need to change your code to set the GUI visibility to the client. The GUI is being clone or replicated to the Player’s PlayerGui, so you can find it there.

LoadingScreen.OnServerEvent:Connect(function(player, UI)
UI.Visible = true
end)

Correct me if I’m wrong, but you cant change a UIs visibility via the server. You would have to fire the remote FROM the server TO the client, and then change their visibility.

Ok Thanks for helping I will try you’re solution and hopefully It can work.

I don’t actually understand why you’re firing a remote anyways. If your plan is to make a character walk to another position via local script, then at the same time, you can alter their UIs as well. Something like the following:

-- All of this goes inside a local script inside the player
    local Teleporter = game.Workspace.Teeportere
    local Player = game.Players.LocalPlayer
    local location = game.Workspace.Locatio
    local RS = game:GetService("ReplicatedStorage")
    local LoadingScreen = RS:WaitForChild("LoadingScreen")
    local UI = Player.PlayerGui.Loading:WaitForChild("Frame") --notice this change as well, you were changing the wrong UI

–Anything from “StarterGui” gets replicated into the player as a clone. so when you changed the UI in StarterGui, it was too late, the previous copies were already added to the clients.

function LoadingScreen (bool)
 UI.Visible = bool
end
    Teleporter.Touched:Connect(function(hit)
    	if hit.Parent:FindFirstChild("Humanoid") then
    		game.Players.LocalPlayer.Character:MoveTo(location.Position + Vector3.new(0,20,0))
    	end
    	wait(.05)
    	Fade(true) -- turns on/off the loading screen
    end)

P.S. Wrote all of this inside devforums, there might be errors.

1 Like