|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 28 Oct 2015 08:12 PM |
| Ohhhh ok let me try both of your suggestions |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
| |
|
|
| 28 Oct 2015 08:48 PM |
| BUMMMPP I wanna do this quick |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
| |
|
|
| 28 Oct 2015 09:00 PM |
| Wait hangon now it dosent loop ARGHHHHHHHHHHHH |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Oct 2015 09:02 PM |
| Nope nothing just says the file i opened that im working on. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 28 Oct 2015 09:04 PM |
| Also you might want to set the cycle to 0 at the end of each loop. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 28 Oct 2015 09:07 PM |
| Wait let me do what u said about cycle ignore my previous post |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2015 09:10 PM |
| I put it back to 0 after the thing is destroyed still wont work!! |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2015 09:11 PM |
| Should I put it somewhere else instead of ServerStorage? |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2015 09:11 PM |
| OK, another thing you can try is putting the cycle variable inside the loop. |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2015 09:12 PM |
| Wait..... Have you had this script inside ServerStorage??? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 28 Oct 2015 09:27 PM |
| No the script isnt inside serverstorage its in workspace |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2015 09:31 PM |
| I never told you to do that? Post the script you are using now. |
|
|
| Report Abuse |
|
|