local plr = game:GetService("Players") local tween = game:GetService("TweenService") local aes = game:GetService("AvatarEditorService") local player = plr.LocalPlayer local animationId = "rbxassetid://68433924" local track = nil local weight = Instance.new("NumberValue") weight.Value = 0 local function Lp(character) local humanoid = character:FindFirstChild("Humanoid") if not humanoid then return end if track then track:Stop() end local anim = Instance.new("Animation") anim.AnimationId = animationId track = humanoid:LoadAnimation(anim) track:Play() track:AdjustSpeed(0) tween:Create(weight, TweenInfo.new(0.8), {Value = 1}):Play() weight.Changed:Connect(function() pcall(function() track:AdjustWeight(weight.Value) end) end) game:GetService("TestService"):Message("ifuseethisitworked") end local function Cr(character) local humanoid = character:WaitForChild("Humanoid", 10) if not humanoid then return end if humanoid.RigType == Enum.HumanoidRigType.R6 then task.wait(1.5) Lp(character) else pcall(function() aes:PromptSaveAvatar(humanoid:GetAppliedDescription(), Enum.HumanoidRigType.R6) aes.PromptSaveAvatarCompleted:Wait() humanoid.Health = 0 end) end end player.CharacterAdded:Connect(function(_nc) task.wait(2) Cr(_nc) end) if player.Character then task.spawn(function() task.wait(1) Cr(player.Character) end) end if not getgenv().editorService then getgenv().editorService = true end