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
 

How to make a body velocity even FASTER?

Previous Thread :: Next Thread 
RobuxLife is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
05 Aug 2016 09:39 PM
Bump
Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
05 Aug 2016 09:45 PM
Halp
Report Abuse
Weirdraidercs35 is not online. Weirdraidercs35
Joined: 14 May 2015
Total Posts: 2275
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
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
05 Aug 2016 10:09 PM
facepalm

change the number the lookvector is being multiplied by


Add 13,000 posts
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