|
| 19 Jan 2014 02:06 PM |
if game.Workspace.Lava_Falls == true for i=1, 60 do game.Workspace.Lava_Falls.Rock_Small:Clone(RS) RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position end
-- ive lost what the script is doing -- |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 02:07 PM |
its meant to say if lava is in workspace clone a small rock paste small rock above lava_bottom do it 60 times end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 19 Jan 2014 02:18 PM |
| b3... cmon smart people :) |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 02:19 PM |
if game.Workspace.Lava_Falls == true for i=1, 60 do RS = game.Workspace.Lava_Falls.Rock_Small:clone() RS.parent = game.Workspace RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position end |
|
|
| Report Abuse |
|
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 19 Jan 2014 02:19 PM |
'if game.Workspace.Lava_Falls == true'
See something missing there? I sure do. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 02:20 PM |
if game.Workspace.Lava_Falls == true then for i=1, 60 do RS = game.Workspace.Lava_Falls.Rock_Small:clone() RS.parent = game.Workspace RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position end end |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 02:21 PM |
mabye... im thinking off something like
if game.Workspace.Lava_Falls == true then for i=1, 60 do RS = game.Workspace.Lava_Falls.Rock_Small:clone() RS.parent = game.Workspace RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position end |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 02:21 PM |
if game.Workspace.Lava_Falls == true then then for i=1, 60 do RS = game.Workspace.Lava_Falls.Rock_Small:clone() RS.parent = game.Workspace RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position end end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 19 Jan 2014 02:31 PM |
Jesus christ man. There's a 'then' for every conditional statement, use it.
And you're missing an End |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 02:33 PM |
if game.Workspace.Lava_Falls then for i=1, 60 do RS = game.Workspace.Lava_Falls.Rock_Small:clone() RS.Parent = game.Workspace RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position wait() end end |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 19 Jan 2014 02:34 PM |
if game.Workspace:FindFirstChild("Lava_Falls") then for i=1, 60 do RS = game.Workspace.Lava_Falls.Rock_Small:Clone() RS.Position = game.Workspace.Lava_Falls.Lava_Bottom.Position RS.Parent = game.Workspace wait() end end |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Jan 2014 02:35 PM |
Is that a value...? (Lava_Falls) |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Jan 2014 02:41 PM |
You know.. == true is to check if its true other wise asking if its true or false and if its true to do w/e but you know it only works with Boolvalues and like uhh DB = true or w/e
So yeh
If game.Workspace.themodel then -- thats 1 day to do it end
also when ever you use if it always uses a end and you can also use elseif that doesn't need a end |
|
|
| Report Abuse |
|
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 19 Jan 2014 02:42 PM |
if workspace:FindFirstChild("Model") then
end |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 02:43 PM |
| ye u can do either one they both work but findfirstchild helps it sometimes |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 19 Jan 2014 02:44 PM |
There is a reason why FindFirstChild exists. Always use it if you are: -Unsure if something exists -A name of a child is also a property name of an object |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 05:17 PM |
| this is a pointless post of doom |
|
|
| Report Abuse |
|
|