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
11 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

1game.Players.PlayerAdded:connect(function(player)
2script.LocalScript:clone().Parent = player.CharacterAdded:wait()
3player.Character = nil
4end)
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 — 11y
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 — 11y

1 answer

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

Answer this question