a = game:GetService("ReplicatedStorage") b = a.GameRemotes.BuyEvent c = a.GameItems player = game.Players.LocalPlayer gui = Instance.new("ScreenGui") gui.Name = "ItemGiverGui" gui.Parent = game.CoreGui toggle = Instance.new("TextButton") toggle.Parent = gui toggle.Size = UDim2.new(0, 40, 0, 40) toggle.Position = UDim2.new(0, 10, 0.5, -20) toggle.Text = "brpg" main = Instance.new("Frame") main.Parent = gui main.Size = UDim2.new(0, 320, 0, 420) main.Position = UDim2.new(0.5, -160, 0.5, -210) main.Visible = false main.BackgroundColor3 = Color3.fromRGB(35, 35, 35) title = Instance.new("TextLabel") title.Parent = main title.Size = UDim2.new(1, 0, 0, 40) title.Text = "item giver" title.TextScaled = true title.BackgroundTransparency = 1 title.TextColor3 = Color3.new(1, 1, 1) search = Instance.new("TextBox") search.Parent = main search.Size = UDim2.new(1, -20, 0, 35) search.Position = UDim2.new(0, 10, 0, 50) search.PlaceholderText = "search item" search.Text = "" list = Instance.new("ScrollingFrame") list.Parent = main list.Size = UDim2.new(1, -20, 1, -100) list.Position = UDim2.new(0, 10, 0, 90) list.CanvasSize = UDim2.new(0, 0, 0, 0) list.ScrollBarImageTransparency = 0.3 list.BackgroundTransparency = 1 layout = Instance.new("UIListLayout") layout.Parent = list layout.Padding = UDim.new(0, 6) local function refresh(filter) for _, v in pairs(list:GetChildren()) do if v:IsA("TextButton") then v:Destroy() end end local items = {} for _, item in ipairs(c:GetChildren()) do if item.Name ~= "Key Template" then if not filter or string.find(string.lower(item.Name), string.lower(filter)) then local damage = 0 local wc = item:FindFirstChild("WeaponConfig") if wc and wc:IsA("ModuleScript") then local ok, data = pcall(require, wc) if ok and type(data) == "table" then local max = tonumber(data.MaxDamage) or 0 local min = tonumber(data.MinDamage) or 0 damage = max + min end end table.insert(items, { Item = item, Damage = damage }) end end end table.sort(items, function(a, b) return a.Damage > b.Damage end) for _, info in ipairs(items) do local item = info.Item local btn = Instance.new("TextButton") btn.Parent = list btn.Size = UDim2.new(1, 0, 0, 36) btn.TextScaled = true btn.Text = item.Name .. " [" .. info.Damage .. "]" btn.MouseButton1Click:Connect(function() if game.PlaceId ~= 134065266236990 then b:FireServer(item.Name) return end for _, e in ipairs(game:GetService("Players").LocalPlayer.PlayerGui.SwordGUI.ShopFrame.Items:GetChildren()) do if e:IsA("TextButton") then e.Item.Value = item.Name end end end) end task.wait() list.CanvasSize = UDim2.new(0, 0, 0, layout.AbsoluteContentSize.Y) end refresh() search:GetPropertyChangedSignal("Text"):Connect(function() refresh(search.Text) end) toggle.MouseButton1Click:Connect(function() main.Visible = not main.Visible end)