My AOE dmg ability only damages one person, here is the script
local remote = game.ReplicatedStorage.BarrierBeam
local Debounce = false
remote.OnServerEvent:Connect(function(plr,mouseaim)
local parts = game.ServerStorage.Classes.BarrierMaster
local BeamLoc = parts.BarrierBeam
local Beam = BeamLoc:Clone()
Beam.Parent = workspace
Beam.CFrame = CFrame.new(mouseaim)
local dmg = game.Workspace.BarrierBeam.Damagepart
game.Debris:AddItem(Beam, 1.7)
wait(1.5)
dmg.Transparency = 0.6
dmg.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then
if Debounce == false then
Debounce = true
hit.Parent.Humanoid:TakeDamage(35)
wait(2)
Debounce = false
end
end
end)
end)
