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

Why does this Local Script run fine but does not work with KeyDown function?

Asked by 10 years ago

This local script works fine with everything but then when the keydown function comes it is like the script skipped over it and continued on with everything else every time.

01local tool = script.Parent
02 
03local player = game.Players.LocalPlayer
04local character = player.Parent
05 
06local firerate = 1
07local range = 200
08 
09 
10local handle = tool:WaitForChild("Handle")
11local event = tool:WaitForChild("RemoteEvent")
12local firesound = handle:WaitForChild("FireSound")
13 
14 
15local check = true
View all 88 lines...

Answer this question