So how do I check if a player has finished loading in on this loading screen you get when you join a game: https://gyazo.com/02ae8a147bc4a1e37a5f610e06850a88
repeat wait() until game.LocalPlayers.Character
This waits forever until the LocalPlayers character model is spawned in.
Solution:
It's simple, if you want to wait until the character has been added. Just use the Character Added
event! However, you need to identify the Player
somehow before-hand. I have no idea what kind of script you are using but, I am going to assume you are using a Local Script
.
local plr = game.Players.LocalPlayer -- Variable for player(Only used in local scripts)! plr.CharacterAdded:connect(function(char) -- Anonymous function! repeat wait() until char -- Repeat until statement! -- Code end) -- end with closing parenthesis at the end to close the Anonymous function!
More information on CharacterAdded events go here:
http://wiki.roblox.com/index.php?title=API:Class/Player/CharacterAdded
Hope I helped, and thank you for using your time to read this answer!
~~ KingLoneCat