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: seting transparency of 2 or more ImageLabels with a loop

Previous Thread :: Next Thread 
xLeMyS is not online. xLeMyS
Joined: 28 Mar 2016
Total Posts: 6
21 Jul 2016 09:04 PM
starting with finding the ImageLabel on workspace so i did:

Image1 = game.Workspace.StarterGui.ScreenGui.Frame.Image1
Image2 = game.Workspace.StarterGui.ScreenGui.Frame.Image2
Image3 = game.Workspace.StarterGui.ScreenGui.Frame.Image3
Image4 = game.Workspace.StarterGui.ScreenGui.Frame.Image4

ok now i want a loop that turns 1 and 0 the transparency so :

while true do
wait(0.1)
Image1.ImageTransparency = 1
wait(0.1)
Image2.ImageTransparency = 1
wait(0.1)
Image3.ImageTransparency = 1
wait(0.1)
Image4.ImageTransparency = 1
wait(0.1)

Image1.ImageTransparency = 0
wait(0.1)
Image2.ImageTransparency = 0
wait(0.1)
Image3.ImageTransparency = 0
wait(0.1)
Image4.ImageTransparency = 0
end

after all this i test it and nothing hupned , i try to make a localscript nothing ..

oh and how i can use the destroy function?

i'm not english so i don't know if i made a mistake somewhere , tank you for readig




#xLeMyS
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
21 Jul 2016 09:06 PM
for i = 1, 4 do
game.Workspace.StarterGui.ScreenGui.Frame['Image'..i].ImageTransparency = 0
wait(0.1)
end
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
21 Jul 2016 09:07 PM
Also you're changing it in startergui. You want to change it in the playergui so change it to this in a localscript:

for i = 1, 4 do
game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame['Image'..i].ImageTransparency = 0
wait(0.1)
end
Report Abuse
xLeMyS is not online. xLeMyS
Joined: 28 Mar 2016
Total Posts: 6
21 Jul 2016 09:58 PM
ok alright i will try and tell you ;)


#xLeMyS
Report Abuse
xLeMyS is not online. xLeMyS
Joined: 28 Mar 2016
Total Posts: 6
21 Jul 2016 10:01 PM
so i need to make a local script where?


#xLeMyS
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
21 Jul 2016 10:04 PM
I suggest you start learning scripting somewhere more basic, the wiki will be helpful:

wiki.roblox.com

be sure to check out the roblox lua cookbook (google it)

the script should be in somewhere replicated to the player such as startergui
Report Abuse
xLeMyS is not online. xLeMyS
Joined: 28 Mar 2016
Total Posts: 6
21 Jul 2016 10:09 PM
ok what i want it to turn the trasparent property of the image lanbel in 1 and after at 0 with a loop but nothing hupned and no errors , also on thje coockbook i can't find it , tank you for the tips i stil learning the basics for this i'm asking :)


#xLeMyS
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
21 Jul 2016 10:11 PM
uh @kodran

for i,v in next, frame:GetChildren() do
v.Transparency = 1
end


Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
21 Jul 2016 10:12 PM
http://wiki.roblox.com/index.php?title=Cookbook
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
21 Jul 2016 10:14 PM
Never know if image1 will be first image2 will be second etc. your way because the table will be organized based on when they were created, not alphabetically.
Report Abuse
xLeMyS is not online. xLeMyS
Joined: 28 Mar 2016
Total Posts: 6
21 Jul 2016 10:16 PM
@timeTicks

The script should be inside the frame with a local script? also there are 4 imagesthat i want to put the transparency 1 and after 0 with a loop ...


#xLeMyS
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