Advertisement
IHATEMICROWAVEOVEN

pa fix to that one wifi bug demonstration

Jan 14th, 2024 (edited)
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.15 KB | None | 0 0
  1. Navigate to GameGui > LocalScript and find the section that starts with "local function ChoosePokemon".
  2. This should be around Line 2500-ish.
  3. Then, insert the changes detailed below. The entire excerpt has been pasted and changes are highlighted.
  4. Also, when it calls for a replacement, make sure you put in the "new" part and delete the "old" part.
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. -- NEW STUFF
  13. -- NEW STUFF
  14. -- NEW STUFF
  15. -- NEW STUFF
  16. -- NEW STUFF
  17. -- NEW STUFF
  18. -- NEW STUFF
  19. -- NEW STUFF
  20. -- Insert this line:
  21. local function ChoosePokemon(to, name, canuse, lvl)
  22. -- Know that this is replacing the line:
  23. -- local function ChoosePokemon(to, name, canuse)
  24. -- END OF NEW STUFF
  25. -- END OF NEW STUFF
  26. -- END OF NEW STUFF
  27. -- END OF NEW STUFF
  28. -- END OF NEW STUFF
  29. -- END OF NEW STUFF
  30. -- END OF NEW STUFF
  31. canusep = canuse
  32. local datas = script.Pokemon[to][name]
  33. curpokemon = name
  34. if canuse == true then
  35. introf.Informations.Image.Image = "rbxassetid://"..datas.ImageId.Value
  36. introf.Informations.Image.ImageColor3 = Color3.new(1,1,1)
  37. -- NEW STUFF
  38. -- NEW STUFF
  39. -- NEW STUFF
  40. -- NEW STUFF
  41. -- NEW STUFF
  42. -- NEW STUFF
  43. -- NEW STUFF
  44. -- NEW STUFF
  45. -- We are deleting this line and not replacing it with anything:
  46. --local lvl = CallServer("GetStat", datas.Stat.Value)
  47. -- END OF NEW STUFF
  48. -- END OF NEW STUFF
  49. -- END OF NEW STUFF
  50. -- END OF NEW STUFF
  51. -- END OF NEW STUFF
  52. -- END OF NEW STUFF
  53. -- END OF NEW STUFF
  54. if lvl then introf.Informations.Image.LVL.Text = "Level "..lvl end
  55. else
  56. introf.Informations.Image.Image = "rbxassetid://"..datas.ImageId.Value
  57. introf.Informations.Image.ImageColor3 = Color3.new(0,0,0)
  58. introf.Informations.Image.LVL.Text = ""
  59. end
  60. PokemonDatas = {}
  61. PokemonDatas.Category = to
  62. PokemonDatas.PokemonName = name
  63. introf.Informations.Image.Block.Visible = false
  64. introf.Informations:FindFirstChild("Name").Text = canuse and datas.Name or ""
  65. end
  66. local pokes = require(script.Pokemon.Sorter)
  67. local debounce = false
  68. local function ChangePokemonCategory(to)
  69. if debounce == false then
  70. debounce = true
  71. for _, i in pairs(introf.Choose.Pokemon:GetChildren()) do
  72. i:Destroy()
  73. end
  74. local YY = math.floor(#pokes[to] / 6)
  75. if #pokes[to] % 6 ~= 0 then
  76. YY = YY + 1
  77. end
  78. local YC = 1 / YY
  79. if YY <= 5 then
  80. YC = 0.2
  81. end
  82. local pcur = 1
  83. for id, name in pairs(pokes[to]) do
  84. local i = script.Pokemon[to]:FindFirstChild(name)
  85. local num = pcur
  86. num = num - 1
  87. local position = num % 6
  88. local line = (num-position) / 6
  89. local Button = Instance.new("ImageButton")
  90. Button.BackgroundTransparency = 1
  91. Button.Name = i.Name
  92. local canuse = false
  93. -- NEW STUFF
  94. -- NEW STUFF
  95. -- NEW STUFF
  96. -- NEW STUFF
  97. -- NEW STUFF
  98. -- NEW STUFF
  99. -- NEW STUFF
  100. -- NEW STUFF
  101. -- Insert this line:
  102. local lvl
  103. -- END OF NEW STUFF
  104. -- END OF NEW STUFF
  105. -- END OF NEW STUFF
  106. -- END OF NEW STUFF
  107. -- END OF NEW STUFF
  108. -- END OF NEW STUFF
  109. -- END OF NEW STUFF
  110. local Text = Instance.new("TextLabel")
  111. Text.BackgroundTransparency = 1
  112. Text.Name = i.Name
  113. Text.Text = ""
  114. Text.Size = UDim2.new(0.1, 0, YC / 4, 0)
  115. Text.TextScaled = false
  116. Text.ZIndex = 8
  117. Text.Parent = introf.Choose.Pokemon
  118. Text.Position = UDim2.new((((position) * 1.5)/10) + 0.05, 0, (line * YC) + (YC / 4) + (YC / 2), 0)
  119. Text.TextColor3 = Color3.new(0, 0, 0)
  120. Text.Font = Enum.Font.ArialBold
  121. Button.Image = "rbxassetid://"..tostring(i.ImageId.Value)
  122. Button.ImageColor3 = Color3.new(0,0,0)
  123. if i.Stat.Value == "" then
  124. canuse = true
  125. Button.Image = "rbxassetid://"..tostring(i.ImageId.Value)
  126. Button.ImageColor3 = Color3.new(1,1,1)
  127. Text.Text = i.Name
  128. elseif string.sub(i.Stat.Value, 1, 5) == "BADGE" then
  129. if CallServer("UserHasBadge", tonumber(string.sub(i.Stat.Value, 7))) then
  130. canuse = true
  131. Button.Image = "rbxassetid://"..tostring(i.ImageId.Value)
  132. Button.ImageColor3 = Color3.new(1,1,1)
  133. Text.Text = i.Name
  134. end
  135. elseif string.sub(i.Stat.Value, 1, 2) == "GP" then
  136. if CallServer("UserHasGamepass", tonumber(string.sub(i.Stat.Value, 4))) then
  137. canuse = true
  138. Button.Image = "rbxassetid://"..tostring(i.ImageId.Value)
  139. Button.ImageColor3 = Color3.new(1,1,1)
  140. Text.Text = i.Name
  141. end
  142. elseif string.sub(i.Stat.Value, 1, 5) == "GROUP" then
  143. if CallServer("IsInGroup", tonumber(string.sub(i.Stat.Value, 7))) then
  144. canuse = true
  145. Button.Image = "rbxassetid://"..tostring(i.ImageId.Value)
  146. Button.ImageColor3 = Color3.new(1,1,1)
  147. Text.Text = i.Name
  148. end
  149. else
  150. local curstat = Stats.GetStat(i.Stat.Value)
  151. -- NEW STUFF
  152. -- NEW STUFF
  153. -- NEW STUFF
  154. -- NEW STUFF
  155. -- NEW STUFF
  156. -- NEW STUFF
  157. -- NEW STUFF
  158. -- NEW STUFF
  159. -- Insert this line:
  160. lvl = curstat
  161. -- END OF NEW STUFF
  162. -- END OF NEW STUFF
  163. -- END OF NEW STUFF
  164. -- END OF NEW STUFF
  165. -- END OF NEW STUFF
  166. -- END OF NEW STUFF
  167. -- END OF NEW STUFF
  168. if curstat and curstat ~= 0 then
  169. Button.Image = "rbxassetid://"..tostring(i.ImageId.Value)
  170. Button.ImageColor3 = Color3.new(1,1,1)
  171. canuse = true
  172. Text.Text = i.Name
  173. end
  174. end
  175. Button.Size = UDim2.new(0.1, 0, YC / 2, 0)
  176. Button.Position = UDim2.new((((position) * 1.5)/10) + 0.05, 0, (line * YC) + (YC / 4), 0)
  177. Button.Parent = introf.Choose.Pokemon
  178. Button.ZIndex = 8
  179. -- NEW STUFF
  180. -- NEW STUFF
  181. -- NEW STUFF
  182. -- NEW STUFF
  183. -- NEW STUFF
  184. -- NEW STUFF
  185. -- NEW STUFF
  186. -- NEW STUFF
  187. -- Insert this line:
  188. Button.MouseButton1Click:connect(function() ChoosePokemon(to, i.Name, canuse, lvl) end)
  189. -- Know that this is replacing the line:
  190. -- Button.MouseButton1Click:connect(function() ChoosePokemon(to, i.Name, canuse) end)
  191. -- END OF NEW STUFF
  192. -- END OF NEW STUFF
  193. -- END OF NEW STUFF
  194. -- END OF NEW STUFF
  195. -- END OF NEW STUFF
  196. -- END OF NEW STUFF
  197. -- END OF NEW STUFF
  198. if ((line + 1) * 0.2) < 1 then
  199. introf.Choose.Pokemon.CanvasSize = UDim2.new(0, 0, 0, 0)
  200. else
  201. introf.Choose.Pokemon.CanvasSize = UDim2.new(0, 0, ((line + 1) * 0.2), 0)
  202. end
  203. pcur = pcur + 1
  204. end
  205. curcategory = to
  206. debounce = false
  207. end
  208. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement