I'm quit new to Lua Coding and just started on following the scripting tutorial made in the wiki. I'm a curious learner and like things to specific so everything would make sense. This is just a simple newbie question, so it would be really great if you can help me out :D
In the script tutorial: http://wiki.roblox.com/index.php?title=Making_an_Explosion_Course It gave this as it's finished code:
children = game.Workspace:GetChildren()
while true do
for _, child in ipairs(children) do
if child.Name == "ExplosionPart" then
explosion = Instance.new("Explosion", game.Workspace)
explosion.Position = child.Position
end
end
wait(1)
end
On line 3 of this code, the author gave it 2 variables, which is a "" and "child", however he doesn't use the "" variable at all instead only uses 1 variable. Why is that?
Also, I would like to clarify what the variable is there for. What value is being given to the two variables, without knowing the content of the variable I can't really make use of what it is.
Sorry for poorly explaining it, my English is not great and I'm still new. I'm a curious learner and like things to make sense.

1 comment
Thanks so much :D, this showed me the difference between an index and value type variables and the universal "blank" variable. This helps a lot :D