Hello everyone, so I made a combat script that triggers a RemoteEvent to do damage, it works. But the problem is the damage still continues after the RemoteEvent?
Any Idea why?
In ServerScriptServer
local CombatEvent = game.ReplicatedStorage.Events.LeftHand local function Combat(Player) local dmg = true Player.Character["Left arm"].Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") and dmg == true then hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-5 dmg = false wait(0.5) end end) end dmg = false CombatEvent.OnServerEvent:Connect(Combat)