grandFireball.Touched:Connect(function(Touched)
if Touched.Parent.Name ~= player.Name then
local Humanoid
if Touched.Parent:IsA("Accessory")then
Humanoid = Touched.Parent.Parent.Humanoid
elseif Touched.Parent:IsA("Model")then
Humanoid = Touched.Parent.Humanoid
end
if Humanoid ~= nil then
Humanoid:TakeDamage(5)
grandFireball:Destroy()
end
end
end)
The script works and damages the dummies however I was testing and to see if it would damage me and it does and I do not want that happening.

2 comments
Ah okay
Please accept the answer @LL0YD01