drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 06 Sep 2011 09:13 PM |
so, could i do an if true then do inside an if true then do?
like this:
if script.Parent.Level.Value <= 2 then do a = math.random (1,2)
if a = 1 then do script here elseif a = 2 then do script here
if script.Parent.Level.Value >= 3 then do
if a = 1 then do script here elseif a = 2 then do script here
end end end end |
|
|
| Report Abuse |
|
|
| |
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 06 Sep 2011 09:37 PM |
what else? i accidentally put those in.... |
|
|
| Report Abuse |
|
|
smurf279
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 6871 |
|
|
| 06 Sep 2011 09:38 PM |
| Put the variable before the first if/then statement |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2011 09:42 PM |
@Bunny
You can have random 'do's in the middle of nowhere, as long as you end them. Try this script out:
do print("LOL it printed") end |
|
|
| Report Abuse |
|
|
| |
|