|
| 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 |
|
|
|
| 11 Nov 2011 08:41 PM |
| Lord, the game is getting to me... Models, not tanks. |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2011 08:57 PM |
| bump me then take a dump ^.^ |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2011 10:25 PM |
| it would be nice if someone would answer... |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 11 Nov 2011 10:49 PM |
| Ya you can you use :MoveTo(). |
|
|
| Report Abuse |
|
|
EMAN381
|
  |
| Joined: 27 Nov 2007 |
| Total Posts: 4300 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 12 Nov 2011 08:01 AM |
| tried position before... output sais invalid child or somethin |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|
| |
|