|
Hey there, I've searched high and low on how to make this tool that I created swing like a linked classic sword. My sort of "model" for my tool is made of multiple blocks, and I have made a weld script for it. The ends of the rake (which is what my model looks like) has some damaging tips. They can't do much damage if they don't go downwards at another humanoid. I just need some sort of simple explanation to just make the tool swing down, and back up. I don't mind if there isn't a lunge or such. I would accept exact lines, but a nice explanation would be best.
Thanks!!! |
|
MrNicNacJoin Date: 2008-08-29 Post Count: 28554 |
The method for swinging is hard-coded into the animation script. Here's how it's done:
local Tool = ?
function Swing()
local SV = Instance.new("StringValue");
SV.Name = "toolanim";
SV.Value = "slash";
SV.Parent = Tool;
end |
|
|
Thank you so much! Really answered a good question! |
|
|
Something went wrong.
Sorry for the issue again, but how would I insert this into my tool? Would I just make a new script, put the lines into the script, and just leave it? Or do I have to put the lines somewhere else?
Once again, sorry. |
|
|
Put them in the script.
ROBLOX ADD IT OR I SHALL STEAL YOUR TURKY SANDWHICH!!!!1111ONE!! |
|
|
My tool is located under Starter Pack as Rake.
Inside the tool is all of my tool's parts, as well as my Weld Script.
I inserted a new script, and put the lines into that script. I set variable ? to Rake.
A blue underline comes under my "Rake" in local Tool = Rake W001: Unknown global 'Rake'
This issue is becoming a complete joke. I'm very glad for all the help you guys have put into it, and as well as the patience. :)
|
|
|
Hey, just bumping my own thread. I don't usually do this, but I'm still having issues. |
|
|
|
I have revised that, and I've already looked through many videos about animations and such. I still don't fully understand how to attach this animation to my tool. I appreciate the extra knowledge and such, but still have my question unsolved. |
|
|
Bumping thread, once again. Some real help would be appreciated! |
|
|
About a month later. Bumpy bump. Please someone help! |
|
cgjnmJoin Date: 2011-12-22 Post Count: 2347 |
wow a month later...
Good thing I'm good with animations! (not) |
|