local spawnsmodel = newmap:WaitForChild("Spawns")
local spawns = spawnsmodel:GetChildren()
local spawnindex = math.random(1, #spawns)
local spawn = spawns(spawnindex)
ServerScriptService.MainScript:163: attempt to call local 'spawns' (a table value)
I don't know why this dosen't work.

1 comment
I don't see why people were downvoting this question, it was a simple mistake but it even took me a little bit to figure it out, and I am willing to bet the people who downvote this question didn't see the problem either.