Hello,
This for loop is not working, it doesn't even print anything.
Why isn't it working? If it's not the correct method then what do I need to do? FireAllClients and use a local script?
local plrs = game.Players:GetPlayers() -- Also tried :GetChildren()
for i,v in pairs(plrs) do
local Spawn = game.Workspace[currentMap.Name].Spawn
print(currentMap.Name)
v.Character.Torso.CFrame = CFrame.new(Spawn.Position)
Spawn:Destroy()
v.Character.Humanoid.Walkspeed = 0
wait()
print(v.Name)
end
I also tried the
for i = 1,#plrs do
local Spawn = game.Workspace[currentMap.Name].Spawn
print(currentMap.Name)
plrs[i].Character.Torso.CFrame = CFrame.new(Spawn.Position)
Spawn:Destroy()
plrs[i].Character.Humanoid.Walkspeed = 0
wait()
print(v.Name)
end

5 comments
Does it return an error? I'm going to review your code.
Nothing on output
Is it at the start of the script? If it is, there will be no players when the script first runs.
No it has 3 waits of 5 seconds each before it reaches the loop.
I feel like you are not suppporting both R15 and R6 rigs. Use HumanoidRootPart instead of Torso since Torso is only at R6.