Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with a table value?

Asked by 10 years ago
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.

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. M39a9am3R 3210 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago

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

Ad

Answer this question