Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Navigate to GameGui > LocalScript and find the section that starts with "local function ChoosePokemon".
- This should be around Line 2500-ish.
- Then, insert the changes detailed below. The entire excerpt has been pasted and changes are highlighted.
- Also, when it calls for a replacement, make sure you put in the "new" part and delete the "old" part.
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- Insert this line:
- local function ChoosePokemon(to, name, canuse, lvl)
- -- Know that this is replacing the line:
- -- local function ChoosePokemon(to, name, canuse)
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- canusep = canuse
- local datas = script.Pokemon[to][name]
- curpokemon = name
- if canuse == true then
- introf.Informations.Image.Image = "rbxassetid://"..datas.ImageId.Value
- introf.Informations.Image.ImageColor3 = Color3.new(1,1,1)
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- We are deleting this line and not replacing it with anything:
- --local lvl = CallServer("GetStat", datas.Stat.Value)
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- if lvl then introf.Informations.Image.LVL.Text = "Level "..lvl end
- else
- introf.Informations.Image.Image = "rbxassetid://"..datas.ImageId.Value
- introf.Informations.Image.ImageColor3 = Color3.new(0,0,0)
- introf.Informations.Image.LVL.Text = ""
- end
- PokemonDatas = {}
- PokemonDatas.Category = to
- PokemonDatas.PokemonName = name
- introf.Informations.Image.Block.Visible = false
- introf.Informations:FindFirstChild("Name").Text = canuse and datas.Name or ""
- end
- local pokes = require(script.Pokemon.Sorter)
- local debounce = false
- local function ChangePokemonCategory(to)
- if debounce == false then
- debounce = true
- for _, i in pairs(introf.Choose.Pokemon:GetChildren()) do
- i:Destroy()
- end
- local YY = math.floor(#pokes[to] / 6)
- if #pokes[to] % 6 ~= 0 then
- YY = YY + 1
- end
- local YC = 1 / YY
- if YY <= 5 then
- YC = 0.2
- end
- local pcur = 1
- for id, name in pairs(pokes[to]) do
- local i = script.Pokemon[to]:FindFirstChild(name)
- local num = pcur
- num = num - 1
- local position = num % 6
- local line = (num-position) / 6
- local Button = Instance.new("ImageButton")
- Button.BackgroundTransparency = 1
- Button.Name = i.Name
- local canuse = false
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- Insert this line:
- local lvl
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- local Text = Instance.new("TextLabel")
- Text.BackgroundTransparency = 1
- Text.Name = i.Name
- Text.Text = ""
- Text.Size = UDim2.new(0.1, 0, YC / 4, 0)
- Text.TextScaled = false
- Text.ZIndex = 8
- Text.Parent = introf.Choose.Pokemon
- Text.Position = UDim2.new((((position) * 1.5)/10) + 0.05, 0, (line * YC) + (YC / 4) + (YC / 2), 0)
- Text.TextColor3 = Color3.new(0, 0, 0)
- Text.Font = Enum.Font.ArialBold
- Button.Image = "rbxassetid://"..tostring(i.ImageId.Value)
- Button.ImageColor3 = Color3.new(0,0,0)
- if i.Stat.Value == "" then
- canuse = true
- Button.Image = "rbxassetid://"..tostring(i.ImageId.Value)
- Button.ImageColor3 = Color3.new(1,1,1)
- Text.Text = i.Name
- elseif string.sub(i.Stat.Value, 1, 5) == "BADGE" then
- if CallServer("UserHasBadge", tonumber(string.sub(i.Stat.Value, 7))) then
- canuse = true
- Button.Image = "rbxassetid://"..tostring(i.ImageId.Value)
- Button.ImageColor3 = Color3.new(1,1,1)
- Text.Text = i.Name
- end
- elseif string.sub(i.Stat.Value, 1, 2) == "GP" then
- if CallServer("UserHasGamepass", tonumber(string.sub(i.Stat.Value, 4))) then
- canuse = true
- Button.Image = "rbxassetid://"..tostring(i.ImageId.Value)
- Button.ImageColor3 = Color3.new(1,1,1)
- Text.Text = i.Name
- end
- elseif string.sub(i.Stat.Value, 1, 5) == "GROUP" then
- if CallServer("IsInGroup", tonumber(string.sub(i.Stat.Value, 7))) then
- canuse = true
- Button.Image = "rbxassetid://"..tostring(i.ImageId.Value)
- Button.ImageColor3 = Color3.new(1,1,1)
- Text.Text = i.Name
- end
- else
- local curstat = Stats.GetStat(i.Stat.Value)
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- Insert this line:
- lvl = curstat
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- if curstat and curstat ~= 0 then
- Button.Image = "rbxassetid://"..tostring(i.ImageId.Value)
- Button.ImageColor3 = Color3.new(1,1,1)
- canuse = true
- Text.Text = i.Name
- end
- end
- Button.Size = UDim2.new(0.1, 0, YC / 2, 0)
- Button.Position = UDim2.new((((position) * 1.5)/10) + 0.05, 0, (line * YC) + (YC / 4), 0)
- Button.Parent = introf.Choose.Pokemon
- Button.ZIndex = 8
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- NEW STUFF
- -- Insert this line:
- Button.MouseButton1Click:connect(function() ChoosePokemon(to, i.Name, canuse, lvl) end)
- -- Know that this is replacing the line:
- -- Button.MouseButton1Click:connect(function() ChoosePokemon(to, i.Name, canuse) end)
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- -- END OF NEW STUFF
- if ((line + 1) * 0.2) < 1 then
- introf.Choose.Pokemon.CanvasSize = UDim2.new(0, 0, 0, 0)
- else
- introf.Choose.Pokemon.CanvasSize = UDim2.new(0, 0, ((line + 1) * 0.2), 0)
- end
- pcur = pcur + 1
- end
- curcategory = to
- debounce = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement