Hello, I'm trying to make a custom sword. The problem is the scripting, the sword won't give damage to another humanoid. Help?
--LOCAL SCRIPT--
wait()
script.Parent.blade.Touched:Connect(function(h)
game.ReplicatedStorage.RemoteEventz.AttackToolE:FireServer(15, h)
end)
--SERVER SCRIPT--
wait()
Debounce = false
game.ReplicatedStorage.RemoteEventz.AttackToolE.OnServerEvent:Connect(function(plr, Damage, Target)
if Target.Parent:FindFirstChild('Humanoid') and Target.Parent.Name ~= plr.Name and Debounce == true then
Debounce = false
local enemy = Target.Parent.Humanoid
enemy:TakeDamage(Damage)
wait(1.5)
Debounce = true
end
end)

2 comments
your remote event communication is extremely unsecure, some exploiter can loop through every player and kill them
Looks like you misspelled RemoteEvents in the LocalScript.