Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3/1/11
#3
I hope that script fix helps with .Collided sometimes returning a nil instead of an object. This is what my .Collided function looks like:

function Touched(hit)
if hit and hit.Parent then
--Whatever happens here
end end

If it doesn't have that second line, it often crashes, saying it is trying to index a non-table (which I assume means nil).
Reply


Messages In This Thread
3/1/11 - by Jacob__mybb_import1 - 03-02-2011, 02:13 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)