-1
        if item:IsA("BasePart") then
            item.Color = Color3.new(1,0,0)

I want to make a mouse raycast to place colors on parts and it shows me this error. Error:attempt to index nil with IsA

I tried to change the script a bit and it ended up not working anymore.

1 Answers1

0

the variable "item" needs to be an Instance (example a part or object) the error is saying "item" is not an Instance please provide more information so we can help you : )

Obaid
  • 1
  • 1