How can I enable a damage indicator only when attacking NPCs?

How can I implement your way into my code?

you can put a bool value inside your npc and check if it has that bool value before enabling your damage indicator

Yes I know what to do its just how can I implement this into my code. Ive tried implementing it but it doesn’t work. Can you help me?

Just as i said yesterday, whenever you damage someone do

if theThingYouHit:FindFirstChild("IsNpc") then
    if thethingYouHit.IsNpc == true then
        -- show dmg
    end
end

You need the bool value as true

Ok I will do that.

Thankyou a lot.

1 Like