-
I only want to play the animation
- i checked devforum but i didnt find anything
local inputService = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
inputService.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.C then
if player and player.Character then
local Humanoid = player.Character:FindFirstChild("Humanoid")
local animation = Humanoid:LoadAnimation(script.Animation)
animation:Play()
end
end
end)