Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- for i,v in pairs(game.ReplicatedStorage.assets.items:GetChildren()) do
- if string.match(v.Name, "Uni") then
- print(v.Name)
- end
- end
- ]]
- --I'm just gonna start releasing all my stuff on here people tend to find their way here even without me linking them. ¯\_(ツ)_/¯ -------Scapters
- local s = Instance.new("ScreenGui", game.CoreGui)
- s.Name = "Scaps Deadzone ItemSpawner"
- local sf = Instance.new("ScrollingFrame", s)
- sf.Position = UDim2.new(0.03,0,0.6,0)
- sf.Size = UDim2.new(0,200,0,250)
- sf.BackgroundColor3 = Color3.new(66, 66, 66)
- sf.BackgroundTransparency = 0.3
- sf.CanvasSize = UDim2.new(0,0,18,178)
- local f = Instance.new("Frame", s)
- f.Position = UDim2.new(0.03,0,0.551,0)
- f.Size = UDim2.new(0,200,0,35)
- local label = Instance.new("TextButton", sf)
- label.Name = "1"
- label.Text = "Item List:"
- label.Size = UDim2.new(1,0,0,25)
- label.Position = UDim2.new(0,0,0,0)
- local ItemBox = Instance.new("TextBox", f)
- ItemBox.Size = UDim2.new(0,75,0,35)
- ItemBox.Position = UDim2.new(0,0,0,0)
- ItemBox.TextScaled = true
- ItemBox.Text = "Item"
- local SlotBox = Instance.new("TextBox", f)
- SlotBox.Size = UDim2.new(0,75,0,35)
- SlotBox.Position = UDim2.new(0,75,0,0)
- SlotBox.TextScaled = true
- SlotBox.Text = "Slot"
- local Spawn = Instance.new("TextButton", f)
- Spawn.Size = UDim2.new(0,50,0,35)
- Spawn.Position = UDim2.new(0.75,0,0,0)
- Spawn.TextScaled = true
- Spawn.Text = "Spawn"
- local e = 2
- local previousvalue = 1
- for i,v in pairs(game.ReplicatedStorage.assets.items:GetChildren()) do
- if sf:FindFirstChild('1') then
- local q = Instance.new("TextButton", sf)
- q.Size = UDim2.new(1,0,0,25)
- q.TextScaled = true
- q.Name = e
- q.Text = v.Name
- q.Font = "SourceSansBold"
- q.FontSize = "Size24"
- q.Position = sf[previousvalue].Position+UDim2.new(0,0,0,28)
- previousvalue = e
- e = e+1
- end
- end
- for i,v in pairs(sf:GetChildren()) do
- if v:IsA("TextButton") then
- v.MouseButton1Down:connect(function()
- ItemBox.Text = v.Text
- end)
- end
- end
- Spawn.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.PlayerGui.GUI.inventory.localItems["item".." ("..SlotBox.Text..")"].item.Value = ItemBox.Text
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement