i had a similar issue where this same exact error would pop up even though i had a nil check
the only thing i could think of that would cause this is if Mouse.Target changed before it got to Mouse.Target.ClassName and therefore the new target was probably nil which caused the error
i fixed my error by setting mouse.Target to a variable, like target = mouse.Target and then doing if statements on the target variable because it won't change once you set it, unlike using mouse.Target which might change before the function ends
|