Here’s a snipet of the code that doesn’t seem to work:
FireballClone.Touched:Connect(function(Hit)
local HitCharacter = Hit.Parent
local Humanoid = HitCharacter:FindFirstChild("Humanoid")
local Debounce = false
if HitCharacter.Name ~= FireballClone.Name and Humanoid and Debounce == false then
Debounce = true
Humanoid.Health = Humanoid.Health - 20
end
end)
Any solutions?