Why does my script not work?
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local animController = script.punch.PunchAnim
local animController = script.punch.KickAnim
local animTrack = animController:LoadAnimation(animation)
mouse.KeyDown:connect(function(key)
if key == "e" then
animTrack:Play()
elseif key == "q" then
animTrack:Play()
end
end) |