Hello everybody. So I want to teleport players to a brick. But the script below only teleports 1 player in the server. And not everyone. How do I fix it? Thanks.
--spawns is the part i want people to teleport to
spawns = game.Workspace.spawns
for i,v in pairs(game.Players:GetPlayers()) do
local name = v.name
local checkplayer = check:FindFirstChild("Humanoid")
if checkplayer then
v.Character.HumanoidRootPart.CFrame = spawns.CFrame

1 comment
Correction: Line 6 is local checkplayer = v.Character:FindFirstChild("Humanoid")