On line 25, the script gives the error of attempt to index a nil value - Stack Begin.
The script is suppose to loop through so for do loops, and then put the players onto there respective pads.
--//Services//--
local players = game:GetService('Players')
--//Variables//--
local timeInt = 60
local intTime = 60
local pretime = 10
--//Round Objects//--
local status = game.ReplicatedStorage.Status
local spawnPoints = game.Workspace:FindFirstChild('Spawnpoints')
--//Main//--
while wait() do
for i=intTime,1,-1 do
wait(1)
status.Value = 'intermission'
end
local currPlayers = {}
for i,Player in pairs(players:GetPlayers()) do
table.insert(currPlayers,Player)
end
for i,Player in pairs(currPlayers) do
Player.Character:SetPrimaryPartCFrame(spawnPoints:FindFirstChild('Points' ..i).CFrame + Vector3.new(0,3,0))
end
for i=pretime,1,-1 do
status.Value = 'prematch'
wait(1)
end
for i=timeInt,1,-1 do
wait(1)
status.Value = 'game'
end
end
THANKS! :D
