RemoteEvent Exploit prevention. am i doing it right?
Hey,
Still pretty new to scripting and slowly getting my head around remotes.
Before i go any further i would like some advice as to if i'm working in the right direction of Exploit prevention.
If i were to fire a RemoteEvent from a localscript, would the below ServerScript prevent exploiters from firing the event multiple times?
Note i have a seperate ServerScript creating the RemoteDebounce Bool inside ServerStorage.Player upon PlayerAdded.
01 | local ss = game:GetService( "ServerStorage" ) |
02 | local rs = game:GetService( "ReplicatedStorage" ) |
05 | rs.Remote.OnServerEvent:Connect( function (player) |
06 | if ss [ player.Name ] .RemoteDebounce.Value = = true then |
09 | if ss [ player.Name ] .RemoteDebounce.Value = = false then |
10 | ss [ player.Name ] .RemoteDebounce.Value = true |
13 | if game:GetService( "MarketplaceService" ):UserOwnsGamePassAsync(player.UserId, gamepassid) then |
21 | ss [ player.Name ] .RemoteDebounce.Value = false |