|
| 11 Apr 2013 01:33 AM |
I am to tired to debug this, please someone tell me why the blocks are not floating to point 5,5,5 and before you say something is tagged wrong.. no everything is tagged right, and everything before this works properly.
m.Button1Down:connect(function() if typ == "Teleport" then for i,v in pairs(blocks) do der = v:Clone() der.Parent = char v.Transparency = 1 table.insert(fblocks, 1, der) end for i,v in pairs(fblocks) do bp = Instance.new("BodyPosition", der) bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) bp.Position = Vector3.new(5,5,5) end end end) |
|
|
| Report Abuse |
|
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 11 Apr 2013 01:41 AM |
| the p in position should be lowercased |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2013 02:00 AM |
*fixed but they do not move to the correct positions, they all move to one single position >.>
m.Button1Down:connect(function() if typ == "Teleport" then fblock1 = block1:Clone() fblock2 = block2:Clone() fblock3 = block3:Clone() fblock4 = block4:Clone() for i,v in pairs(blocks) do v.Transparency = 1 end fblock1.Parent = game.Workspace fblock2.Parent = game.Workspace fblock3.Parent = game.Workspace fblock4.Parent = game.Workspace table.insert(fblocks, 1, fblock1) table.insert(fblocks, 2, fblock2) table.insert(fblocks, 3, fblock3) table.insert(fblocks, 4, fblock4) end for i,v in pairs(fblocks) do v:BreakJoints() bp = Instance.new("BodyPosition", v) bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) end fblocks[1].position = Vector3.new(5,5,5) fblocks[2].position = Vector3.new(5,10,5) end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Apr 2013 10:25 AM |
'fblocks[1].position = Vector3.new(5,5,5) fblocks[2].position = Vector3.new(5,10,5)'
You are trying to adjust the position of the part there, not the position that the BodyPosition wants to go to. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2013 01:28 PM |
| I just realized that, thanks that was a long night I asked about some pretty noob errors, but I was just so tired, but I wanted to script really bad lol. |
|
|
| Report Abuse |
|
|