I did it like this but it just won't work. Please help, thank you! <3
local UserInputService = game:GetService("UserInputService")
local Tool = script.Parent
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
UserInputService.InputBegan:Connect(function(InputObject)
if InputObject.UserInputType == Enum.UserInputType.MouseButton1 then
local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://5363193662"
local Track = Humanoid:LoadAnimation(Animation)
Track:Play()
end
end)
