of     1   

fathawks
#142606130Monday, August 04, 2014 8:37 PM GMT

I need an automatically swinging sword for my game so that the knights can help you... I can already make it not kill you only NPCs but I can't get it to swing on its own. Any help?
fathawks
#142606497Monday, August 04, 2014 8:40 PM GMT

I can't find any legit models to help. I know some RPGs use this method.
connor954
#142606729Monday, August 04, 2014 8:43 PM GMT

You need to edit the script like this: Instead of mouse.Button1Down.... Do while wait() do --rest of swinging and animation
dansk
#142606814Monday, August 04, 2014 8:44 PM GMT

Its in the sword script. There are functions such as swing and lunge in the script and I think you need to invoke them. Thats what I think anyway.
fathawks
#142606827Monday, August 04, 2014 8:44 PM GMT

So how often does it swing like that?
dansk
#142606906Monday, August 04, 2014 8:45 PM GMT

Try it out. The bigger the number in the wait() the longer it takes.
fathawks
#142606961Monday, August 04, 2014 8:46 PM GMT

Wait will this work for an NPC
fathawks
#142607313Monday, August 04, 2014 8:50 PM GMT

And I cant find mouse.Button1Down and I looked through the script 4 times. What line is it DX
dansk
#142607412Monday, August 04, 2014 8:50 PM GMT

Use the find function and find Button1Down
fathawks
#142607586Monday, August 04, 2014 8:52 PM GMT

Is it in the local gui?
fathawks
#142607774Monday, August 04, 2014 8:54 PM GMT

It cant find it in the sword script .....
dansk
#142608090Monday, August 04, 2014 8:57 PM GMT

I think its a function called onButton1Down. There has to be one because without it its impossible for it to be a usuable player sword unless you edited it
fathawks
#142608456Monday, August 04, 2014 9:01 PM GMT

I replaced the one and only in the local gui and guess what nothing happened when i went to test mode its a normal sword.
dansk
#142608822Monday, August 04, 2014 9:04 PM GMT

If its in the workspace the local gui is useless. It only works if its inside a player. Local gui is a localScript thats why
fathawks
#142608989Monday, August 04, 2014 9:06 PM GMT

Are the admins really to lazy to help us
fathawks
#142609228Monday, August 04, 2014 9:08 PM GMT

askdjhfkaf Can you just give me the whole script with it fixed up to auto swing
dansk
#142609545Monday, August 04, 2014 9:11 PM GMT

1st its a simple fix. 2nd dont disrespect the admins. They arent going to spend the rest of their lives helping people in scripting helpers. They do more work than you realize. Before you insult them, think about what they do first not running your mouth.
fathawks
#142609966Monday, August 04, 2014 9:15 PM GMT

i give up imma ask an old friend of mine

    of     1