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 » Scripters
Home Search
 

What is wrong with this line? How can I fix it?

Previous Thread :: Next Thread 
jordanNin64 is not online. jordanNin64
Joined: 07 Jun 2013
Total Posts: 2457
21 Jul 2015 07:54 AM
building = player.PlayerGui.Properties.Frame.Build.MouseButton1Down:connect(function()

"connect is not a valid member"

I have similar functions in my script (:connect(function())), and they all work.

I also tried ...Build.Mouse.Button1Down:connect(function() but that doesn't seem to work ("Mouse is not a valid member of TextButton")
Report Abuse
jordanNin64 is not online. jordanNin64
Joined: 07 Jun 2013
Total Posts: 2457
21 Jul 2015 08:04 AM
bump
Report Abuse
AlgyLacey is not online. AlgyLacey
Joined: 14 Jun 2013
Total Posts: 3736
21 Jul 2015 08:07 AM
Are you sure it's a textbutton or an imagebutton?


{-[ Check this out! http://www.roblox.com/games/217210581/Farmulator ]-}
Report Abuse
jordanNin64 is not online. jordanNin64
Joined: 07 Jun 2013
Total Posts: 2457
21 Jul 2015 08:12 AM
Build is a textbutton.
Report Abuse
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
21 Jul 2015 08:13 AM
What is 'Properties'
Report Abuse
jordanNin64 is not online. jordanNin64
Joined: 07 Jun 2013
Total Posts: 2457
21 Jul 2015 08:20 AM
player.PlayerGui.Properties.Frame.Build = player.PlayerGui.ScreenGui.Frame.TextButton
Report Abuse
jordanNin64 is not online. jordanNin64
Joined: 07 Jun 2013
Total Posts: 2457
21 Jul 2015 08:43 AM
bump
Report Abuse
AlgyLacey is not online. AlgyLacey
Joined: 14 Jun 2013
Total Posts: 3736
21 Jul 2015 08:53 AM
player.PlayerGui.ScreenGui.Frame.TextButton.MouseButton1Click:connect(function()

end

Try that


{-[ Check this out! http://www.roblox.com/games/217210581/Farmulator ]-}
Report Abuse
jordanNin64 is not online. jordanNin64
Joined: 07 Jun 2013
Total Posts: 2457
21 Jul 2015 09:17 AM
frame is not a valid member of ScreenGui :/
Report Abuse
jordanNin64 is not online. jordanNin64
Joined: 07 Jun 2013
Total Posts: 2457
21 Jul 2015 09:49 AM
...
Report Abuse
jordanNin64 is not online. jordanNin64
Joined: 07 Jun 2013
Total Posts: 2457
21 Jul 2015 10:04 AM
D:
Report Abuse
soved is not online. soved
Joined: 04 Jan 2013
Total Posts: 216
21 Jul 2015 10:23 AM
Try to do :WaitForChild()
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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