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

How can I make a seat that when someone sits in it, it will have their arms in a T-pose?

Asked by 4 years ago

I'm trying to figure out how to make a seat that will have the players arms out in the direction I choose, like a sitting T-pose for example. And if there is any way I could move the legs too, that would be great.

2 answers

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

I have stuff here that may work


1.Make T-Pose animation

  1. To make the T-Pose animation, go to Plugins > Animation Editor.
  2. And spawn in a rig: Plugins > Build Rig
  3. Follow the directions in the Animation Editor
  4. Make animation
  5. After you're done, go to the three dots and click 'Export'
  6. Name your animation to whatever you want (i.e. T-Pose)

2. Get Info for animation

To get the info for the animation, go to roblox.com/develop > Animations. Find your T-Pose animation. Look in the address bar at the top. You will see about 10 numbers or more. Copy that, we're gonna need to use it for the next step.

3. Paste ID into this script:

Please insert this Server Script (Script) into game.StarterPlayer.StarterCharacterScripts:

script.Parent.Animate.sit.SitAnim.AnimationId = "rbxassetid://0000000000" --animationid

This will make all seats have the T-Pose animation. If just one seat, you need to use this script in the seat:

local currentAnimId = char.Animate.sit.SitAnim.AnimationId

function touch(hit)
    char = hit.Parent
    hit.Parent.Animate.sit.SitAnim.AnimationId = "rbxassetid:/0000000000" --animid
    wait(1)
    hit.Parent.Animate.sit.SitAnim.AnimationId = currentAnimId
end

script.Parent.Touched:Connect(touch)

b_mni

0
Thanks! I just have a question, you put "It needs to be global" were you talking about 'local player' TheAncientIlluminati -10 — 4y
0
no i actually need to edit it User#29913 36 — 4y
Ad
Log in to vote
-1
Answered by 4 years ago

try this:

1: click test

2: while the game is running go to the explorer window and look for a your character

3: open up your character model and find the script called Animate

4: copy the script

5: stop test

6: in the explorer, go to StarterPlayer --> StarterCharacterScripts

7: right click StarterCharacterScripts and select PasteInto

8: inside Animate look for the child called sit or sitting

9: replace the animation for sit with you t-pose animation

10: test again and see if it works

0
if this works please accept it CubicleHead -3 — 4y
0
The only problem is, how do I make the T-pose animation? TheAncientIlluminati -10 — 4y
0
Create a dummy then open the animation editor. Inside animate your tpose when you are done click export and select create new. Copy the id it gives you when it is done uploading and use that CubicleHead -3 — 4y

Answer this question