Server Script
local explosion = Instance.new("Explosion")
explosion.DestroyJointRadiusPercent = 0
explosion.BlastPressure = 30
explosion.BlastRadius = 50
explosion.ExplosionType = Enum.ExplosionType.NoCraters
explosion.Parent = workspace
local debounce = true
explosion.Hit:Connect(function(hit, distance)
if debounce == false then return end
debounce = false
local human = hit.Parent:FindFirstChild("Humanoid")
if human then
human:TakeDamage(20)
wait(0.5)
end
debounce = true
end)
Each of the properties are defined for you in the script. the "hit" of the explosion is any basepart. Since the player's character is made up of more than one basepart, you will have to use a debounce to make sure that the damage is only taken once.
1 comment
u can make a explosion ur self aka a projectile