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 » Scripters
Home Search
 

Re: What does this underlined red mean?

Previous Thread :: Next Thread 
Arkitek is online. Arkitek
Joined: 09 May 2015
Total Posts: 13095
16 Feb 2016 11:22 PM
while true do

wait(10)
sound = script.Parent.Foghorn
sound:play()

for i = 1,5 +1 do
script.Parent.Transparency = script.Parent.Transparency -.2
if script.Parent.Transparency = 0 then

for i = 1,5 +1 do
script.Parent.Transparency = script.Parent.Transparency +.2
wait(2)

end
end
end
end


at "if script.Parent.Transparency = 0 then"

when i hover over it it says "Expected 'then', got '='"

how 2 fix
Report Abuse
CrustyCitation5 is not online. CrustyCitation5
Joined: 03 Feb 2016
Total Posts: 155
16 Feb 2016 11:23 PM
It should be double == not one single =.
Report Abuse
Arkitek is online. Arkitek
Joined: 09 May 2015
Total Posts: 13095
16 Feb 2016 11:23 PM
o thx crusty
Report Abuse
Arkitek is online. Arkitek
Joined: 09 May 2015
Total Posts: 13095
16 Feb 2016 11:27 PM
ok i got another problem

the
for i = 1,5 +1 do
script.Parent.Transparency = script.Parent.Transparency +.2
wait(2)

doesnt fire when its done with the

for i = 1,5 +1 do
script.Parent.Transparency = script.Parent.Transparency -.2
if script.Parent.Transparency = 0 then
Report Abuse
CrustyCitation5 is not online. CrustyCitation5
Joined: 03 Feb 2016
Total Posts: 155
16 Feb 2016 11:31 PM
for i = 1, 5, 1 do
script.Parent.Transparency = script.Parent.Transparency + .2
wait(2)

and

for i = 1,5, 1 do
script.Parent.Transparency = script.Parent.Transparency - .2
if script.Parent.Transparency == 0 then


+1 should never be defined. 1 is always positive. Negatives have to be defined with - in front like -1. You're also missing a second comma.
Report Abuse
Arkitek is online. Arkitek
Joined: 09 May 2015
Total Posts: 13095
16 Feb 2016 11:35 PM
it doesnt make it go transparent using that still
Report Abuse
Arkitek is online. Arkitek
Joined: 09 May 2015
Total Posts: 13095
16 Feb 2016 11:40 PM
pls help
Report Abuse
myactivetestplace is not online. myactivetestplace
Joined: 11 Jul 2015
Total Posts: 3733
16 Feb 2016 11:42 PM
for i = 0,1,.1 do
wait(1)
script.Parent.Transparency = i
end
Report Abuse
Arkitek is online. Arkitek
Joined: 09 May 2015
Total Posts: 13095
16 Feb 2016 11:49 PM
ok i used part of your script

while true do
wait(5)
sound = script.Parent.Foghorn
block = script.Parent
sound:play()

for i = 1,0,-.01 do
wait()
script.Parent.Transparency = i

if script.Parent.Transparency == 0 then

for i = 0,1,.01 do
wait()
script.Parent.Transparency = i

end
end
end
end


it slowly becomes visible, but it never slowly goes transparent
Report Abuse
myactivetestplace is not online. myactivetestplace
Joined: 11 Jul 2015
Total Posts: 3733
17 Feb 2016 12:03 AM
for i = 1,0,-.01 do
wait(.5)
script.Parent.Transparency = i
end
wait(1)
for i = 0,1,.01 do
wait(.5)
script.Parent.Transparency = i

Just so you know, the more you actually try yourself the better you will become.
Report Abuse
myactivetestplace is not online. myactivetestplace
Joined: 11 Jul 2015
Total Posts: 3733
17 Feb 2016 12:04 AM
That needs another end at the end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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