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

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

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

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.

4 comments

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?

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.

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)

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.

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