Any idea why this will not work?
local players = game:GetService("Players")
local spawnParts = workspace:WaitForChild("SpawnPs")
local spawns = spawnParts:GetChildren()
game.workspace.GameStats.GameRunning.Changed:Connect(function()
if (game.Workspace.GameStats.GameRunning == true) then
for _, player in next, players:GetPlayers() do
local torso = player.Character and player.Character:FindFirstChild("Torso")
if torso then
local randomCF = spawns[math.random(#spawns)].CFrame
torso.CFrame = randomCF
end
end
end
end)
Any help is appreciated!
