.Hit not working, if you solve my problem you get +100 social credits

The fireball damages normally, and i have other spells that are local scripts and they deal damage

1 Like

They only will deal damage on the client. Use remote events

1 Like

Create the explosion when the part is touched not when the script starts. Example:

Fireball.Touched:Connect(function()
	local Explosion = Instance.new("Explosion")
	Explosion.Parent = Fireball
	Explosion.Position = Fireball.Position
	Explosion.BlastPressure = 500
	Explosion.BlastRadius = 3
	Explosion.ExplosionType = Enum.ExplosionType.NoCraters
	Explosion.DestroyJointRadiusPercent = 0
	Explosion.Hit:Connect(function()
		--Stuff
	end)
end)
2 Likes
boom.Hit:Connect(function(Hit, Distance)
    if(Hit.Parent:FindFirstChild("Humanoid"))then
        local Humanoid = Hit.Parent:FindFirstChild("Humanoid")
        Humanoid:TakeDamage(50)
    end
end)
1 Like

If this is running on the client make sure to handle all of this on the server and not the client using remote events.

1 Like