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: Duplication script

Previous Thread :: Next Thread 
awsomeness7878 is not online. awsomeness7878
Joined: 23 Nov 2008
Total Posts: 9512
10 Mar 2012 02:34 PM
I have this duplication script, but it has a few problems. The first is that it seems to work too fast, even though it's supposed to be delayed. The second is that roblox has a problem with putting two bricks in the exact same place, so I need one or two lines concerning cframing(It's anchored) so that the clone is overlaping the brick. Any help is apreciated! Heres the script:

while true do
wait(.1)
local cl = script.Parent:clone()
cl.Parent = game.Workspace
cl.Position = script.Parent.Position
wait(0.1)
end
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
10 Mar 2012 02:37 PM
while wait(0.25) do
script.Parent:clone().Parent = game.Workspace
wait(0.25)
end
Report Abuse
kools is not online. kools
Joined: 11 Jan 2009
Total Posts: 1659
10 Mar 2012 02:38 PM
while true do
local cl = script.Parent:clone()
wait(.1)
cl.Parent = game.Workspace
cl.CFrame = CFrame.new(cl.Position.X,cl.Position.Y,cl.Position.Z)
wait(0.1)
end
Report Abuse
awsomeness7878 is not online. awsomeness7878
Joined: 23 Nov 2008
Total Posts: 9512
10 Mar 2012 02:39 PM
thx.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
10 Mar 2012 02:39 PM
You should use MakeJoints when cloning.
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
10 Mar 2012 02:49 PM
kools, you late posted...
Report Abuse
awsomeness7878 is not online. awsomeness7878
Joined: 23 Nov 2008
Total Posts: 9512
10 Mar 2012 03:07 PM
k, that worked, but now a new problem has arisen. see, the brick this script is in has a cframe script, so it is rotating, and the copies aren't oriented in the same direction as the original brick at the time of the copying. How would I fix that?
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
10 Mar 2012 04:20 PM
@flappy - No offense, but I think he realized. :P
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
10 Mar 2012 04:27 PM
Electric, just making sure. XD
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