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: putOnArmor(humanoid)

Previous Thread :: Next Thread 
legokendall is not online. legokendall
Joined: 07 Aug 2010
Total Posts: 667
23 Jun 2014 03:23 PM
So I was looking at some of the code from SFOTH and I came across this:

function putOnArmor(humanoid)

local torso = humanoid.Parent.Torso
local head = humanoid.Parent.Head
torso.Reflectance = 0
humanoid.MaxHealth = 100
script.Upgrade:Clone().Parent = head

local player = getPlayer(humanoid)
if player ~= nil then

local message = Instance.new("Message")
message.Text = "You found Battle Armor!"
message.Parent = player
wait(5)
message.Text = "Max Health Doubled!"
wait(5)
message.Parent = nil

end


So I'm talking about the "putOnArmor(humanoid)" and I would like to know how that works and is there a "RemoveArmor" or something.
Report Abuse
IAmTheRolo is online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
23 Jun 2014 03:34 PM
It's just the name of the function.
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