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

Should I create bricks by local scripts or just scripts?

Asked by 6 years ago

I am making a gun and I want the gun to fire bullets. Is it fine to create those bullets on a local script or the server script. So far I have been using a local script to detect when the player has activated the tool. Then I fire the server script by a remote event to do the calculations and making the brick that should show on EVERYONE's screen. So is this the best way to do things or should I just put all of the code into a local script.

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

If the game is filtering enabled, use server scripts for instance creation.

If you want to use the local script and communicate to a server script to activate the instance creation from the local script, use Remote Events.

0
Both WOULD work fine, except if the game is filteringenabled. If it is, parts created from a localscript only show up for the player. Operation_Meme 890 — 6y
0
Alright, sorry then. User#18043 95 — 6y
Ad

Answer this question