|
| 27 Apr 2014 12:35 PM |
Hi,
I'm trying to add points to players on a certain team at the end of a round, however, it's now working!
Output says "Attempt to perform arithmetic on Points, a userdata value."
The script is here:
local players = game.Players:GetChildren() for _, Player in pairs (Game.Players:GetPlayers()) do if Player.TeamColor == BrickColor.new("Bright red") then Player.leaderstats.Points = Player.leaderstats.Points + 50 end end
I don't know why it's happening... |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:37 PM |
Player.leaderstats.Points.Value*
#nerdsunited |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:38 PM |
| Here is word-for-word output: attempt to perform arithmetic on field 'Points' (a userdata value). |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:39 PM |
| Oh my gosh. I am a nubcaik. My bad, guys. |
|
|
| Report Abuse |
|
|