Jmanfh
|
  |
| Joined: 27 Jun 2009 |
| Total Posts: 45871 |
|
|
| 07 Apr 2012 10:54 AM |
game.Workspace.Terrain:Clear() print("Terrain Cleared") wait(3) game.Workspace.Instance.new(Part) wait(3) Base = game.Workspace.Part Base.Size = 512,0.4,512 Base.Color = "Black" Base.Position = 0,0,0 Base.Anchored = True Base.Locked = True
--
What I'm aiming for it to do is clear the terrain, add a new part, then resize it to a baseplate. It clears the terrain, but it stops there, and doesn't add a new part. When I run the script, the output says
Terrain Cleared 11:54:50 - new is not a valid member of Camera 11:54:50 - Script "Workspace.Script", Line 4 11:54:50 - stack end |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2012 10:55 AM |
game.Workspace.Instance.new(Part)
Instance.new("Part", Workspace)
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 07 Apr 2012 11:01 AM |
I see multiple errors:
Here is a chunk of your script:
game.Workspace.Terrain:Clear() print("Terrain Cleared") wait(3) game.Workspace.Instance.new(Part) wait(3) Base = game.Workspace.Part Base.Size = 512,0.4,512 --This should be in Vector3.new form Base.Color = "Black" --This should contain the "BrickColor.new" item. Base.Position = 0,0,0 --This should be in Vector3.new form Base.Anchored = True Base.Locked = True
Here's what I would do:
game.Workspace.Terrain:Clear() print("Terrain Cleared") wait(3) game.Workspace.Instance.new(Part) wait(3) Base = game.Workspace.Part Base.Size = Vector3.new(512,0.4,512) --Correct Vector3 form Base.BrickColor = BrickColor.new("Black") --Correct usage of BrickColor Base.Position = Vector3.new(0,0,0) --Correct Vector3 form Base.Anchored = True Base.Locked = True
|
|
|
| Report Abuse |
|
|
|
| 07 Apr 2012 11:49 AM |
...
Instance.new("Part", Workspace)
† KMXD † |
|
|
| Report Abuse |
|
|