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

When to use FilteringEnabled?

Asked by 7 years ago

Right now my game isn't filtering enabled. It isn't finished, nowhere near, but should I do the change to FilteringEnabled right now or later in development?

0
When you start developing, because most aspects of developing your game is affected by filtering enabled. 1yesman9 10 — 7y
0
NOW Aimarekin 345 — 7y
0
Actually, you should before starting development because it will affect the game and especially the SCRIPT. You may turn on filtering enabled now and test to see the scripts work or not. If it doesn't you may turn off or change your scripts xXRobloxRobloxianXx 15 — 7y

2 answers

Log in to vote
1
Answered by 7 years ago

As soon as you begin developing.

Most aspects of development are affected by Filtering Enabled. In every case where you would of relied on something being replicated from the client to the server, you'll need to do it differently. Consider:

-- in a local script in playerstarterscripts

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Button1Down:connect(function()
    local part = Instance.new('Part',game.Workspace)
end

When a player clicks his mouse a part will spawn on his computer's ( client ) version of the game.

If filtering enabled is off, because the replication ( cloning ) is automatic, the parts will replicate from his computer to roblox's computer back to everyone elses computer. Everyone will see the part.

If filtering enabled is on, the replication from his computer ( client ) will be filtered ( it wont happen ). Only he will see the part because it was never cloned ( replicated ) from his computer to the server.

All things that happen in local scripts happen on the client ( the computer of the player object who the local script is a descendant of ). So if filtering enabled is on, all things that happen in local scripts will only happen for the local player. It won't change anything on anyone elses computers.

That said, all events that fire with respect to a client's hardware ( keyboard, mouse ), like Button1Down or InputBegan. So anytime you want to have the player to effect the actual game with his mouse or keyboard, you'll be affected by filtering enabled. Heres some examples of things you'd have to develop differently with Fe on:

a gun, ability, pickaxe, stroller, clicking to gain points ( simulator ).

Basically everything the player does.

Ad
Log in to vote
0
Answered by
Im345 6
7 years ago

Start using Filtering Enabled because when you don't and start Filtering Enabled later, Then a lot of errors can occur in basically every script you have...

0
Depends on what the scripts are doing Im345 6 — 7y

Answer this question