Posts: 1,295
Threads: 137
Joined: Jan 2011
Reputation:
0
Can I use the Lava script to make tools damage? If so how? I put a lava script into the tool but it doesn't work...
Shiggity Shiggity Shwa
Posts: 124
Threads: 16
Joined: Feb 2011
Reputation:
0
Tools damage? D=
Then you probably need
Tool.MouseDown and you need to use game.World:getPartAt(mousepos) to find out if mouse is on enemy...
But if you want like melee weapon,
Tool with Holdable on
Tool.MouseDown
and make it use getTrace function to find out if theres a player hitting the "weapon"
D:
![[Image: 76561198036192536.png]](http://badges.steamprofile.com/profile/extended/steam/76561198036192536.png)
![[Image: Ava2.gif]](http://i1179.photobucket.com/albums/x383/AntiBoomz/Ava2.gif)
AntiBoomz0r @ roblox,xfire
AntiBoomz @ minecraft
MiikaFTW @ steam
Posts: 1,295
Threads: 137
Joined: Jan 2011
Reputation:
0
Yah, it's a melee weapon, It's holdable and it has a texture that looks great, you can swing it around so I would preferably want it to damage onTouch...
Also If i had to make it so it damages when it's touching A character, I COULD make it so it damages other people and NPCs... MUTINY!
Shiggity Shiggity Shwa
Posts: 1,926
Threads: 133
Joined: Apr 2011
Reputation:
0
lets just say..
If hit.Name ~= script.Parent.Parent.Name (or something like that) and hit.Parent.Type = "NPC" then
hit.Parent.Health = hit.Parent.Health - 10
sleep(.5)
end
This is when the tool collides with something.
Posts: 1,295
Threads: 137
Joined: Jan 2011
Reputation:
0
Thanks
If hit.Body ~= script.Parent.Parent.Body
hit.Parent.Health = hit.Parent.Health - 10
sleep(.5)
end
how 'bout that
Shiggity Shiggity Shwa
Posts: 1,926
Threads: 133
Joined: Apr 2011
Reputation:
0
That would work, too. Simplified XD
Posts: 1,295
Threads: 137
Joined: Jan 2011
Reputation:
0
More problems, but I posted a different thread for it, since it's a MASSIVE Problem for me.
Shiggity Shiggity Shwa