Rspkme
|
  |
| Joined: 06 Feb 2008 |
| Total Posts: 1013 |
|
|
| 02 Apr 2014 02:46 PM |
wait(20) tran.BackgroundTransparancy = 0.95 wait(0.1) tran.BackgroundTransparancy = 0.90 wait(0.1) tran.BackgroundTransparancy = 0.85 wait(0.1) tran.BackgroundTransparancy = 0.80 wait(0.1) tran.BackgroundTransparancy = 0.75 wait(0.1) tran.BackgroundTransparancy = 0.70 wait(0.1) tran.BackgroundTransparancy = 0.65 wait(0.1) tran.BackgroundTransparancy = 0.60 wait(0.1) tran.BackgroundTransparancy = 0.55 wait(0.1) tran.BackgroundTransparancy = 0.50 wait(0.1) tran.BackgroundTransparancy = 0.45 wait(0.1) tran.BackgroundTransparancy = 0.40 wait(0.1) tran.BackgroundTransparancy = 0.35 wait(0.1) tran.BackgroundTransparancy = 0.30 wait(0.1) tran.BackgroundTransparancy = 0.25 wait(0.1) tran.BackgroundTransparancy = 0.20 wait(0.1) tran.BackgroundTransparancy = 0.15 wait(0.1) tran.BackgroundTransparancy = 0.10 wait(0.1) tran.BackgroundTransparancy = 0.5 wait(0.1) tran.BackgroundTransparancy = 0
if tran.BackgroundTranspatancy == 0 then print("It worked") end
Please?
|
|
|
| Report Abuse |
|
|
Rspkme
|
  |
| Joined: 06 Feb 2008 |
| Total Posts: 1013 |
|
|
| 02 Apr 2014 02:47 PM |
| Can someone make it so if they click an item called "Button1" that happens. |
|
|
| Report Abuse |
|
|
Rspkme
|
  |
| Joined: 06 Feb 2008 |
| Total Posts: 1013 |
|
|
| 02 Apr 2014 02:47 PM |
forgot to add this
local tran = game.Players.LocalPlayers.PlayerGui.ScreenGui.Frame |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2014 02:48 PM |
for i = 1, 0, -0.05 do tran.BackgroundTransparency = i wait(0.1) end print 'it worked'
i'm asian |
|
|
| Report Abuse |
|
|
trogyssy
|
  |
| Joined: 29 Oct 2010 |
| Total Posts: 2322 |
|
|
| 02 Apr 2014 02:50 PM |
Gawd that's ugly
local b=Instance.new("ClickButton") b.Parent=script.Parent b.Clicked:connect(function() for i=1, 0, 0.05 do script.Parent.Transparency=i end end)
===A silent guardian, a watchful protector, a doge knight=== |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 02 Apr 2014 02:51 PM |
Put a ClickDetector in the brick and put this script in the brick and make sure that 'tran' is defined..
script.Parent.ClickDetector.MouseClick:connect(function() wait(20) for i = 1, 20,.05 do tran.BackgroundTransparancy = i wait(0.1) if tran.BackgroundTranspatancy == 0 then print("It worked") end end end) |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2014 02:52 PM |
@trog wouldn't work because you would increment the initialization, and that would return false the loop would not iterate
i'm asian |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 02 Apr 2014 02:54 PM |
Put a ClickDetector in the brick and put this script in the brick.
local tran = game.Players.LocalPlayers.PlayerGui.ScreenGui.Frame
script.Parent.ClickDetector.MouseClick:connect(function() wait(20) for i = 1, 20,.05 do tran.BackgroundTransparancy = i wait(0.1) if tran.BackgroundTransparancy == 0 then print("It worked") end end end) |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2014 02:55 PM |
local tran = game.Players.LocalPlayers.PlayerGui.ScreenGui.Frame b = Instance.new('TextButton', tran)
b.MouseButton1Down:connect(function() for i = 1, 0, -0.05 do tran.BackgroundTransparency = i wait(0.1) end print 'it worked' end)
i'm asian
|
|
|
| Report Abuse |
|
|
|
| 02 Apr 2014 02:55 PM |
@goulstem it's a gui not a brick
i'm asian |
|
|
| Report Abuse |
|
|
Rspkme
|
  |
| Joined: 06 Feb 2008 |
| Total Posts: 1013 |
|
|
| 02 Apr 2014 02:55 PM |
| @Goul, do i put it in a local script or normal? |
|
|
| Report Abuse |
|
|
Rspkme
|
  |
| Joined: 06 Feb 2008 |
| Total Posts: 1013 |
|
| |
|
Rspkme
|
  |
| Joined: 06 Feb 2008 |
| Total Posts: 1013 |
|
| |
|
|
| 02 Apr 2014 02:58 PM |
Wait, you're using a SurfaceGui?
i'm asian |
|
|
| Report Abuse |
|
|
Rspkme
|
  |
| Joined: 06 Feb 2008 |
| Total Posts: 1013 |
|
|
| 02 Apr 2014 03:06 PM |
| They click a brick, the surfaceGUI pops up fading to black, they teleport to a diff room, black fades out, they're in a new place. |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2014 03:08 PM |
local tran = game.Players.LocalPlayers.PlayerGui.ScreenGui.Frame b = Instance.new('ClickDetector', PUTBRICKPATHHERE)
b.MouseClick:connect(function() for i = 1, 0, -0.05 do tran.BackgroundTransparency = i wait(0.1) end print 'it worked' end)
and by the way, if this script manipulates a surface gui, and is inside a brick, it will not work as a local script i'm asian |
|
|
| Report Abuse |
|
|