Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Should I create bricks by local scripts or just scripts?

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

✓ Accepted answer

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.

2 comments

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.

0

Alright, sorry then.

This discussion is preserved as it was. New answers, comments, and votes are closed.