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

RemoteEvent And Its Purpose?

Asked by
AIphanium 124
5 years ago
Edited 5 years ago

I don't really know what a RemoteEvent does, maybe making a script to work when FilteringEnabled is true?

Or maybe making a Function work while its called?

( Special Request : I need to ask Roblox's Moderators/Developers to add a new option to the new Animation Plugin, so maybe we could use the old version at the same time, but i cannot Login into the DevForum cause of the account, if you are a developer, please tell them to add the option to switch to the Old Version, Click Here for the Page. )

-- Thanks for reading until here.

2 answers

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

Hi Alpha,

I am only answering this because I feel that the other answer does little justice to the brilliant act of simplicity, I feel it has too much drabble and little organization.


When to use RemoteEvents

RemoteEvent are mainly used in the circumstance of the FilteringEnabled property of Workspace being enabled. Other than that, I don't see much of a fancy for them, unless you really have an infatuation to them.

RemoteEvent's Purpose.

They communicate from client to server or vice versa.


It's as simple as that.

Hope I managed to help a fellow in need. Have a splendid time with your ventures and I bid you farewell.

Thanks,

Best regards,

~~ KingLoneCat

0
My bad, i'll keep that in mind. jackfrost178 242 — 5y
Ad
Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Once you enable FilteringEnabled, everything each client does(except walking) doesn't get replicated to the server. So if you were to create a part in a local script, only that client would be able to see it, but no one else.

This could be useful if say you want a door to be locked until a player completes a quest, and if they complete said quest, they would be able to pass through. While everyone who didn't finish the quest will just see a closed door.

Animations played from local scripts wont replicate to the server either, so if you want to play an animation you would have to fire the server with a remote function, same with creating a part or a model.

When you fire the server with a remote function, you can send arguments, like an animation ID, the name of the part or model you want to the server to create, etc. Although there are some limitations to how many arguments you can pass.

RemoteFunctions behave differently though, once you Invoke a RemoteFunction, the script will halt until it gets a response. This could be useful if you wanted to fetch a player's data for whatever reason.

I would recommend reading more about RemoteEvents, and RemoteFunctions here

https://wiki.roblox.com/index.php?title=Remote_Functions_%26_Events

0
A lot of this is inaccurate frostysubatomiczero 51 — 5y
0
Animations can be played client side and will still replicate. If they didn't players would walk around like they were gliding. User#20158 0 — 5y
0
Not only walking gets replicated to the server, for instance chat is sent from the client and replicated to the other clients. frostysubatomiczero 51 — 5y
0
I know chat gets replicated to the server, I just didn't think to mention it because I thought that would be obvious, as for what I said about the animations, yes the roblox animations will play, but if you try to play an animation from your own script, It will only be played for you. jackfrost178 242 — 5y
View all comments (4 more)
1
Those animations get replicated to the server because they're executed from the server side. All of a character's animations are executed server-side, not client-side. He says that animations that are executed from client-side don't get replicated to the server. KingLoneCat 2642 — 5y
0
Thank you. jackfrost178 242 — 5y
0
jack, while your point does seem to make sense, in this case, I just found out that animations played from client automatically replicate. I thought them not replicating would make more sense but, Roblox made it to where they auto replicate to the server with FilteringEnabled. So, while I do understand your point, they do replicate to the server if executed from the client. KingLoneCat 2642 — 5y
0
Hey thanks for remembering to come back here, though i've had experiences in the past trying to play animations from the client with FE, I asked someone to join me to test it out, and the result was them running around with their default animations, while projectiles shot out of their torso. But that was about 4 months ago, maybe it's changed since then. I'll be sure to try it out. Thanks again. jackfrost178 242 — 5y

Answer this question