Hi, i have make a list of a boss in my server, when a player attack a boss i want to check if the specific boss is in the list, i have make this:
local list = {
"Fox",
"Yeti",
"Crocodile",
"Pharaoh"
}
When the player attack the boss i have this condition:
if table.find(list, HitParent) then
print("Rangeboss")
HitParent = the name of the boss when the player attack, so for exemple HitParent = Fox
But the print is’nt fire ^^ maybe my condition is not exactly, somebody have a solution for check the name of the boss in the list ?

1 comment
It's probably not the table.find part, maybe it's something else with your code? Try posting the whole thing so we can check if there's an error somewhere that's causing it to not print.