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 » Scripters
Home Search
 

Re: Clone

Previous Thread :: Next Thread 
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
01 Dec 2014 07:51 PM
local Pizza = game.Lighting.Pizza:Clone()

-- not working :(
Report Abuse
jimae34550 is not online. jimae34550
Joined: 19 Feb 2012
Total Posts: 5920
01 Dec 2014 07:53 PM
[ Content Deleted ]
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
01 Dec 2014 08:11 PM
I want the pizza to clone to workspace, still not working :(
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
01 Dec 2014 08:13 PM
It might be helpful if you specify where to clone it...
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
01 Dec 2014 08:15 PM
I apologize, please help!
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
01 Dec 2014 08:15 PM
Lighting is deprecated for storage.
Report Abuse
UnConcerning is not online. UnConcerning
Joined: 30 Aug 2012
Total Posts: 676
01 Dec 2014 08:16 PM
game.Lighting.Pizza:clone''.Parent=workspace
Report Abuse
OMEGA27304 is not online. OMEGA27304
Joined: 23 Jan 2013
Total Posts: 407
01 Dec 2014 08:54 PM
function idiot()
x=game.Lighting.Pizza:clone()
x.Parent=Workspace
end
wait(1)--when you want it to activare
idiot:()
Report Abuse
UnConcerning is not online. UnConcerning
Joined: 30 Aug 2012
Total Posts: 676
01 Dec 2014 08:55 PM
^
fail
Report Abuse
OMEGA27304 is not online. OMEGA27304
Joined: 23 Jan 2013
Total Posts: 407
01 Dec 2014 11:44 PM
Shut up.
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
01 Dec 2014 11:55 PM
Don't use Lighting, use ReplicatedStorage & ServerStorage. Use ServerStorage here.

pizza = game.Lighting.Pizza:Clone() -- Create a clone of Pizza.
pizza.Parent = workspace -- You *MUST* set the parent of the clone.

Alternatively in one line::

game.Lighting.Pizza:Clone().Parent = workspace

How do you decide whether or not to assign the cloned object a variable?

If you just need a clone of that exact object with all those properties, don't bother with a variable.

However, if you want to change properties such as the name, colors, et cetera, or work with it in some other way, use a variable.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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