last,
you can actually, because
function onSelected(mouse)
mouse.Icon = "rbxasset://textures\\GunCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
is the same thing as
onSelected = function (mouse)
mouse.Icon = "rbxasset://textures\\GunCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
so this code:
function a()
print ("in a")
function b()
print ("in b")
end
print ("after b")
end
a()
b()
results in
in a
after b
in b
however, as you know, if you declare function b as local, you'll get an error when you call b() outside of a().
|