Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Nil on join?

Asked by
rootx 15
10 years ago

I'm trying to make it so the game loads but the player doesn't. When I disable CharacterAutoLoads it says 'Waiting for character'

here's the script

game.Players.PlayerAdded:connect(function(player)
script.LocalScript:clone().Parent = player.CharacterAdded:wait()
player.Character = nil
end)
0
You don't want the character to load but the player loads.The player has to load for the person to enter a server. Kozero 120 — 10y
0
The easiest way to do this is to clone the character to lightning and then destroy the copy that is in the Workspace. That's if you want to add if back later. If not, don't copy it, just destroy it. FearMeIAmLag 1161 — 10y

1 answer

Log in to vote
0
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
10 years ago
game.Players.PlayerAdded:connect(function(player)
script.LocalScript:clone().Parent = player.CharacterAdded:wait()
repeat wait() until player.Character.Torso~=nil --See if this helps.
repeat wait() until player.Character.Head~=nil
repeat wait() until player.Character.Humanoid~=nil
player.Character = nil
end)
Ad

Answer this question