|
| 29 Nov 2015 03:41 AM |
function Fade() for i = 1,10 do print "Fading in" script.Parent.Menu.CONTROLS.BackgroundTransparency = i/10 end end
script.Parent.Menu.List.Buttons.ControlsButton.MouseButton1Click:connect(function() Fade() end)
CONTROLS isn't visible, but it needs to fade in and become visible once "ControlsButton" is clicked.
Thanks for your help! |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2015 03:45 AM |
local Menu = script.Parent:WaitForChild("Menu");
Menu.List.Buttons.ControlsButton.MouseButton1Click:connect(function() for i = 1, 0, -0.1 do print("Fading in."); Menu.CONTROLS.BackgroundTransparency = i; end end)
I removed the function for the sake of efficiency. So, here is the function.
local function Fade() for i = 1, 0, -0.1 do print("Fading in."); Menu.CONTROLS.BackgroundTransparency = i; end end
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784 |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
Ben1925
|
  |
| Joined: 07 Apr 2011 |
| Total Posts: 741 |
|
|
| 29 Nov 2015 04:01 AM |
Is the problem "It's appearing too quickly" ? or is it "It's not appearing at all?"
function Fade() for i = 1,0,-0.1 do print("Fading in") wait(0.1) script.Parent.Menu.CONTROLS.BackgroundTransparency = i end end
You reversed the for loop, it's causing it to increase transparency instead of decreasing it. You also need to wait, as WILL do the code here with no error, it's just that it'll do it way too fast for your eyes to see. |
|
|
| Report Abuse |
|
|
Ben1925
|
  |
| Joined: 07 Apr 2011 |
| Total Posts: 741 |
|
| |
|
|
| 29 Nov 2015 04:05 AM |
| It's not appearing at all. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
Ben1925
|
  |
| Joined: 07 Apr 2011 |
| Total Posts: 741 |
|
|
| 29 Nov 2015 04:14 AM |
| Any error messages it returns? Maybe it's positioned off screen where you can't see it. |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Nov 2015 04:17 AM |
| So annoying. This is important. |
|
|
| Report Abuse |
|
|
Ben1925
|
  |
| Joined: 07 Apr 2011 |
| Total Posts: 741 |
|
|
| 29 Nov 2015 04:17 AM |
| Check it's size, position, anything that could be making it invisible for some reason. Maybe the Visible property is ticked off? |
|
|
| Report Abuse |
|
|
| |
|
Ben1925
|
  |
| Joined: 07 Apr 2011 |
| Total Posts: 741 |
|
|
| 29 Nov 2015 04:31 AM |
| Wait, so is it checked or not? |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Nov 2015 05:24 AM |
| @Ben - Thanks for your help, I'm going out now, I'll see if you have figured it out when I'm back. |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2015 05:56 AM |
Oops, I forgot to put a wait(0.1) in.
Tell us these:
Transparency: 0 to 1 Visible: True or False Size: UDim2 Position: UDim2
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
|
|
|
| Report Abuse |
|
|
|
| 29 Nov 2015 07:30 AM |
Transparency = 0 Visible = False Size = {0.3, 0},{0.5, 0} Position = {0.5, 0},{0.2, 0} |
|
|
| Report Abuse |
|
|
| |
|
| |
|
76km
|
  |
| Joined: 14 Aug 2015 |
| Total Posts: 5455 |
|
|
| 29 Nov 2015 07:39 AM |
please stop this nonsense:
Fading a brick.
count = 0 max = 1 timer = 0.5 repeat wait(timer) count = count + 0.1 brick.Transparancy = count until brick.Transparency = 1
solved
I'm an atheist priest |
|
|
| Report Abuse |
|
|