generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Whats wrong with this?

Previous Thread :: Next Thread 
doneyes is not online. 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
PompeyTheGreat is not online. PompeyTheGreat
Joined: 10 Apr 2011
Total Posts: 5615
06 Dec 2011 08:02 PM
Change "=" in line 1 to "=="

## don't judge me ##
Report Abuse
TwoBoo is not online. 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 is not online. 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 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
06 Dec 2011 08:18 PM
You also forgot your end.
Report Abuse
doneyes is not online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
06 Dec 2011 09:02 PM
ah, yes.
Report Abuse
doneyes is not online. 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 is not online. 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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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 is not online. 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
Penguine236 is not online. Penguine236
Joined: 13 Apr 2011
Total Posts: 1303
07 Dec 2011 04:30 PM
what exactly do you want the script to do?
Report Abuse
doneyes is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image