Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Hello scripters! I have a questions eith Filtering Enabled, what does it do?

Asked by 5 years ago

Hello! I have a question with Filtering Enabled! Can you guys explain what does it do. Ill accept the best answer, but then again, I wanna learn something.

1 answer

Log in to vote
3
Answered by 5 years ago
Edited 5 years ago

Filtering enabled basicly stops communication between the client and the server.

Some examples - You cannot access the contents of the playergui using scripts

  • You cannot change a value inside a server area using a local script

  • Changing things on the client but on the server/for other clients no change would have happend

Why would you use it?

  • Roblox probably is going to shut down non FE games

  • This is great against hackers, all their exploits will only affect theirselves

How would you still communicate between server and client? You can use remotes (remote events & remote functions), though, they aren't 'perfect' hackers will still try to abuse them by sending their data trough them, you cannot stop this, only check if the data is possible in the server, you should never let the client change his money!

Remote event example

--> Client
local Remote = game:GetService('ReplicatedStorage'):WaitForChild('Remote')

Remote:FireServer(args)
--> Server
local Remote = game:GetService('ReplicatedStorage'):WaitForChild('Remote')

Remote.OnServerEvent:Connect(function(plr, args)
    -- Code
end)

With FE enabled, there are a few ways to get the player object

--> Server side

1)

game.Players.PlayerAdded:Connect(function(player)
    -- Code
end)

2)

for i,v in pairs(game.Players:GetPlayers()) do
    -- Code (v is the playerobject)
end

Client side -->

local plr = game.Players.LocalPlayer

Some other effects of FE (filtering enabled)

  • Some services won't work in the client/server (this is mostly said on the wiki) (example, datastore only works on the server)
  • LocalScripts are only for the client, serverscripts (scripts) are only for the server

If you have any more questions, just ask, here are some links wich may help you

Remotes

FE

0
Thank you! AswormeDorijan111 531 — 5y
0
np User#20388 0 — 5y
Ad

Answer this question