04-03-2011, 10:38 AM
Here's my first one, a nice simple RBX.Lua translation (Although I modified it a bit)
It's basically a Bandaid.
It should be Holdable and I made a texture (although you can make your own obviously :P
( http://img96.imageshack.us/img96/1690/ba...andaid.png )
Also I keep it at the size 1,3, since that's when my texture looks most like a bandaid.
Tool = script.Parent
[lua]function Heal()
if Tool.Parent.Parent.Character.Health ~= Tool.Parent.Parent.Character.MaximumHealth then
Tool.Parent.Parent.Character.Health = Tool.Parent.Parent.Character.Health + 50
Tool.Holdable = false
Tool:remove()
else
Tool.Parent.Parent.Character.MaximumHealth = Tool.Parent.Parent.Character.MaximumHealth + 25
Tool.Parent.Parent.Character.Health = Tool.Parent.Parent.Character.MaximumHealth
Tool.Holdable = false
Tool:remove()
end
end
link(Tool.MouseDown, Heal)[/lua]
It's basically a Bandaid.
It should be Holdable and I made a texture (although you can make your own obviously :P
( http://img96.imageshack.us/img96/1690/ba...andaid.png )
Also I keep it at the size 1,3, since that's when my texture looks most like a bandaid.
Tool = script.Parent
[lua]function Heal()
if Tool.Parent.Parent.Character.Health ~= Tool.Parent.Parent.Character.MaximumHealth then
Tool.Parent.Parent.Character.Health = Tool.Parent.Parent.Character.Health + 50
Tool.Holdable = false
Tool:remove()
else
Tool.Parent.Parent.Character.MaximumHealth = Tool.Parent.Parent.Character.MaximumHealth + 25
Tool.Parent.Parent.Character.Health = Tool.Parent.Parent.Character.MaximumHealth
Tool.Holdable = false
Tool:remove()
end
end
link(Tool.MouseDown, Heal)[/lua]