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
#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
#3
(04-03-2011, 03:12 PM)DSiDewd Wrote: [Image: bndd.png]
Band-aids look more like this in real life.

Who needs realism when you have a bandaid.
Reply
#4
Now it needs a sound Tongue
[Image: rogershanksluffy_display.gif]
Reply
#5
(04-03-2011, 06:48 PM)Scripter Wrote: Now it needs a sound Tongue

I don't know how to add them D:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)