There is an error somewhere in my scripts, but I can't find it

I am trying to make a sword by watching a tutorial I found, but there is an error I can not find, since I’m new tot scripting. Can someone please help? I have tried making the animation and avatar different, but that didn’t work. (The current avatar type is R6)

The Scripts:

Attack

Damage

Edit: The animation is currently called attackAnim, not attack.

Thanks!

the Attack script needs a space between if and cooldown. Edit: there is also the fact the you didn’t properly capitalize Value and have it as value.

1 Like

Value doesnt need to be capitalized. Roblox catches the the un-capitalized property when you try to index it.

2 Likes

Oh yeah, I did put the space in between, I just used the wrong image. I capitalized the values but it still doesn’t work.