I am completely stumped here my cantouch value is true the only thing I can think of is my part is a meshpart and its being tweened at the same time. Anybody know what the issue could be?
The word “Humanoid” has to be capitalized correctly. You typed in “humanoid” when it should be “Humanoid” and also you added the keyword “not” which even if you spelled it correctly, your code would only run if the part’s parent didnt have a Humanoid (@astraIboy noticed this).
Here’s what you typed:
if not hit.Parent:FindFirstChild(“humanoid”) then
Try removing the “not” out of your if statement (credits to @astraIboy for pointing it out at first). Unless you’re not trying to detect a Character, then disregard this response.
Try printing the part that collided’s (hit) name. See if the parent is colliding or if it’s the child.
You seem to include “spike” which would usually be just one part (at least I think), so if it’s the spike that’s colliding then you could change it to
Are you certain you are touching the correct one? You have 2 named the same. Could be the issue.
Try renaming them to by adding 1 and 2 at the end and checking then.
Edit: 4 AM and I can’t read. I thought both are named Spike lol
Edit2: I mean Base
Do you mind printing before the .Touched function?
print(Base:GetFullName()) and make sure it’s the correct one you’re trying to touch?
The problem isn’t that it’s on a LocalScript.