title: How to protect remote events and function roblox?
body: <p>In my game I have a local script for gun that fires a remote event to change a players health. The problem is that hackers could just fire the remote event and change a players health. How do I stop this from happening? Here's the remote event:</p>
  
  <pre><code>script.CHealth.OnServerEvent:connect(function(player,humanoid,amnt)
      humanoid.Health = humanoid.Health - amnt
  end)
  </code></pre>
  
  <p>And here's where it's called:</p>
  
  <pre><code>game.Workspace.RemoteEvents.CHealth:FireServer(humanoid,60)
  </code></pre>