Server Script
game.ReplicatedStorage.Medic.OnServerEvent:Connect(function(player, Humanoid)
print(player)
if Humanoid.Health < 99 then
print("Test")
Humanoid.Health:TakeDamage(30)
end
end)
Local script
player = game.Players.LocalPlayer
Humanoid = player.Character.Humanoid
script.Parent.Parent.Parent.Medic.Activated:connect(function()
game.ReplicatedStorage.Medic:FireServer(Humanoid)
end)
The script can print "Test" but it won't make any damage to the player. Help?
