I'm going to be making some tools for anyone to use.
#2
(04-03-2011, 10:38 AM)Duck Wrote: 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 Tongue
[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]

[Image: bndd.png]
Band-aids look more like this in real life.
[Image: bandcampbanner.png]
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)