whenever I load into my game this screen pops up for a while
I know its because the game is loading everything and the player character isn’t loaded yet.
How do I make a script to wait for the character to load first.
whenever I load into my game this screen pops up for a while
I know its because the game is loading everything and the player character isn’t loaded yet.
How do I make a script to wait for the character to load first.
You could do Player.CharacterAdded
or just enable streaming which fixes this loading time issue.
You could use Player.CharacterAppearanceLoaded
streaming is enabled. is there specific settings I should be using?
Add a gui that covers the entire screen and then you can use Player.CharacterAdded
or Player.CharacterAppearanceLoaded
to make the gui dissapear.
CharacterAdded:
local gui = -- Set this to the gui that covers the screen
-- Example: game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame
game.Players.LocalPlayer.CharacterAdded:Connect(function()
gui.Visible = false
end)
CharacterAppearanceLoaded:
local gui = -- Set this to the gui that covers the screen
-- Example: game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame
game.Players.LocalPlayer.CharacterAppearanceLoaded:Connect(function()
gui.Visible = false
end)
CharacterAdded
fires whenever the player’s Character
gets added. It’s kinda like PlayerAdded
except PlayerAdded
fires whenever the LocalPlayer
gets added to the game. CharacterAppearanceLoaded
fires whenever the Character
finishes loading its children, stuff like accessories and clothing.
Credits to @SubtotalAnt8185 and @Off_Quebec since they came up with the idea first.