A local script sends a remote event to the script and the script uses player as the parameter to go into the maxhealth, but whenever a script like this is written:
RemoteEvent.OnServerEvent:Connect(function(player)
local maxhealth = player.Character.Humanoid.MaxHealth
maxhealth = 200
end)
nothing seems to happen to the max health of the player, and no errors are shown whatsoever

2 comments
thank you, this information will prevent a lot of bugs in the future
No problem