Seeumliam
|
  |
| Joined: 06 May 2013 |
| Total Posts: 5662 |
|
|
| 27 Jun 2014 11:20 AM |
--something is wrong with this, I think it is in the human.PlayerGui.hunger.food.bar.Size...
Tool = script.Parent
local field = nil
function Heal()
local vCharacter = Tool.Parent
local childs = vCharacter:GetChildren()
local colors = {}
end
wait(1)
local human = vCharacter:FindFirstChild("Humanoid") if (human ~= nil) then human.PlayerGui.hunger.food.bar.Size = UDim.new(0,100,0,20) end
Tool.Enabled = true function onActivated()
if not Tool.Enabled then return end
Tool.Enabled = false
Tool.Parent = nil end
script.Parent.Activated:connect(onActivated)
|
|
|
| Report Abuse |
|
Seeumliam
|
  |
| Joined: 06 May 2013 |
| Total Posts: 5662 |
|
|
| 27 Jun 2014 11:21 AM |
Output: 09:18:39.411 - Players.Player1.Backpack.Food.HealScript:19: attempt to index global 'vCharacter' (a nil value) 09:18:39.411 - Stack Begin 09:18:39.412 - Script 'Players.Player1.Backpack.Food.HealScript', Line 19 09:18:39.412 - Stack End |
|
|
| Report Abuse |
|