Can you use this script to broaden the scope of Take Damage?
function onLeftDown(mousePos, hitDistance, blastCenter)
local AttackPower = 1
local AttackDamage = 100
local AtackRechargeTime = 3
local AttackRecharge = 1/AtackRechargeTime
local AttackSpeed = 256
wait(0.05)
local bomb = getbomb()
bomb.CFrame = CFrame.new(getPlayer().Character.RightHand.Position, mousePos)
bomb.Velocity = bomb.CFrame.lookVector * AttackSpeed * AttackPower
local touched
touched = bomb.Touched:connect(function(part)
if part:IsDescendantOf(Tool.Parent) then return end
if contains(Knives, part) then return end
bomb.Transparency = 1
bomb.a["Barrage [A]"]:Emit(50)
bomb["Explosions 9 (SFX)"]:Play()
local w = Instance.new("Weld")
w.Part0 = part
w.Part1 = knife
w.C0 = part.CFrame:toObjectSpace(bomb.CFrame)
w.Parent = w.Part0
local SplashDamage = 150
local Radius = 49.5
local GrenadeArmorFactor = 50
local waitvalue = 1 -- Time to wait each time for dealing damge
local damage = 10 --Damage dealt
local maxdistance = 2512 -- Max studs between the part and the characterChildWhichIsA("Humanoid") and
local Used = false
local SplashDamage = 100
local Radius = 50
local GrenadeArmorFactor = 0
local Debris = game:GetService("Debris")
if part.Parent:FindFirstChild("Humanoid") then -- checks if humanoid exists within the character
local character = part.Parent -- creates a variable of the character
local player = game.Players:GetPlayerFromCharacter(character) -- gets the player
if player then -- makes sure the player exists
getPlayer().leaderstats.BOMB.Value += 1
end
end
touched:disconnect()
end)
table.insert(Knives, knife)
knife.Parent = workspace
game:GetService("Debris"):AddItem(knife, 1)
Remote:FireClient(getPlayer(), "PlayAnimation", "Throw")
knife.Throw.Pitch = 0.8 + 0.4 * AttackPower
knife.Throw:Play()
AttackPower = 0
end