wubbzy301
|
  |
| Joined: 15 May 2010 |
| Total Posts: 1188 |
|
|
| 02 Apr 2014 06:31 PM |
Code:
x = 225 -- First line z = 225 tableparts = game.Lighting.CityParts:GetChildren() light = game.Lighting numran = 0
function MakeCity() terrain = light.Terrain:Clone() terrain.Parent = game.Workspace terrain:MoveTo(x,false,z) ------------- This errors numran = math.random(1,2) if numran == 1 then part = tableparts[math.random(1,#tableparts)] if part:IsA("Model") then part.Parent = game.Workspace part:MoveTo(x,false,z) elseif part:IsA("BasePart") then part.Parent = game.Workspace part.Position = Vector3.new(x,false,z) end end x = x - 50 if x == -275 then x = 225 z = z - 50 end end
while z > -225 do MakeCity() wait() end -- Last line
Error: 16:28:07.081 - Unable to cast double to Vector3 16:28:07.082 - Script 'Workspace.Script', Line 10 - global MakeCity 16:28:07.083 - Script 'Workspace.Script', Line 30 16:28:07.084 - stack end
|
|
|
| Report Abuse |
|
|
wubbzy301
|
  |
| Joined: 15 May 2010 |
| Total Posts: 1188 |
|
| |
|
wubbzy301
|
  |
| Joined: 15 May 2010 |
| Total Posts: 1188 |
|
| |
|
wubbzy301
|
  |
| Joined: 15 May 2010 |
| Total Posts: 1188 |
|
| |
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
|
| 02 Apr 2014 06:48 PM |
| :MoveTo(x,0,z) You can't have false |
|
|
| Report Abuse |
|
|
wubbzy301
|
  |
| Joined: 15 May 2010 |
| Total Posts: 1188 |
|
|
| 02 Apr 2014 06:55 PM |
can't have false? False can stay the axis. If you change to 0, it changes. Also I solve it... :MoveTo(Vector3.new(x,false,z)
|
|
|
| Report Abuse |
|
|