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 » Scripting Helpers
Home Search
 

Re: BodyVelocity help

Previous Thread :: Next Thread 
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
23 Aug 2013 04:03 PM
(Everything is defined)

Im trying to create boulders around a player, and it launches to a random player within the area, butnfor testing reasons, I wanted to make it launch to me. The problem is, it doesmt even launch, it slowly ,oves upwards though.

for i = 1, 15 do
p = Instance.new("Part", char)
p.Anchored = true
p.formFactor = "Custom"
p.TopSurface, p.BottomSurface = 0, 0
p.CanCollide = false
p.Size = Vector3.new(4, 4, 4)
p.CFrame = char.Torso.CFrame + Vector3.new(math.random(-4, 4), math.random(5, 10), math.random(-4, 4))

p.Touched:connect(function(hit)
if hit.Parent:findFirstChild('Humanoid') ~= nil and hit.Parent.Name ~= plyr.Name and not db then

db = true

hit.Parent["Humanoid"]:TakeDamage(math.random(3, 6))

db = false

end
end)

p.Anchored = false
bv = Instance.new("BodyVelocity", p)
bv.maxForce = Vector3.new(1/0, 1/0, 1/0)
bv.velocity = workspace["Infocus"].Torso.Position


end
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
23 Aug 2013 04:09 PM
bv = Instance.new("BodyVelocity", p)
bv.maxForce = Vector3.new(100000,100000,100000)
bv.P = 8000
bv.velocity = workspace["Infocus"].Torso.Position * 10
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
23 Aug 2013 08:04 PM
Doesnt work, it just launches to the right really quickly.

I tried doing it to a parts position, nothing changed
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
23 Aug 2013 09:16 PM
bump
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
23 Aug 2013 10:05 PM
b
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
24 Aug 2013 02:22 AM
FDSf
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
24 Aug 2013 03:26 AM
BodyPosition? RocketPropulsion? That might help.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
24 Aug 2013 03:38 AM
No, I dont want to use RocketPropulsion.
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
24 Aug 2013 03:40 AM
SO... You used BodyPosition :P
I might be able to help you if I do more research. I HAVE TIME Y'KNOW!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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