Go to StarterPack > ReproTool > AnimationKeyframeSequencesForUpload > Attack. Right click, Save to Roblox, Copy the animation id.
Overwrite StarterPack > ReproTool > Animations > Attack’s AnimationId property with retrieved animation id.
Play
Equip and Swing tool (animation plays)
Reset Character
Equip and Swing tool (animation does not play, pcall in the script will Output the catched error message eternally: Cannot load the AnimationClipProvider Service )
Expected Behavior
Relevant AnimationClipProvider Service should be stable and online at all times.
Actual Behavior
The AnimationClipProvider Service is not operable:
When my character loads the second time, it is inoperable.
Repro Demonstration (Visual Aid):
Issue Area: Engine Issue Type: Other Impact: High Frequency: Constantly Date First Experienced: 2022-02-13 12:02:00 (-05:00) Date Last Experienced: 2022-02-15 00:02:00 (-05:00)
Attempting to call LoadAnimation on a Humanoid that is not a descendant of the workspace (Parent == nil) causes this error.
If this is unintended usage, its not documented, and the error should probably be “Cannot LoadAnimation when Humanoid Ancestor is nil” or similiar. I wouldnt think Service failing is proper.
(if needed can turn into a feature request)
For developers reading with this problem: Obtaining the character correctly for Localscripts in PlayerGui or StarterPack is found here:
So if you’re writing a LocalScript under the StarterGui or StarterPack that requires access to the player’s character, use this:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character
if not character or not character.Parent then
character = player.CharacterAdded:wait()
end
Like you mentioned, the DevHub article shows that this is the correct way to retrieve a character locally in a LocalScript under StarterGui/StarterPack.
I tested the DevHub solution with your provided repro file and it seems to work fine. Please feel free to submit a feature request instead and a bug report if you’re running into any other issues.