Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GUI_VEICULOS = Instance.new("ScreenGui")
- local veiculos = Instance.new("Frame")
- local close = Instance.new("TextButton")
- local TextButton = Instance.new("TextButton")
- local textbox_item = Instance.new("TextBox")
- local titulo = Instance.new("TextLabel")
- local SmallTrailer = Instance.new("ImageButton")
- local preview = Instance.new("ImageLabel")
- local Trailer2 = Instance.new("ImageButton")
- local Sleigh = Instance.new("ImageButton")
- local UtilityTruck2 = Instance.new("ImageButton")
- local UtilityTruck = Instance.new("ImageButton")
- local Pickup1 = Instance.new("ImageButton")
- local TextBox = Instance.new("TextBox")
- --Properties:
- GUI_VEICULOS.Name = "GUI_VEICULOS"
- GUI_VEICULOS.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- GUI_VEICULOS.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- veiculos.Name = "veiculos"
- veiculos.Parent = GUI_VEICULOS
- veiculos.BackgroundColor3 = Color3.new(0, 0, 0)
- veiculos.BackgroundTransparency = 0.5
- veiculos.Position = UDim2.new(0, 0, 0.0133333337, 0)
- veiculos.Size = UDim2.new(0, 415, 0, 481)
- veiculos.Draggable = true
- veiculos.Active = true
- close.Name = "close"
- close.Parent = veiculos
- close.BackgroundColor3 = Color3.new(0.509804, 0.509804, 0.509804)
- close.Position = UDim2.new(0.940600634, 0, 0, 0)
- close.Size = UDim2.new(0, 24, 0, 16)
- close.Font = Enum.Font.SourceSans
- close.Text = "X"
- close.TextColor3 = Color3.new(0.835294, 0, 0)
- close.TextSize = 25
- close.MouseButton1Click:Connect(function()
- GUI_VEICULOS:Destroy()
- end)
- TextButton.Parent = veiculos
- TextButton.BackgroundColor3 = Color3.new(0.0823529, 0.0823529, 0.0823529)
- TextButton.BorderColor3 = Color3.new(0.278431, 0, 0)
- TextButton.Position = UDim2.new(0.400000006, 0, 0.852390826, 0)
- TextButton.Size = UDim2.new(0, 200, 0, 50)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "!!! SPAWN !!!"
- TextButton.TextColor3 = Color3.new(1, 1, 1)
- TextButton.TextScaled = true
- TextButton.TextSize = 14
- TextButton.TextWrapped = true
- textbox_item.Name = "textbox_item"
- textbox_item.Parent = veiculos
- textbox_item.BackgroundColor3 = Color3.new(1, 1, 1)
- textbox_item.BackgroundTransparency = 1
- textbox_item.Position = UDim2.new(0.0746987984, 0, 0.956340909, 0)
- textbox_item.Size = UDim2.new(0, 99, 0, 21)
- textbox_item.Font = Enum.Font.SourceSans
- textbox_item.PlaceholderColor3 = Color3.new(0.933333, 0.933333, 0.933333)
- textbox_item.PlaceholderText = "Select item"
- textbox_item.Text = ""
- textbox_item.TextColor3 = Color3.new(1, 1, 1)
- textbox_item.TextSize = 15
- titulo.Name = "titulo"
- titulo.Parent = veiculos
- titulo.BackgroundColor3 = Color3.new(0.223529, 0.223529, 0.223529)
- titulo.Position = UDim2.new(0.078554213, 0, 0.0332640335, 0)
- titulo.Selectable = true
- titulo.Size = UDim2.new(0, 348, 0, 49)
- titulo.Font = Enum.Font.SourceSans
- titulo.Text = "Spawn Vehicle/Trailer"
- titulo.TextColor3 = Color3.new(1, 1, 1)
- titulo.TextScaled = true
- titulo.TextSize = 14
- titulo.TextWrapped = true
- SmallTrailer.Name = "SmallTrailer"
- SmallTrailer.Parent = veiculos
- SmallTrailer.BackgroundColor3 = Color3.new(1, 1, 1)
- SmallTrailer.BackgroundTransparency = 1
- SmallTrailer.BorderColor3 = Color3.new(0.207843, 0, 0)
- SmallTrailer.Position = UDim2.new(0.318554223, 0, 0.194241166, 0)
- SmallTrailer.Size = UDim2.new(0, 100, 0, 100)
- SmallTrailer.Image = "rbxassetid://3209627577"
- SmallTrailer.MouseButton1Down:connect(function()
- textbox_item.Text = "SmallTrailer"
- preview.Image = "rbxassetid://3209627577"
- end)
- preview.Name = "preview"
- preview.Parent = veiculos
- preview.BackgroundColor3 = Color3.new(1, 1, 1)
- preview.BackgroundTransparency = 1
- preview.Position = UDim2.new(0.0746987984, 0, 0.748440742, 0)
- preview.Size = UDim2.new(0, 100, 0, 100)
- preview.Image = "rbxassetid://31032747"
- Trailer2.Name = "Trailer2"
- Trailer2.Parent = veiculos
- Trailer2.BackgroundColor3 = Color3.new(1, 1, 1)
- Trailer2.BackgroundTransparency = 1
- Trailer2.BorderColor3 = Color3.new(0.207843, 0, 0)
- Trailer2.Position = UDim2.new(0.558554173, 0, 0.194241166, 0)
- Trailer2.Size = UDim2.new(0, 100, 0, 100)
- Trailer2.Image = "rbxassetid://3209627321"
- Trailer2.MouseButton1Down:connect(function()
- textbox_item.Text = "Trailer2"
- preview.Image = "rbxassetid://3209627321"
- end)
- Sleigh.Name = "Sleigh"
- Sleigh.Parent = veiculos
- Sleigh.BackgroundColor3 = Color3.new(1, 1, 1)
- Sleigh.BackgroundTransparency = 1
- Sleigh.BorderColor3 = Color3.new(0.207843, 0, 0)
- Sleigh.Position = UDim2.new(0.558554173, 0, 0.414241135, 0)
- Sleigh.Size = UDim2.new(0, 100, 0, 100)
- Sleigh.Image = "rbxassetid://3209637273"
- Sleigh.MouseButton1Down:connect(function()
- textbox_item.Text = "Sleigh"
- preview.Image = "rbxassetid://3209637273"
- end)
- UtilityTruck2.Name = "UtilityTruck2"
- UtilityTruck2.Parent = veiculos
- UtilityTruck2.BackgroundColor3 = Color3.new(1, 1, 1)
- UtilityTruck2.BackgroundTransparency = 1
- UtilityTruck2.BorderColor3 = Color3.new(0.207843, 0, 0)
- UtilityTruck2.Position = UDim2.new(0.318554223, 0, 0.414241135, 0)
- UtilityTruck2.Size = UDim2.new(0, 100, 0, 100)
- UtilityTruck2.Image = "rbxassetid://3209627047"
- UtilityTruck2.MouseButton1Down:connect(function()
- textbox_item.Text = "UtilityTruck2"
- preview.Image = "rbxassetid://3209627047"
- end)
- UtilityTruck.Name = "UtilityTruck"
- UtilityTruck.Parent = veiculos
- UtilityTruck.BackgroundColor3 = Color3.new(1, 1, 1)
- UtilityTruck.BackgroundTransparency = 1
- UtilityTruck.BorderColor3 = Color3.new(0.207843, 0, 0)
- UtilityTruck.Position = UDim2.new(0.078554213, 0, 0.414241135, 0)
- UtilityTruck.Size = UDim2.new(0, 100, 0, 100)
- UtilityTruck.Image = "rbxassetid://3209636952"
- UtilityTruck.MouseButton1Down:connect(function()
- textbox_item.Text = "UtilityTruck"
- preview.Image = "rbxassetid://3209636952"
- end)
- Pickup1.Name = "Pickup1"
- Pickup1.Parent = veiculos
- Pickup1.BackgroundColor3 = Color3.new(1, 1, 1)
- Pickup1.BackgroundTransparency = 1
- Pickup1.BorderColor3 = Color3.new(0.207843, 0, 0)
- Pickup1.Position = UDim2.new(0.078554213, 0, 0.194241166, 0)
- Pickup1.Size = UDim2.new(0, 100, 0, 100)
- Pickup1.Image = "rbxassetid://3209616149"
- Pickup1.MouseButton1Down:connect(function()
- textbox_item.Text = "Pickup1"
- preview.Image = "rbxassetid://3209616149"
- end)
- TextBox.Parent = veiculos
- TextBox.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- TextBox.BorderColor3 = Color3.new(0.301961, 0, 0)
- TextBox.Position = UDim2.new(0.400000006, 0, 0.748440742, 0)
- TextBox.Size = UDim2.new(0, 200, 0, 37)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.PlaceholderColor3 = Color3.new(0.996078, 0.996078, 0.996078)
- TextBox.PlaceholderText = "ENTER QUANTITY HARE"
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextScaled = true
- TextBox.TextSize = 20
- TextBox.TextWrapped = true
- -- Scripts:
- TextButton.MouseButton1Down:connect(function()
- local Item = textbox_item.Text
- local Quantity = TextBox.Text
- local Land = nil
- for i,v in pairs(game.Workspace.Properties:GetChildren()) do
- if v.Owner.Value == game.Players.LocalPlayer then
- Land = v
- break
- end
- end
- if not Land then
- for i,v in pairs(game.Workspace.Properties:GetChildren()) do
- if v.Owner.Value == game.Players.LocalPlayer or v.Owner.Value == nil then
- Land = v
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
- break
- end
- end
- end
- function Spawn(Item)
- local Info = {}
- Info.Name = Item.Name
- Info.Type = game.ReplicatedStorage.Purchasables.Structures.HardStructures.Sawmill2.Type
- Info.OtherInfo = game.ReplicatedStorage.Purchasables.WireObjects.Wire.OtherInfo
- local Points = {Land.OriginSquare.Position + Vector3.new(0,5,0), Land.OriginSquare.Position + Vector3.new(0,5,0)}
- game.ReplicatedStorage.PlaceStructure.ClientPlacedWire:FireServer(Info, Points)
- end
- for i=1, Quantity do
- Spawn(game.ReplicatedStorage.Purchasables:FindFirstChild(Item, true))
- end
- end)
Add Comment
Please, Sign In to add comment