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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Know why this wort work?

Previous Thread :: Next Thread 
ultimatesotheracc is not online. ultimatesotheracc
Joined: 06 Apr 2012
Total Posts: 31
08 Jun 2014 09:04 AM
game.Players.PlayerAdded:connect(function(player)
local Gems = Instance.new("TextButton", player)
Gems.Visible = true
Gems.Name = "Gems"

local GemsV = Instance.new("IntValue", Gems)
GemsV.Name = "GemsValue"
GemsV.Value = 150
end)
Report Abuse
Kuas is not online. Kuas
Joined: 06 May 2011
Total Posts: 518
08 Jun 2014 09:14 AM
A text button must be placed inside a ScreenGui which must be placed inside the StarterGui which is found inside the player
Report Abuse
ultimatesotheracc is not online. ultimatesotheracc
Joined: 06 Apr 2012
Total Posts: 31
08 Jun 2014 09:17 AM
So, local Gems = Instance.new("TextButton", game.Players.StarterGui.MainGui)
Report Abuse
Kuas is not online. Kuas
Joined: 06 May 2011
Total Posts: 518
08 Jun 2014 09:17 AM
That could work
Report Abuse
ultimatesotheracc is not online. ultimatesotheracc
Joined: 06 Apr 2012
Total Posts: 31
08 Jun 2014 09:20 AM
FIXED! I did a LocalScript.

Gems = Instance.new("TextButton", game.Players.LocalPlayer.StarterGui.MainGui)

Thanks!
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