Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
10/14/10 #2 - Events
#3
Use link(object.event, function) to connect an object's event to a function. The function should take 1 argument, which will be the other part it collided with.

Code:
link(script.Parent.Collided, function(h)
print(script.Parent.Name.." collided with "..h.Name)
end)
Reply


Messages In This Thread
10/14/10 #2 - Events - by Jacob__mybb_import1 - 10-15-2010, 12:06 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)