hello! i have a problem today and need help solving it basically
im trying to make it so after the loadingscreen is finished it will load the menugui
the problem is i don’t get errors even though it won’t appear
i couldnt think of any solutions
it says its enabled but it wont show up
local bar = script.Parent.Background:WaitForChild('Bar')
local percentage = bar:WaitForChild('Percent')
wait(2)
for i = 0, 100 do
wait(0.08)
percentage.Text = i..'%'
end
wait(2)
game.StarterGui.ScreenGui.Enabled = true
script.Parent.Parent = game.ReplicatedStorage
StarterGui is actually just a folder in which the contents get copied when a player joins the server. The folder you’re looking for is called PlayerGui and can be found as a direct child of the Player.
i will try it im gonna read how it works
Update i still don’t understand how it works
You should be referencing the LocalPlayer's PlayerGui, as the StarterGui is used for both a reference from the server-side, & cloning into other PlayerGui’s whenever they join the game
local Player = game.Players.LocalPlayer
local ScreenGui = Player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui")
local bar = script.Parent.Background:WaitForChild('Bar')
local percentage = bar:WaitForChild('Percent')
wait(2)
for i = 0, 100 do
wait(0.08)
percentage.Text = i..'%'
end
wait(2)
ScreenGui.Enabled = true
script.Parent.Parent = game.ReplicatedStorage
Do keep in mind that you have to do this through a LocalScript in order to obtain the LocalPlayer’s Gui, otherwise it won’t work
2 Likes
i think it worked i also used a localscript
Did it properly show the loading screen & finish it? If it did, do make sure to mark the post as a solution
Otherwise, chances are it could be possible that the loading screen is disappearing too fast ahead of time before the player begins to fully load in
yeah it did stop loading after 100 percent and the menu gui popped up