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

:LoadCharacter breaking help?

Asked by
NotSoNorm 777 Moderation Voter
9 years ago
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

0
Sorry I didnt use your for i loop.. but I honestly hate them. MessorAdmin 598 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago

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 
Ad

Answer this question