Advertisement
Domadicoof-28363

Untitled

Jul 12th, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.88 KB | None | 0 0
  1. local cac = require(game:GetService("Players").LocalPlayer.PlayerGui.Main.UIController.Inventory)
  2. local Inventory = game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("getInventory")
  3. local Items = {}
  4. local RaityLevel = {"Mythical","Legendary","Rare","Uncommon","Common"}
  5. local RaityColor = {
  6. ["Common"] = Color3.fromRGB(179, 179, 179),
  7. ["Uncommon"] = Color3.fromRGB(92, 140, 211),
  8. ["Rare"] = Color3.fromRGB(140, 82, 255),
  9. ["Legendary"] = Color3.fromRGB(213, 43, 228) ,
  10. ["Mythical"] = Color3.fromRGB(238, 47, 50)
  11. }
  12. function GetRaity(color)
  13. for k,v in pairs(RaityColor) do
  14. if v==color then return k end
  15. end
  16. end
  17.  
  18. for k,v in pairs(Inventory) do
  19. Items[v.Name] = v
  20. end
  21.  
  22. local total = #getupvalue(cac.UpdateRender,4)
  23. local rac = {}
  24. local allitem = {}
  25. local total2 = 0
  26. while total2<total do
  27. local i = 0
  28. while i < 25000 and total2<total do
  29. game:GetService("Players").LocalPlayer.PlayerGui.Main.InventoryContainer.Right.Content.ScrollingFrame.CanvasPosition = Vector2.new(0,i)
  30. for k,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.Main.InventoryContainer.Right.Content.ScrollingFrame.Frame:GetChildren()) do
  31. if v:IsA("Frame") and not rac[v.ItemName.Text] and v.ItemName.Visible==true then
  32. local vaihuhu = GetRaity(v.Background.BackgroundColor3)
  33. if vaihuhu then
  34. print("Rac")
  35. if not allitem[vaihuhu] then
  36. allitem[vaihuhu] = {}
  37. end
  38. table.insert(allitem[vaihuhu],v:Clone())
  39. end
  40. total2=total2+1
  41. rac[v.ItemName.Text] = true
  42. end
  43. end
  44. i=i+20
  45. end
  46. wait()
  47. end
  48. function GetXY(vec)
  49. return vec*100
  50. end
  51.  
  52. local tvk = Instance.new("UIListLayout")
  53. tvk.FillDirection = Enum.FillDirection.Vertical
  54. tvk.SortOrder = 2
  55. tvk.Padding = UDim.new(0,10)
  56.  
  57. local Left = Instance.new("Frame",game.Players.LocalPlayer.PlayerGui.BubbleChat)
  58. Left.BackgroundTransparency = 1
  59. Left.Size = UDim2.new(.5,0,1,0)
  60. tvk.Parent = Left
  61.  
  62. local Right = Instance.new("Frame",game.Players.LocalPlayer.PlayerGui.BubbleChat)
  63. Right.BackgroundTransparency = 1
  64. Right.Size = UDim2.new(.5,0,1,0)
  65. Right.Position = UDim2.new(.6,0,0,0)
  66. tvk:Clone().Parent = Right
  67. for k,v in pairs(allitem) do
  68. local cac = Instance.new("Frame",Left)
  69. cac.BackgroundTransparency = 1
  70. cac.Size = UDim2.new(1,0,0,0)
  71. cac.LayoutOrder = table.find(RaityLevel,k)
  72.  
  73. local cac2 = Instance.new("Frame",Right)
  74. cac2.BackgroundTransparency = 1
  75. cac2.Size = UDim2.new(1,0,0,0)
  76. cac2.LayoutOrder = table.find(RaityLevel,k)
  77.  
  78. local tvk = Instance.new("UIGridLayout",cac)
  79. tvk.CellPadding = UDim2.new(.005,0,.005,0)
  80. tvk.CellSize = UDim2.new(0,70,0,70)
  81. tvk.FillDirectionMaxCells = 100
  82. tvk.FillDirection = Enum.FillDirection.Horizontal
  83.  
  84. local ccc = tvk:Clone()
  85. ccc.Parent = cac2
  86. for k,v in pairs(v) do
  87. if Items[v.ItemName.Text] and Items[v.ItemName.Text].Mastery then
  88. if v.ItemLine2.Text~="Accessory" then
  89. local bucac = v.ItemName:Clone()
  90. bucac.BackgroundTransparency = 1
  91. bucac.TextSize = 10
  92. bucac.TextXAlignment = 2
  93. bucac.TextYAlignment = 2
  94. bucac.ZIndex = 5
  95. bucac.Text = Items[v.ItemName.Text].Mastery
  96. bucac.Size = UDim2.new(.5,0,.5,0)
  97. bucac.Position = UDim2.new(.5,0,.5,0)
  98. bucac.Parent = v
  99. end
  100. v.Parent = cac
  101. elseif v.ItemLine2.Text == "Blox Fruit" then
  102. v.Parent = cac2
  103. end
  104. end
  105. cac.AutomaticSize = 2
  106. cac2.AutomaticSize = 2
  107. end
  108. local ListHuhu = {
  109. ["Superhuman"] = Vector2.new(3,2),
  110. ["GodHuman"] = Vector2.new(3,2),
  111. ["DeathStep"] = Vector2.new(4,3),
  112. ["ElectricClaw"] = Vector2.new(2,0),
  113. ["SharkmanKarate"] = Vector2.new(0,0),
  114. ["DragonTalon"] = Vector2.new(1,5)
  115. }
  116. local MeleeG = Instance.new("Frame",Left)
  117. MeleeG.BackgroundTransparency = 1
  118. MeleeG.Size = UDim2.new(1,0,0,0)
  119. MeleeG.LayoutOrder = table.find(RaityLevel,k)
  120. MeleeG.AutomaticSize=2
  121. MeleeG.LayoutOrder = 100
  122. local tvk = Instance.new("UIGridLayout",MeleeG)
  123. tvk.CellPadding = UDim2.new(.005,0,.005,0)
  124. tvk.CellSize = UDim2.new(0,70,0,70)
  125. tvk.FillDirectionMaxCells = 100
  126. tvk.FillDirection = Enum.FillDirection.Horizontal
  127.  
  128. local cac = {"Superhuman","ElectricClaw","DragonTalon","SharkmanKarate","DeathStep","GodHuman"}
  129. for k,v in pairs(cac) do
  130. if ListHuhu[v] and game:GetService("ReplicatedStorage").Remotes.CommF_:InvokeServer("Buy"..v,true) == 1 then
  131. local huhu = Instance.new("ImageLabel",MeleeG)
  132. huhu.Image = "rbxassetid://9945562382"
  133. huhu.ImageRectSize = Vector2.new(100,100)
  134. huhu.ImageRectOffset = ListHuhu[v]*100
  135. end
  136. end
  137. function formatNumber(v)
  138. return tostring(v):reverse():gsub("%d%d%d", "%1,"):reverse():gsub("^,", "")
  139. end
  140. game:GetService("Players").LocalPlayer.PlayerGui.Main.Beli.Position = UDim2.new(0,800,0,500)
  141. game:GetService("Players").LocalPlayer.PlayerGui.Main.Level.Position = UDim2.new(0,800,0,550)
  142.  
  143. local thieunang = game:GetService("Players").LocalPlayer.PlayerGui.Main.Fragments:Clone()
  144. thieunang.Parent = game:GetService("Players").LocalPlayer.PlayerGui.BubbleChat
  145. thieunang.Position = UDim2.new(0,800,0.63,0)
  146. local n = formatNumber(game.Players.LocalPlayer.Data.Fragments.Value)
  147. thieunang.Text = "Æ’"..n
  148. print("Done")
  149. pcall(function()
  150. game:GetService("Players").LocalPlayer.PlayerGui.Main.MenuButton:Destroy()
  151. end)
  152. pcall(function()
  153. game:GetService("Players").LocalPlayer.PlayerGui.Main.HP:Destroy()
  154. end)
  155. pcall(function()
  156. game:GetService("Players").LocalPlayer.PlayerGui.Main.Energy:Destroy()
  157. end)
  158. for k,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.Main:GetChildren()) do
  159. if v:IsA("ImageButton") then
  160. v:Destroy()
  161. end
  162. end
  163. pcall(function()
  164. game:GetService("Players").LocalPlayer.PlayerGui.Main.Compass:Destroy()
  165. end)
  166. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement