generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help fix this..

Previous Thread :: Next Thread 
mer5000 is not online. 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 is not online. mer5000
Joined: 13 Aug 2012
Total Posts: 2094
22 Dec 2013 11:11 AM
sdzfffffffffffffffffffffffffffffffffffffffffffffffffffff
Report Abuse
mer5000 is not online. mer5000
Joined: 13 Aug 2012
Total Posts: 2094
22 Dec 2013 11:54 AM
:L
SOMEONE HELP? :S
Report Abuse
Nyxis is not online. Nyxis
Joined: 15 Nov 2012
Total Posts: 3374
22 Dec 2013 11:55 AM
learn to use a for loop please
Report Abuse
mer5000 is not online. mer5000
Joined: 13 Aug 2012
Total Posts: 2094
22 Dec 2013 11:57 AM
it would just shorten the script..
Report Abuse
smiley599 is not online. 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 is not online. 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 is not online. mer5000
Joined: 13 Aug 2012
Total Posts: 2094
22 Dec 2013 12:00 PM
yeah , but this doesnt work:L..
Report Abuse
mer5000 is not online. 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 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
22 Dec 2013 12:02 PM
wow

out
Report Abuse
mer5000 is not online. mer5000
Joined: 13 Aug 2012
Total Posts: 2094
22 Dec 2013 12:03 PM
????
Report Abuse
smiley599 is not online. 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 is not online. 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 is not online. mer5000
Joined: 13 Aug 2012
Total Posts: 2094
22 Dec 2013 02:59 PM
its not a gui button.. XD
Report Abuse
smiley599 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image