doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 06 Dec 2011 08:02 PM |
if script.Parent.Parent.Seat.Transparency = 0 then return 1 else script.Parent.Reflectance = 1
All the destinations are correct. Output says then is expected near =
what does this mean? |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2011 08:02 PM |
Change "=" in line 1 to "=="
## don't judge me ## |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
|
| 06 Dec 2011 08:02 PM |
if script.Parent.Parent.Seat.Transparency == 0 then return 1 -- What's this? else script.Parent.Reflectance = 1 |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 06 Dec 2011 08:11 PM |
| I figured it would return the script to line 1 so it would keep repeating. Am I wrong? |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
| |
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 06 Dec 2011 09:06 PM |
| it doesnt work. I added an end and put in the == |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 06 Dec 2011 09:06 PM |
| I thought the == would mean that script.parent stuff is now 0. Like not that it is set to 0, but it is 0. |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2011 09:09 PM |
== is comparison
1 == 1 --> true 1 == 2 --> false
= is assignment
x = 1 --> x is now 1 lol = "pancaik" --> lol is now pancaik
Cheers, -- AFF |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 07 Dec 2011 04:27 PM |
| Okay I guess that does make sense. But my script still isn't working. Anyone know why? |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2011 04:30 PM |
| what exactly do you want the script to do? |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 08 Dec 2011 06:17 AM |
Kind of exactly what it says. If so or so is 1, then return to line 1. Otherwise, so and so equals false.
I mean just that setup. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 08 Dec 2011 02:58 PM |
So you want this?
if script.Parent.Parent.Seat.Transparency == 0 then script.Parent.Parent.Seat.Transparency = 1--Whatever you want else script.Parent.Reflectance = 1 end
? |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 09 Dec 2011 09:30 PM |
| That left out the return to line 1 completely. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 09 Dec 2011 10:16 PM |
| Well I'm not sure what youw ant :P |
|
|
| Report Abuse |
|
|