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
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