Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 30 Nov 2012 05:26 PM |
| So i wanna make a bodyforced objcect infront of me (a flying brick infront of my torso), i have been practicing body objects but how would i make it stay to my alittle infront of my torso? |
|
|
| Report Abuse |
|
|
|
| 30 Nov 2012 05:38 PM |
| Weld it to your self, useing a weld script. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 30 Nov 2012 05:41 PM |
Could doooooo a bodyPosition and put the position toooo
BodyPosition.Position = game.Workspace.Fedorakid.Torso.Position + game.Workspace.Fedorakid.Torso.CFrame.lookVector * 5
yeye |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 30 Nov 2012 05:47 PM |
So?:
c = Instance.new("BodyPosition",game.Workspace.Fedorakid.Character) c.D = STUFF c.P = STUFF c.maxForce = Vector3.new(10000,30000,10000) c.position = game.Workspace.Fedorakid.Torso.Position + game.Workspace.Torso.CFrame = CFrame.new(0,0,2)
Dont bother about the D,P and maxforce, is the rest right?
|
|
|
| Report Abuse |
|
|
|
| 30 Nov 2012 06:06 PM |
Dude, the position property in a BodyPosition tells it where the brick is supposed to GO, not where it is...
1. That would error 2. You have to put the BodyPosition in the part you made 3. If that wouldn't error, that would make your character move 2 studs forward...
Here:
local p = Instance.new("Part", workspace.Fedorakid) local bp = Instance.new("BodyPosition", p) bp.maxForce = Vector3.new(10000,30000,10000) while wait() do bp.position = workspace.Fedorakid.Torso.Position + Vector3.new(0, 0, 2) end
http://wiki.roblox.com/index.php/User:ElectricBlaze |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 02 Dec 2012 02:38 PM |
| It worked but theres one thing, what property would i change to make it follow me faster? do i needto change power or maxforce or less D? i cant tell the difference between maxforce and P...help? |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 02 Dec 2012 02:44 PM |
| Nvm it was the power, but how would i make the brick and torso look at each other even when i walk, the front side of my torso and the backside of my brick face to face, when i walk? |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2012 03:12 PM |
local p = Instance.new("Part", workspace.Fedorakid) local bp = Instance.new("BodyPosition", p) bp.maxForce = Vector3.new(10000,30000,10000) while wait() do bp.position = workspace.Fedorakid.Torso.Position + workspace.Fedorakid.Torso.CFrame.lookVector * 2 end
http://wiki.roblox.com/index.php/User:ElectricBlaze |
|
|
| Report Abuse |
|
|