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: Positioning

Previous Thread :: Next Thread 
noobkiller878 is not online. noobkiller878
Joined: 22 Dec 2008
Total Posts: 1465
11 Nov 2011 08:41 PM
Do tell me if this is against the rules or not, pertaining for it to be only one line (atleast I think).

But what is the line used to postion tanks in a random (but limited) space? I had it at one point, but not any more.
Report Abuse
noobkiller878 is not online. noobkiller878
Joined: 22 Dec 2008
Total Posts: 1465
11 Nov 2011 08:41 PM
Lord, the game is getting to me... Models, not tanks.
Report Abuse
noobkiller878 is not online. noobkiller878
Joined: 22 Dec 2008
Total Posts: 1465
11 Nov 2011 08:57 PM
bump me then take a dump ^.^
Report Abuse
noobkiller878 is not online. noobkiller878
Joined: 22 Dec 2008
Total Posts: 1465
11 Nov 2011 10:25 PM
it would be nice if someone would answer...
Report Abuse
EMAN381 is not online. EMAN381
Joined: 27 Nov 2007
Total Posts: 4300
11 Nov 2011 10:47 PM
Unfortunately, you can't position models..

I know, it's horrible.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
11 Nov 2011 10:49 PM
Ya you can you use :MoveTo().
Report Abuse
EMAN381 is not online. EMAN381
Joined: 27 Nov 2007
Total Posts: 4300
11 Nov 2011 10:50 PM
Oh yeah...

/floodcheck
Report Abuse
noobkiller878 is not online. noobkiller878
Joined: 22 Dec 2008
Total Posts: 1465
12 Nov 2011 07:55 AM
So wait, the line would look like

game.Workspace.MODEL:MoveTo(POSITION)? And to my guess if its a random wouldnt it be like "Math.Random (1, 5), (1, 1), (5, 10)"?
Report Abuse
EMAN381 is not online. EMAN381
Joined: 27 Nov 2007
Total Posts: 4300
12 Nov 2011 07:57 AM
Ex.:

game.Worksapce.Brick:MoveTo(game.Workspace.Brick2.Position)

I think. Or I forget if you add a '.Position' or you don't.
Report Abuse
noobkiller878 is not online. noobkiller878
Joined: 22 Dec 2008
Total Posts: 1465
12 Nov 2011 08:01 AM
tried position before... output sais invalid child or somethin
Report Abuse
noobkiller878 is not online. noobkiller878
Joined: 22 Dec 2008
Total Posts: 1465
12 Nov 2011 08:11 AM
Clicked the button, and it sais "Unable to cast Instance to Vector3"


-------------------------------------------
function Cloning()
newtank = game.Workspace.T25AT:Clone()
newtank.Parent = game.Workspace
newtank.Name = Player.Name.." Tank"
wait(0.5)
game.Lighting.TankDestroyer:Clone().Parent = Player.Backpack
wait(1)
game.Workspace[Player.Name.." Tank"]:MoveTo(game.Workspace.Spawn)
game.Workspace.CurrentCamera.CameraSubject=game.Workspace[Player.Name.." Tank"].View
game.Workspace.CurrentCamera.CameraType="Follow"
end
script.Parent.MouseButton1Click:connect(Cloning)
Report Abuse
noobkiller878 is not online. noobkiller878
Joined: 22 Dec 2008
Total Posts: 1465
12 Nov 2011 09:50 AM
...
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
12 Nov 2011 10:16 AM
Easy:

xMin, yMin, zMin = -10, 0, -10 --Set these to the minimum vector boundaries
xMax, yMax, zMax = 50, 10, 50 --Set these to the maximum vector boundaries
TANK:MoveTo(Vector3.new(math.random(xMin, xMax), math.random(yMin, yMax), math.random(zMin, zMax))
Report Abuse
noobkiller878 is not online. noobkiller878
Joined: 22 Dec 2008
Total Posts: 1465
12 Nov 2011 10:16 AM
thanks!
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