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
 

Can you fix my connecton line please?

Previous Thread :: Next Thread 
yelloball is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
21 Aug 2011 05:22 AM
This is the script:

function onClick()
script.Parent.Parent.Credittxt.Visible=true
end
script.Parent.MouseClick:connect(onClicked)





This is th Output:

Sun Aug 21 12:21:01 2011 - MouseClick is not a valid member of TextButton
Report Abuse
UttermostExedra is not online. UttermostExedra
Joined: 28 Dec 2009
Total Posts: 2483
21 Aug 2011 05:24 AM
You need to instance a clickdetector in your brick.


script.Parent.NAMEOFYOURCLICKDETECTOR.MouseClick:connect(onClick)


Note that you have onClicked between the parenthesis of the connection line, while you set onClick as the function's name.
Report Abuse
yelloball is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
21 Aug 2011 05:24 AM
Its a gui :/
Report Abuse
61352151511 is not online. 61352151511
Joined: 30 Nov 2009
Total Posts: 8094
21 Aug 2011 05:31 AM
For a gui, MouseButton1Click

~ Mitch ~
Report Abuse
yelloball is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
21 Aug 2011 05:36 AM
Noa it says

Sun Aug 21 12:37:03 2011 - attempt to call a nil value
Sun Aug 21 12:37:03 2011 - Disconnected event because of exception
Report Abuse
UttermostExedra is not online. UttermostExedra
Joined: 28 Dec 2009
Total Posts: 2483
21 Aug 2011 06:08 AM
Why didn't you tell us it was a GUI?
I'm going to rewrite this for you.


script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Credittxt.Visible=true
end)
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
21 Aug 2011 06:13 AM
[ Content Deleted ]
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