mer5000
|
  |
| Joined: 13 Aug 2012 |
| Total Posts: 2094 |
|
|
| 22 Dec 2013 11:06 AM |
function onTouch() script.Parent.Visible=true script.Parent.BackgroundTransparency=0.9 script.Parent.TextTransparency=0.9 wait(0.5) script.Parent.BackgroundTransparency=0.8 script.Parent.TextTransparency=0.8 wait(0.5) script.Parent.BackgroundTransparency=0.7 script.Parent.TextTransparency=0.7 wait(0.5) script.Parent.BackgroundTransparency=0.6 script.Parent.TextTransparency=0.6 wait(0.5) script.Parent.BackgroundTransparency=0.5 script.Parent.TextTransparency=0.5 wait(0.5) script.Parent.BackgroundTransparency=0.4 script.Parent.TextTransparency=0.4 wait(0.5) script.Parent.BackgroundTransparency=0.3 script.Parent.TextTransparency=0.3 wait(0.5) script.Parent.BackgroundTransparency=0.2 script.Parent.TextTransparency=0.2 wait(0.5) script.Parent.BackgroundTransparency=0.1 script.Parent.TextTransparency=0.1 wait(0.5) script.Parent.BackgroundTransparency=0 script.Parent.TextTransparency=0 wait(5) script.Parent.Visible=false end script.Parent.Touched:connect(onTouch)
never works:L |
|
|
| Report Abuse |
|
|
mer5000
|
  |
| Joined: 13 Aug 2012 |
| Total Posts: 2094 |
|
|
| 22 Dec 2013 11:11 AM |
| sdzfffffffffffffffffffffffffffffffffffffffffffffffffffff |
|
|
| Report Abuse |
|
|
mer5000
|
  |
| Joined: 13 Aug 2012 |
| Total Posts: 2094 |
|
| |
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 22 Dec 2013 11:55 AM |
| learn to use a for loop please |
|
|
| Report Abuse |
|
|
mer5000
|
  |
| Joined: 13 Aug 2012 |
| Total Posts: 2094 |
|
|
| 22 Dec 2013 11:57 AM |
| it would just shorten the script.. |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 22 Dec 2013 11:58 AM |
Touched is not a valid member of TextButton.
"script.Parent.Touched:connect(onTouch)" should be script.Parent.MouseButton1Up:connect(onTouch) |
|
|
| Report Abuse |
|
|
Nyxis
|
  |
| Joined: 15 Nov 2012 |
| Total Posts: 3374 |
|
|
| 22 Dec 2013 11:58 AM |
Exactly.
It would be more efficient as well. |
|
|
| Report Abuse |
|
|
mer5000
|
  |
| Joined: 13 Aug 2012 |
| Total Posts: 2094 |
|
|
| 22 Dec 2013 12:00 PM |
| yeah , but this doesnt work:L.. |
|
|
| Report Abuse |
|
|
mer5000
|
  |
| Joined: 13 Aug 2012 |
| Total Posts: 2094 |
|
|
| 22 Dec 2013 12:01 PM |
how is it not a valid member?.. I tried this already in shorter scritps and it has worked |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
| |
|
mer5000
|
  |
| Joined: 13 Aug 2012 |
| Total Posts: 2094 |
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 22 Dec 2013 12:04 PM |
This is a GUI Button right? If so, use this:
-- local deb = true script.Parent.MouseButton1Up:connect(function() if deb then deb = false script.Parent.Visible=true for i = 9,0,-1 do script.Parent.BackgroundTransparency=i/10 script.Parent.TextTransparency=i/10 wait(0.5) end script.Parent.Visible=false end end) |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 22 Dec 2013 12:05 PM |
Wait, that would only work once. Here:
-- local deb = true script.Parent.MouseButton1Up:connect(function() if deb then deb = false script.Parent.Visible=true for i = 9,0,-1 do script.Parent.BackgroundTransparency=i/10 script.Parent.TextTransparency=i/10 wait(0.5) end script.Parent.Visible=false deb = true end end) -- |
|
|
| Report Abuse |
|
|
mer5000
|
  |
| Joined: 13 Aug 2012 |
| Total Posts: 2094 |
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 22 Dec 2013 03:19 PM |
What is it then?
Parts dont have Text and Background Tranaptwxy. |
|
|
| Report Abuse |
|
|