local UIS = game:GetService("UserInputService") local plr = game.Players.LocalPlayer local Char = plr.Character or plr.CharacterAdded:Wait()
local Key = "E"
local Animation = Instance.new("Animation") Animation.AnimationId = "rbxassetid://4213048413"
UIS.InputBegan:Connect (function(Input, IsTyping) if IsTyping then return end local KeyPressed = Input.KeyCode if KeyPressed == Enum.KeyCode[Key] then local LoadAnimation = Char.Humanoid:LoadAnimation(Animation) LoadAnimation:Play() end end)
and is it possible ?