Advertisement
Guest User

fatty

a guest
May 21st, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.54 KB | None | 0 0
  1. local b=Instance.new("ScreenGui")local o=Instance.new("Frame")local n=Instance.new("ScrollingFrame")local k=Instance.new("TextButton")local a=Instance.new("UIGridLayout")local c=Instance.new("TextLabel")local h=Instance.new("TextButton")local l=Instance.new("TextLabel")local f=Instance.new("TextLabel")local g=Instance.new("TextButton")local e=Instance.new("TextLabel")local d=Instance.new("TextLabel")local i=Instance.new("TextButton")local j=Instance.new("TextButton")local m=Instance.new("TextButton")b.Parent=game.Players.LocalPlayer:WaitForChild("PlayerGui")b.ZIndexBehavior=Enum.ZIndexBehavior.Sibling o.Name="MainFrame"o.Parent=b o.BackgroundColor3=Color3.new(0.180392,0.180392,0.180392)o.BorderColor3=Color3.new(0.145098,0.145098,0.145098)o.BorderSizePixel=2 o.Position=UDim2.new(0.257062137,0,0.297912717,0)o.Size=UDim2.new(0,230,0,212)n.Name="itemList"n.Parent=o n.BackgroundColor3=Color3.new(0.180392,0.180392,0.180392)n.BorderColor3=Color3.new(0.145098,0.145098,0.145098)n.BorderSizePixel=2 n.Position=UDim2.new(1,0,0,0)n.Size=UDim2.new(0,100,0,212)n.Visible=false n.CanvasSize=UDim2.new(0,0,40,0)n.ScrollBarThickness=7 k.Name="Template"k.Parent=n k.BackgroundColor3=Color3.new(0.235294,0.235294,0.235294)k.BorderSizePixel=0 k.Size=UDim2.new(0,200,0,50)k.Font=Enum.Font.SourceSans k.Text="Template"k.TextColor3=Color3.new(0.960784,0.960784,0.960784)k.TextSize=14 a.Parent=n a.CellSize=UDim2.new(0,100,0,30)c.Name="Title"c.Parent=o c.BackgroundColor3=Color3.new(0.145098,0.145098,0.145098)c.BorderSizePixel=0 c.Size=UDim2.new(0,230,0,46)c.Font=Enum.Font.SourceSans c.Text="Spawn Items Gui"c.TextColor3=Color3.new(1,1,1)c.TextSize=18 h.Name="SpawnItem"h.Parent=o h.BackgroundColor3=Color3.new(0.145098,0.145098,0.145098)h.BorderSizePixel=0 h.Position=UDim2.new(0.0652173907,0,0.26886791,0)h.Size=UDim2.new(0,200,0,45)h.Font=Enum.Font.Gotham h.Text="Spawn Item"h.TextColor3=Color3.new(0.960784,0.956863,0.886275)h.TextSize=20 l.Name="Selecting"l.Parent=o l.BackgroundColor3=Color3.new(1,1,1)l.BackgroundTransparency=1 l.Position=UDim2.new(0,0,0.542452812,0)l.Size=UDim2.new(0,140,0,25)l.Font=Enum.Font.SourceSans l.Text="Selecting:"l.TextColor3=Color3.new(0.960784,0.780392,0.490196)l.TextSize=14 f.Name="ItemSelect"f.Parent=l f.BackgroundColor3=Color3.new(1,1,1)f.BackgroundTransparency=1 f.Position=UDim2.new(0.721428573,0,0.119999997,0)f.Size=UDim2.new(0,123,0,19)f.Font=Enum.Font.SourceSans f.Text="None"f.TextColor3=Color3.new(1,1,1)f.TextSize=14 f.TextXAlignment=Enum.TextXAlignment.Left g.Name="OpenItemList"g.Parent=o g.BackgroundColor3=Color3.new(0.145098,0.145098,0.145098)g.BorderSizePixel=0 g.Position=UDim2.new(0.173913032,0,0.698113263,0)g.Size=UDim2.new(0,149,0,38)g.Font=Enum.Font.SourceSans g.Text="Open Item List"g.TextColor3=Color3.new(1,1,1)g.TextSize=14 e.Name="Credits"e.Parent=o e.BackgroundColor3=Color3.new(1,1,1)e.BackgroundTransparency=1 e.Position=UDim2.new(0.0652173907,0,0.910377383,0)e.Size=UDim2.new(0,200,0,19)e.Font=Enum.Font.SourceSans e.Text="Gui by v1pejames"e.TextColor3=Color3.new(0.960784,0.960784,0.960784)e.TextSize=20 d.Name="Credits"d.Parent=o d.BackgroundColor3=Color3.new(1,1,1)d.BackgroundTransparency=1 d.Position=UDim2.new(0.0652173907,0,0.910377383,0)d.Size=UDim2.new(0,198,0,19)d.Font=Enum.Font.SourceSans d.Text="Gui by v1pejames"d.TextColor3=Color3.new(1,0,0)d.TextSize=20 i.Name="Hide"i.Parent=o i.BackgroundColor3=Color3.new(0.0666667,0.0627451,0.0627451)i.BackgroundTransparency=0.80000001192093 i.BorderSizePixel=0 i.Position=UDim2.new(0.747826099,0,0,0)i.Size=UDim2.new(0,26,0,26)i.Font=Enum.Font.SourceSans i.Text="-"i.TextColor3=Color3.new(0.960784,0.960784,0.960784)i.TextSize=25 j.Name="Exit"j.Parent=o j.BackgroundColor3=Color3.new(0.0666667,0.0627451,0.0627451)j.BackgroundTransparency=0.80000001192093 j.BorderSizePixel=0 j.Position=UDim2.new(0.860869586,0,0,0)j.Size=UDim2.new(0,26,0,26)j.Font=Enum.Font.SourceSans j.Text="x"j.TextColor3=Color3.new(0.960784,0.72549,0.717647)j.TextSize=25 m.Name="Open"m.Parent=b m.BackgroundColor3=Color3.new(0.180392,0.180392,0.180392)m.BorderColor3=Color3.new(0.145098,0.145098,0.145098)m.BorderSizePixel=2 m.Position=UDim2.new(0.55273068,0,0.785578728,0)m.Size=UDim2.new(0,101,0,20)m.Visible=false m.AutoButtonColor=false m.Font=Enum.Font.SourceSans m.Text="Open"m.TextColor3=Color3.new(1,1,1)m.TextSize=14 j.MouseButton1Down:Connect(function()b:Destroy()end)i.MouseButton1Down:Connect(function()o.Visible=false m.Visible=true end)m.MouseButton1Down:Connect(function()o.Visible=true m.Visible=false end)g.MouseButton1Down:Connect(function()if n.Visible==true then n.Visible=false else n.Visible=true end end)local a="ItemName"local a=1 local c=nil for a,a in pairs(game.Workspace.Properties:GetChildren())do if a.Owner.Value==game.Players.LocalPlayer then c=a break end end if not c then for a,a in pairs(game.Workspace.Properties:GetChildren())do if a.Owner.Value==game.Players.LocalPlayer or a.Owner.Value==nil then c=a game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(a)break end end end function Spawn1(a)local b={}b.Name=a.Name b.Type=game.ReplicatedStorage.Purchasables.Structures.HardStructures.Sawmill2.Type b.OtherInfo=game.ReplicatedStorage.Purchasables.WireObjects.Wire.OtherInfo local a={c.OriginSquare.Position+Vector3.new(0,5,0),c.OriginSquare.Position+Vector3.new(0,5,0)}game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(b,a)end o.Active=true o.Selectable=true o.Draggable=true local g local b local e local d local f local c for a,a in pairs(game.ReplicatedStorage.Purchasables:GetChildren())do if a.Name=="Vehicles"then b=a end if a.Name=="Structures"then e=a end if a.Name=="WireObjects"then d=a end if a.Name=="Other"then f=a end if a.Name=="Tools"then c=a end end for a,b in pairs(b:GetChildren())do local a=k:Clone()a.Parent=n a.Name=b.Name a.Text=b.Name a.MouseButton1Down:Connect(function()g=b.Name l.Text=b.Name end)end for a,b in pairs(e:GetChildren())do local a=k:Clone()a.Parent=n a.Name=b.Name a.Text=b.Name a.MouseButton1Down:Connect(function()g=b.Name l.Text=b.Name end)end for a,a in pairs(d:GetChildren())do local b=k:Clone()b.Parent=n b.Name=a.Name b.Text=a.Name b.MouseButton1Down:Connect(function()g=a.Name l.Text=a.Name end)end for a,b in pairs(f:GetChildren())do local a=k:Clone()a.Parent=n a.Name=b.Name a.Text=b.Name a.MouseButton1Down:Connect(function()g=b.Name l.Text=b.Name end)end for a,b in pairs(c:GetChildren())do local a=k:Clone()a.Parent=n a.Name=b.Name a.Text=b.Name a.MouseButton1Down:Connect(function()g=b.Name l.Text=b.Name end)end h.MouseButton1Down:Connect(function()if g~=nil then for a=1,a do Spawn1(game.ReplicatedStorage.Purchasables:FindFirstChild(g,true))end else print("Select item!!")end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement