if Gun.Ammo.Value > 0 and enabled == true then
Gun.Ammo.Value = Gun.Ammo.Value - 1
enabled = false
Bullet = Instance.new("Part", game.Workspace)
Gun.GripForward = Vector3.new(0, 0, 1)
Gun.GripPos = Vector3.new(0.5, 0, 0.1)
Gun.GripRight = Vector3.new(0, -1, 0)
Gun.GripUp = Vector3.new(-1, 0, 0)
game.Debris:AddItem(Bullet, 2)
Bullet.Shape = "Block"
Bullet.Anchored = false
Bullet.Size = Vector3.new(.2,.2,.2)
Bullet.TopSurface = "Smooth"
Bullet.BottomSurface = "Smooth"
Bullet.Transparency = 0
Bullet.BrickColor = BrickColor.new("Dark stone grey")
Bullet.CanCollide = false
Bullet.CFrame = Gun.P4.CFrame
Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p)
v = Instance.new("BodyVelocity", Bullet)
v.velocity = Bullet.CFrame.lookVector *900
v.maxForce = Vector3.new(math.huge, math.huge, math.huge)
FireSound:Play()
Shell = Instance.new("Part", game.Workspace)
Shell.TopSurface = "Smooth"
Shell.BottomSurface = "Smooth"
Shell.Size = Vector3.new(.1,.1,.1)
game.Debris:AddItem(Shell, 0.8)
Shell.CFrame = Gun.Handle.CFrame *CFrame.new(0, -.5, -.3)
Bullet.Touched:connect(Damage)
Light = Instance.new("PointLight", Gun)
wait(.1)
Light:Destroy()
Gun.GripForward = Vector3.new(.1, 0, 1)
wait()
enabled = true
This gun shoots off, but it only does it when the bullet is round. For some reason when the bullet is block shaped it just stays floating in mid air... Someone please help, I need block bullets for this script!
Line 10 is where I think the issue begins, where I set the Part shape. It only works as a ball, otherwise it just floats in mid air, even with Anchored off.....
