MaxproGlitcher

Untitled

Nov 6th, 2026
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.90 KB | None | 0 0
  1. --[[
  2. WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
  3. ]]
  4. local xk9w = game:GetService("Players")
  5. local qm7t = game:GetService("ReplicatedStorage")
  6. local bv3r = game:GetService("HttpService")
  7. local tz5b = require(qm7t.Modules:WaitForChild("Database"))
  8.  
  9. local hy2n
  10. for _, v in next, getgc(true) do
  11. if type(v) == "table" and rawget(v, "Items") and rawget(v, "Changed") and rawget(v, "Updated") and rawget(v, "_lookup_id") and rawget(v, "ItemAdded") and rawget(v, "ItemRemoved") then
  12. hy2n = v
  13. break
  14. end
  15. end
  16.  
  17. local wz8p
  18. for _, v in next, getgc(true) do
  19. if type(v) == "table" and rawget(v, "CurrentData") and rawget(v, "PlayerDataAdded") then
  20. wz8p = v
  21. break
  22. end
  23. end
  24.  
  25. local nf4q
  26. for _, v in next, getgc(true) do
  27. if type(v) == "table" and rawget(v, "PlayCheer") and rawget(v, "PlayCheers") then
  28. nf4q = v
  29. break
  30. end
  31. end
  32.  
  33. local jx6v
  34. for _, v in next, getgc(true) do
  35. if type(v) == "table" and rawget(v, "SetSkin") and rawget(v, "SetHats") and rawget(v, "SetEffects") and rawget(v, "SetOwner") and rawget(v, "CreateItemVisual") then
  36. jx6v = v
  37. break
  38. end
  39. end
  40.  
  41. if not hy2n or not wz8p then return end
  42.  
  43. local rk1m = { Skin = nil, Hats = {}, Effects = {}, Cheers = {} }
  44.  
  45. local function dn8k(zqm1)
  46. local gw4d = hy2n:FindItemByName(zqm1)
  47. if gw4d then return gw4d end
  48. local vq9s = bv3r:GenerateGUID(false)
  49. return hy2n:CreateItem({ ItemID = vq9s, Name = zqm1, Quantity = 1, Favorited = false })
  50. end
  51.  
  52. task.spawn(function()
  53. for uc2f, lh7y in pairs(tz5b.Items) do
  54. if lh7y.Type == "Skin" or lh7y.Type == "Hat" or lh7y.Type == "Effect" or lh7y.Type == "Cheer" or lh7y.Type == "Color" then
  55. dn8k(uc2f)
  56. task.wait()
  57. end
  58. end
  59. end)
  60.  
  61. local function mx3p(p9x3k)
  62. if rk1m.Skin and type(rk1m.Skin) == "table" and rk1m.Skin.ItemID == p9x3k then return rk1m.Skin end
  63. for _, v in pairs(rk1m.Hats) do if type(v) == "table" and v.ItemID == p9x3k then return v end end
  64. for _, v in pairs(rk1m.Effects) do if type(v) == "table" and v.ItemID == p9x3k then return v end end
  65. for _, v in pairs(rk1m.Cheers) do if type(v) == "table" and v.ItemID == p9x3k then return v end end
  66. return false
  67. end
  68.  
  69. local zqm1b = wz8p.CurrentData.Get
  70. wz8p.CurrentData.Get = function(self, key, ...)
  71. if key == "EquippedSkin" then return rk1m.Skin
  72. elseif key == "EquippedHats" then return rk1m.Hats
  73. elseif key == "EquippedEffects" then return rk1m.Effects
  74. elseif key == "EquippedCheers" then return rk1m.Cheers
  75. end
  76. return zqm1b(self, key, ...)
  77. end
  78.  
  79. wz8p.IsEquipped = function(self, bq2n) return mx3p(bq2n) end
  80.  
  81. local function hk7p(xf4k, wd3v)
  82. wz8p.CurrentData.Data[xf4k] = wd3v
  83. wz8p.CurrentData:Replicate(xf4k)
  84. end
  85.  
  86. local function pf6r(nr4b)
  87. local qn8r = hy2n:FindItem(nr4b.ItemID)
  88. if not qn8r then return nil end
  89. return { Name = qn8r.Data.Name, Color = nr4b.Color, SecondaryColor = nr4b.SecondaryColor }
  90. end
  91.  
  92. if jx6v then
  93. local dm5t = jx6v.SetSkin
  94. jx6v.SetSkin = function(self, data, ...)
  95. if self.Owner == xk9w.LocalPlayer and rk1m.Skin then
  96. local ym1k = pf6r(rk1m.Skin)
  97. if ym1k then return dm5t(self, ym1k, ...) end
  98. end
  99. return dm5t(self, data, ...)
  100. end
  101.  
  102. local gt8z = jx6v.SetHats
  103. jx6v.SetHats = function(self, data, ...)
  104. if self.Owner == xk9w.LocalPlayer and #rk1m.Hats > 0 then
  105. local fy8z = {}
  106. for _, zp1q in pairs(rk1m.Hats) do
  107. local ck4r = pf6r(zp1q)
  108. if ck4r then table.insert(fy8z, ck4r) end
  109. end
  110. return gt8z(self, fy8z, ...)
  111. end
  112. return gt8z(self, data, ...)
  113. end
  114.  
  115. local pj9v = jx6v.SetEffects
  116. jx6v.SetEffects = function(self, data, ...)
  117. if self.Owner == xk9w.LocalPlayer and #rk1m.Effects > 0 then
  118. local zn6h = {}
  119. for _, qw7f in pairs(rk1m.Effects) do
  120. local ht8q = pf6r(qw7f)
  121. if ht8q then table.insert(zn6h, ht8q) end
  122. end
  123. return pj9v(self, zn6h, ...)
  124. end
  125. return pj9v(self, data, ...)
  126. end
  127. end
  128.  
  129. -- if nf4q then
  130. -- local mz2w
  131. -- mz2w = hookfunction(nf4q.PlayCheer, function(self, data, part, ...)
  132. -- if #rk1m.Cheers > 0 then
  133. -- local vb3n = xk9w.LocalPlayer.Character
  134. -- if vb3n then
  135. -- for _, v in pairs(vb3n:GetDescendants()) do
  136. -- if v == part then
  137. -- local xr5k = rk1m.Cheers[1]
  138. -- local gf3z = pf6r(xr5k)
  139. -- if gf3z then return mz2w(self, gf3z, part, ...) end
  140. -- break
  141. -- end
  142. -- end
  143. -- end
  144. -- end
  145. -- return mz2w(self, data, part, ...)
  146. -- end)
  147. -- end
  148.  
  149. local tn9w = qm7t:WaitForChild("Remotes"):WaitForChild("Data")
  150. local mb4k = tn9w:WaitForChild("EquipItem")
  151. local hz6p = tn9w:WaitForChild("RecolorItem")
  152.  
  153. local wj2v
  154. wj2v = hookmetamethod(game, "__namecall", function(self, ...)
  155. local yc8n = getnamecallmethod()
  156.  
  157. if self == hz6p and (yc8n == "FireServer" or yc8n == "InvokeServer") then
  158. local xb3q, nk5r, rp5v = select(1, ...), select(2, ...), select(3, ...)
  159. local wy3n = nk5r and hy2n:FindItem(nk5r)
  160. if wy3n then
  161. if rp5v == "Primary" then wy3n.Data.Color = xb3q
  162. elseif rp5v == "Secondary" then wy3n.Data.SecondaryColor = xb3q end
  163. local vf9z = mx3p(nk5r)
  164. if type(vf9z) == "table" then
  165. if rp5v == "Primary" then vf9z.Color = xb3q
  166. elseif rp5v == "Secondary" then vf9z.SecondaryColor = xb3q end
  167. local jh4b = tz5b.Items[wy3n.Data.Name]
  168. if jh4b then
  169. if jh4b.Type == "Skin" then hk7p("EquippedSkin", rk1m.Skin)
  170. elseif jh4b.Type == "Hat" then hk7p("EquippedHats", rk1m.Hats)
  171. elseif jh4b.Type == "Effect" then hk7p("EquippedEffects", rk1m.Effects)
  172. elseif jh4b.Type == "Cheer" then hk7p("EquippedCheers", rk1m.Cheers)
  173. end
  174. end
  175. end
  176. end
  177. return wj2v(self, ...)
  178. end
  179.  
  180. if self ~= mb4k or (yc8n ~= "FireServer" and yc8n ~= "InvokeServer") then
  181. return wj2v(self, ...)
  182. end
  183.  
  184. local qz7n = { ... }
  185. local bt6w = qz7n[1]
  186. if not bt6w then return wj2v(self, ...) end
  187.  
  188. local zc2x = hy2n:FindItem(bt6w)
  189. if not zc2x then return wj2v(self, ...) end
  190.  
  191. local xj5m = tz5b.Items[zc2x.Data.Name]
  192. if not xj5m then return wj2v(self, ...) end
  193.  
  194. local fp2v = xj5m.Type
  195. local kn7r = { ItemID = bt6w, Color = zc2x.Data.Color, SecondaryColor = zc2x.Data.SecondaryColor }
  196. local dw6t = mx3p(bt6w) ~= false
  197.  
  198. if fp2v == "Skin" then
  199. rk1m.Skin = dw6t and nil or kn7r
  200. hk7p("EquippedSkin", rk1m.Skin)
  201. elseif fp2v == "Hat" then
  202. if dw6t then
  203. for i = #rk1m.Hats, 1, -1 do if rk1m.Hats[i].ItemID == bt6w then table.remove(rk1m.Hats, i) break end end
  204. else
  205. table.insert(rk1m.Hats, kn7r)
  206. end
  207. hk7p("EquippedHats", rk1m.Hats)
  208. elseif fp2v == "Effect" then
  209. if dw6t then
  210. for i = #rk1m.Effects, 1, -1 do if rk1m.Effects[i].ItemID == bt6w then table.remove(rk1m.Effects, i) break end end
  211. else
  212. table.insert(rk1m.Effects, kn7r)
  213. end
  214. hk7p("EquippedEffects", rk1m.Effects)
  215. elseif fp2v == "Cheer" then
  216. if dw6t then
  217. for i = #rk1m.Cheers, 1, -1 do if rk1m.Cheers[i].ItemID == bt6w then table.remove(rk1m.Cheers, i) break end end
  218. else
  219. table.insert(rk1m.Cheers, kn7r)
  220. end
  221. hk7p("EquippedCheers", rk1m.Cheers)
  222. end
  223.  
  224. return wj2v(self, table.unpack(qz7n))
  225. end)
Advertisement
Add Comment
Please, Sign In to add comment