player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:wait()
Humanoid = game:GetService("Players").LocalPlayer.Character
mouse = player:GetMouse()
if mouse then
mouse.KeyDown:connect(function(key)
if key=="b" then
game.ReplicatedStorage.Damage:FireServer(character.Humanoid,15)
end
I tried every method to work but It doesn't work anyways anyone know how to fix it?
I have script in remote event in server scripts
it have (Target and DMG) in the function.
serverside
game.ReplicatedStorage.Damage.OnServerEvent:Connect(function(Target,DMG)
Target:TakeDamage(DMG)
end)

2 comments
Post server codes too
Post the real source code. "it have (Target and DMG) in the function." is not the source code.