Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Nil on join?

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)

2 comments

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.

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.

1 answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.