|
| 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 |
|
|
| 23 Jun 2014 03:34 PM |
| It's just the name of the function. |
|
|
| Report Abuse |
|