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

How do I make a Sit Pose Animation Script work?

Asked by 5 years ago
Edited 4 years ago

-- Made the animation and all, and inserted it and it won't work when I do it? Please help! I'm using a local script, and that's it.

local Player = game.Players.LocalPlayer

local Character = Player.Character or script.Parent

local Humanoid = Character.Humanoid

local UserInputService = game:GetService("UserInputService")



local AnimationId = 'rbxassetid://3125351974'



local Key = 'f'



UserInputService.InputBegan:Connect (function(Input, IsTyping)

if IsTyping then return end

if Input.KeyCode == Enum.KeyCode(Key) then

local Animation = Instance.new("Animation")

Animation.AnimationId = AnimationId

local LoadAnimation = Humanoid:LoadAnimation(Animation)

LoadAnimation:Play()

wait(1)

Animation:Destroy()

end

end)
0
Note that I've tried three different kinds of scripts, I tried doing a /e emote script, and 2 different keybind scripts. I don't know what is wrong with it, I have a feeling it is the "local Character = Player.Character" part. And I'm using a R6 rig, and I put the animation on Loop and that it is a action. So I don't know what I am doing wrong here, I've been trying really hard. panichub 29 — 5y
0
put it in a code block dude don't you know how?? Maginatoc -5 — 5y
0
? panichub 29 — 5y

Answer this question