I geniuenly have no idea why it doesn’t work
function Damage(Victim, Damage)
Victim.Humanoid:TakeDamage(Damage)
end
game:GetService("ReplicatedStorage"):WaitForChild("DamageEvent").OnServerEvent:Connect(function(Player, Victim, Damage)
Damage(Victim, Damage)
end)
It is longer than this, i just shortened it so it doesn’t hurt anyone who can script better than I.