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: Uhm?

Previous Thread :: Next Thread 
MainDirectory is not online. MainDirectory
Joined: 20 Dec 2012
Total Posts: 1834
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 is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
11 Apr 2013 01:41 AM
the p in position should be lowercased
Report Abuse
MainDirectory is not online. MainDirectory
Joined: 20 Dec 2012
Total Posts: 1834
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
MainDirectory is not online. MainDirectory
Joined: 20 Dec 2012
Total Posts: 1834
11 Apr 2013 09:49 AM
bawmp.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
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
MainDirectory is not online. MainDirectory
Joined: 20 Dec 2012
Total Posts: 1834
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
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