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: Clone

Previous Thread :: Next Thread 
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
05 Sep 2014 03:28 PM
How would I make it so the script clones it to Workspace?

game.Lighting.Item:Clone()
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
05 Sep 2014 03:29 PM
game.Lighting.Item:Clone().Parent = Workspace;
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
05 Sep 2014 03:30 PM
Also, how would I give the model a position? I have been curious on how that works.
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
05 Sep 2014 03:31 PM
http://wiki.roblox.com/index.php?title=MoveTo_(Method)/model
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
05 Sep 2014 03:31 PM
Thanks man! Appreciate the help!
Report Abuse
Vampyroteuthiss is not online. Vampyroteuthiss
Joined: 17 Jun 2010
Total Posts: 11541
05 Sep 2014 03:32 PM
You need to set a parent or else its just in space I guess.

local h = game.Lighting.Item:Clone()
h.Parent = Workspace
--You can do other manipulations because you have set it as a variable (h) such as color or any property.
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
05 Sep 2014 03:36 PM
Wait. The cloning isn't working..
Report Abuse
Vampyroteuthiss is not online. Vampyroteuthiss
Joined: 17 Jun 2010
Total Posts: 11541
05 Sep 2014 03:36 PM
Send us the script. We will help debug and fix errors.
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
05 Sep 2014 03:38 PM
while true do wait()

if script.Parent.Text == "11" then
script.Parent.Text = ""
local h = game.Lighting.Item:Clone()
h.Parent = Workspace

end
end
Report Abuse
Vampyroteuthiss is not online. Vampyroteuthiss
Joined: 17 Jun 2010
Total Posts: 11541
05 Sep 2014 03:40 PM
Line 3, it should be = instead of ==.
Line 6, try game.Workspace
Line 5, I may be wrong, but is the actual item in Lighting called "Item" or is it something else?
Report Abuse
Vampyroteuthiss is not online. Vampyroteuthiss
Joined: 17 Jun 2010
Total Posts: 11541
05 Sep 2014 03:41 PM
My bad, line 3 is correct.
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
05 Sep 2014 03:47 PM
Still not working.
Report Abuse
Vampyroteuthiss is not online. Vampyroteuthiss
Joined: 17 Jun 2010
Total Posts: 11541
05 Sep 2014 03:49 PM
Look in lighting, what is the name of the object you are trying to clone.
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
05 Sep 2014 03:54 PM
Item
Report Abuse
Vampyroteuthiss is not online. Vampyroteuthiss
Joined: 17 Jun 2010
Total Posts: 11541
05 Sep 2014 03:54 PM
Are there multiple things named Item?
Report Abuse
Vampyroteuthiss is not online. Vampyroteuthiss
Joined: 17 Jun 2010
Total Posts: 11541
05 Sep 2014 03:55 PM
I think I may be wrong, but are you just repeating wait over and over and over?
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
05 Sep 2014 03:56 PM
yes
Report Abuse
Vampyroteuthiss is not online. Vampyroteuthiss
Joined: 17 Jun 2010
Total Posts: 11541
05 Sep 2014 03:58 PM
while true do wait() until

thing = script.Parent
thing.Text == "11" then
thing.Text = ""
local h = game.Lighting.Item:Clone()
h.Parent = Workspace

end
end



Try this?
Report Abuse
Vampyroteuthiss is not online. Vampyroteuthiss
Joined: 17 Jun 2010
Total Posts: 11541
05 Sep 2014 03:58 PM
If there are multiple things named Item in lighting then you need to isolate one. So make it like Item1, Item2, Item3, etc. And in the script, specify which item you want specifically
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