Pletacon
|
  |
| Joined: 03 Oct 2016 |
| Total Posts: 77 |
|
|
| 25 Jun 2017 09:28 AM |
For some reason my click functions do not work anymore, I seriously have no clue why they don't. I do not get any errors aswell. Did roblox screw them up with updates?
The current script: --// Pletacon
--// Variables \\-- local clickbutton = script.Parent:WaitForChild("TextButton") local PlayButton = script.Parent:WaitForChild("Click") local TextInvis = script.Parent:WaitForChild("Update_Text") local TextInvis1 = TextInvis:WaitForChild("TextLabel") local menuframe = script.Parent
local clicked = false local click = false
--// Script \\-- clickbutton.MouseButton1Click:Connect(function() TextInvis1.TextTransparency = 0.9 wait(0.1) TextInvis1.TextTransparency = 0.8 wait(0.1) TextInvis1.TextTransparency = 0.7 wait(0.1) TextInvis1.TextTransparency = 0.6 wait(0.1) TextInvis1.TextTransparency = 0.5 wait(0.1) TextInvis1.TextTransparency = 0.4 wait(0.1) TextInvis1.TextTransparency = 0.3 wait(0.1) TextInvis1.TextTransparency = 0.2 wait(0.1) TextInvis1.TextTransparency = 0.1 wait(0.1) TextInvis1.TextTransparency = 0
end)
|
|
|
| Report Abuse |
|
|
RomDino
|
  |
| Joined: 04 Jul 2015 |
| Total Posts: 2795 |
|
|
| 25 Jun 2017 09:40 AM |
| What does it says in the output> |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2017 09:42 AM |
| do for i=1,10 do wait(.1) TextInvis1.TextTransparency=TextInvis1.TextTransparency-0.1 end |
|
|
| Report Abuse |
|
|
RomDino
|
  |
| Joined: 04 Jul 2015 |
| Total Posts: 2795 |
|
|
| 25 Jun 2017 09:44 AM |
That's not his problem here dude
Also he said that his function doesn't work so it doesn't have anything to do with the loop |
|
|
| Report Abuse |
|
|
Pletacon
|
  |
| Joined: 03 Oct 2016 |
| Total Posts: 77 |
|
|
| 25 Jun 2017 09:49 AM |
| Nothing really, the click function just doesn't work. |
|
|
| Report Abuse |
|
|
Pletacon
|
  |
| Joined: 03 Oct 2016 |
| Total Posts: 77 |
|
|
| 25 Jun 2017 09:50 AM |
| This issue appeared two days ago, the same time when all the admins got content deleted. Is this maybe because of roblox? |
|
|
| Report Abuse |
|
|
RuizuKun
|
  |
| Joined: 20 Jan 2016 |
| Total Posts: 1133 |
|
|
| 25 Jun 2017 09:58 AM |
use print()
This is Reality, NOT a Dream. |
|
|
| Report Abuse |
|
|
Pletacon
|
  |
| Joined: 03 Oct 2016 |
| Total Posts: 77 |
|
|
| 25 Jun 2017 10:00 AM |
| Lol, Why should i use print(). That won't solve anything... |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2017 10:00 AM |
Ya, put prints throughout the script. It's possible you're waiting forever on one of those guis.
|
|
|
| Report Abuse |
|
|
Pletacon
|
  |
| Joined: 03 Oct 2016 |
| Total Posts: 77 |
|
| |
|
Pletacon
|
  |
| Joined: 03 Oct 2016 |
| Total Posts: 77 |
|
|
| 25 Jun 2017 10:02 AM |
Does everything work fine for you guys or not?
|
|
|
| Report Abuse |
|
|
|
| 25 Jun 2017 10:11 AM |
| Please use a for loop for this. |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2017 10:13 AM |
clickbutton.MouseButton1Down:Connect(function() for i=1,10 do TextInvis1.TextTransparency=(i/10) wait(0.1) end end) |
|
|
| Report Abuse |
|
|
RuizuKun
|
  |
| Joined: 20 Jan 2016 |
| Total Posts: 1133 |
|
|
| 25 Jun 2017 10:31 AM |
"Lol, Why should i use print(). That won't solve anything..."
Well it solved a lot of problems for me...
This is Reality, NOT a Dream. |
|
|
| Report Abuse |
|
|
RuizuKun
|
  |
| Joined: 20 Jan 2016 |
| Total Posts: 1133 |
|
|
| 25 Jun 2017 10:32 AM |
is your game FE? is the script in a Local script?
This is Reality, NOT a Dream. |
|
|
| Report Abuse |
|
|
Pletacon
|
  |
| Joined: 03 Oct 2016 |
| Total Posts: 77 |
|
|
| 25 Jun 2017 01:23 PM |
| I think it's due to roblox updates, and then it got broken. Since there is nothing wrong with the script... |
|
|
| Report Abuse |
|
|
Fangous
|
  |
| Joined: 03 Jul 2010 |
| Total Posts: 4448 |
|
|
| 25 Jun 2017 01:36 PM |
this isnt 2009
debug it with waits to check for infinite yields and make sure the script isnt disabled
and for the love of god please use loops |
|
|
| Report Abuse |
|
|
RuizuKun
|
  |
| Joined: 20 Jan 2016 |
| Total Posts: 1133 |
|
|
| 25 Jun 2017 10:50 PM |
Pletacon = Yamcha
This is Reality, NOT a Dream. |
|
|
| Report Abuse |
|
|
Pletacon
|
  |
| Joined: 03 Oct 2016 |
| Total Posts: 77 |
|
|
| 26 Jun 2017 08:51 AM |
| This script is just a exmaple my man, all my other scripts got broken aswell. And they were working before. |
|
|
| Report Abuse |
|
|