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.)
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!