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: Please help fix this I hardly ever use the clone function

Previous Thread :: Next Thread 
Luminak is not online. Luminak
Joined: 27 May 2012
Total Posts: 2809
01 May 2015 04:36 PM
script.Parent.Touched:connect(function()
game.Workspace.BasePlate:Clone()
end)
Report Abuse
membra is not online. membra
Joined: 14 Oct 2008
Total Posts: 6313
01 May 2015 05:36 PM
The method only returns a copy of the object, it doesn't automagically create it. Assign the BasePlate clone to a semantic identifier and then move it into the Workspace.

[very moisty]
Report Abuse
Luminak is not online. Luminak
Joined: 27 May 2012
Total Posts: 2809
02 May 2015 08:17 AM
wut
Report Abuse
ImageLabel is not online. ImageLabel
Joined: 08 Dec 2012
Total Posts: 428
02 May 2015 08:23 AM
in simpler tongues, assign the cloned item to a variable, then parent it to the workspace.
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
02 May 2015 08:30 AM
script.Parent.Touched:connect(function()
local copy = game.Workspace.BasePlate:Clone()
copy.Parent = game.Workspace
end)
Report Abuse
AnimeWiki is not online. AnimeWiki
Joined: 26 Oct 2014
Total Posts: 460
02 May 2015 08:42 AM
or


script.Parent.Touched:connect(function()
game.Workspace.BasePlate:Clone().Parent = workspace
end)
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