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
 

Re: BillBoard gui MouseButton1Click

Previous Thread :: Next Thread 
Valyrian_Advisor is not online. Valyrian_Advisor
Joined: 13 Apr 2013
Total Posts: 1703
20 May 2017 12:39 PM
So, I made a local script that, once a player sits in his ship, clones a billboardgui inside an "enemies folder" for every ship there is in the workspace, and change the Adornee of every billboard to the respective ship.
Everything works with that.

Now, inside the billboard there is a button with this local script:

script.Parent.MouseButton1Click:connect(function()
print("yea you clicked the billboard")
end

The problem is that it doesn't print anything, so I suppose the Click function does not connect.
What am I doing wrong?
Report Abuse
Valyrian_Advisor is not online. Valyrian_Advisor
Joined: 13 Apr 2013
Total Posts: 1703
20 May 2017 01:00 PM
Please?
Report Abuse
Valyrian_Advisor is not online. Valyrian_Advisor
Joined: 13 Apr 2013
Total Posts: 1703
20 May 2017 01:17 PM
Anyone?
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
20 May 2017 01:18 PM
LocalScripts only run in Workspace when a descendant of a character.


Report Abuse
Valyrian_Advisor is not online. Valyrian_Advisor
Joined: 13 Apr 2013
Total Posts: 1703
20 May 2017 01:19 PM
The billboards are inside a folder inside PlayerGui, so the local script is inside the player alredy.
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
20 May 2017 01:20 PM
You also don't have a closing parenthesis for the `connect` function call. If that isn't the problem then I don't know what is.


Report Abuse
Valyrian_Advisor is not online. Valyrian_Advisor
Joined: 13 Apr 2013
Total Posts: 1703
20 May 2017 01:22 PM
Eh, I just forgot to copy it here, I really don't get what's wrong, the active property is also set on true inside the billboard...
Report Abuse
Domimon8thegr8 is not online. Domimon8thegr8
Joined: 09 Mar 2013
Total Posts: 15722
20 May 2017 01:38 PM
i'm pretty sure mousebutton1click doesn't work on billboard gui's but i may be wrong


Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
20 May 2017 01:41 PM
It doesn't. It only works on GuiButtons.


Report Abuse
Madpoint83 is not online. Madpoint83
Joined: 07 Feb 2016
Total Posts: 86
20 May 2017 01:46 PM
Doesn't work on Billboard gui's, also you forgot to close '('


Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
20 May 2017 01:47 PM
Someone hasn't read the thread.


Report Abuse
Valyrian_Advisor is not online. Valyrian_Advisor
Joined: 13 Apr 2013
Total Posts: 1703
20 May 2017 01:52 PM
I managed to make it work.
It didn't work because the billboard must be a direct children of the playergui, and not a children of a children(My billboards were inside a folder).
However, even if it works, sometimes when you hover on them with the mouse, they don't get selected and you can't click on them.

Roblox should really fix that, I have to find another solution because that's a problem.
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