generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: playerGui

Previous Thread :: Next Thread 
Seeumliam is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image