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

How do I fix the guns in my game that broke from FE?

My guns broke when I turned FE on. they use Local Scripts, so that's why. Idk what to do to fix them. Making them global scripts won't help though. I tried it already.

4 comments

0

What’s a 'global' script?

0

incapaz... I belive that this person is refering to a server script

0

They couldn’t say that?^

0

Why do you have to be so rude?

1 answer

So guns can be complicated... You need to use half LocalScript and half ServerScript.


Even though I will not be coding anything specific here, I will be making YouTube tutorials in the future for this... (Shameless plug for me... Yooogle)

Anyways, I also will be telling you how to do this here. But it will be up to you for the implementation to be put in.

  1. In your Gun Tool you need a LocalScript that will listen for clicks and equips and stuff.

  2. When the user clicks you need to fire at the server a remote event. This event will then tell the ServerScript also inside of your Gun Tool that it should spawn a projectile or fire something.

  3. Check if the projectile hits the player and make it KILL THAT NEWB!


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