of     4   
chevron_rightchevron_rightchevron_right

XlegoX
#20228772Friday, January 29, 2010 4:01 AM GMT

Here some code to try out. It's fairly complicated to understand how things work at first. ---- playing an anim ---- --tag the animation service local kf = game:GetService("KeyframeSequenceProvider"); --the anim to be played local anim = game.Workspace.Animation; anim.Parent = game.Workspace; --set the ID to the result of registering an animation anim.AnimationId = kf:RegisterKeyframeSequence(Instance.new("KeyframeSequence")); OR anim.AnimationId = kf:RegisterKeyframeSequence(kf:GetKeyframeSequence("an asset id")); --have the "animator" instance in the figure load the anim, get an "AnimationTack" as a result local track = game.Workspace.Fig.Animator:LoadAnimation(anim); --tell the animation track to begin the anim track:Play() --- building an anim ---- --make a root keyframe sequence local seq = Instance.new("KeyframeSequence"); --name it, this will be the name of the anim seq.Name = "MyAnim"; --create a keyframe local kf = Instance.new("Keyframe"); --pose the right arm for this keyframe local p = Instance.new("Pose"); p.Name = "Right Arm"; p.CFrame = CFrame.new( ..some position relative to the torso.. ) --pose the weapon local p2 = Instance.new("Pose") p2.Name = "Handle"; p2.CFrame = some cframe --add as a sub pose, since the weapon is relative to the arm's position p:AddSubPose(p2); --add the whole pose to the cframe kf:AddPose(p); --set the keyframe's length add the keyframe to the anim kf.Time = 1 seq:AddKeyframe(kf); --register the anim with the animation service local animid = game:GetService("KeyframeSequenceProvider"):RegisterActiveKeyframeSequence(seq); I think this works, I'm not entirely sure it's all correct yet, but it's something to go off for people who want to play around with it.
landon90
#20228805Friday, January 29, 2010 4:02 AM GMT

Woah I could never do that!
ISY111
#20228807Friday, January 29, 2010 4:02 AM GMT

INCREDIBLE!
Avus
#20228825Friday, January 29, 2010 4:02 AM GMT

I was about to ask about this. Now I will stay up until 4 AM playing with it. >:^)
KingofKing12a1
Top 100 Poster
#20228839Friday, January 29, 2010 4:03 AM GMT

Does it only work in the test server? (Of course they would create an entirely new service for it)
XlegoX
#20228843Friday, January 29, 2010 4:03 AM GMT

Whoops, meant to post in scripters, sorry.
Avus
#20228863Friday, January 29, 2010 4:04 AM GMT

Well that last post wasn't necessary, now it looks kind of weird here in scripters, with you saying you meant to post it here. :P
ISY111
#20228881Friday, January 29, 2010 4:04 AM GMT

Please, just lock the one here if you want to delete it I already added it to my Favorite sites.
Avus
#20228900Friday, January 29, 2010 4:05 AM GMT

@ISY Look at the section.
XlegoX
#20228917Friday, January 29, 2010 4:06 AM GMT

I moved it ;)
PurpleKiwi
#20229064Friday, January 29, 2010 4:12 AM GMT

I'd rather use the old animations...
Thebuilderofdoom
#20229108Friday, January 29, 2010 4:13 AM GMT

new funtion?
Deadlybone
#20229290Friday, January 29, 2010 4:22 AM GMT

"I'd rather use the old animations..." Really? I think these new ones look interesting! Also, account termination sucks :/
drummerp
#20229322Friday, January 29, 2010 4:23 AM GMT

What happened, DeadlyBones?
Deadlybone
#20229549Friday, January 29, 2010 4:31 AM GMT

Errrm. Someone posted some bad pants so I bought them and posted a thread saying my pants should be banned :P I'll message [email protected] though...
drummerp
#20229680Friday, January 29, 2010 4:37 AM GMT

[sarcasm]Yeah, I'm sure that'll do something[/sarcasm]
XlegoX
#20229809Friday, January 29, 2010 4:41 AM GMT

"Errrm. Someone posted some bad pants so I bought them and posted a thread saying my pants should be banned :P I'll message [email protected] though..." It sounds like a perfectly reasonable reason for you to be banned to me...
Deadlybone
#20230542Friday, January 29, 2010 5:08 AM GMT

Well now I know who did it ;x Anyways, Im not going to argue that I shouldn't have been banned but I didn't make the clothes and many others bought them. I even saw another thread like it but that wasn't banned. Well what can you do. Try and get the account back and if not then make cool stuff.
nickguletskii200
#20231828Friday, January 29, 2010 6:35 AM GMT

Nice! Thanks for the guide!
gijsbel11
#20233345Friday, January 29, 2010 11:19 AM GMT

its not complicated if you know all those functions he use's.. but now ITS COMPLICATED!!
Waterlimon
#20233815Friday, January 29, 2010 12:17 PM GMT

... Why they had to make so long function names?
Person299
#20235173Friday, January 29, 2010 1:42 PM GMT

Great... Another update that will cause all the noobs to swarm into our forum to ask for help...
wushue34
#20237596Friday, January 29, 2010 4:07 PM GMT

I sorta understand it! :D
sncplay42
#20243204Friday, January 29, 2010 7:35 PM GMT

It gets to the LoadAnimation line and then says, "Usage error: the object that LoadAnimation is called on must be in the Workspace", even though it is. =/
sncplay42
#20243389Friday, January 29, 2010 7:41 PM GMT

We need sample code from the devs. =/

    of     4   
chevron_rightchevron_rightchevron_right