I'm going to be making some tools for anyone to use.
#1
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
[Image: badlydrawnbandaid.png]

( 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]
Reply


Messages In This Thread
I'm going to be making some tools for anyone to use. - by Duck - 04-03-2011, 10:38 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)