#Okay so i stepped onto other problem, my explosion just doesn't do damage, thanks in advance!
5 messages · Page 1 of 1 (latest)
local Tool = script.Parent
local Handle = Tool.Handle
local ExplosionPart = Handle.Explosioneffect
local ExplosionEffect = Handle.Explosioneffect.Explosion
local sound = Tool.Handle.Sound2
local explosionSound = Tool.Handle.Explosion
local ToolClick = 0
Tool.Activated:Connect(function(plr)
sound:Play()
Handle.Size = Handle.Size + Vector3.new(0.1, 0.1, 0.1)
ExplosionPart.Size = ExplosionPart.Size + Vector3.new(0.3, 0.3, 0.3)
ToolClick += 1
if ToolClick == 100 then
explosionSound:Play()
ExplosionEffect.Enabled = true
wait(0.5)
ExplosionEffect.Enabled = false
local explosion = Instance.new("Explosion")
explosion.Position = Handle.Explosioneffect.Position
explosion.DestroyJointRadiusPercent = 0
explosion.BlastRadius = 20
explosion.BlastPressure = 0
explosion.Parent = workspace
explosion.Hit:Connect(function(hitPart)
local humanoid = hitPart.Parent:FindFirstChildWhichIsA("Humanoid")
if humanoid and humanoid.Health > 0 and hitPart.Name == "HumanoidRootPart" then
humanoid:TakeDamage(500)
end
end)
Tool:Destroy()
end
end)```
what's wrong here??
if someone helped me, i would be really grateful!
👍
** You are now Level 3! **