Zeute
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 49 |
|
|
| 19 Jul 2015 02:00 PM |
It's basically customizable filtering. You can set up events when the filters caught something, for example:
local FilteringService = game:GetService('FilteringService')
FilteringService.Triggered:connect(function(Type, Objects, Player) -- type is an enum containing the replication type. For example: CreateInstance (an instance asks to be replicated), Value (a value is changed). Objects is a table either containing the instances to be created on the server, or the objects that will be affected.
if Type == Enum.ReplicationType.CreateInstance then FilteringService:Replicate(Player) -- Replicate the changes. end
end)
That above snippet would allow the creation of Instances, but would block modification of values, deletion of instances or calling any functions. To allow the replication, you just need to call the Replicate(Player) method.
Possible Enums for ReplicationTypes: - CreateInstance (Creating instances) - RemoveInstance (Removing instances) - MoveInstance (Moving instances to another location) - Value (Changing values of objects) - Function (Calling functions, such as workspace.Part:ClearAllChildren())
Possible Events for the service: - Triggered([Enum] Type, [Table] Objects, [Player] Player) (When something got caught in the filter) - OnReplication() (When something replicates when :Replicate() is called)
The FilteringService can be enabled similar like the HttpService. It would greatly enhance the security of places, but also allow more flexibility: For example, you need the client to modify a certain color of a Part. You could set up a remotefunction or a remoteevent for it, of course, but you can also just enable FilteringService and write a quick script that allows the BrickColor property of that part to be changed, and block everything else. |
|
|
| Report Abuse |
|
hotfeet09
|
  |
| Joined: 03 Oct 2009 |
| Total Posts: 12547 |
|
|
| 19 Jul 2015 02:03 PM |
It would be a challenge to learn I bet, but as you said it probably will enhance security for top-of-the-line places. My opinion is yes, I do support this and do not force anyone else to follow this viewpoint.
~~~~Mr. Redsteel of ATR, hotfeet09 |
|
|
| Report Abuse |
|
Zeute
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 49 |
|
| |
| |