#Help On Animation
35 messages · Page 1 of 1 (latest)
There are like
5 errors
At least
Ok maybe not 5
Ok so
-
U are ending the function as soon as u damn create it, so the whole code ain't even in a function
-
Apply the animation to animator not humanoid
-
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
This is one of those great examples of when ai is somehow better than an actual human
Am slow
Have i said something wrong in the 3 things I listed tho
Or am I that dumb
I meant the script
Oh
if AI would've made the script then it would've probably been better than this mess
lowkey bruh
im looking at this script
I think you should consider watching more than 1 tutorial
Could you send this in the chat?
I'll fix this for you
ill include comments so you can learn aswell!
@grave haven
** You are now Level 1! **
Never mind
** You are now Level 14! **
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)```