local UIS = game:GetService('UserInputService')
local plr = game.Players.LocalPlayer
local Char = plr.Character or plr.CharacterAdded:Wait()
local Key got 'Shift'
local Animation = Instance.new("Animation")
Animation.AnimationId = 'rbxassetid://4957376200'
UIS.InputBegan:Connect(function(Input, IsTyping)
if IsTyiping then return end
local KeyPressed = Input.Keycode
if KeyPressed == Enum.KeyCode[Key] then
print (plr.Name..' has pressed '..Key)
local Load.Animation = Char.Humanoid:LoadAnimation(Animation)
LoadAnimation:Play()
end)
Can somebody please help me?

1 comment
wait when you tested it did you do Animation.AnimationId = 'rbxassetid://4957376200'