of     1   

Telan
#37114986Wednesday, November 17, 2010 1:10 AM GMT

I need to know how to script a sword. The sword: When the holder kills an enemy, the holder gains + 3 walkspeed.
mimtendo
#37115262Wednesday, November 17, 2010 1:13 AM GMT

Well that script wouldn't really be in the actual sword but just in the workspace. Try to get a leaderboard script that when you kill someone you get points but you try and change it to walkspeed.
EpikYummeh
#37115322Wednesday, November 17, 2010 1:14 AM GMT

There is a basic sword in Insert > Tools. Here is an idea for you: When a person dies, check if the sword that hit them was the cause of death (few ideas on this part), and check the parent of the sword (which would be the holder), and then add 3 walkspeed to the player's Humanoid.
Telan
#37115577Wednesday, November 17, 2010 1:18 AM GMT

Well, I'm really new to scripting. So, This is what I know script.Parent.Parent:findFirstChild("Humanoid") script.Parent.Parent.Humanoid.WalkSpeed + 3 is that right?
xXxXxdragonxXxXx
Top 100 Poster
#37117322Wednesday, November 17, 2010 1:41 AM GMT

script.Parent.Parent.Humanoid.WalkSpeed = script.Parent.Parent.Humanoid.WalkSpeed + 3 This is.

    of     1