I’m having trouble trying to identify if an instance doesn’t have a tag. Here is my code:
lefthand.Touched:Connect(function(Object)
if PunchType == 1 and Cooldown == true and Object.Parent:FindFirstChild("Humanoid") and Debounce == false and CS:HasTag("Dropper") == nil then
Debounce = true
local HitPlayer = Object.Parent
Damage(HitPlayer)
end
end)
I’ve looked around on the forum & read through the CollectionService documentation but cannot find the answer to my question. Thanks for the help
Believe that you need to include the name of the tag you want to check for, according to the Documentation? I believe HasTag returns a Boolean value whenever it checks if an object has a tag.
…
Object.Parent:FindFirstChild("Humanoid") and Debounce == false and not CS:HasTag(Object, "Dropper") then
…