i added i picture of the error at the top and it works for me but it fails to load on my friend
it also only works in playtests
Always run animations on a local script.
Also make sure the animation is yours or if this a group project make sure the group owns the animation.
this is a group project and i have switched to a group animation and a local script and it has the same error new animation
Wish I could help more but the only thing I can think of is that the animation your trying to use is not owned by the group, maybe you forgot to replace the animation Id? You should be able to go to the creation tab on roblox and look at your group animations than just copy the link of the animation into the animation object.
should i do animation id or url
The url should automatically turn into an Id, if your putting into an animation object.
thats how i have it set up
You would paste the url into animationId. Also I would suggest to put the local script into StarterCharacterScripts. You would have to alter you script something like this tho
Keep the animation in the local script while moving it over to StarterCharacterScripts.
EDIT
local Player = game.Players.LocalPlayer
local Tool = Player.Backpack. --Tool name
local Animation = script:FindFirstChild("pickanim")
local debounce = false
Tool.Activated:Connect(function()
if debouce then return end
debouce = true
local Character = Player.Character
local Humanoid = Character.Humanoid
local AnimationTrack = Humanoid:LoadAnimation(Animation)
AnimationTrack:Play()
wait(3)
debouce = false
end)
ive moved it into startercharacterscripts with the animation inside of the localscript and i get this error
The tool is being defined wrong
local Tool = Player.Backpack.Pickaxe
Make sure nothing else in your backpack is named pickaxe (Backpack is where all your tools go from starterPack) So if there are two things named Pickaxe in starterpack change one of the names
ok i will try this not sure if this helps but you pick up the tool
Has roblox accepted the animation yet. thatās probably the issue.
Oh okay, then try to define tool as
local Tool = game.Workspace.Pickaxe
Just make sure there isnāt two things in workspace named pickaxe
it says your post is withdrawn
it was made 2 days ago it has hopefully been accepted
ok i will try this thank you
Is the script inside the tool if so.
define the tool as
local Tool = script.Parent
its not inside its inside startercharacterscripts
this are the errors i got
Nooonono put the local script inside the tool
ok i tried that and it had no errors but it did nothing