KodakKid3
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 2860 |
|
|
| 09 Sep 2013 11:02 PM |
For one, I know it's an inefficient/crappy script. I know. I started scripting less than three weeks ago. Please, don't give me suggestions of how to change it to make it better. I just need to know why the way I did, crappy as it is, isn't working, because it should be, as far as I know.
while true do wait() script.Parent.Transparency = 0 for x = .05,1.05,.05 do wait(.1) script.Parent.Transparency = x if script.Parent.Transparency >= 1 then script.Parent.CanCollide = false if script.Parent.Transparency < 1 then script.Parent.CanCollide = true end end end end |
|
|
| Report Abuse |
|
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 09 Sep 2013 11:04 PM |
| if script.Parent.Transparency <= 1 |
|
|
| Report Abuse |
|
|
KodakKid3
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 2860 |
|
|
| 09 Sep 2013 11:07 PM |
| Redlo, if its >= 1 I want it false, if it's < 1, I want it true. I cant have >= and <=. They aren't compatible, unless I never use 1. But I do. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 09 Sep 2013 11:08 PM |
| Why do you use such wonky syntax? |
|
|
| Report Abuse |
|
|
KodakKid3
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 2860 |
|
|
| 09 Sep 2013 11:09 PM |
| Because I am suckish at scripting. Still learning. A lot. I haven't used this stuff yet. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 09 Sep 2013 11:11 PM |
| Where do you learn such wonky syntax? |
|
|
| Report Abuse |
|
|
KodakKid3
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 2860 |
|
|
| 09 Sep 2013 11:12 PM |
| Um. Mostly from trying things out and seeing what works, with the help of Scripting Helpers, and the Wiki. It's hard to find a good way to do things, because there's so many methods. I'm just trying t learnt he basics for now, to become familiar with scripting. THen I'll get to making actually decent scripts. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 09 Sep 2013 11:13 PM |
| In the future, do not use such wonky syntax. |
|
|
| Report Abuse |
|
|
KodakKid3
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 2860 |
|
|
| 09 Sep 2013 11:14 PM |
| I will try. But for now. I need help with my wonky syntax. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2013 02:04 AM |
| Two thens for one if statement... Seems Legit. |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Sep 2013 02:07 AM |
"if script.Parent.Transparency >= 1 then script.Parent.CanCollide = false if script.Parent.Transparency < 1" If it`s greater then or equal to one then check if it`s less then one... You need an end after false. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2013 05:53 AM |
2nd if is a elseif
dumb floodcheck
Odnarb will RULE |
|
|
| Report Abuse |
|
|
KodakKid3
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 2860 |
|
| |
|