Reader small image

You're reading from  Coding Roblox Games Made Easy, Second Edition - Second Edition

Product typeBook
Published inJun 2022
Reading LevelBeginner
PublisherPackt
ISBN-139781803234670
Edition2nd Edition
Languages
Tools
Right arrow
Author (1)
Zander Brumbaugh
Zander Brumbaugh
author image
Zander Brumbaugh

Zander Brumbaugh is an independent programmer, project manager, and game designer. The games he has made or contributed to have been played more than 300 million times. Some popular titles include My Salon, Power Simulator, Munching Masters, etc. With the games he has created, he has been able to create a successful business while in college; he currently attends the University of Washington and is part of the Paul G. Allen School of Computer Science and Engineering. At the time of writing, Zander is 19 years old.
Read more about Zander Brumbaugh

Right arrow

Local replication

Local replication is a term used to describe the process of a client sending a signal to the server, which in turn is sent to other clients to replicate different effects with the benefits of local behaviors. For example, if a client generated a projectile visualizer locally, nobody but that player would be able to see it. If the visualizer were on the server, it would be subject to the latency and lower refresh rate of the server, causing janky visuals. When a client wanting to replicate an effect sends the necessary information to the server so that the effect may be generated for a different user by their own client, then you can maintain accurate and smooth visuals processed at your framerate.

To do this, we will need to create a new OnServerEvent event function for the Replicate RemoteEvent in ReplicatedStorage. This should already be defined from when you created the Weapons module earlier. The parameters of this event function are the player who fired...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Coding Roblox Games Made Easy, Second Edition - Second Edition
Published in: Jun 2022Publisher: PacktISBN-13: 9781803234670

Author (1)

author image
Zander Brumbaugh

Zander Brumbaugh is an independent programmer, project manager, and game designer. The games he has made or contributed to have been played more than 300 million times. Some popular titles include My Salon, Power Simulator, Munching Masters, etc. With the games he has created, he has been able to create a successful business while in college; he currently attends the University of Washington and is part of the Paul G. Allen School of Computer Science and Engineering. At the time of writing, Zander is 19 years old.
Read more about Zander Brumbaugh