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

:LoadCharacter breaking help?

g = game.Players:GetChildren()
for i = 1, #g do
	if g[i]:IsA("Player")
		then
		g[i]:LoadCharacter()
	end
end

error: LoadCharacter can only be called by the back end server

it's a normal script in workspace

1 comment

0

Sorry I didnt use your for i loop.. but I honestly hate them.

1 answer

Im just gonna give you a better performance loop..

for i,v in next,game:GetService("Players"):GetPlayers() do --make a table and get the data inside
	if v then -- check
		v:LoadCharacter()
	end
end 

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