Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Keep getting string error for 0 reason, is there even a fix for this?

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

0

The | devides the error and the reason.

0

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

0

Thank you. I thought IsA was only with a :. I changed it to IzA lol.

1 answer

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 - TTChaos

This discussion is preserved as it was. New answers, comments, and votes are closed.