|
| 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
|
  |
| 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 |
|
|
|
| 08 Jun 2014 09:17 AM |
| So, local Gems = Instance.new("TextButton", game.Players.StarterGui.MainGui) |
|
|
| Report Abuse |
|
|
Kuas
|
  |
| Joined: 06 May 2011 |
| Total Posts: 518 |
|
| |
|
|
| 08 Jun 2014 09:20 AM |
FIXED! I did a LocalScript.
Gems = Instance.new("TextButton", game.Players.LocalPlayer.StarterGui.MainGui)
Thanks! |
|
|
| Report Abuse |
|
|