Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GUI_ELETRONICOS = Instance.new("ScreenGui")
- local eletronicos = Instance.new("Frame")
- local close = Instance.new("TextButton")
- local TextButton = Instance.new("TextButton")
- local textbox_item = Instance.new("TextBox")
- local GateAND = Instance.new("ImageButton")
- local Laser = Instance.new("ImageButton")
- local GateOR = Instance.new("ImageButton")
- local GateNOT = Instance.new("ImageButton")
- local NeonWireCyan = Instance.new("ImageButton")
- local ChopSaw = Instance.new("ImageButton")
- local NeonWireWhite = Instance.new("ImageButton")
- local NeonWireViolet = Instance.new("ImageButton")
- local NeonWireRed = Instance.new("ImageButton")
- local NeonWireOrange = Instance.new("ImageButton")
- local NeonWireGreen = Instance.new("ImageButton")
- local NeonWireYellow = Instance.new("ImageButton")
- local SignalSustain = Instance.new("ImageButton")
- local Wire = Instance.new("ImageButton")
- local SignalDelay = Instance.new("ImageButton")
- local NeonWirePinky = Instance.new("ImageButton")
- local LaserReceiver = Instance.new("ImageButton")
- local WoodChecker = Instance.new("ImageButton")
- local preview = Instance.new("ImageLabel")
- local FireworkLauncher = Instance.new("ImageButton")
- local TextBox = Instance.new("TextBox")
- local titulo = Instance.new("TextLabel")
- local Button0 = Instance.new("ImageButton")
- local Lever0 = Instance.new("ImageButton")
- local Hatch = Instance.new("ImageButton")
- local PressurePlate = Instance.new("ImageButton")
- local NeonWireBlue = Instance.new("ImageButton")
- local IcicleWireRed = Instance.new("ImageButton")
- local IcicleWireAmber = Instance.new("ImageButton")
- local IcicleWireGreen = Instance.new("ImageButton")
- local IcicleWireBlue = Instance.new("ImageButton")
- local IcicleWireHalloween = Instance.new("ImageButton")
- --Properties:
- GUI_ELETRONICOS.Name = "GUI_ELETRONICOS"
- GUI_ELETRONICOS.Parent = game.CoreGui
- eletronicos.Name = "eletronicos"
- eletronicos.Parent = GUI_ELETRONICOS
- eletronicos.BackgroundColor3 = Color3.new(0, 0, 0)
- eletronicos.BackgroundTransparency = 0.5
- eletronicos.Position = UDim2.new(0, 0, 0.0133333337, 0)
- eletronicos.Size = UDim2.new(0, 415, 0, 481)
- eletronicos.Draggable = true
- eletronicos.Active = true
- close.Name = "close"
- close.Parent = eletronicos
- 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_ELETRONICOS:Destroy()
- end)
- TextButton.Parent = eletronicos
- 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 = eletronicos
- 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
- GateAND.Name = "GateAND"
- GateAND.Parent = eletronicos
- GateAND.BackgroundColor3 = Color3.new(1, 1, 1)
- GateAND.BackgroundTransparency = 1
- GateAND.BorderColor3 = Color3.new(0.207843, 0, 0)
- GateAND.Position = UDim2.new(0.438554227, 0, 0.304241151, 0)
- GateAND.Size = UDim2.new(0, 50, 0, 50)
- GateAND.Image = "rbxassetid://3210546042"
- GateAND.MouseButton1Down:connect(function()
- textbox_item.Text = "GateAND"
- preview.Image = "rbxassetid://3210546042"
- end)
- Laser.Name = "Laser"
- Laser.Parent = eletronicos
- Laser.BackgroundColor3 = Color3.new(1, 1, 1)
- Laser.BackgroundTransparency = 1
- Laser.BorderColor3 = Color3.new(0.207843, 0, 0)
- Laser.Position = UDim2.new(0.078554213, 0, 0.304241151, 0)
- Laser.Size = UDim2.new(0, 50, 0, 50)
- Laser.Image = "rbxassetid://3210557387"
- Laser.MouseButton1Down:connect(function()
- textbox_item.Text = "Laser"
- preview.Image = "rbxassetid://3210557387"
- end)
- GateOR.Name = "GateOR"
- GateOR.Parent = eletronicos
- GateOR.BackgroundColor3 = Color3.new(1, 1, 1)
- GateOR.BackgroundTransparency = 1
- GateOR.BorderColor3 = Color3.new(0.207843, 0, 0)
- GateOR.Position = UDim2.new(0.558554173, 0, 0.304241151, 0)
- GateOR.Size = UDim2.new(0, 50, 0, 50)
- GateOR.Image = "rbxassetid://3210548589"
- GateOR.MouseButton1Down:connect(function()
- textbox_item.Text = "GateOR"
- preview.Image = "rbxassetid://3210548589"
- end)
- GateNOT.Name = "GateNOT"
- GateNOT.Parent = eletronicos
- GateNOT.BackgroundColor3 = Color3.new(1, 1, 1)
- GateNOT.BackgroundTransparency = 1
- GateNOT.BorderColor3 = Color3.new(0.207843, 0, 0)
- GateNOT.Position = UDim2.new(0.678554177, 0, 0.304241151, 0)
- GateNOT.Size = UDim2.new(0, 50, 0, 50)
- GateNOT.Image = "rbxassetid://3210547138"
- GateNOT.MouseButton1Down:connect(function()
- textbox_item.Text = "GateNOT"
- preview.Image = "rbxassetid://3210547138"
- end)
- NeonWireCyan.Name = "NeonWireCyan"
- NeonWireCyan.Parent = eletronicos
- NeonWireCyan.BackgroundColor3 = Color3.new(1, 1, 1)
- NeonWireCyan.BackgroundTransparency = 1
- NeonWireCyan.BorderColor3 = Color3.new(0.207843, 0, 0)
- NeonWireCyan.Position = UDim2.new(0.198554218, 0, 0.524241149, 0)
- NeonWireCyan.Size = UDim2.new(0, 50, 0, 50)
- NeonWireCyan.Image = "rbxassetid://3210578849"
- NeonWireCyan.MouseButton1Down:connect(function()
- textbox_item.Text = "NeonWireCyan"
- preview.Image = "rbxassetid://3210578849"
- end)
- ChopSaw.Name = "ChopSaw"
- ChopSaw.Parent = eletronicos
- ChopSaw.BackgroundColor3 = Color3.new(1, 1, 1)
- ChopSaw.BackgroundTransparency = 1
- ChopSaw.BorderColor3 = Color3.new(0.207843, 0, 0)
- ChopSaw.Position = UDim2.new(0.558554173, 0, 0.194241166, 0)
- ChopSaw.Size = UDim2.new(0, 50, 0, 50)
- ChopSaw.Image = "rbxassetid://3210537682"
- ChopSaw.MouseButton1Down:connect(function()
- textbox_item.Text = "ChopSaw"
- preview.Image = "rbxassetid://3210537682"
- end)
- NeonWireWhite.Name = "NeonWireWhite"
- NeonWireWhite.Parent = eletronicos
- NeonWireWhite.BackgroundColor3 = Color3.new(1, 1, 1)
- NeonWireWhite.BackgroundTransparency = 1
- NeonWireWhite.BorderColor3 = Color3.new(0.207843, 0, 0)
- NeonWireWhite.Position = UDim2.new(0.438554227, 0, 0.414241135, 0)
- NeonWireWhite.Size = UDim2.new(0, 50, 0, 50)
- NeonWireWhite.Image = "rbxassetid://3210572855"
- NeonWireWhite.MouseButton1Down:connect(function()
- textbox_item.Text = "NeonWireWhite"
- preview.Image = "rbxassetid://3210572855"
- end)
- NeonWireViolet.Name = "NeonWireViolet"
- NeonWireViolet.Parent = eletronicos
- NeonWireViolet.BackgroundColor3 = Color3.new(1, 1, 1)
- NeonWireViolet.BackgroundTransparency = 1
- NeonWireViolet.BorderColor3 = Color3.new(0.207843, 0, 0)
- NeonWireViolet.Position = UDim2.new(0.558554173, 0, 0.414241135, 0)
- NeonWireViolet.Size = UDim2.new(0, 50, 0, 50)
- NeonWireViolet.Image = "rbxassetid://3210574213"
- NeonWireViolet.MouseButton1Down:connect(function()
- textbox_item.Text = "NeonWireViolet"
- preview.Image = "rbxassetid://3210574213"
- end)
- NeonWireRed.Name = "NeonWireRed"
- NeonWireRed.Parent = eletronicos
- NeonWireRed.BackgroundColor3 = Color3.new(1, 1, 1)
- NeonWireRed.BackgroundTransparency = 1
- NeonWireRed.BorderColor3 = Color3.new(0.207843, 0, 0)
- NeonWireRed.Position = UDim2.new(0.678554177, 0, 0.414241135, 0)
- NeonWireRed.Size = UDim2.new(0, 50, 0, 50)
- NeonWireRed.Image = "rbxassetid://3210575366"
- NeonWireRed.MouseButton1Down:connect(function()
- textbox_item.Text = "NeonWireRed"
- preview.Image = "rbxassetid://3210575366"
- end)
- NeonWireOrange.Name = "NeonWireOrange"
- NeonWireOrange.Parent = eletronicos
- NeonWireOrange.BackgroundColor3 = Color3.new(1, 1, 1)
- NeonWireOrange.BackgroundTransparency = 1
- NeonWireOrange.BorderColor3 = Color3.new(0.207843, 0, 0)
- NeonWireOrange.Position = UDim2.new(0.798554182, 0, 0.414241135, 0)
- NeonWireOrange.Size = UDim2.new(0, 50, 0, 50)
- NeonWireOrange.Image = "rbxassetid://3210576649"
- NeonWireOrange.MouseButton1Down:connect(function()
- textbox_item.Text = "NeonWireOrange"
- preview.Image = "rbxassetid://3210576649"
- end)
- NeonWireGreen.Name = "NeonWireGreen"
- NeonWireGreen.Parent = eletronicos
- NeonWireGreen.BackgroundColor3 = Color3.new(1, 1, 1)
- NeonWireGreen.BackgroundTransparency = 1
- NeonWireGreen.BorderColor3 = Color3.new(0.207843, 0, 0)
- NeonWireGreen.Position = UDim2.new(0.078554213, 0, 0.524241149, 0)
- NeonWireGreen.Size = UDim2.new(0, 50, 0, 50)
- NeonWireGreen.Image = "rbxassetid://3210577485"
- NeonWireGreen.MouseButton1Down:connect(function()
- textbox_item.Text = "NeonWireGreen"
- preview.Image = "rbxassetid://3210577485"
- end)
- NeonWireYellow.Name = "NeonWireYellow"
- NeonWireYellow.Parent = eletronicos
- NeonWireYellow.BackgroundColor3 = Color3.new(1, 1, 1)
- NeonWireYellow.BackgroundTransparency = 1
- NeonWireYellow.BorderColor3 = Color3.new(0.207843, 0, 0)
- NeonWireYellow.Position = UDim2.new(0.318554223, 0, 0.414241135, 0)
- NeonWireYellow.Size = UDim2.new(0, 50, 0, 50)
- NeonWireYellow.Image = "rbxassetid://3210571891"
- NeonWireYellow.MouseButton1Down:connect(function()
- textbox_item.Text = "NeonWireYellow"
- preview.Image = "rbxassetid://3210571891"
- end)
- SignalSustain.Name = "SignalSustain"
- SignalSustain.Parent = eletronicos
- SignalSustain.BackgroundColor3 = Color3.new(1, 1, 1)
- SignalSustain.BackgroundTransparency = 1
- SignalSustain.BorderColor3 = Color3.new(0.207843, 0, 0)
- SignalSustain.Position = UDim2.new(0.798554182, 0, 0.194241166, 0)
- SignalSustain.Size = UDim2.new(0, 50, 0, 50)
- SignalSustain.Image = "rbxassetid://3210564205"
- SignalSustain.MouseButton1Down:connect(function()
- textbox_item.Text = "SignalSustain"
- preview.Image = "rbxassetid://3210564205"
- end)
- Wire.Name = "Wire"
- Wire.Parent = eletronicos
- Wire.BackgroundColor3 = Color3.new(1, 1, 1)
- Wire.BackgroundTransparency = 0.75
- Wire.BorderColor3 = Color3.new(0.207843, 0, 0)
- Wire.Position = UDim2.new(0.078554213, 0, 0.414241135, 0)
- Wire.Size = UDim2.new(0, 50, 0, 50)
- Wire.Image = "rbxassetid://3210566600"
- Wire.MouseButton1Down:connect(function()
- textbox_item.Text = "Wire"
- preview.Image = "rbxassetid://3210566600"
- end)
- SignalDelay.Name = "SignalDelay"
- SignalDelay.Parent = eletronicos
- SignalDelay.BackgroundColor3 = Color3.new(1, 1, 1)
- SignalDelay.BackgroundTransparency = 1
- SignalDelay.BorderColor3 = Color3.new(0.207843, 0, 0)
- SignalDelay.Position = UDim2.new(0.678554177, 0, 0.194241166, 0)
- SignalDelay.Size = UDim2.new(0, 50, 0, 50)
- SignalDelay.Image = "rbxassetid://3210562988"
- SignalDelay.MouseButton1Down:connect(function()
- textbox_item.Text = "SignalDelay"
- preview.Image = "rbxassetid://3210562988"
- end)
- NeonWirePinky.Name = "NeonWirePinky"
- NeonWirePinky.Parent = eletronicos
- NeonWirePinky.BackgroundColor3 = Color3.new(1, 1, 1)
- NeonWirePinky.BackgroundTransparency = 1
- NeonWirePinky.BorderColor3 = Color3.new(0.207843, 0, 0)
- NeonWirePinky.Position = UDim2.new(0.198554218, 0, 0.414241135, 0)
- NeonWirePinky.Size = UDim2.new(0, 50, 0, 50)
- NeonWirePinky.Image = "rbxassetid://3210570623"
- NeonWirePinky.MouseButton1Down:connect(function()
- textbox_item.Text = "NeonWirePinky"
- preview.Image = "rbxassetid://3210570623"
- end)
- LaserReceiver.Name = "LaserReceiver"
- LaserReceiver.Parent = eletronicos
- LaserReceiver.BackgroundColor3 = Color3.new(1, 1, 1)
- LaserReceiver.BackgroundTransparency = 1
- LaserReceiver.BorderColor3 = Color3.new(0.207843, 0, 0)
- LaserReceiver.Position = UDim2.new(0.198554218, 0, 0.304241151, 0)
- LaserReceiver.Size = UDim2.new(0, 50, 0, 50)
- LaserReceiver.Image = "rbxassetid://3210558577"
- LaserReceiver.MouseButton1Down:connect(function()
- textbox_item.Text = "LaserReceiver"
- preview.Image = "rbxassetid://3210558577"
- end)
- WoodChecker.Name = "WoodChecker"
- WoodChecker.Parent = eletronicos
- WoodChecker.BackgroundColor3 = Color3.new(1, 1, 1)
- WoodChecker.BackgroundTransparency = 1
- WoodChecker.BorderColor3 = Color3.new(0.207843, 0, 0)
- WoodChecker.Position = UDim2.new(0.318554223, 0, 0.304241151, 0)
- WoodChecker.Size = UDim2.new(0, 50, 0, 50)
- WoodChecker.Image = "rbxassetid://3210561379"
- WoodChecker.MouseButton1Down:connect(function()
- textbox_item.Text = "WoodChecker"
- preview.Image = "rbxassetid://3210561379"
- end)
- preview.Name = "preview"
- preview.Parent = eletronicos
- 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"
- FireworkLauncher.Name = "FireworkLauncher"
- FireworkLauncher.Parent = eletronicos
- FireworkLauncher.BackgroundColor3 = Color3.new(1, 1, 1)
- FireworkLauncher.BackgroundTransparency = 1
- FireworkLauncher.BorderColor3 = Color3.new(0.207843, 0, 0)
- FireworkLauncher.Position = UDim2.new(0.798554182, 0, 0.304241151, 0)
- FireworkLauncher.Size = UDim2.new(0, 50, 0, 50)
- FireworkLauncher.Image = "rbxassetid://3210544115"
- FireworkLauncher.MouseButton1Down:connect(function()
- textbox_item.Text = "FireworkLauncher"
- preview.Image = "rbxassetid://3210544115"
- end)
- TextBox.Parent = eletronicos
- 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
- titulo.Name = "titulo"
- titulo.Parent = eletronicos
- 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 Electronics"
- titulo.TextColor3 = Color3.new(1, 1, 1)
- titulo.TextScaled = true
- titulo.TextSize = 14
- titulo.TextWrapped = true
- Button0.Name = "Button0"
- Button0.Parent = eletronicos
- Button0.BackgroundColor3 = Color3.new(1, 1, 1)
- Button0.BackgroundTransparency = 1
- Button0.BorderColor3 = Color3.new(0.207843, 0, 0)
- Button0.Position = UDim2.new(0.078554213, 0, 0.194241166, 0)
- Button0.Size = UDim2.new(0, 50, 0, 50)
- Button0.Image = "rbxassetid://3210535353"
- Button0.MouseButton1Down:connect(function()
- textbox_item.Text = "Button0"
- preview.Image = "rbxassetid://3210535353"
- end)
- Lever0.Name = "Lever0"
- Lever0.Parent = eletronicos
- Lever0.BackgroundColor3 = Color3.new(1, 1, 1)
- Lever0.BackgroundTransparency = 1
- Lever0.BorderColor3 = Color3.new(0.207843, 0, 0)
- Lever0.Position = UDim2.new(0.198554218, 0, 0.194241166, 0)
- Lever0.Size = UDim2.new(0, 50, 0, 50)
- Lever0.Image = "rbxassetid://3210559841"
- Lever0.MouseButton1Down:connect(function()
- textbox_item.Text = "Lever0"
- preview.Image = "rbxassetid://3210559841"
- end)
- Hatch.Name = "Hatch"
- Hatch.Parent = eletronicos
- Hatch.BackgroundColor3 = Color3.new(1, 1, 1)
- Hatch.BackgroundTransparency = 1
- Hatch.BorderColor3 = Color3.new(0.207843, 0, 0)
- Hatch.Position = UDim2.new(0.318554223, 0, 0.194241166, 0)
- Hatch.Size = UDim2.new(0, 50, 0, 50)
- Hatch.Image = "rbxassetid://3210550784"
- Hatch.MouseButton1Down:connect(function()
- textbox_item.Text = "Hatch"
- preview.Image = "rbxassetid://3210550784"
- end)
- PressurePlate.Name = "PressurePlate"
- PressurePlate.Parent = eletronicos
- PressurePlate.BackgroundColor3 = Color3.new(1, 1, 1)
- PressurePlate.BackgroundTransparency = 1
- PressurePlate.BorderColor3 = Color3.new(0.207843, 0, 0)
- PressurePlate.Position = UDim2.new(0.438554227, 0, 0.194241166, 0)
- PressurePlate.Size = UDim2.new(0, 50, 0, 50)
- PressurePlate.Image = "rbxassetid://3210565522"
- PressurePlate.MouseButton1Down:connect(function()
- textbox_item.Text = "PressurePlate"
- preview.Image = "rbxassetid://3210565522"
- end)
- NeonWireBlue.Name = "NeonWireBlue"
- NeonWireBlue.Parent = eletronicos
- NeonWireBlue.BackgroundColor3 = Color3.new(1, 1, 1)
- NeonWireBlue.BackgroundTransparency = 1
- NeonWireBlue.BorderColor3 = Color3.new(0.207843, 0, 0)
- NeonWireBlue.Position = UDim2.new(0.318554223, 0, 0.522349238, 0)
- NeonWireBlue.Size = UDim2.new(0, 50, 0, 50)
- NeonWireBlue.Image = "rbxassetid://3210581522"
- NeonWireBlue.MouseButton1Down:connect(function()
- textbox_item.Text = "NeonWireBlue"
- preview.Image = "rbxassetid://3210581522"
- end)
- IcicleWireRed.Name = "IcicleWireRed"
- IcicleWireRed.Parent = eletronicos
- IcicleWireRed.BackgroundColor3 = Color3.new(1, 1, 1)
- IcicleWireRed.BackgroundTransparency = 1
- IcicleWireRed.BorderColor3 = Color3.new(0.207843, 0, 0)
- IcicleWireRed.Position = UDim2.new(0.795180738, 0, 0.626299322, 0)
- IcicleWireRed.Size = UDim2.new(0, 50, 0, 50)
- IcicleWireRed.Image = "rbxassetid://3210597457"
- IcicleWireRed.MouseButton1Down:connect(function()
- textbox_item.Text = "IcicleWireRed"
- preview.Image = "rbxassetid://3210597457"
- end)
- IcicleWireAmber.Name = "IcicleWireAmber"
- IcicleWireAmber.Parent = eletronicos
- IcicleWireAmber.BackgroundColor3 = Color3.new(1, 1, 1)
- IcicleWireAmber.BackgroundTransparency = 1
- IcicleWireAmber.BorderColor3 = Color3.new(0.207843, 0, 0)
- IcicleWireAmber.Position = UDim2.new(0.558554173, 0, 0.522349238, 0)
- IcicleWireAmber.Size = UDim2.new(0, 50, 0, 50)
- IcicleWireAmber.Image = "rbxassetid://3210594668"
- IcicleWireAmber.MouseButton1Down:connect(function()
- textbox_item.Text = "IcicleWireAmber"
- preview.Image = "rbxassetid://3210594668"
- end)
- IcicleWireGreen.Name = "IcicleWireGreen"
- IcicleWireGreen.Parent = eletronicos
- IcicleWireGreen.BackgroundColor3 = Color3.new(1, 1, 1)
- IcicleWireGreen.BackgroundTransparency = 1
- IcicleWireGreen.BorderColor3 = Color3.new(0.207843, 0, 0)
- IcicleWireGreen.Position = UDim2.new(0.678554177, 0, 0.522349238, 0)
- IcicleWireGreen.Size = UDim2.new(0, 50, 0, 50)
- IcicleWireGreen.Image = "rbxassetid://3210601779"
- IcicleWireGreen.MouseButton1Down:connect(function()
- textbox_item.Text = "IcicleWireGreen"
- preview.Image = "rbxassetid://3210601779"
- end)
- IcicleWireBlue.Name = "IcicleWireBlue"
- IcicleWireBlue.Parent = eletronicos
- IcicleWireBlue.BackgroundColor3 = Color3.new(1, 1, 1)
- IcicleWireBlue.BackgroundTransparency = 1
- IcicleWireBlue.BorderColor3 = Color3.new(0.207843, 0, 0)
- IcicleWireBlue.Position = UDim2.new(0.798554182, 0, 0.522349238, 0)
- IcicleWireBlue.Size = UDim2.new(0, 50, 0, 50)
- IcicleWireBlue.Image = "rbxassetid://3210596087"
- IcicleWireBlue.MouseButton1Down:connect(function()
- textbox_item.Text = "IcicleWireBlue"
- preview.Image = "rbxassetid://3210596087"
- end)
- IcicleWireHalloween.Name = "IcicleWireHalloween"
- IcicleWireHalloween.Parent = eletronicos
- IcicleWireHalloween.BackgroundColor3 = Color3.new(1, 1, 1)
- IcicleWireHalloween.BackgroundTransparency = 1
- IcicleWireHalloween.BorderColor3 = Color3.new(0.207843, 0, 0)
- IcicleWireHalloween.Position = UDim2.new(0.436626494, 0, 0.520270228, 0)
- IcicleWireHalloween.Size = UDim2.new(0, 50, 0, 50)
- IcicleWireHalloween.Image = "rbxassetid://3210569058"
- IcicleWireHalloween.MouseButton1Down:connect(function()
- textbox_item.Text = "IcicleWireHalloween"
- preview.Image = "rbxassetid://3210569058"
- end)
- -- 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