#Help On Animation

35 messages · Page 1 of 1 (latest)

solemn sleet
#

Wtf

#

There are like

#

5 errors

#

At least

#

Ok maybe not 5

#

Ok so

  1. U are ending the function as soon as u damn create it, so the whole code ain't even in a function

  2. Apply the animation to animator not humanoid

  3. U misspelled loadAnimation
    Like u said LoadAnim

#

And idrk your built of a tool

#

So idk if there's any issues with that

#

Unless u show me explorer

#

Oh wait am blind

neon spear
solemn sleet
#

Or am I that dumb

neon spear
solemn sleet
#

Oh

neon spear
#

if AI would've made the script then it would've probably been better than this mess

grave haven
#

wow

#

great script man

vernal charm
#

Who the hell taught you how to script

#

Like what the hell is that shit

languid loom
#

lowkey bruh

#

im looking at this script

#

I think you should consider watching more than 1 tutorial

grave haven
#

Could you send this in the chat?

#

I'll fix this for you

#

ill include comments so you can learn aswell!

#

@grave haven

gaunt radishBOT
#

studio** You are now Level 1! **studio

grave haven
#

Never mind

gaunt radishBOT
#

studio** You are now Level 14! **studio

grave haven
#

i got the

#

script

#

local Player = Tool:FindFirstAncestorOfClass("Player") --> Or you could define the "Players" service and do Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()

--> Wait for everything to ensure theres no errors
local Humanoid = Character:WaitForChild("Humanoid")
local Animator = Humanoid:WaitForChild("Animator")
local HittingAnim = Tool:WaitForChild("HittingAnim")

--> Using a Variable "AnimationTrack" since LoadAnimation returns a AnimationTrack
Tool.Equipped:Connect(function(mouse: Mouse)
    local AnimationTrack = Animator:LoadAnimation(HittingAnim)
    AnimationTrack:Play()
end)```