Skuldak
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 55 |
|
|
| 27 Jul 2012 11:42 AM |
Well, so I have this script for a gun----
power = 50 ting = false
function onClicked() if ting == false then ting = true b = Instance.new("Part") b.Shape = "Ball" b.Size = Vector3.new(1,1,1) b.Parent = game.Workspace b.CFrame = script.Parent.Parent.barrel.CFrame b.Velocity = script.Parent.Parent.joint.CFrame.lookVector * -power b.BrickColor = script.Parent.BrickColor b.CanCollide = true wait(0.06) script.explode:clone().Parent = b wait(0.44) ting = false end end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
It works but how do I make it fire slower? Which number do I change? Thanks for the help guys :) |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
|
| 27 Jul 2012 11:44 AM |
Try the last wait.
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2012 11:44 AM |
Oh that's what you meant, then change "power".
† KMXD † |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 27 Jul 2012 11:44 AM |
| Try both, I did just wake up :3 |
|
|
| Report Abuse |
|
|