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

How can I make everybody in workspace respawn? [Unsolved!]

Asked by 10 years ago

How can I make everyone in workspace removed from workspace then in the amount of time given they respawn?

2 answers

Log in to vote
1
Answered by 10 years ago
for i,v in pairs(game.Players:GetPlayers()) do
v:LoadCharacter(true)
end
Ad
Log in to vote
-3
Answered by 10 years ago
local waitTime = 60 -- how many seconds before respawn

for i,v in pairs(game.Players:GetChildren()) do 
    if v.Character.Parent == game.Workspace then
        clone = v.Character:Clone().Parent = game.Lighting
        v.Character:Destroy()
    end
    wait(waitTime)
        for _,plrs in pairs(game.Lighting:GetChildren()) do
            if plrs:IsA("Model") then
                plrs.Parent = game.Workspace
        end
    end
end




0
Dont get it? PancakeAttacks 0 — 10y

Answer this question