Hello! I want to find out why my humanoid takes damage from itself while trying to get rid of the “Bullet” part after it touches any part other than humanoid
- This is from a projectile script
- I’m new to the FastCast thing
local hit = result.Instance
local character = hit.Parent
if hit ~= nil and hit.Parent ~= nil then
local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid:TakeDamage(10) -- Damage.
bullet:Destroy()
end
game:GetService("Debris"):AddItem(bullet, 2)
end
end)```