Hi, so I'm currently doing this Wiki tutorial - http://wiki.roblox.com/index.php?title=Making_an_Explosion_Course
So in the workspace, there are 5 parts named "ExplodePart" and the goal is to make them all explode.
[The problem:] I am having trouble understanding parameters and its role in this code below. For example in line 1 "function ExplodePart(part). What does (part) represent or mean? What does it do? What is it referring to in the workspace?
[CODE:]
function ExplodePart(part)
local explosion = Instance.new("Explosion", game.Workspace)
explosion.Position = part.Position
end
children = game.Workspace:GetChildren()
while true do
for _, child in ipairs(children) do
if child.Name == "ExplosionPart" then
ExplodePart(child)
end
end
wait(1)
end
