I've been going at it for hours! This is outrageous!
Please, PRETTY PLEASE, help, I really need it.
Just put in an animation in the script, doesn't actually have to have an id.
local uis = game:GetService('UserInputService') --// Get UserInputService.
local player = game.Players.LocalPlayer --// Get the player.
local char = player.Character or player.CharacterAdded:wait() --// Get the character (if it doesn't exist, wait for the character).
local human = char:WaitForChild('Humanoid') --// Get the character's humanoid.
local mouse = player:GetMouse() --// Get the mouse.
local = script:WaitForChild('Animation') --// Get the animation.
uis.InputBegan:connect(function(input,event)
if event then return end --// If the input was a game processed event (like chat-related stuff), then return.
if input.KeyCode == Enum.KeyCode.Q then --// If Q was pressed..
local track = human:LoadAnimation(anim) --// Load the animation into the humanoid.
if mouse.Target then --// If the mouse is pointing to something in the workspace.
local target = mouse.Target.Parent:FindFirstChild('Humanoid') --// Get the target's humanoid.
if target then --// If the target has a humanoid..
track:Play() --// Play the track.
target.Humanoid:TakeDamage(10) --// Make the target take 10 damage.
end
end
end
end)
Thanks.

1 comment
On line 11 you're missing a variable. Should be local anim = script:WaitForChild('Animation'). That's literally all I saw.