Wow, I have been asking a lot of questions. Anyways, I have been making a game like Dungeon Quest, but for some reason the damage doesn't work. It damages the users, but not the bots, which is a big issue for me.
This is the touched function, triggering it so it hurts the bot, but it hurts the player and not the bot.
bomb.Touched:Connect(function(hit)
local debounceTwo = false
if hit ~= player.Character then
if hit == player.Character.Torso then
if debounceTwo == false then
print("Before Damage")
debounceTwo = true
hit.Parent.Humanoid:TakeDamage(50)
wait(3)
debounceTwo = false
print("Taken Damage")
end
end
end
end)
