I would like to have a script make a player's arms move around using scripting, instead of animations, so that it works on Void Script Builder. How do I do this? like, what function do I use to rotate/move a specific body part? (To elaborate, I mean that I would like to basically make an animation that can play on games that I don't own, such as the script shown in the youtube video linked below.)
How do I animate a player via scripts? (not with animations)
2 answers
Well, animating without ROBLOX's animations is such a pain, but if you want, then here you go:
To animate a character without ROBLOX's animations you use their joints, located in the Torso ex: Neck, Left Hip, Right Hip, etc
You can animate R6 and R15 characters with it, the problem is that R15 has more joints and may be harder to animate. Have you noticed most scripts use R6? That's because R6 is easier to animate, now these joints aren't welds but Motor6Ds, to use them you can use their property C1 or C0, here is an example how to rotate the head up
--// Since VSB (void script builder for short) has the owner value wich is the person who ran the script, we can get its character with owner.Character
local Character = owner.Character --// This is your character, put in the character model
local Neck = Character.Torso.Neck
Neck.C0 = Neck.C0*CFrame.Angles(math.rad(30),0,0) --// Rotates the head 30 radians on the X axis
Nice! You can also use CFrame:lerp() to make it be animated
local Character = owner.Character --// This is your character, put in the character model
local Neck = Character.Torso.Neck
local Start = Neck.C0 --// This is the start C0 of the neck
local Goal = Neck.C0*CFrame.Angles(math.rad(30,0,0)) --// This is the goal
for i = 0,1,0.01 do --// You can also use for i = 0,1,0.1 too!
Neck.C0 = Start:lerp(Goal,i)
wait()
end
Now it animates! You can do this with any joint!
If it helped, mark this as answered! :D
What This man did is that he actually made an animation using ROBLOX animation creator or Moon animator < (Highly recommended to use this one). He then used a plugin to put all of those animations in to a script. I seen this that you may wanna try out!
3 comments
That converts keypoints to CFrame
What can I do with this data? I have the plugin but I could never figure out how this is used.
so uhh did you ever find out?
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
edit:- fixed link
You can use vector values and stuff like that.
Yeah, I know that, but I dont know specifically which ones to use
I think you should use Vector3.new edit: this wiki page has every info you want to know about https://developer.roblox.com/en-us/api-reference/datatype/Vector3/index.html
I've gotten it to change the movement, but how do I get it to rotate?
I think it's Vector3.FromAxis, I'm not really sure.