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 » Scripters
Home Search
 

Re: Gun not Shooting Properly

Previous Thread :: Next Thread 
CrypticFormula is not online. CrypticFormula
Joined: 02 Jul 2009
Total Posts: 302
01 Oct 2016 08:59 PM
The Bullets always go on the ground. It seems when I created the bullet, I inserted it to workspace, and I cant figure out how to make it come out of the barrel! Look:

enabled = false
Gun = script.Parent
Gun.Equipped:connect(function(mouse)
mouse.Button1Down:connect(function(key)
if enabled == false then
enabled = true
local Bullet = Instance.new("Part",game.StarterPack.Gun.Barrel)

local speed = 30
Bullet.Size = Vector3.new(.3,.3,.1)
Bullet.CanCollide = false
Bullet.BrickColor = BrickColor.new("New Yeller")
local direction = Instance.new('BodyVelocity')
direction.Parent = Bullet
direction.Velocity = script.Parent.Barrel.CFrame.lookVector*speed
enabled = false
end

end)
end)



Report Abuse
Zach1102 is not online. Zach1102
Joined: 20 Aug 2010
Total Posts: 48576
01 Oct 2016 09:01 PM
yea I think your issue lies in the gunpowder thats in the bullets

its obviously not exiting with enough velocity

or you are aiming at the ground
Report Abuse
CrypticFormula is not online. CrypticFormula
Joined: 02 Jul 2009
Total Posts: 302
01 Oct 2016 09:05 PM
I created my Bullet in Workspace, and it would fire from that brick. I can't seem to shoot out of the barrel
Report Abuse
CrypticFormula is not online. CrypticFormula
Joined: 02 Jul 2009
Total Posts: 302
01 Oct 2016 09:07 PM
b1
Report Abuse
CrypticFormula is not online. CrypticFormula
Joined: 02 Jul 2009
Total Posts: 302
01 Oct 2016 09:25 PM
Nevermind, I figured it out
Report Abuse
thegoodpuppy is not online. thegoodpuppy
Joined: 07 Jul 2011
Total Posts: 2737
01 Oct 2016 09:55 PM
This is literally a direct copy of my gun. Give me credit.
Report Abuse
thegoodpuppy is not online. thegoodpuppy
Joined: 07 Jul 2011
Total Posts: 2737
01 Oct 2016 09:57 PM
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=199447517

Thats my gun script I earlier posted.
Report Abuse
thegoodpuppy is not online. thegoodpuppy
Joined: 07 Jul 2011
Total Posts: 2737
01 Oct 2016 10:00 PM
Lol you don't need to give me "Credit". I see that you learned from it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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