04-19-2011, 02:28 PM
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
Damage for tools
|
04-19-2011, 02:28 PM
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
04-19-2011, 02:43 PM
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:
04-19-2011, 02:53 PM
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
04-19-2011, 02:57 PM
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.
04-19-2011, 03:00 PM
Thanks
If hit.Body ~= script.Parent.Parent.Body hit.Parent.Health = hit.Parent.Health - 10 sleep(.5) end how 'bout that
Shiggity Shiggity Shwa
04-19-2011, 03:07 PM
That would work, too. Simplified XD
04-19-2011, 03:43 PM
Weeee
04-19-2011, 04:03 PM
More problems, but I posted a different thread for it, since it's a MASSIVE Problem for me.
Shiggity Shiggity Shwa
|
« Next Oldest | Next Newest »
|