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: SurfaceGui help

Previous Thread :: Next Thread 
SumoComputerMan is not online. SumoComputerMan
Joined: 20 Apr 2011
Total Posts: 3143
17 Feb 2014 03:13 PM
Can you not use a textbutton in a surface gui? My mouse enter and mousebutton1down events are not being fired. I can verify that the Gui is in PlayerGui, and uses the Adornee method.
Report Abuse
SumoComputerMan is not online. SumoComputerMan
Joined: 20 Apr 2011
Total Posts: 3143
17 Feb 2014 03:18 PM
This place isn't helpful at all. Ever since the scripters forum was made, you can't ever do anything.
Report Abuse
SumoComputerMan is not online. SumoComputerMan
Joined: 20 Apr 2011
Total Posts: 3143
17 Feb 2014 03:22 PM
I am sick of this. I have helped so many people numerous times.
Report Abuse
gerov is not online. gerov
Joined: 05 Feb 2011
Total Posts: 5504
17 Feb 2014 03:27 PM
Are you sure you are capitalizing it correctly? Are you calling your functions?
Report Abuse
gerov is not online. gerov
Joined: 05 Feb 2011
Total Posts: 5504
17 Feb 2014 03:29 PM
If you did try putting this...


function onClick()
print("It worked!")
script.Parent.MouseButton1Down:connect(onClick)
Report Abuse
SumoComputerMan is not online. SumoComputerMan
Joined: 20 Apr 2011
Total Posts: 3143
17 Feb 2014 03:31 PM
Yes, I am sure.

Heres the code:

SelectJob.DeliveryMan.MouseButton1Down:connect(function()
print("THE FRIKEN TEST WORKED")
end)

SelectJob.DeliveryMan.MouseEnter:connect(function()
print("JobSystem; VcDDeliveryControl; Mouse entered the deliveryman job button.")
SelectJob.CashierDesc.Visible = false
SelectJob.CookDesc.Visible = false
SelectJob.DeliveryManDesc.Visible = true
end)

SelectJob.Cashier.MouseEnter:connect(function()
SelectJob.CashierDesc.Visible = true
SelectJob.CookDesc.Visible = false
SelectJob.DeliveryManDesc.Visible = false
end)

SelectJob.Cook.MouseEnter:connect(function()
SelectJob.CashierDesc.Visible = false
SelectJob.CookDesc.Visible = true
SelectJob.DeliveryManDesc.Visible = false
end)
Report Abuse
gerov is not online. gerov
Joined: 05 Feb 2011
Total Posts: 5504
17 Feb 2014 03:35 PM
It looks good... Maybe you should try just putting a click detector in the block that the surface GUI is on and just run with that...
Report Abuse
SumoComputerMan is not online. SumoComputerMan
Joined: 20 Apr 2011
Total Posts: 3143
17 Feb 2014 03:37 PM
There are three buttons. Its not one large one.
Report Abuse
gerov is not online. gerov
Joined: 05 Feb 2011
Total Posts: 5504
17 Feb 2014 03:42 PM
Did you index your variables properly?

function onSwag(gerov)
Report Abuse
ZeroSpectrum is not online. ZeroSpectrum
Joined: 02 Mar 2011
Total Posts: 315
17 Feb 2014 03:46 PM
TextButtons don't work with SurfaceGuis.
Report Abuse
dodleman is not online. dodleman
Joined: 22 Dec 2007
Total Posts: 1118
17 Feb 2014 03:48 PM
Here's OP

"Damn it's been 5 minutes and nobody's helped me, better just rage about how I help everyone"
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
17 Feb 2014 03:50 PM
@Zero,
And you're basing that on...?

They work perfectly fine. The only downside to using a SurfaceGui, in Workspace, is that you cannot get the player who clicked the button.

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