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: SurfaceGUI team change.

Previous Thread :: Next Thread 
CrudeleValen is not online. CrudeleValen
Joined: 14 Jun 2009
Total Posts: 132
25 Jan 2017 11:25 AM
I don't know how long this question has been out there for, however it just crossed my mind. For First-Person games, like a Military Group Place. How could we create a SurfaceGUI Team Change?
Report Abuse
C_Sharper is online. C_Sharper
Joined: 03 Oct 2011
Total Posts: 6405
25 Jan 2017 11:45 AM
I haven't worked with them for a very long time. But it's pretty much just like a GUI, but for the whole server to see and interact with globally.


To be honest I'm not entirely sure how to get the player from the MouseButton1Down event, since it's located on the server. An idea here is to keep the SurfaceGUI's parented to each client's PlayerGui, so each player has a unique GUI for them to use.



Just set the adornee of it and you're good to go. Then you can call this function from the client and do as you please:


YourSurfaceGui.YourButton.MouseButton1Down:connect(function()) print("hi") end)



Pretty sure this would work for ya.
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