03-02-2011, 02:41 PM
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).
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).