You can fire the amount of strength the player has to the server.
For example:
local RemoteEvent = game:GetService("ReplicatedStorage"):WaitForChild("MyEvent")
local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
local Strength = leaderstas.Strength
RemoteEvent:FireServer(humanoidHit,Strength.Value)
Now that we are giving the event the amount of damage the player can do, what we can do is:
local RemoteEvent = game:GetService("ReplicatedStorage"):WaitForChild("MyEvent")
RemoteEvent.OnServerEvent:Connect(function(player,humanoidHit,StrengthValue)
humanoidHit:TakeDamage(StrengthValue)
end)
2 comments
So In The Local Script humanoidHit Is Mark As A Unknown Variable
well, you didn't provide the LocalScript so I'm assuming you're passing the humanoid that has been hit as a parameter?