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: This isn't working

Previous Thread :: Next Thread 
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
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 is not online. 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
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
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
VineyardVine is not online. VineyardVine
Joined: 20 Nov 2010
Total Posts: 904
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
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
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 is not online. Fribet
Joined: 08 Feb 2014
Total Posts: 700
25 Jul 2015 12:40 PM
ImageTransparency is intvalue, not a boolean.
Report Abuse
DeveloperBlue is online. DeveloperBlue
Joined: 15 Apr 2009
Total Posts: 1344
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
TheBlueRivers is not online. TheBlueRivers
Joined: 20 Jul 2011
Total Posts: 2555
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 is not online. 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 is not online. 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
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