The Basics of adjusting your game to the removal of Experimental Mode with FilteringEnabled

w-How…

4 Likes

Poorly written backend stuff for RemoteFunctions, I guess.

2 Likes

I already mentioned that actually, lmao.

2 Likes

uh… Alright.

Well, I know how it all works, I’m just not really good at explaining it. However I noticed many people were still struggling so I wanted to provide a bit of help.

1 Like

Thank you. This has helped me. :slight_smile:

1 Like

This post ( The Future of Filtering Enabled: Experimental Mode ) says:

Doesn’t this mean that FE and “Non-Experimental Mode” are the same, and Non-FE and Experimental Games are the same?

1 Like

Here’s a simple guide to transferring what you should call games:

FilteringEnabled is ticked = game
FilteringEnabled not ticked = experimental

I believe the intent here was to start moving more developers along the path of using FilteringEnabled in their games as Roblox grows as a platform.

1 Like

Basically what I said. :wink: thanks for clarifying this for me!

1 Like

Sure, but this is an open thread, hoping that rule might clarify it easily for someone who is just skimming the replies. :slight_smile:

2 Likes

For the record, OP has edited their thread since my post. The thread claimed that FE = experimental beforehand.

1 Like

Fair enough.

1 Like

Alright, that makes more sense.
I like the tutorial overall, as it will help new developers, but I think you can change a few things to make this tutorial more useful.

  • Reword the explanation for remote functions

    The way it is currently put, it sounds like remove functions are inferior to remote events. However, on a basic level, they are simply different.
    You will normally use a remote function when you want to return a value, or when you wish for the code to wait until the function has completed.
    The fact that a remote function yields until return is a good thing, since that’s the reason why you would use a remote function over a remote event.

  • Talk about what should be on the server vs client / when to use remotes

    When people just start using FE, they usually don’t understand the power the client should have. They simply try remaking everything with remotes, so that it bypasses filtering enabled. This causes games to have remote events that work like this:
    game.ReplicatedStorage.DealDamage:FireServer(Player Name, Damage)
    They do not realize that this defeats the purpose of FE, which is why I think you should include a little section talking about when to use remotes and what the client should tell the server.

  • Add an example

    For most people, they are told to use remotes, but they don’t understand how to implement them. I think you should take a basic problem, such as a shop button that takes 10 tix and gives you one robux, and make it with FilteringEnabled, step by step.

2 Likes

RemoteFunctions should be avoided like the plague when it comes to having the server request anything from the client. It’s a cute idea, but people should not be calling InvokeClient at all for anything practical because any client can just indefinitely yield a thread by overriding a real client’s callback and cause havoc to even an otherwise well made game.

1 Like

Yes, I already said that it should be well avoided.

Decent tutorial. It, of course, does not cover all of what is needed to know about FilteringEnabled/non-experimental mode, but it hits the primitives just as it should. Nicely done

Some things that haven’t been mentioned (or have been, but I just never noticed):

  • Environment trust. Remember that you can’t trust the client. The client should be handling things only they can see and asking the server for permission to run global effects (i.e. client asks to change to x team, server checks if they are allowed to be on it and changes their team if they pass permissions).
  • Be wary of where you put your variables. It makes all the difference where you put just one variable. You don’t want to have a remote where the client requests to damage someone and supplies, say, damage values - an exploiter could pass a higher-than-expected damage count.
  • Determine which remote you require. Remote events act like spawn() or separate threads in the sense that they don’t yield the script. Remote functions are for when you wish to have callback functions and want the script to yield until the function returns a result. Always check over your code and make sure you have that return in there.
  • Organization is your friend. You ideally want to keep all remotes in folders within ReplicatedStorage unless there is a reason you need it elsewhere.

:+1:

3 Likes

yep, I should change the title to tips.

2 Likes

Another inportant feature I would add on: don’t trust the client with anything important such as data stats or important values.

1 Like

I think you should add something from what Echo has said. It is very important when it comes to Remotes.

2 Likes

Filtering Enabled, is the best and only way to program games. I completely agree with the ideas expressed in this post!

1 Like

I’m going to share this with newer devs! Thanks for the info

1 Like