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

The firing part of the pistol isn't working?

Asked by 7 years ago

Hello, I am working on a game in ROBLOX called Dreadfire. I am scripting the guns, but i've run into a problem..

So basically, this is a local script inside of the tool. Everything works in it except for the activated part. The only thing that works is the sound. and when I test it, I do not see a bullet firing out of the chamber. Any help?

I also had taken the script from the laser pistol ROBLOX created, but tried to modify it.

01-----------------
02--| Constants |--
03-----------------
04 
05local SHOT_SPEED = 100
06local SHOT_TIME = 1
07 
08local NOZZLE_OFFSET = Vector3.new(0, 0.4, -1.1)
09 
10-----------------
11--| Variables |--
12-----------------
13 
14local PlayersService = game:GetService('Players')
15local DebrisService = game:GetService('Debris')
View all 99 lines...

1 answer

Log in to vote
0
Answered by 7 years ago

which lines are erroring?

0
I don't know, it wont show the bullet when I click, but it makes the firing sound LennonLight 95 — 7y
Ad

Answer this question