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

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

Asked by
Jexpler 63
5 years ago

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.

0
What’s a 'global' script? User#19524 175 — 5y
0
incapaz... I belive that this person is refering to a server script joeldes 201 — 5y
0
They couldn’t say that?^ User#19524 175 — 5y
0
Why do you have to be so rude? Jexpler 63 — 5y

1 answer

Log in to vote
0
Answered by
joeldes 201 Moderation Voter
5 years ago
Edited 5 years ago

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!


Ad

Answer this question