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

How do I animate a player via scripts? (not with animations)

Asked by 4 years ago
Edited by User#5423 4 years ago

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

https://www.youtube.com/watch?v=o4qPHXO25Hw

0
edit:- fixed link User#5423 17 — 4y
0
You can use vector values and stuff like that. User#32819 0 — 4y
0
Yeah, I know that, but I dont know specifically which ones to use Its_707 1 — 4y
0
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 User#32819 0 — 4y
View all comments (2 more)
0
I've gotten it to change the movement, but how do I get it to rotate? Its_707 1 — 4y
0
I think it's Vector3.FromAxis, I'm not really sure. User#32819 0 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

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

Ad
Log in to vote
0
Answered by
Lakodex 711 Moderation Voter
4 years ago
Edited 4 years ago

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!

Click here for the plugin

0
That converts keypoints to CFrame maumaumaumaumaumua 628 — 4y
0
What can I do with this data? I have the plugin but I could never figure out how this is used. Its_707 1 — 4y
0
so uhh did you ever find out? rayangamingNL 0 — 3y

Answer this question