How would I add a deboucne to this chargeable attack?
I tried adding a debounce "k" but the script still doesn't work help?
02 | p = game.Players.LocalPlayer |
04 | RS = c.Torso [ "Right Shoulder" ] |
17 | RS.C 0 = RS.C 0 *CFrame.Angles( 0 , 0 ,-. 16 ) |
19 | h = Instance.new( "Part" ) |
20 | h.BrickColor = BrickColor.new( "Pearl" ) |
21 | h.TopSurface = "Smooth" |
22 | h.BottomSurface = "Smooth" |
25 | h.Parent = game.Workspace |
28 | h.Size = Vector 3. new(size,size,size) |
30 | h.CFrame = c.Head.CFrame*CFrame.new( 1.5 , 2 , 0 ) |
42 | RS.C 0 = RS.C 0 *CFrame.Angles( 0 , 0 ,. 16 ) |
44 | hs = Instance.new( "Part" ,game.Workspace) |
45 | hs.Size = Vector 3. new(size,size,size) |
46 | hs.TopSurface = "Smooth" |
47 | hs.BottomSurface = "Smooth" |
49 | hs.Name = "Kiblastthe" |
50 | hs.BrickColor = BrickColor.new( "Pearl" ) |
51 | y 2 = Instance.new( "BodyVelocity" ,hs) |
52 | y 2. maxForce = Vector 3. new( math.huge , math.huge , math.huge ) |
53 | y 2. velocity = c.Head.CFrame.lookVector* 52 |
54 | hs.CFrame = c.Head.CFrame*CFrame.new( 2 , 0 ,- 6 ) |
58 | hs.Transparency = hs.Transparency +. 1 |
68 | mouse.KeyDown:connect(charge) |
69 | mouse.KeyUp:connect(release) |