You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? I want to make it show the UI quickly after player joined.
What is the issue? The loading frame shows only after a delay of time, like after the character is loaded or something like that.
What solutions have you tried so far? I have tried to put the localscript on ReplicatedFirst
Here is a video:
local player = game.Players.LocalPlayer
local function showLoadingFrame()
local loadingFrame = player.PlayerGui:WaitForChild("MenuGui").LoadingFrame
loadingFrame.Visible = true
end
showLoadingFrame()
It’s a loading frame and menu frame inside the same ScreenGui. (and yeah, I understand what you meant, but I just want to visible that loading frame because I’ve made it invisible)
All you need to do is make the loading frame visible (not in the script) and when things are loading turn off visibility and turn on visibility for menu frame.
If you want the loading frame to show up quickly after the player joins, you can try placing the LocalScript that runs the code in the ReplicatedFirst service.