Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Can Someone help me?

Asked by 10 years ago

How do I make my arms animated while using a tool?

1 answer

Log in to vote
1
Answered by 10 years ago

Oh gosh..

function arm()
leftshoulder = script.Parent.Parent.Torso["Left Shoulder"]
leftshoulder.C0 = leftsoulder.C0 *CFrame.Angles(20,-0.35,-1.25) 
end
script.Parent.Equipped:connect(arm)

This script is inside of a tool

Function ARM is a .Equipped function. So when the player equips it, the tool goes to the torso and looks for "Left Shoulder"

You can CFrame your arm to any position you'd like. Use loops for animations like the roblox walking.

0
To clarify something to you, lego, the 'arm' function (not 'ARM', you declared it as 'arm') is not a '.Equipped' function, it is just a function. You have connected it to the Equipped event, but that doesn't change the 'type' of function that it is, since there are no function 'types'. adark 5487 — 10y
0
Hello, adark! The script is inside of a tool. Then you Equip the tool the script runs. I called it a ".Equipped function" meaning that when you equip it the function is called... I see what you're meaning though. I'm no "Master" scripter. legoguy939 418 — 10y
Ad

Answer this question