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: Please help me with this script.

Previous Thread :: Next Thread 
Jmanfh is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
07 Apr 2012 10:55 AM
game.Workspace.Instance.new(Part)

Instance.new("Part", Workspace)

† KMXD †
Report Abuse
Secretiverobocop is not online. Secretiverobocop
Joined: 23 Apr 2011
Total Posts: 510
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
07 Apr 2012 11:49 AM
...

Instance.new("Part", Workspace)

† KMXD †
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