#1 - The script doesn't know, what 'msg' is.
#2 - This script checks once, when the server starts.
Make it like this:
game.Workspace.Message.Changed:connect(function()
if workspace.Message.Text == "Health" then
game.Workspace.YOURNAME.MaxHealth = math.huge
game.Workspace.YOURNAME.Health = math.huge
end
end) |