generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Please help? VERY simple question?

Previous Thread :: Next Thread 
Skuldak is not online. 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 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
27 Jul 2012 11:43 AM
The velocity.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
27 Jul 2012 11:44 AM
Try the last wait.

† KMXD †
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
27 Jul 2012 11:44 AM
Oh that's what you meant, then change "power".

† KMXD †
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
27 Jul 2012 11:44 AM
Try both, I did just wake up :3
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image