majoko1
|
  |
| Joined: 31 Jan 2009 |
| Total Posts: 22799 |
|
|
| 02 Feb 2015 07:42 PM |
game.Players.PlayerAdded:connect(function(Player) local coinvalue = Instance.new("NumberValue") coinvalue.Parent = Player coinvalue.Value = 100 wait(0.125) Player.PlayerGui.MajCoins.Display.Text = "MAJCOINS: "..coinvalue
end)
------------------------------------------------------------
Keeps giving me the following error:
"Workspace.Data:14: attempt to concatenate local 'coinvalue' (a userdata value)" |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 07:43 PM |
coinvalue itsself is an instance, so replace
Player.PlayerGui.MajCoins.Display.Text = "MAJCOINS: "..coinvalue
with
Player.PlayerGui.MajCoins.Display.Text = "MAJCOINS: "..coinvalue.Value
its a common mistake |
|
|
| Report Abuse |
|
|
majoko1
|
  |
| Joined: 31 Jan 2009 |
| Total Posts: 22799 |
|
|
| 02 Feb 2015 07:45 PM |
I've done this 3 times in the past 2 minutes...
I made the error again and couldnt catch it that time hahahaha |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 07:47 PM |
"MAJCOINS: "..coinvalue.Value
You were attempting to set the GuiObject's value to the actual `NumberValue` instance, instead of it's `Value` property.
|
|
|
| Report Abuse |
|
|