![]() ![]() For example, if you wanted to change our blue brick from earlier to red in a Script instead of a LocalScript, then everyone will see a red brick because changes on the server are displayed across all clients.Ī RemoteEvent is a special object that you can use for Scripts and LocalScripts to communicate. You can use it to make server-side changes that will be replicated across all clients. A LocalScript is capable of executing almost any task you can complete using any other script in Roblox, but typically only the client that the LocalScript is running on will be affected.įor example, if you tried changing the color of a blue brick to red, then the client that the LocalScript is running on will see a red brick but everyone else will still see blue because LocalScripts cannot affect anything beyond the client the LocalScript is being run on without some help from a RemoteEvent (I'll touch on that later).Ī Script is a script that runs on the server. What's a LocalScript, Script, and RemoteEvent?Ī LocalScript is a script that only runs on a client. Technically any kind of script will work, but ideally you'll want to use a combination of a LocalScript, a normal Script, and a RemoteEvent. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |