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

What is FilteringEnabled, RemoteEvents, and RemoteFunctions?

Asked by 4 years ago

May 4th, 2020

Hello,

I hear super much when you hear FilteringEnabled, RemoteEvnents, and RemoteFunctions. Why do we use them? Why are they useful? I want to know. If someone tells me, Thank you!

Sincerely,

Ducksneedhelp

0
ducks do not need help ProjectInfiniti 192 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

filtering enabled is a game setting that is automatically turned on it blocks client changes from replicating to the server for EX:

tim is using a exploit to change the song playing

with filtering off: the exploit will change the song for everyone (on the server) with filtering on: the exploit will not replicate to the server (only tim hears the song)

turning filtering on is a first step to stopping hacks and exploits

remote events and functions are basically the way local and server scripts can communicate both events and functions are like a signal but functions can pass on additional data

for EX:

events:

when you shoot a gun, the local script in the gun will signal the server via a event when the server detects the event, it will create the bullet and move it

functions:

on the screen, there are gui buttons to make a part with a color that is selected from a list by the player the buttons signal the server via the function, but also pass on the color with the function the server will detect the function and create a new part with the input color

1
RemoteFunctions are used to return values. For example, if you wanted to make a loading screen, you would check if everything has loaded for the player during that time (using the return value from the RemoteFunction) and if everything has loaded, then end the loading screen. Brandon1881 721 — 4y
Ad

Answer this question