whats is game.Loaded
do?
so i make loading screen, if it loaded and doesnt grey, it invisible
but i dont know what game loaded do…
are it used for Normal Roblox Loading or wait until the game character or models isn’t grey??
whats is game.Loaded
do?
so i make loading screen, if it loaded and doesnt grey, it invisible
but i dont know what game loaded do…
are it used for Normal Roblox Loading or wait until the game character or models isn’t grey??
game.Loaded
Can only be used on the Client. It’s a Signal that only fires whenever the game actually loads. (Note that it only fires once)
You would need to put a Script inside ReplicatedFirst and check wether the game loads. (e.g: if not game.Loaded then game.Loaded:Wait()
)
Another thing you should consider is that there’s no promises that it’ll only fire when the character (or whatever else) gets loaded. This is fired when the game internally loads or plenty most of the game assets are loaded.
so, game.Loaded
is only for Default Roblox Loading?
Nope. This also goes for your game loading. Roblox uses the loaded Signal too. But you would need to remove the Default Loading Screen before implementing that into your game.
This can be done by putting the LocalScript inside ReplicatedFirst and use the same service for removing it via a function.
-- Assuming this is the LocalScript inside ReplicatedFirst...
local ReplicatedFirst = game:GetService("ReplicatedFirst")
ReplicatedFirst:RemoveDefaultLoadingScreen()
-- Other code from now...
i already put it, so if i make loading screen, can i use game.Loaded
then?
game.Loaded is a boolean value that returns true if the game is loaded, and false if it isn’t.
Yes. You can. But you would need to follow my steps and control your Custom Loading Screen from ReplicatedFirst. There’s alot of tutorials on the DevForum and outside of it which can teach you how to do so.
its event, that can fire when use connect
It could also be that.
i hate limit
says if clients game is loaded duh
repeat waif() until game:IsLoaded
game.Loaded
is not a boolean, its a RBXScriptSignal
. If you want to check if a game is loaded, use game:IsLoaded()
.
if not game:IsLoaded() then game.Loaded:Wait() end -- If the game is not loaded, waits until it loads
“This event fires when when all initial Instances
in the game have finished replicating to the client.” - Wiki. For detecting when character is loaded, you can use Player.CharacterAppearanceLoaded
event.