Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 28th, 2020 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Decompiled with the Synapse X Luau decompiler.
  2.  
  3. local v1 = {};
  4. local v2 = require(game.ReplicatedStorage.Assets.Modules.Services);
  5. local v3 = require(script.PetClass);
  6. v1.PetClass = v3;
  7. local l__Dot__4 = Vector2.new().Dot;
  8. local l__Vector2_new__1 = Vector2.new;
  9. local u2 = v2:GetService("Library")("ShinyModifier");
  10. local u3 = {};
  11. function v1.CreatePet(p1, p2, p3, p4)
  12.     local v5 = p2.Character.PrimaryPart.Position - Vector3.new(0, 2.5, 0);
  13.     if p3.Shiny.Value == true then
  14.         u2:Modify(p3);
  15.     end;
  16.     local v6 = v3.new(p2, p3, p4);
  17.     u3[v6] = true;
  18.     p1:UpdateOffsets(p2);
  19.     v6:Spawn(v5);
  20.     if p3.Name == "Beta TV" and not p3.Decore.Screen:FindFirstChild("TVManager") then
  21.         spawn(function()
  22.             require(script.TVManager)(p3);
  23.         end);
  24.     end;
  25.     if p3:FindFirstChild("AnimateColor") then
  26.         p3.AnimateColor.Disabled = false;
  27.     end;
  28. end;
  29. function v1.RemovePet(p5, p6, p7)
  30.     for v7, v8 in next, u3 do
  31.         if v7.Owner == p6 and v7.GUID == p7 then
  32.             v7:Destroy();
  33.             u3[v7] = nil;
  34.             return;
  35.         end;
  36.     end;
  37. end;
  38. function v1.UpdateOffsets(p8, p9)
  39.     local v9 = {};
  40.     for v10, v11 in next, u3 do
  41.         if v10.Owner == p9 then
  42.             v9[#v9 + 1] = v10;
  43.         end;
  44.     end;
  45.     local v12 = #v9;
  46.     local v13 = Random.new();
  47.     local v14 = math.pi * 2 / v12;
  48.     for v15 = 1, v12 do
  49.         local v16 = v9[v15];
  50.         v16.Offset = CFrame.Angles(0, v14 * v15 + v13:NextNumber(-v14 * 0.3, v14 * 0.3), 0) * Vector3.new(0, -2.5, v16.Radius);
  51.     end;
  52. end;
  53. local u4 = require(game.ReplicatedStorage.Assets.Modules.SoundService);
  54. local l__TweenService__5 = v2:GetService("TweenService");
  55. local l__LocalPlayer__6 = game.Players.LocalPlayer;
  56. local function u7(p10, p11)
  57.     local v17 = script.Glow:Clone();
  58.     v17.Parent = p10.PrimaryPart;
  59.     v17:Emit(100);
  60.     local v18 = game.ReplicatedStorage.Assets.LevelUp:Clone();
  61.     v18.Icon.ImageTransparency = 1;
  62.     v18.Icon.Size = UDim2.new();
  63.     v18.Amount.TextTransparency = 1;
  64.     v18.Amount.TextStrokeTransparency = 1;
  65.     v18.Amount.Text = p11;
  66.     v18.Parent = p10.PrimaryPart;
  67.     u4:Play({
  68.         Parent = p10.PrimaryPart,
  69.         Name = "LevelUp",
  70.         Volume = 0.25
  71.     });
  72.     local l__Icon__19 = v18:FindFirstChild("Icon");
  73.     if l__Icon__19 then
  74.         l__TweenService__5:Create(l__Icon__19, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0), {
  75.             Rotation = 720,
  76.             ImageTransparency = 0,
  77.             Size = UDim2.new(1, 0, 1, 0)
  78.         }):Play();
  79.     end;
  80.     wait(0.5);
  81.     if v18:FindFirstChild("Amount") then
  82.         l__TweenService__5:Create(v18.Amount, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0), {
  83.             TextTransparency = 0,
  84.             TextStrokeTransparency = 0.5
  85.         }):Play();
  86.         delay(1.5, function()
  87.             l__TweenService__5:Create(v18.Amount, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0), {
  88.                 TextTransparency = 1,
  89.                 TextStrokeTransparency = 1
  90.             }):Play();
  91.             l__TweenService__5:Create(v18.Icon, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0), {
  92.                 ImageTransparency = 1
  93.             }):Play();
  94.         end);
  95.     end;
  96.     delay(2, function()
  97.         v18:Destroy();
  98.     end);
  99.     delay(5, function()
  100.         v17:Destroy();
  101.     end);
  102. end;
  103. local function u8(p12, p13)
  104.     local v20 = game.ReplicatedStorage.Assets.XP:Clone();
  105.     v20.Parent = p12.PrimaryPart;
  106.     if p13 == "MAXED" then
  107.         v20.Amount.Text = "MAX LEVEL!";
  108.     else
  109.         v20.Amount.Text = "+" .. p13;
  110.     end;
  111.     local v21 = math.random(75, 150) / 100;
  112.     l__TweenService__5:Create(v20, TweenInfo.new(v21, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0), {
  113.         StudsOffset = Vector3.new(0, 5, 0)
  114.     }):Play();
  115.     delay(v21, function()
  116.         l__TweenService__5:Create(v20.Amount, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0), {
  117.             TextTransparency = 1,
  118.             TextStrokeTransparency = 1
  119.         }):Play();
  120.         l__TweenService__5:Create(v20.Icon, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0), {
  121.             ImageTransparency = 1
  122.         }):Play();
  123.         wait(0.5);
  124.         v20:Destroy();
  125.     end);
  126. end;
  127. local l__RunService__9 = v2:GetService("RunService");
  128. function v1.Initialize(p14, p15)
  129.     for v22, v23 in pairs(game.Workspace.Pets:GetChildren()) do
  130.         local l__Value__24 = v23.Owner.Value;
  131.         if l__Value__24 and l__Value__24.Parent then
  132.             v1:CreatePet(l__Value__24, v23, v23.GUID.Value);
  133.         else
  134.             v23:Destroy();
  135.         end;
  136.     end;
  137.     p15:Bind("SpawnPet", function(p16, p17, p18)
  138.         v1:CreatePet(p16, p17, p18);
  139.         p14:UpdateOffsets(p16);
  140.     end);
  141.     p15:Bind("DespawnPet", function(p19, p20)
  142.         v1:RemovePet(p19, p20);
  143.         p14:UpdateOffsets(p19);
  144.     end);
  145.     p15:Bind("LevelPetUp", function(p21, p22)
  146.         for v25, v26 in next, u3 do
  147.             if v25.Owner == l__LocalPlayer__6 and v25.GUID == p21 then
  148.                 u7(v25.Model, p22);
  149.                 return;
  150.             end;
  151.         end;
  152.     end);
  153.     p15:Bind("DisplayPetXP", function(p23)
  154.         for v27 = 1, #p23 do
  155.             for v28, v29 in next, u3 do
  156.                 if v28.Owner == l__LocalPlayer__6 and v28.GUID == p23[v27][1] then
  157.                     u8(v28.Model, p23[v27][2]);
  158.                     break;
  159.                 end;
  160.             end;
  161.         end;
  162.     end);
  163.     l__RunService__9:BindToRenderStep("PetRendering", Enum.RenderPriority.Character.Value + 1, function(p24)
  164.         for v30, v31 in next, u3 do
  165.             if not v30.Owner.Parent then
  166.                 v30:Destroy();
  167.                 u3[v30] = nil;
  168.             else
  169.                 v30:Update();
  170.             end;
  171.         end;
  172.     end);
  173. end;
  174. game.Players.PlayerRemoving:Connect(function(p25)
  175.     for v32, v33 in next, u3 do
  176.         if v32.Owner == p25 then
  177.             v32:Destroy();
  178.             u3[v32] = nil;
  179.         end;
  180.     end;
  181. end);
  182. return v1;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top