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

How can I respawn everyone?

Asked by 10 years ago

I have a flaw apparently in my script, as I've tried it and it doesn't work.

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

If LoadCharacter() no longer works, is there another string I can use to replace it that works and that does the same as well?

2 answers

Log in to vote
0
Answered by
Reverge -1
10 years ago

Again.. It may not be your script. ROBLOX has recently patched noclip, speed, and nograv. When they patched these.. It effected a LOT of game scripts. I'm pretty sure they are fixing them but somethings work, some do not.

Ad
Log in to vote
0
Answered by 10 years ago

LoadCharacter still works. Use a generic for loop to loop through a table generated of only the Players in game.Players, using the GetPlayers method. Then, call the LoadCharacter method on all of them.

for _,v in pairs(game.Players:GetPlayers()) do
v:LoadCharacter()
end

Answer this question