Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Help with a table value?

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

0

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.

1 answer

✓ Accepted answer

spawns[spawnindex]**See wiki.roblox.com for more information before posting. **

This discussion is preserved as it was. New answers, comments, and votes are closed.