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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 21 Jul 2016 10:12 PM |
| http://wiki.roblox.com/index.php?title=Cookbook |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|