As far as I know, client injectors have access to Remote Events, just like local scripts. In my game, I use a remote event to give coins to a player after a successful purchase of a dev product. Here is a piece of code with sending an event:
RemoteName:FireServer(productId, preAmount)
Here’s what happens on the server side:
RemoteName.OnServerEvent:Connect(function(player, productId, preAmount)
-- check if productId is in the list, get the equivalent in coins and continue if everything matches.
player.leaderstats.Coins.Value += amount
print("finished")
-- if something doesn't match
warn(player.UserId .. "wrong data" .. productId .. preAmount)
-- add the right amount of coins
end)
The client injector can fire this remote event:
-- getting event
RemoteEvent:FireServer(1111111 (prdct id), 10000000 (preAmount))
Therefore, if the client injector adds the product id to the event, the server can easily give the player coins.
This raises the question of how to protect remotes from injectors?