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: Quick Question

Previous Thread :: Next Thread 
sunday1520 is not online. sunday1520
Joined: 23 Aug 2012
Total Posts: 693
04 Nov 2013 03:53 PM
If i only want a hint to appear for certain people, i can just simply place a new instance of the hint into every wanted players PlayerGui right? For example:

for i,v in pairs(playersIWant) do
plr=game.Players:findFirstChild(v)
h=Instance.new("Hint",plr.PlayerGui)
h.Text="hi"
end


Would that work and the hint would only appear for the certain players and not everyone? Or are hints always everybody... In which case i need to create a Gui for each person?
Report Abuse
mostwanted1 is not online. mostwanted1
Joined: 21 Dec 2010
Total Posts: 511
04 Nov 2013 03:55 PM
I believe, I'm not quite sure though, you can place it into a camera inside of the player? Again, I'm not quite sure and I believe it isn't mean't to happen.
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
04 Nov 2013 03:56 PM
No, it can be in PlayerGui. Either way, that script is inefficient, creating useless data.

for _,v in pairs(playersIWant) do
Instance.new('Hint', Game.Players:findFirstChild(v)).Text = 'Hi'
end
Report Abuse
sunday1520 is not online. sunday1520
Joined: 23 Aug 2012
Total Posts: 693
04 Nov 2013 03:57 PM
Alright, well I guess making an identical Gui isnt that big of a deal hahah. Take me maybe 5 mins max. Thanks for the info!
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
04 Nov 2013 03:57 PM
No! Your method works!
Report Abuse
sunday1520 is not online. sunday1520
Joined: 23 Aug 2012
Total Posts: 693
04 Nov 2013 03:58 PM
Oh nevermind thankyou. I know my script was messy i wrote it on the spot just to get it out. It wasnt all that thought out haha
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