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

3 comments

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.

0

put it in a code block dude don't you know how??

0

?