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 |
|
|
|
| 16 Feb 2016 11:23 PM |
| It should be double == not one single =. |
|
|
| Report Abuse |
|
|
Arkitek
|
  |
| Joined: 09 May 2015 |
| Total Posts: 13095 |
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 09 May 2015 |
| Total Posts: 13095 |
|
| |
|
|
| 16 Feb 2016 11:42 PM |
for i = 0,1,.1 do wait(1) script.Parent.Transparency = i end |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 17 Feb 2016 12:04 AM |
That needs another end at the end
|
|
|
| Report Abuse |
|
|