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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
| |
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
| |
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
| |
|
|
| 24 Aug 2013 03:26 AM |
| BodyPosition? RocketPropulsion? That might help. |
|
|
| Report Abuse |
|
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
|
| 24 Aug 2013 03:38 AM |
| No, I dont want to use RocketPropulsion. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|