|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 01 Oct 2016 09:25 PM |
| Nevermind, I figured it out |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2016 09:55 PM |
| This is literally a direct copy of my gun. Give me credit. |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2016 09:57 PM |
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=199447517
Thats my gun script I earlier posted. |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2016 10:00 PM |
| Lol you don't need to give me "Credit". I see that you learned from it. |
|
|
| Report Abuse |
|
|