Trying to do it with specific tools in studio, this is the code I'm using currently:
local UIS = game:GetService("UserInputService")
local animation = game.ServerStorage.Animation
UIS.InputBegan:Connect(function(hit)
if Input.Keycode == Enum.KeyCode.E then
animation:Play()
end
end)
I decided to try it without the tool at first, and looked online but nothing worked, hopefully someone can say how to get it working both in and outside of tools 🙏