Advertisement
Guest User

f

a guest
May 21st, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.32 KB | None | 0 0
  1. local b=Instance.new("ScreenGui")local p=Instance.new("Frame")local o=Instance.new("ScrollingFrame")local l=Instance.new("TextButton")local a=Instance.new("UIGridLayout")local c=Instance.new("TextLabel")local h=Instance.new("TextButton")local k=Instance.new("TextLabel")local n=Instance.new("TextLabel")local f=Instance.new("TextButton")local e=Instance.new("TextLabel")local d=Instance.new("TextLabel")local j=Instance.new("TextButton")local g=Instance.new("TextButton")local i=Instance.new("TextButton")local m=Instance.new("TextButton")b.Parent=game.Players.LocalPlayer:WaitForChild("PlayerGui")b.ZIndexBehavior=Enum.ZIndexBehavior.Sibling p.Name="MainFrame"p.Parent=b p.BackgroundColor3=Color3.new(0.180392,0.180392,0.180392)p.BorderColor3=Color3.new(0.145098,0.145098,0.145098)p.BorderSizePixel=2 p.Position=UDim2.new(0.257062137,0,0.297912717,0)p.Size=UDim2.new(0,230,0,212)o.Name="itemList"o.Parent=p 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(1,0,0,0)o.Size=UDim2.new(0,100,0,212)o.Visible=false o.CanvasSize=UDim2.new(0,0,12,0)o.ScrollBarThickness=7 l.Name="Template"l.Parent=o l.BackgroundColor3=Color3.new(0.235294,0.235294,0.235294)l.BorderSizePixel=0 l.Size=UDim2.new(0,200,0,50)l.Font=Enum.Font.SourceSans l.Text="Template"l.TextColor3=Color3.new(0.960784,0.960784,0.960784)l.TextSize=14 a.Parent=o a.CellSize=UDim2.new(0,100,0,30)c.Name="Title"c.Parent=p 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=p 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,28)h.Font=Enum.Font.Gotham h.Text="Spawn Item"h.TextColor3=Color3.new(0.960784,0.956863,0.886275)h.TextSize=20 k.Name="Selecting"k.Parent=p k.BackgroundColor3=Color3.new(1,1,1)k.BackgroundTransparency=1 k.Position=UDim2.new(0,0,0.542452812,0)k.Size=UDim2.new(0,140,0,25)k.Font=Enum.Font.SourceSans k.Text="Selecting:"k.TextColor3=Color3.new(0.960784,0.780392,0.490196)k.TextSize=14 n.Name="ItemSelect"n.Parent=k n.BackgroundColor3=Color3.new(1,1,1)n.BackgroundTransparency=1 n.Position=UDim2.new(0.721428573,0,0.119999997,0)n.Size=UDim2.new(0,123,0,19)n.Font=Enum.Font.SourceSans n.Text="None"n.TextColor3=Color3.new(1,1,1)n.TextSize=14 n.TextXAlignment=Enum.TextXAlignment.Left f.Name="OpenItemList"f.Parent=p f.BackgroundColor3=Color3.new(0.145098,0.145098,0.145098)f.BorderSizePixel=0 f.Position=UDim2.new(0.173913032,0,0.698113263,0)f.Size=UDim2.new(0,149,0,38)f.Font=Enum.Font.SourceSans f.Text="Open Item List"f.TextColor3=Color3.new(1,1,1)f.TextSize=14 e.Name="Credits"e.Parent=p 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=p 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 j.Name="Hide"j.Parent=p j.BackgroundColor3=Color3.new(0.0666667,0.0627451,0.0627451)j.BackgroundTransparency=0.80000001192093 j.BorderSizePixel=0 j.Position=UDim2.new(0.747826099,0,0,0)j.Size=UDim2.new(0,26,0,26)j.Font=Enum.Font.SourceSans j.Text="-"j.TextColor3=Color3.new(0.960784,0.960784,0.960784)j.TextSize=25 g.Name="Exit"g.Parent=p g.BackgroundColor3=Color3.new(0.0666667,0.0627451,0.0627451)g.BackgroundTransparency=0.80000001192093 g.BorderSizePixel=0 g.Position=UDim2.new(0.860869586,0,0,0)g.Size=UDim2.new(0,26,0,26)g.Font=Enum.Font.SourceSans g.Text="x"g.TextColor3=Color3.new(0.960784,0.72549,0.717647)g.TextSize=25 i.Name="Maxland"i.Parent=p i.BackgroundColor3=Color3.new(0.145098,0.145098,0.145098)i.BorderSizePixel=0 i.Position=UDim2.new(0.156521738,0,0.410377353,0)i.Size=UDim2.new(0,158,0,28)i.Font=Enum.Font.SourceSans i.Text="MaxLand"i.TextColor3=Color3.new(1,1,1)i.TextSize=14 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 g.MouseButton1Down:Connect(function()b:Destroy()end)j.MouseButton1Down:Connect(function()p.Visible=false m.Visible=true end)m.MouseButton1Down:Connect(function()p.Visible=true m.Visible=false end)f.MouseButton1Down:Connect(function()if o.Visible==true then o.Visible=false else o.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 p.Active=true p.Selectable=true p.Draggable=true local g local f local e local b local d local c for a,a in pairs(game.ReplicatedStorage.Purchasables:GetChildren())do if a.Name=="Vehicles"then f=a end if a.Name=="Structures"then e=a end if a.Name=="WireObjects"then b=a end if a.Name=="Other"then d=a end if a.Name=="Tools"then c=a end end for a,a in pairs(f:GetChildren())do local b=l:Clone()b.Parent=o b.Name=a.Name b.Text=a.Name b.MouseButton1Down:Connect(function()n=a.Name k.Text=a.Name end)end for a,a in pairs(e:GetChildren())do local b=l:Clone()b.Parent=o b.Name=a.Name b.Text=a.Name b.MouseButton1Down:Connect(function()g=a.Name n.Text=a.Name end)end for a,b in pairs(b:GetChildren())do local a=l:Clone()a.Parent=o a.Name=b.Name a.Text=b.Name a.MouseButton1Down:Connect(function()g=b.Name n.Text=b.Name end)end for a,a in pairs(d:GetChildren())do local b=l:Clone()b.Parent=o b.Name=a.Name b.Text=a.Name b.MouseButton1Down:Connect(function()g=a.Name n.Text=a.Name end)end for a,b in pairs(c:GetChildren())do local a=l:Clone()a.Parent=o a.Name=b.Name a.Text=b.Name a.MouseButton1Down:Connect(function()g=b.Name n.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))wait(.1)g=nil n.Text="none"end else print("Select item!!")end end)i.MouseButton1Down:Connect(function()for a,a in pairs(game:GetService("Workspace").Properties:GetChildren())do if a:FindFirstChild("Owner")and a.Owner.Value~=nil then base=a square=a.OriginSquare end end function makebase(b)local a=game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty a:FireServer(base,b)end spos=square.Position makebase(CFrame.new(spos.X+40,spos.Y,spos.Z))makebase(CFrame.new(spos.X-40,spos.Y,spos.Z))makebase(CFrame.new(spos.X,spos.Y,spos.Z+40))makebase(CFrame.new(spos.X,spos.Y,spos.Z-40))makebase(CFrame.new(spos.X+40,spos.Y,spos.Z+40))makebase(CFrame.new(spos.X+40,spos.Y,spos.Z-40))makebase(CFrame.new(spos.X-40,spos.Y,spos.Z+40))makebase(CFrame.new(spos.X-40,spos.Y,spos.Z-40))makebase(CFrame.new(spos.X+80,spos.Y,spos.Z))makebase(CFrame.new(spos.X-80,spos.Y,spos.Z))makebase(CFrame.new(spos.X,spos.Y,spos.Z+80))makebase(CFrame.new(spos.X,spos.Y,spos.Z-80))makebase(CFrame.new(spos.X+80,spos.Y,spos.Z+80))makebase(CFrame.new(spos.X+80,spos.Y,spos.Z-80))makebase(CFrame.new(spos.X-80,spos.Y,spos.Z+80))makebase(CFrame.new(spos.X-80,spos.Y,spos.Z-80))makebase(CFrame.new(spos.X+40,spos.Y,spos.Z+80))makebase(CFrame.new(spos.X-40,spos.Y,spos.Z+80))makebase(CFrame.new(spos.X+80,spos.Y,spos.Z+40))makebase(CFrame.new(spos.X+80,spos.Y,spos.Z-40))makebase(CFrame.new(spos.X-80,spos.Y,spos.Z+40))makebase(CFrame.new(spos.X-80,spos.Y,spos.Z-40))makebase(CFrame.new(spos.X+40,spos.Y,spos.Z-80))makebase(CFrame.new(spos.X-40,spos.Y,spos.Z-80))end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement