1 | function lightOnFire() |
2 | print ( "Lighting on fire!" ) |
3 | end |
I essentially answered this in your last post
1 | Part.Touched:connect( function (touchedPart) |
2 | print (touchedPart.Name) -- This is what I wrote before. |
3 | print ( "Lighting on fire!" ) -- This is what you wanted... Not very hard to change. |
4 | end ) |
Alternatively, you can write this:
1 | local function lightOnFire(touchedPart) |
2 | -- Do your thing. |
3 | end |
4 |
5 | Part.Touched:connect(lightOnFire) |