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
 

Clone help

Previous Thread :: Next Thread 
Mjest is not online. Mjest
Joined: 06 Feb 2013
Total Posts: 4
15 Feb 2013 03:15 PM
Trying to make the clone a different color.

There is only one problem...

The clone has the same name and it is saying Workspace.Part Script:3: attempt to index global 'Part1' (a nil value) in the output here is my scripts

Clone:

brick = game.Workspace.Part1

brick:Clone().Parent = workspace
wait (1)
brick.BrickColor = BrickColor.new ("Really red")

Color change for clone

wait (2)
if game.Workspace.Part1 then
Part1.Name = Part
Part.BrickColor = BrickColor.new ("Really black")
end

post solution in comments.
Report Abuse
Mjest is not online. Mjest
Joined: 06 Feb 2013
Total Posts: 4
15 Feb 2013 03:18 PM
Bump
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
15 Feb 2013 03:18 PM
wait (2)
if game.Workspace.Part1 then
Part1.Name = "Part"
game.Workspace.Part.BrickColor = BrickColor.new ("Really black")
end
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