local J=game.Players.LocalPlayer local v=require((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\065\099\104\105\101\118\101\109\101\110\116\115"))local L=script:FindFirstAncestor("\077\097\105\110\085\073")local Y=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")return function(J,b)local m=v[b]if m then local J=L.AchievementsHolder.Achievement:Clone()J.Size=UDim2.new(0,0,0,0)J.Frame.Position=UDim2.new(1.1,0,0,0)J.Name="\076\105\118\101\065\099\104\105\101\118\101\109\101\110\116"J.Visible=true for v,L in pairs(m)do local Y=J.Frame.Details:FindFirstChild(v)if Y then Y.Text=L end end if m.Image then J.Frame.ImageLabel.Image=m.Image elseif m.BadgeId then J.Frame.ImageLabel.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047"..(game.BadgeService:GetBadgeInfoAsync(m.BadgeId)).IconImageId end J.Parent=L.AchievementsHolder J.Sound:Play()J:TweenSize(UDim2.new(1,0,.2,0),"\073\110","\081\117\097\100",.8,true)wait(.8)J.Frame:TweenPosition(UDim2.new(0,0,0,0),"\079\117\116","\081\117\097\100",.5,true);(Y:Create(J.Frame.Glow,TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.In),{ImageTransparency=1})):Play()wait(8)J.Frame:TweenPosition(UDim2.new(1.1,0,0,0),"\073\110","\081\117\097\100",.5,true)wait(.5)J:TweenSize(UDim2.new(1,0,-0.1,0),"\073\110\079\117\116","\081\117\097\100",.5,true)wait(.5)J:Destroy()end end
-- Decompiled with the Synapse X Luau decompiler.

local l__LocalPlayer__1 = game.Players.LocalPlayer
local u1 = require(game:GetService("ReplicatedStorage"):WaitForChild("Achievements"))
local u2 = script:FindFirstAncestor("MainUI")
local l__TweenService__3 = game:GetService("TweenService")
return function(p1, p2)
	local v2 = u1[p2]
	if v2 then
		local v3 = u2.AchievementsHolder.Achievement:Clone()
		v3.Size = UDim2.new(0, 0, 0, 0)
		v3.Frame.Position = UDim2.new(1.1, 0, 0, 0)
		v3.Name = "LiveAchievement"
		v3.Visible = true
		for v4, v5 in pairs(v2) do
			local v6 = v3.Frame.Details:FindFirstChild(v4)
			if v6 then
				v6.Text = v5
			end
		end
		if v2.Image then
			v3.Frame.ImageLabel.Image = v2.Image
		elseif v2.BadgeId then
			v3.Frame.ImageLabel.Image = "rbxassetid://" .. game.BadgeService:GetBadgeInfoAsync(v2.BadgeId).IconImageId
		end
		v3.Parent = u2.AchievementsHolder
		v3.Sound:Play()
		v3:TweenSize(UDim2.new(1, 0, 0.2, 0), "In", "Quad", 0.8, true)
		wait(0.8)
		v3.Frame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", 0.5, true)
		l__TweenService__3
			:Create(v3.Frame.Glow, TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
				ImageTransparency = 1,
			})
			:Play()
		wait(8)
		v3.Frame:TweenPosition(UDim2.new(1.1, 0, 0, 0), "In", "Quad", 0.5, true)
		wait(0.5)
		v3:TweenSize(UDim2.new(1, 0, -0.1, 0), "InOut", "Quad", 0.5, true)
		wait(0.5)
		v3:Destroy()
	end
end
