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

In a FE game, do automatic functions need a call?

Asked by 5 years ago

I already know some decent "organic RBLXLua Scripting Knowledge," but I'm a bit new to this Filtering Enabled feature. While i know that you need Remote Events and Functions that require your Server to call it, how about automatic functions? Do they need to call themselves or what?

1 answer

Log in to vote
0
Answered by
gullet 471 Moderation Voter
5 years ago

I've never heard the term automatic function, so feel free to explain that. Filtering Enabled (FE) simply stops any changes made on the client (Local Script) to replicate to the server and in turn to other clients. If you need to communicate between the server and client (players) you use remotes. They can be used both ways.

0
For the automatic functions bit, something like "while true do" or "for loops" and "some code inside them" is what i meant about automatic functions (Or scripts that start up instantly without the need of user input). So you're saying that for every action in a place with a number of players, every action should be remote? Deson00 4 — 5y
0
All scripts unless they're disabled or misplaced will run instantly and automatically. I suggest you check out some basic tutorials to grasp the basics. gullet 471 — 5y
0
@gullet ModuleScripts don’t run automatically. They run the first time the require() function is used on the ModuleScript(because a ModuleScript and Script’s superclass is LuaSourceContainer) saSlol2436 716 — 5y
0
I was referring to just Script, you are correct ModuleScripts do not run automatically and need to be required. Script and LocalScript execute automatically. gullet 471 — 5y
Ad

Answer this question