|
| 25 Jul 2015 12:35 PM |
while true do script.Parent.ImageLabel.ImageTransparency.Visible = true script.Parent.ImageLabel2.ImageTransparency.Visible = false wait (.25) script.Parent.ImageLabel.ImageTransparency.Visible = false script.Parent.ImageLabel2.ImageTransparency.Visible = true end
"There's candy in the white van kids!" |
|
|
| Report Abuse |
|
|
Fribet
|
  |
| Joined: 08 Feb 2014 |
| Total Posts: 700 |
|
|
| 25 Jul 2015 12:36 PM |
| Its not a scripting error, its a knowledge error, re do it. |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 12:38 PM |
Ok i did while true do script.Parent.ImageLabel.Visible = true script.Parent.ImageLabel2.Visible = false wait (.25) script.Parent.ImageLabel.Visible = false script.Parent.ImageLabel2.Visible = true end
and dont work
"There's candy in the white van kids!" |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 12:38 PM |
while true do script.Parent.ImageLabel.ImageTransparency.Visible = true wait (.25) script.Parent.ImageLabel.ImageTransparency.Visible = false end
Try that instead |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 12:40 PM |
I did this
while true do script.Parent.ImageLabel.Visible = true wait (.25) script.Parent.ImageLabel.Visible = false end
and it didnt work
"There's candy in the white van kids!" |
|
|
| Report Abuse |
|
|
Fribet
|
  |
| Joined: 08 Feb 2014 |
| Total Posts: 700 |
|
|
| 25 Jul 2015 12:40 PM |
| ImageTransparency is intvalue, not a boolean. |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 12:41 PM |
You need another wait after the last line, before the end.
In the while true do script, after running the last line, it's automatically going back to the first time, so the when you set the visibility it's cancelling itself out.
while true do script.Parent.ImageLabel.Visible = true script.Parent.ImageLabel2.Visible = false wait (.25) script.Parent.ImageLabel.Visible = false script.Parent.ImageLabel2.Visible = true wait (.25) -- This is all I added end |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 12:41 PM |
Im not using ImageTransparency im using visible
But i accidently kept both so I deleted imagetransparency.
"There's candy in the white van kids!" |
|
|
| Report Abuse |
|
|
baldo46
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 1254 |
|
|
| 25 Jul 2015 12:42 PM |
sp = script.Parent; sp.ImageLabel.Visible = not sp.ImageLAbel2.Visible;
while wait(.25) do sp.ImageLabel.Visible = not sp.ImageLabel.Visible; sp.ImageLabel2.Visible = not sp.ImageLabel2.Visible; for i,v in pairs(labels) do v.Visible = not v.Visible; end end
OR add a wait(.25) before the first thing. Because it doesn't wait between the while body cycles. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 25 Jul 2015 12:43 PM |
make sure its a local script
local image1 = script.Parent:WaitForChild("ImageLabel1") local image2 = script.Parent:WaitForChild("ImageLabel2")
while wait() do image1.Visible = true image2.Visible = false wait(0.25) image1.Visible = false image2.Visible = true end
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|