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: Why wont this clone?

Previous Thread :: Next Thread 
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 08:06 PM
Sorry im new to this but whenever i press run the script works but it just dosent do the cloning part???

redy = game.ServerStorage.tvr
cycle = 0

while true do
redy:Clone()
redy.Parent = game.Workspace
redy.Position = Vector3.new(-980.4, 21.7, -319.4)
wait(2)

for i = 1,60,0.1 do
redy.CFrame = redy.CFrame * CFrame.new(0,0,10)
wait(0.1)
cycle = cycle + 1
if cycle >= 60 then
redy:Destroy()
end
end
end
Report Abuse
Ben1925 is not online. Ben1925
Joined: 07 Apr 2011
Total Posts: 741
28 Oct 2015 08:10 PM
Can you give us your output? Also, I'd recommend you put tvr in "ReplicatedStorage" as that is for Client and Server.
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
28 Oct 2015 08:10 PM
You have to save the clone to a variable and use the new variable instead of the old one


Instance.new("BodyVelocity",SenseiWarrior).velocity = CFrame.new(SenseiWarrior.Torso.Position,YourGirlsDMs.Position).lookVector * 10
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 08:12 PM
Ohhhh ok let me try both of your suggestions
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 08:29 PM
I assigned a variable to the new one but it still dosent clone so it says its not a valid member and I tried storing the original in ReplicatedStorage and Lighting unless im doing something wrong because i just started scripting

redy = game.ServerStorage.tvr
cycle = 0
redy2 = game.ServerStorage.tvr2

while true do
redy:Clone()
redy.Name = "tvr2"
redy2.Parent = game.Workspace
redy2.Position = Vector3.new(-980.4, 21.7, -319.4)
wait(2)

for i = 1,60,0.1 do
redy2.CFrame = redy.CFrame * CFrame.new(0,0,10)
wait(0.1)
cycle = cycle + 1
if cycle >= 60 then
redy2:Destroy()
end
end
end
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 08:36 PM
help?
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 08:41 PM
bump
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 08:48 PM
BUMMMPP I wanna do this quick
Report Abuse
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
28 Oct 2015 08:53 PM
redy = game.ServerStorage.tvr
cycle = 0

while true do
local newclone = redy:Clone()
newclone.Name = "tvr2"
newclone.Parent = game.Workspace
newclone.Position = Vector3.new(-980.4, 21.7, -319.4)
wait(2)

for i = 1,60,0.1 do
newclone.CFrame = redy.CFrame * CFrame.new(0,0,10)
wait(0.1)
cycle = cycle + 1
if cycle >= 60 then
newclone:Destroy()
end
end
end
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 08:54 PM
Thankksss!
Report Abuse
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
28 Oct 2015 08:55 PM
You're welcome.
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 09:00 PM
Wait hangon now it dosent loop ARGHHHHHHHHHHHH
Report Abuse
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
28 Oct 2015 09:00 PM
Any output?
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 09:02 PM
Nope nothing just says the file i opened that im working on.
Report Abuse
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
28 Oct 2015 09:03 PM
try this



redy = game.ServerStorage.tvr
cycle = 0

while true do
local newclone = redy:Clone()
newclone.Name = "tvr2"
newclone.Parent = game.Workspace
newclone.Position = Vector3.new(-980.4, 21.7, -319.4)
wait(2)

for i = 1,60,0.1 do
newclone.CFrame = newclone.CFrame * CFrame.new(0,0,10)
wait(0.1)
cycle = cycle + 1
if cycle >= 60 then
newclone:Destroy()
end
end
end
Report Abuse
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
28 Oct 2015 09:04 PM
Also you might want to set the cycle to 0 at the end of each loop.
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 09:06 PM
This does everything I want it too but it still dosent loop urgh why is LUA so extra!
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 09:07 PM
Wait let me do what u said about cycle ignore my previous post
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 09:10 PM
I put it back to 0 after the thing is destroyed still wont work!!
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 09:11 PM
Should I put it somewhere else instead of ServerStorage?
Report Abuse
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
28 Oct 2015 09:11 PM
OK, another thing you can try is putting the cycle variable inside the loop.
Report Abuse
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
28 Oct 2015 09:12 PM
Wait..... Have you had this script inside ServerStorage???
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 09:19 PM
I tried what you said and tried putting the original part i want to clone in other areas such as replicatedstorage, lightining and I also put it in the workspace and it wont clone
Report Abuse
BloodDragonII is not online. BloodDragonII
Joined: 05 May 2012
Total Posts: 1187
28 Oct 2015 09:27 PM
No the script isnt inside serverstorage its in workspace
Report Abuse
fierydragonkeeper is not online. fierydragonkeeper
Joined: 08 Oct 2012
Total Posts: 1192
28 Oct 2015 09:31 PM
I never told you to do that? Post the script you are using now.
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