RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 05 Aug 2016 09:25 PM |
I have a basic projectile gun, I want the bullet to travel SUPER fast. How would I dothis
|
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 05 Aug 2016 09:25 PM |
Make d super duper high make maxforce super duper high
make the velocity super duper high |
|
|
| Report Abuse |
|
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 05 Aug 2016 09:28 PM |
I changed the P value to math.huge, math.huge, math.huge and its still the same. heres the gun, its simple:
https://www.roblox.com/games/473475888/test
|
|
|
| Report Abuse |
|
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 05 Aug 2016 09:30 PM |
local tool = script.Parent local handle = tool.Handle local ammo = 10 local player = game.Players.LocalPlayer local mouse = player:GetMouse()
function makeBullet() local b = Instance.new("Part", workspace) b.Anchored = false b.CanCollide = false b.BrickColor = BrickColor.Random() b.Size = Vector3.new(1,1,1) b.Shape = "Ball" b.TopSurface = "Smooth" b.BottomSurface = "Smooth" return b end
function shoot() if ammo > 0 then local bullet = makeBullet() bullet.CFrame = tool.Handle.CFrame bullet.CFrame = CFrame.new(bullet.Position, mouse.Hit.p) local v = Instance.new("BodyVelocity", bullet) v.velocity = bullet.CFrame.lookVector * 90 v.P = Vector3.new(math.huge,math.huge,math.huge) v.MaxForce = Vector3.new(math.huge,math.huge,math.huge) game.Debris:AddItem(bullet, 5) bullet.Touched:connect(function(touched) local humanoid = touched.Parent:findFirstChild("Humanoid") if humanoid and humanoid.Parent.Name == player.Name then return false else if humanoid then humanoid:TakeDamage(10) game.Debris:AddItem(bullet) end end end) end end
tool.Activated:connect(shoot)
thats what i have so far, it's shoots fast but I want it to shoot reallllyy fast
|
|
|
| Report Abuse |
|
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
| |
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
| |
|
|
| 05 Aug 2016 10:04 PM |
don't use body watevers and use CFrame lerp if you want it to go even faster
im a mlg |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2016 10:09 PM |
facepalm
change the number the lookvector is being multiplied by
Add 13,000 posts |
|
|
| Report Abuse |
|
|