Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

2 comments

0

Thank you!

0

np

This discussion is preserved as it was. New answers, comments, and votes are closed.