Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GUI_OBJETOS = Instance.new("ScreenGui")
- local objetos = Instance.new("Frame")
- local close = Instance.new("TextButton")
- local Duck = Instance.new("ImageButton")
- local LightBulb = Instance.new("ImageButton")
- local Bobblehead4 = Instance.new("ImageButton")
- local Bobblehead = Instance.new("ImageButton")
- local Candy = Instance.new("ImageButton")
- local CoalLump = Instance.new("ImageButton")
- local Spork = Instance.new("ImageButton")
- local Cone = Instance.new("ImageButton")
- local GreenBall = Instance.new("ImageButton")
- local Turkey = Instance.new("ImageButton")
- local Turkey2 = Instance.new("ImageButton")
- local Turkey3 = Instance.new("ImageButton")
- local Toboggan = Instance.new("ImageButton")
- local PlumBall = Instance.new("ImageButton")
- local Eye1 = Instance.new("ImageButton")
- local BlueBall = Instance.new("ImageButton")
- local Scoobis = Instance.new("ImageButton")
- local RedBall = Instance.new("ImageButton")
- local CanOfWorms = Instance.new("ImageButton")
- local Bobblehead3 = Instance.new("ImageButton")
- local preview = Instance.new("ImageLabel")
- local CanOfCranberry = Instance.new("ImageButton")
- local Plate = Instance.new("ImageButton")
- local BagOfSand = Instance.new("ImageButton")
- local PumpkinClassic = Instance.new("ImageButton")
- local PumpkinCursed = Instance.new("ImageButton")
- local PumpkinDark = Instance.new("ImageButton")
- local PumpkinGreen = Instance.new("ImageButton")
- local Dynamite = Instance.new("ImageButton")
- local TextButton = Instance.new("TextButton")
- local textbox_item = Instance.new("TextBox")
- local TextBox = Instance.new("TextBox")
- local BagOfCandy = Instance.new("ImageButton")
- local Bobblehead2 = Instance.new("ImageButton")
- local CandyCane = Instance.new("ImageButton")
- local titulo = Instance.new("TextLabel")
- --Properties:
- GUI_OBJETOS.Name = "GUI_OBJETOS"
- GUI_OBJETOS.Parent = game.CoreGui
- objetos.Name = "objetos"
- objetos.Parent = GUI_OBJETOS
- objetos.BackgroundColor3 = Color3.new(0, 0, 0)
- objetos.BackgroundTransparency = 0.5
- objetos.Position = UDim2.new(0, 0, 0.0133333337, 0)
- objetos.Size = UDim2.new(0, 415, 0, 481)
- objetos.Draggable = true
- objetos.Active = true
- close.Name = "close"
- close.Parent = objetos
- 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_OBJETOS:Destroy()
- end)
- Duck.Name = "Duck"
- Duck.Parent = objetos
- Duck.BackgroundColor3 = Color3.new(1, 1, 1)
- Duck.BorderColor3 = Color3.new(0.207843, 0, 0)
- Duck.Position = UDim2.new(0.678554177, 0, 0.480582118, 0)
- Duck.Size = UDim2.new(0, 50, 0, 50)
- Duck.Image = "rbxassetid://3270990736"
- Duck.MouseButton1Down:connect(function()
- textbox_item.Text = "Duck"
- preview.Image = "rbxassetid://3270990736"
- end)
- LightBulb.Name = "LightBulb"
- LightBulb.Parent = objetos
- LightBulb.BackgroundColor3 = Color3.new(1, 1, 1)
- LightBulb.BorderColor3 = Color3.new(0.207843, 0, 0)
- LightBulb.Position = UDim2.new(0.558554173, 0, 0.480582118, 0)
- LightBulb.Size = UDim2.new(0, 50, 0, 50)
- LightBulb.Image = "rbxassetid://3270989158"
- LightBulb.MouseButton1Down:connect(function()
- textbox_item.Text = "LightBulb"
- preview.Image = "rbxassetid://3270989158"
- end)
- Bobblehead4.Name = "Bobblehead4"
- Bobblehead4.Parent = objetos
- Bobblehead4.BackgroundColor3 = Color3.new(1, 1, 1)
- Bobblehead4.BorderColor3 = Color3.new(0.207843, 0, 0)
- Bobblehead4.Position = UDim2.new(0.438554227, 0, 0.260582119, 0)
- Bobblehead4.Size = UDim2.new(0, 50, 0, 50)
- Bobblehead4.Image = "rbxassetid://3214551794"
- Bobblehead4.MouseButton1Down:connect(function()
- textbox_item.Text = "Bobblehead4"
- preview.Image = "rbxassetid://3214551794"
- end)
- Bobblehead.Name = "Bobblehead"
- Bobblehead.Parent = objetos
- Bobblehead.BackgroundColor3 = Color3.new(1, 1, 1)
- Bobblehead.BorderColor3 = Color3.new(0.207843, 0, 0)
- Bobblehead.Position = UDim2.new(0.078554213, 0, 0.260582119, 0)
- Bobblehead.Size = UDim2.new(0, 50, 0, 50)
- Bobblehead.Image = "rbxassetid://3214546461"
- Bobblehead.MouseButton1Down:connect(function()
- textbox_item.Text = "Bobblehead"
- preview.Image = "rbxassetid://3214546461"
- end)
- Candy.Name = "Candy"
- Candy.Parent = objetos
- Candy.BackgroundColor3 = Color3.new(1, 1, 1)
- Candy.BorderColor3 = Color3.new(0.207843, 0, 0)
- Candy.Position = UDim2.new(0.558554173, 0, 0.260582119, 0)
- Candy.Size = UDim2.new(0, 50, 0, 50)
- Candy.Image = "rbxassetid://3270969792"
- Candy.MouseButton1Down:connect(function()
- textbox_item.Text = "Candy"
- preview.Image = "rbxassetid://3270969792"
- end)
- CoalLump.Name = "CoalLump"
- CoalLump.Parent = objetos
- CoalLump.BackgroundColor3 = Color3.new(1, 1, 1)
- CoalLump.BorderColor3 = Color3.new(0.207843, 0, 0)
- CoalLump.Position = UDim2.new(0.198554218, 0, 0.590582073, 0)
- CoalLump.Size = UDim2.new(0, 50, 0, 50)
- CoalLump.Image = "rbxassetid://3270997404"
- CoalLump.MouseButton1Down:connect(function()
- textbox_item.Text = "CoalLump"
- preview.Image = "rbxassetid://3270997404"
- end)
- Spork.Name = "Spork"
- Spork.Parent = objetos
- Spork.BackgroundColor3 = Color3.new(1, 1, 1)
- Spork.BorderColor3 = Color3.new(0.207843, 0, 0)
- Spork.Position = UDim2.new(0.198554218, 0, 0.480582118, 0)
- Spork.Size = UDim2.new(0, 50, 0, 50)
- Spork.Image = "rbxassetid://3274456069"
- Spork.MouseButton1Down:connect(function()
- textbox_item.Text = "Spork"
- preview.Image = "rbxassetid://3274456069"
- end)
- Cone.Name = "Cone"
- Cone.Parent = objetos
- Cone.BackgroundColor3 = Color3.new(1, 1, 1)
- Cone.BorderColor3 = Color3.new(0.207843, 0, 0)
- Cone.Position = UDim2.new(0.798554182, 0, 0.480582118, 0)
- Cone.Size = UDim2.new(0, 50, 0, 50)
- Cone.Image = "rbxassetid://3270991851"
- Cone.MouseButton1Down:connect(function()
- textbox_item.Text = "Cone"
- preview.Image = "rbxassetid://3270991851"
- end)
- GreenBall.Name = "GreenBall"
- GreenBall.Parent = objetos
- GreenBall.BackgroundColor3 = Color3.new(1, 1, 1)
- GreenBall.BorderColor3 = Color3.new(0.207843, 0, 0)
- GreenBall.Position = UDim2.new(0.438554227, 0, 0.370582104, 0)
- GreenBall.Size = UDim2.new(0, 50, 0, 50)
- GreenBall.Image = "rbxassetid://3214565632"
- GreenBall.MouseButton1Down:connect(function()
- textbox_item.Text = "GreenBall"
- preview.Image = "rbxassetid://3214565632"
- end)
- Turkey.Name = "Turkey"
- Turkey.Parent = objetos
- Turkey.BackgroundColor3 = Color3.new(1, 1, 1)
- Turkey.BorderColor3 = Color3.new(0.207843, 0, 0)
- Turkey.Position = UDim2.new(0.558554173, 0, 0.370582104, 0)
- Turkey.Size = UDim2.new(0, 50, 0, 50)
- Turkey.Image = "rbxassetid://3270976680"
- Turkey.MouseButton1Down:connect(function()
- textbox_item.Text = "Turkey"
- preview.Image = "rbxassetid://3270976680"
- end)
- Turkey2.Name = "Turkey2"
- Turkey2.Parent = objetos
- Turkey2.BackgroundColor3 = Color3.new(1, 1, 1)
- Turkey2.BorderColor3 = Color3.new(0.207843, 0, 0)
- Turkey2.Position = UDim2.new(0.678554177, 0, 0.370582104, 0)
- Turkey2.Size = UDim2.new(0, 50, 0, 50)
- Turkey2.Image = "rbxassetid://3270977759"
- Turkey2.MouseButton1Down:connect(function()
- textbox_item.Text = "Turkey2"
- preview.Image = "rbxassetid://3270977759"
- end)
- Turkey3.Name = "Turkey3"
- Turkey3.Parent = objetos
- Turkey3.BackgroundColor3 = Color3.new(1, 1, 1)
- Turkey3.BorderColor3 = Color3.new(0.207843, 0, 0)
- Turkey3.Position = UDim2.new(0.798554182, 0, 0.370582104, 0)
- Turkey3.Size = UDim2.new(0, 50, 0, 50)
- Turkey3.Image = "rbxassetid://3270979060"
- Turkey3.MouseButton1Down:connect(function()
- textbox_item.Text = "Turkey3"
- preview.Image = "rbxassetid://3270979060"
- end)
- Toboggan.Name = "Toboggan"
- Toboggan.Parent = objetos
- Toboggan.BackgroundColor3 = Color3.new(1, 1, 1)
- Toboggan.BorderColor3 = Color3.new(0.207843, 0, 0)
- Toboggan.Position = UDim2.new(0.078554213, 0, 0.480582118, 0)
- Toboggan.Size = UDim2.new(0, 50, 0, 50)
- Toboggan.Image = "rbxassetid://3270982295"
- Toboggan.MouseButton1Down:connect(function()
- textbox_item.Text = "Toboggan"
- preview.Image = "rbxassetid://3270982295"
- end)
- PlumBall.Name = "PlumBall"
- PlumBall.Parent = objetos
- PlumBall.BackgroundColor3 = Color3.new(1, 1, 1)
- PlumBall.BorderColor3 = Color3.new(0.207843, 0, 0)
- PlumBall.Position = UDim2.new(0.318554223, 0, 0.370582104, 0)
- PlumBall.Size = UDim2.new(0, 50, 0, 50)
- PlumBall.Image = "rbxassetid://3214570532"
- PlumBall.MouseButton1Down:connect(function()
- textbox_item.Text = "PlumBall"
- preview.Image = "rbxassetid://3214570532"
- end)
- Eye1.Name = "Eye1"
- Eye1.Parent = objetos
- Eye1.BackgroundColor3 = Color3.new(1, 1, 1)
- Eye1.BorderColor3 = Color3.new(0.207843, 0, 0)
- Eye1.Position = UDim2.new(0.798554182, 0, 0.15058212, 0)
- Eye1.Size = UDim2.new(0, 50, 0, 50)
- Eye1.Image = "rbxassetid://3214562633"
- Eye1.MouseButton1Down:connect(function()
- textbox_item.Text = "Eye1"
- preview.Image = "rbxassetid://3214562633"
- end)
- BlueBall.Name = "BlueBall"
- BlueBall.Parent = objetos
- BlueBall.BackgroundColor3 = Color3.new(1, 1, 1)
- BlueBall.BorderColor3 = Color3.new(0.207843, 0, 0)
- BlueBall.Position = UDim2.new(0.078554213, 0, 0.370582104, 0)
- BlueBall.Size = UDim2.new(0, 50, 0, 50)
- BlueBall.Image = "rbxassetid://3214544718"
- BlueBall.MouseButton1Down:connect(function()
- textbox_item.Text = "BlueBall"
- preview.Image = "rbxassetid://3214544718"
- end)
- Scoobis.Name = "Scoobis"
- Scoobis.Parent = objetos
- Scoobis.BackgroundColor3 = Color3.new(1, 1, 1)
- Scoobis.BorderColor3 = Color3.new(0.207843, 0, 0)
- Scoobis.Position = UDim2.new(0.678554177, 0, 0.15058212, 0)
- Scoobis.Size = UDim2.new(0, 50, 0, 50)
- Scoobis.Image = "rbxassetid://3214578916"
- Scoobis.MouseButton1Down:connect(function()
- textbox_item.Text = "Scoobis"
- preview.Image = "rbxassetid://3214578916"
- end)
- RedBall.Name = "RedBall"
- RedBall.Parent = objetos
- RedBall.BackgroundColor3 = Color3.new(1, 1, 1)
- RedBall.BorderColor3 = Color3.new(0.207843, 0, 0)
- RedBall.Position = UDim2.new(0.198554218, 0, 0.370582104, 0)
- RedBall.Size = UDim2.new(0, 50, 0, 50)
- RedBall.Image = "rbxassetid://3214577835"
- RedBall.MouseButton1Down:connect(function()
- textbox_item.Text = "RedBall"
- preview.Image = "rbxassetid://3214577835"
- end)
- CanOfWorms.Name = "CanOfWorms"
- CanOfWorms.Parent = objetos
- CanOfWorms.BackgroundColor3 = Color3.new(1, 1, 1)
- CanOfWorms.BorderColor3 = Color3.new(0.207843, 0, 0)
- CanOfWorms.Position = UDim2.new(0.318554223, 0, 0.480582118, 0)
- CanOfWorms.Size = UDim2.new(0, 50, 0, 50)
- CanOfWorms.Image = "rbxassetid://3270985689"
- CanOfWorms.MouseButton1Down:connect(function()
- textbox_item.Text = "RedBall"
- preview.Image = "rbxassetid://3270985689"
- end)
- Bobblehead3.Name = "Bobblehead3"
- Bobblehead3.Parent = objetos
- Bobblehead3.BackgroundColor3 = Color3.new(1, 1, 1)
- Bobblehead3.BorderColor3 = Color3.new(0.207843, 0, 0)
- Bobblehead3.Position = UDim2.new(0.318554223, 0, 0.260582119, 0)
- Bobblehead3.Size = UDim2.new(0, 50, 0, 50)
- Bobblehead3.Image = "rbxassetid://3214548628"
- Bobblehead3.MouseButton1Down:connect(function()
- textbox_item.Text = "Bobblehead3"
- preview.Image = "rbxassetid://3214548628"
- end)
- preview.Name = "preview"
- preview.Parent = objetos
- 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"
- CanOfCranberry.Name = "CanOfCranberry"
- CanOfCranberry.Parent = objetos
- CanOfCranberry.BackgroundColor3 = Color3.new(1, 1, 1)
- CanOfCranberry.BorderColor3 = Color3.new(0.207843, 0, 0)
- CanOfCranberry.Position = UDim2.new(0.798554182, 0, 0.260582119, 0)
- CanOfCranberry.Size = UDim2.new(0, 50, 0, 50)
- CanOfCranberry.Image = "rbxassetid://3270974507"
- CanOfCranberry.MouseButton1Down:connect(function()
- textbox_item.Text = "CanOfCranberry"
- preview.Image = "rbxassetid://3270974507"
- end)
- Plate.Name = "Plate"
- Plate.Parent = objetos
- Plate.BackgroundColor3 = Color3.new(1, 1, 1)
- Plate.BorderColor3 = Color3.new(0.207843, 0, 0)
- Plate.Position = UDim2.new(0.438554227, 0, 0.480582118, 0)
- Plate.Size = UDim2.new(0, 50, 0, 50)
- Plate.Image = "rbxassetid://3270987890"
- Plate.MouseButton1Down:connect(function()
- textbox_item.Text = "Plate"
- preview.Image = "rbxassetid://3270987890"
- end)
- BagOfSand.Name = "BagOfSand"
- BagOfSand.Parent = objetos
- BagOfSand.BackgroundColor3 = Color3.new(1, 1, 1)
- BagOfSand.BorderColor3 = Color3.new(0.207843, 0, 0)
- BagOfSand.Position = UDim2.new(0.318554223, 0, 0.590582073, 0)
- BagOfSand.Size = UDim2.new(0, 50, 0, 50)
- BagOfSand.Image = "rbxassetid://3270998585"
- BagOfSand.MouseButton1Down:connect(function()
- textbox_item.Text = "BagOfSand"
- preview.Image = "rbxassetid://3270998585"
- end)
- PumpkinClassic.Name = "PumpkinClassic"
- PumpkinClassic.Parent = objetos
- PumpkinClassic.BackgroundColor3 = Color3.new(1, 1, 1)
- PumpkinClassic.BorderColor3 = Color3.new(0.207843, 0, 0)
- PumpkinClassic.Position = UDim2.new(0.078554213, 0, 0.15058212, 0)
- PumpkinClassic.Size = UDim2.new(0, 50, 0, 50)
- PumpkinClassic.Image = "rbxassetid://3214572070"
- PumpkinClassic.MouseButton1Down:connect(function()
- textbox_item.Text = "PumpkinClassic"
- preview.Image = "rbxassetid://3214572070"
- end)
- PumpkinCursed.Name = "PumpkinCursed"
- PumpkinCursed.Parent = objetos
- PumpkinCursed.BackgroundColor3 = Color3.new(1, 1, 1)
- PumpkinCursed.BorderColor3 = Color3.new(0.207843, 0, 0)
- PumpkinCursed.Position = UDim2.new(0.198554218, 0, 0.15058212, 0)
- PumpkinCursed.Size = UDim2.new(0, 50, 0, 50)
- PumpkinCursed.Image = "rbxassetid://3214573896"
- PumpkinCursed.MouseButton1Down:connect(function()
- textbox_item.Text = "PumpkinCursed"
- preview.Image = "rbxassetid://3214573896"
- end)
- PumpkinDark.Name = "PumpkinDark"
- PumpkinDark.Parent = objetos
- PumpkinDark.BackgroundColor3 = Color3.new(1, 1, 1)
- PumpkinDark.BorderColor3 = Color3.new(0.207843, 0, 0)
- PumpkinDark.Position = UDim2.new(0.318554223, 0, 0.15058212, 0)
- PumpkinDark.Size = UDim2.new(0, 50, 0, 50)
- PumpkinDark.Image = "rbxassetid://3214574979"
- PumpkinDark.MouseButton1Down:connect(function()
- textbox_item.Text = "PumpkinDark"
- preview.Image = "rbxassetid://3214573896"
- end)
- PumpkinGreen.Name = "PumpkinGreen"
- PumpkinGreen.Parent = objetos
- PumpkinGreen.BackgroundColor3 = Color3.new(1, 1, 1)
- PumpkinGreen.BorderColor3 = Color3.new(0.207843, 0, 0)
- PumpkinGreen.Position = UDim2.new(0.438554227, 0, 0.15058212, 0)
- PumpkinGreen.Size = UDim2.new(0, 50, 0, 50)
- PumpkinGreen.Image = "rbxassetid://3214575994"
- PumpkinGreen.MouseButton1Down:connect(function()
- textbox_item.Text = "PumpkinGreen"
- preview.Image = "rbxassetid://3214575994"
- end)
- Dynamite.Name = "Dynamite"
- Dynamite.Parent = objetos
- Dynamite.BackgroundColor3 = Color3.new(1, 1, 1)
- Dynamite.BorderColor3 = Color3.new(0.207843, 0, 0)
- Dynamite.Position = UDim2.new(0.558554173, 0, 0.15058212, 0)
- Dynamite.Size = UDim2.new(0, 50, 0, 50)
- Dynamite.Image = "rbxassetid://3214561483"
- Dynamite.MouseButton1Down:connect(function()
- textbox_item.Text = "Dynamite"
- preview.Image = "rbxassetid://3214561483"
- end)
- TextButton.Parent = objetos
- 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 = objetos
- 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
- TextBox.Parent = objetos
- 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
- BagOfCandy.Name = "BagOfCandy"
- BagOfCandy.Parent = objetos
- BagOfCandy.BackgroundColor3 = Color3.new(1, 1, 1)
- BagOfCandy.BorderColor3 = Color3.new(0.207843, 0, 0)
- BagOfCandy.Position = UDim2.new(0.078554213, 0, 0.590582073, 0)
- BagOfCandy.Size = UDim2.new(0, 50, 0, 50)
- BagOfCandy.Image = "rbxassetid://3270994941"
- BagOfCandy.MouseButton1Down:connect(function()
- textbox_item.Text = "BagOfCandy"
- preview.Image = "rbxassetid://3270994941"
- end)
- Bobblehead2.Name = "Bobblehead2"
- Bobblehead2.Parent = objetos
- Bobblehead2.BackgroundColor3 = Color3.new(1, 1, 1)
- Bobblehead2.BorderColor3 = Color3.new(0.207843, 0, 0)
- Bobblehead2.Position = UDim2.new(0.198554218, 0, 0.260582119, 0)
- Bobblehead2.Size = UDim2.new(0, 50, 0, 50)
- Bobblehead2.Image = "rbxassetid://3214547562"
- Bobblehead2.MouseButton1Down:connect(function()
- textbox_item.Text = "Bobblehead2"
- preview.Image = "rbxassetid://3214547562"
- end)
- CandyCane.Name = "CandyCane"
- CandyCane.Parent = objetos
- CandyCane.BackgroundColor3 = Color3.new(1, 1, 1)
- CandyCane.BorderColor3 = Color3.new(0.207843, 0, 0)
- CandyCane.Position = UDim2.new(0.678554177, 0, 0.260582119, 0)
- CandyCane.Size = UDim2.new(0, 50, 0, 50)
- CandyCane.Image = "rbxassetid://3270973112"
- CandyCane.MouseButton1Down:connect(function()
- textbox_item.Text = "CandyCane"
- preview.Image = "rbxassetid://3270973112"
- end)
- titulo.Name = "titulo"
- titulo.Parent = objetos
- 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 Objects"
- titulo.TextColor3 = Color3.new(1, 1, 1)
- titulo.TextScaled = true
- titulo.TextSize = 14
- titulo.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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement