NetsFan0
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 2777 |
|
|
| 06 Aug 2014 02:25 PM |
There is no output, but this doesn't work-
script.Parent.MouseButton1Click:connect(function() players = game.Players:GetPlayers() for i = 1, #players do local text = players[i].PlayerGui.ScreenGui.TextLabel.Text text = text +1 end end) |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2014 02:28 PM |
| Text is a string, not a number. |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2014 02:29 PM |
well..
local text = players[i].PlayerGui.ScreenGui.TextLabel.Text text = text +1
all your doing is saying the text variable is the TextLabels text, and then performing math on that variable. You are not performing any math on any of the text-labels, your just saying "text=text+1" which does nothing to anyones text.Like i said, it just modifies that variable alone, no properties.
you can say:
players[i].PlayerGui.ScreenGui.TextLabel.Text=tostring(tonumber(players[i].PlayerGui.ScreenGui.TextLabel.Text)+1) |
|
|
| Report Abuse |
|
|
NetsFan0
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 2777 |
|
|
| 06 Aug 2014 02:29 PM |
| so would this be better- tostring(pathtotext) |
|
|
| Report Abuse |
|
|
NetsFan0
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 2777 |
|
|
| 06 Aug 2014 02:29 PM |
| tonumber(pathtotext) is what I meant lol |
|
|
| Report Abuse |
|
|
NetsFan0
|
  |
| Joined: 17 Apr 2009 |
| Total Posts: 2777 |
|
| |
|
|
| 06 Aug 2014 02:36 PM |
| nooooo problem! and remember THEYYYYYYYRRRRRRE GREAT! |
|
|
| Report Abuse |
|
|