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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Clone function

Previous Thread :: Next Thread 
borninggoku911 is not online. borninggoku911
Joined: 07 Jul 2010
Total Posts: 879
01 Nov 2011 06:04 PM
I forgot how to do it, wasnt it something like this:

test = Instance.new("Part",workspace)
workspace.test.clone
end



P.S. test it a brick
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
01 Nov 2011 06:06 PM
workspace.test:clone()
Report Abuse
LaughingSheep is not online. LaughingSheep
Joined: 11 Oct 2011
Total Posts: 44
01 Nov 2011 06:08 PM
local Test = game.Workspace.test:Clone()
Test.Parent = game.Workspace

That is teh basics
Report Abuse
borninggoku911 is not online. borninggoku911
Joined: 07 Jul 2010
Total Posts: 879
01 Nov 2011 06:10 PM
Ya im new to scripting
Report Abuse
KidTech101 is not online. KidTech101
Joined: 05 Feb 2011
Total Posts: 61
01 Nov 2011 07:58 PM
-_- Even more basic...

---------------------------------------------------------------------------------------------
T=game.Workspace.test --If you use test a lot...
NewTest = T:clone()


Easy...

!~-KidTech101-~!
Report Abuse
wii4 is not online. wii4
Joined: 27 Nov 2007
Total Posts: 929
01 Nov 2011 08:00 PM
local T,Tclone = workspace.test,T:clone()
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
01 Nov 2011 08:06 PM
@wii4,
I'm pretty sure you'll get an error about attempting to index nil value 'T' (global).
local variables cannot be used until after the assignment statement their created in if I recall.
(It's been a while since I've done something like this)
Report Abuse
wii4 is not online. wii4
Joined: 27 Nov 2007
Total Posts: 929
01 Nov 2011 08:09 PM
@Necro, woops sorry forgot been using that to much with some scripts ive been working on for my game engine :S
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