10-26-2011, 09:44 PM
(08-07-2011, 08:55 PM)Excel Wrote:Code:local debounce = false
function getPlayer(humanoid)
local players = game.Players:children()
for i = 1, #players do
if players[i].Character ~= nil then
if players[i].Character.Humanoid == humanoid then return players[i] end
end
end
return nil
end
function putOnArmor(humanoid)
local torso = humanoid.Parent.Torso
humanoid.MaxHealth = 200
local player = getPlayer(humanoid)
if player ~= nil then
local message = Instance.new("Message")
message.Text = "You are a god!"
message.Parent = player
wait(5)
message.Text = "Health Increased By 100"
wait(5)
message.Parent = nil
end
end
Nice roblox code, bro.