hung999
|
  |
| Joined: 19 Sep 2008 |
| Total Posts: 819 |
|
|
| 11 Feb 2012 02:52 PM |
script.Parent.MouseButton1Click:connect(function() local PLR = script.Parent.Parent.NameOfPlayer.TextBoxName.Text game.Players:FirstFindChild(PLR).Points.PT.Value + 5 end)
I don't see what's wrong , (This is not a LocalScript .) |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2012 02:54 PM |
Just about everything is wrong. And it pretty much needs to be a localscript.
script.Parent.MouseButton1Click:connect(function() local PLR = game.Players.LocalPlayer PLR.Points.PT.Value = PLR.Points.PT.Value + 5 end)
-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]- |
|
|
| Report Abuse |
|
|
Grove537
|
  |
| Joined: 05 Feb 2010 |
| Total Posts: 3478 |
|
|
| 11 Feb 2012 02:55 PM |
script.Parent.MouseButton1Click:connect(function() local PLR = script.Parent.Parent.NameOfPlayer.TextBoxName.Text game.Players:FirstFindChild(PLR).Points.PT.Value = game.Players:FirstFindChild(PLR).Points.PT.Value + 5 end) |
|
|
| Report Abuse |
|
|
hung999
|
  |
| Joined: 19 Sep 2008 |
| Total Posts: 819 |
|
|
| 11 Feb 2012 02:57 PM |
| Swim that's not what I want ... Grove It doen't work . |
|
|
| Report Abuse |
|
|
|
| 11 Feb 2012 02:58 PM |
@Hung It does the exact same thing
-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]- |
|
|
| Report Abuse |
|
|
hung999
|
  |
| Joined: 19 Sep 2008 |
| Total Posts: 819 |
|
|
| 11 Feb 2012 02:58 PM |
| No it doesn't I don't want "LocalPlayer" I want to find the player in the Text game.Players:FirstFindChild(PLR) and give the person 5 points .. |
|
|
| Report Abuse |
|
|
hung999
|
  |
| Joined: 19 Sep 2008 |
| Total Posts: 819 |
|
| |
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 11 Feb 2012 03:10 PM |
| Main problem I see is that you have a findfirstchild and then you go to script.Parent. I have no idea how that would ever work out... |
|
|
| Report Abuse |
|
|
hung999
|
  |
| Joined: 19 Sep 2008 |
| Total Posts: 819 |
|
| |
|