Lecturous
|
  |
| Joined: 17 Aug 2013 |
| Total Posts: 1096 |
|
|
| 24 Feb 2015 11:46 PM |
script.Parent.InputChanged:connect(function(input) input = tostring(input) if workspace:FindFirstChild(input) and workspace:FindFirstChild(input).Humanoid then print('findfirstchild') local unidentifiedplr = workspace:FindFirstChild(input) print('unindent') if game.Players:GetPlayerFromCharacter(unidentifiedplr) then print('plrfromchar') local plr = game.Players:GetPlayerFromCharacter(unidentifiedplr) print('plr') plr.Character.Humanoid.Health = 0 print('hum') else print('NOT A PLAYER!') end end end)
It doesn't even print('findfirstchild'). Sorry, I'm a newbie to textboxes and I have just started using them. Could someone help please? |
|
|
| Report Abuse |
|
ChuckXZ
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 2996 |
|
|
| 25 Feb 2015 01:30 AM |
| What kind of function is input changed? |
|
|
| Report Abuse |
|