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.
spawns[spawnindex]
**See wiki.roblox.com for more information before posting. **