if hit.Parent.IsA.Value == "Tree" then
Error: Workspace.Aeroporia.Rock.Script2:5: attempt to index function with 'Value' | Theres a String Value named IsA(i know it sounds like :IsA but I put a dot on purpose)and the value is Tree. I don't know why this isn't working it makes 0 sense for me.

3 comments
The | devides the error and the reason.
If you name "IsA" something else, you won't get the error. The script is giving you the reason because it's mixing the two up
Thank you. I thought IsA was only with a :. I changed it to IzA lol.