local Module_List = require(game.ReplicatedStorage.Achievements) local GUI_1 = script.Parent.Parent.Parent.LobbyFrame.Achievements local player = game.Players.LocalPlayer local l__BadgeService__4 = game:GetService("BadgeService"); local l__TweenService__3 = game:GetService("TweenService"); local u2 = script:FindFirstAncestor("MainUI");
local GUI_1 = script.Parent.Parent.Parent.LobbyFrame.Achievements
local player = game.Players.LocalPlayer
local l__BadgeService__4 = game:GetService("BadgeService");
local l__TweenService__3 = game:GetService("TweenService");
local u2 = script:FindFirstAncestor("MainUI");
game.ReplicatedStorage.EntityInfo.AchievementUnlock.OnClientEvent:Connect(function(p2)
local v2 = Module_List[p2]:GetInfo();
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.BadgeId then
v3.Frame.ImageLabel.Image = "rbxassetid://" .. game.BadgeService:GetBadgeInfoAsync(v2.BadgeId).IconImageId;
end;
v3.Parent = Module_List.AchievementsHolder;
v3.Sound:Play();
--(27строка) 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)