Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GUI_PRESENTES = Instance.new("ScreenGui")
- local presentes = Instance.new("Frame")
- local close = Instance.new("TextButton")
- local TextButton = Instance.new("TextButton")
- local textbox_item = Instance.new("TextBox")
- local _2017CGift_GreatTimes = Instance.new("ImageButton")
- local _2016CGift_Ut = Instance.new("ImageButton")
- local _2017CGift_Modern = Instance.new("ImageButton")
- local _2017CGift_Wobble = Instance.new("ImageButton")
- local _2018CGift_Wobble = Instance.new("ImageButton")
- local _2016CGift_Big = Instance.new("ImageButton")
- local _2018CGift_GingerAxe = Instance.new("ImageButton")
- local _2018CGift_Plate = Instance.new("ImageButton")
- local _2018CGift_Plum = Instance.new("ImageButton")
- local _2018CGift_Sled = Instance.new("ImageButton")
- local _2018CGift_Snow = Instance.new("ImageButton")
- local _2018CGift_Duck = Instance.new("ImageButton")
- local _2016CGift_Jingle = Instance.new("ImageButton")
- local _2018CGift_Cocoa = Instance.new("ImageButton")
- local _2016CGift_Blue = Instance.new("ImageButton")
- local _2018CGift_Cone = Instance.new("ImageButton")
- local _2016CGift_Wobble = Instance.new("ImageButton")
- local _2017CGift_Gold = Instance.new("ImageButton")
- local preview = Instance.new("ImageLabel")
- local _2018CGift_Candy = Instance.new("ImageButton")
- local TextBox = Instance.new("TextBox")
- local titulo = Instance.new("TextLabel")
- local _2015CGift_Coal = Instance.new("ImageButton")
- local _2015CGift_Red = Instance.new("ImageButton")
- local _2015CGift_Volcano = Instance.new("ImageButton")
- local _2015CGift_Wobble = Instance.new("ImageButton")
- --Properties:
- GUI_PRESENTES.Name = "GUI_PRESENTES"
- GUI_PRESENTES.Parent = game.CoreGui
- presentes.Name = "presentes"
- presentes.Parent = GUI_PRESENTES
- presentes.BackgroundColor3 = Color3.new(0, 0, 0)
- presentes.BackgroundTransparency = 0.5
- presentes.Position = UDim2.new(0, 0, 0.0133333337, 0)
- presentes.Size = UDim2.new(0, 415, 0, 481)
- presentes.Draggable = true
- presentes.Active = true
- close.Name = "close"
- close.Parent = presentes
- 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_PRESENTES:Destroy()
- end)
- TextButton.Parent = presentes
- 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 = presentes
- 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
- _2017CGift_GreatTimes.Name = "2017CGift_GreatTimes"
- _2017CGift_GreatTimes.Parent = presentes
- _2017CGift_GreatTimes.BackgroundColor3 = Color3.new(1, 1, 1)
- _2017CGift_GreatTimes.BackgroundTransparency = 1
- _2017CGift_GreatTimes.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2017CGift_GreatTimes.Position = UDim2.new(0.438554227, 0, 0.304241151, 0)
- _2017CGift_GreatTimes.Size = UDim2.new(0, 50, 0, 50)
- _2017CGift_GreatTimes.Image = "rbxassetid://3209782717"
- _2017CGift_GreatTimes.MouseButton1Down:connect(function()
- textbox_item.Text = "2017CGift_GreatTimes"
- preview.Image = "rbxassetid://3209782717"
- end)
- _2016CGift_Ut.Name = "2016CGift_Ut"
- _2016CGift_Ut.Parent = presentes
- _2016CGift_Ut.BackgroundColor3 = Color3.new(1, 1, 1)
- _2016CGift_Ut.BackgroundTransparency = 1
- _2016CGift_Ut.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2016CGift_Ut.Position = UDim2.new(0.078554213, 0, 0.304241151, 0)
- _2016CGift_Ut.Size = UDim2.new(0, 50, 0, 50)
- _2016CGift_Ut.Image = "rbxassetid://3209779527"
- _2016CGift_Ut.MouseButton1Down:connect(function()
- textbox_item.Text = "2016CGift_Ut"
- preview.Image = "rbxassetid://3209779527"
- end)
- _2017CGift_Modern.Name = "2017CGift_Modern"
- _2017CGift_Modern.Parent = presentes
- _2017CGift_Modern.BackgroundColor3 = Color3.new(1, 1, 1)
- _2017CGift_Modern.BackgroundTransparency = 1
- _2017CGift_Modern.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2017CGift_Modern.Position = UDim2.new(0.558554173, 0, 0.304241151, 0)
- _2017CGift_Modern.Size = UDim2.new(0, 50, 0, 50)
- _2017CGift_Modern.Image = "rbxassetid://3209783908"
- _2017CGift_Modern.MouseButton1Down:connect(function()
- textbox_item.Text = "2017CGift_Modern"
- preview.Image = "rbxassetid://3209783908"
- end)
- _2017CGift_Wobble.Name = "2017CGift_Wobble"
- _2017CGift_Wobble.Parent = presentes
- _2017CGift_Wobble.BackgroundColor3 = Color3.new(1, 1, 1)
- _2017CGift_Wobble.BackgroundTransparency = 1
- _2017CGift_Wobble.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2017CGift_Wobble.Position = UDim2.new(0.678554177, 0, 0.304241151, 0)
- _2017CGift_Wobble.Size = UDim2.new(0, 50, 0, 50)
- _2017CGift_Wobble.Image = "rbxassetid://3209793246"
- _2017CGift_Wobble.MouseButton1Down:connect(function()
- textbox_item.Text = "2017CGift_Wobble"
- preview.Image = "rbxassetid://3209793246"
- end)
- _2018CGift_Wobble.Name = "2018CGift_Wobble"
- _2018CGift_Wobble.Parent = presentes
- _2018CGift_Wobble.BackgroundColor3 = Color3.new(1, 1, 1)
- _2018CGift_Wobble.BackgroundTransparency = 1
- _2018CGift_Wobble.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2018CGift_Wobble.Position = UDim2.new(0.198554218, 0, 0.524241149, 0)
- _2018CGift_Wobble.Size = UDim2.new(0, 50, 0, 50)
- _2018CGift_Wobble.Image = "rbxassetid://3209807556"
- _2018CGift_Wobble.MouseButton1Down:connect(function()
- textbox_item.Text = "2018CGift_Wobble"
- preview.Image = "rbxassetid://3209807556"
- end)
- _2016CGift_Big.Name = "2016CGift_Big"
- _2016CGift_Big.Parent = presentes
- _2016CGift_Big.BackgroundColor3 = Color3.new(1, 1, 1)
- _2016CGift_Big.BackgroundTransparency = 1
- _2016CGift_Big.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2016CGift_Big.Position = UDim2.new(0.558554173, 0, 0.194241166, 0)
- _2016CGift_Big.Size = UDim2.new(0, 50, 0, 50)
- _2016CGift_Big.Image = "rbxassetid://3209775531"
- _2016CGift_Big.MouseButton1Down:connect(function()
- textbox_item.Text = "2016CGift_Big"
- preview.Image = "rbxassetid://3209775531"
- end)
- _2018CGift_GingerAxe.Name = "2018CGift_GingerAxe"
- _2018CGift_GingerAxe.Parent = presentes
- _2018CGift_GingerAxe.BackgroundColor3 = Color3.new(1, 1, 1)
- _2018CGift_GingerAxe.BackgroundTransparency = 1
- _2018CGift_GingerAxe.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2018CGift_GingerAxe.Position = UDim2.new(0.438554227, 0, 0.414241135, 0)
- _2018CGift_GingerAxe.Size = UDim2.new(0, 50, 0, 50)
- _2018CGift_GingerAxe.Image = "rbxassetid://3209800888"
- _2018CGift_GingerAxe.MouseButton1Down:connect(function()
- textbox_item.Text = "2018CGift_GingerAxe"
- preview.Image = "rbxassetid://3209800888"
- end)
- _2018CGift_Plate.Name = "2018CGift_Plate"
- _2018CGift_Plate.Parent = presentes
- _2018CGift_Plate.BackgroundColor3 = Color3.new(1, 1, 1)
- _2018CGift_Plate.BackgroundTransparency = 1
- _2018CGift_Plate.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2018CGift_Plate.Position = UDim2.new(0.558554173, 0, 0.414241135, 0)
- _2018CGift_Plate.Size = UDim2.new(0, 50, 0, 50)
- _2018CGift_Plate.Image = "rbxassetid://3209802080"
- _2018CGift_Plate.MouseButton1Down:connect(function()
- textbox_item.Text = "2018CGift_Plate"
- preview.Image = "rbxassetid://3209802080"
- end)
- _2018CGift_Plum.Name = "2018CGift_Plum"
- _2018CGift_Plum.Parent = presentes
- _2018CGift_Plum.BackgroundColor3 = Color3.new(1, 1, 1)
- _2018CGift_Plum.BackgroundTransparency = 1
- _2018CGift_Plum.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2018CGift_Plum.Position = UDim2.new(0.678554177, 0, 0.414241135, 0)
- _2018CGift_Plum.Size = UDim2.new(0, 50, 0, 50)
- _2018CGift_Plum.Image = "rbxassetid://3209804173"
- _2018CGift_Plum.MouseButton1Down:connect(function()
- textbox_item.Text = "2018CGift_Plum"
- preview.Image = "rbxassetid://3209804173"
- end)
- _2018CGift_Sled.Name = "2018CGift_Sled"
- _2018CGift_Sled.Parent = presentes
- _2018CGift_Sled.BackgroundColor3 = Color3.new(1, 1, 1)
- _2018CGift_Sled.BackgroundTransparency = 1
- _2018CGift_Sled.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2018CGift_Sled.Position = UDim2.new(0.798554182, 0, 0.414241135, 0)
- _2018CGift_Sled.Size = UDim2.new(0, 50, 0, 50)
- _2018CGift_Sled.Image = "rbxassetid://3209805260"
- _2018CGift_Sled.MouseButton1Down:connect(function()
- textbox_item.Text = "2018CGift_Sled"
- preview.Image = "rbxassetid://3209805260"
- end)
- _2018CGift_Snow.Name = "2018CGift_Snow"
- _2018CGift_Snow.Parent = presentes
- _2018CGift_Snow.BackgroundColor3 = Color3.new(1, 1, 1)
- _2018CGift_Snow.BackgroundTransparency = 1
- _2018CGift_Snow.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2018CGift_Snow.Position = UDim2.new(0.078554213, 0, 0.524241149, 0)
- _2018CGift_Snow.Size = UDim2.new(0, 50, 0, 50)
- _2018CGift_Snow.Image = "rbxassetid://3209806499"
- _2018CGift_Snow.MouseButton1Down:connect(function()
- textbox_item.Text = "2018CGift_Snow"
- preview.Image = "rbxassetid://3209806499"
- end)
- _2018CGift_Duck.Name = "2018CGift_Duck"
- _2018CGift_Duck.Parent = presentes
- _2018CGift_Duck.BackgroundColor3 = Color3.new(1, 1, 1)
- _2018CGift_Duck.BackgroundTransparency = 1
- _2018CGift_Duck.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2018CGift_Duck.Position = UDim2.new(0.318554223, 0, 0.414241135, 0)
- _2018CGift_Duck.Size = UDim2.new(0, 50, 0, 50)
- _2018CGift_Duck.Image = "rbxassetid://3209799725"
- _2018CGift_Duck.MouseButton1Down:connect(function()
- textbox_item.Text = "2018CGift_Duck"
- preview.Image = "rbxassetid://3209799725"
- end)
- _2016CGift_Jingle.Name = "2016CGift_Jingle"
- _2016CGift_Jingle.Parent = presentes
- _2016CGift_Jingle.BackgroundColor3 = Color3.new(1, 1, 1)
- _2016CGift_Jingle.BackgroundTransparency = 1
- _2016CGift_Jingle.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2016CGift_Jingle.Position = UDim2.new(0.798554182, 0, 0.194241166, 0)
- _2016CGift_Jingle.Size = UDim2.new(0, 50, 0, 50)
- _2016CGift_Jingle.Image = "rbxassetid://3209778607"
- _2016CGift_Jingle.MouseButton1Down:connect(function()
- textbox_item.Text = "2016CGift_Jingle"
- preview.Image = "rbxassetid://3209778607"
- end)
- _2018CGift_Cocoa.Name = "2018CGift_Cocoa"
- _2018CGift_Cocoa.Parent = presentes
- _2018CGift_Cocoa.BackgroundColor3 = Color3.new(1, 1, 1)
- _2018CGift_Cocoa.BackgroundTransparency = 1
- _2018CGift_Cocoa.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2018CGift_Cocoa.Position = UDim2.new(0.078554213, 0, 0.414241135, 0)
- _2018CGift_Cocoa.Size = UDim2.new(0, 50, 0, 50)
- _2018CGift_Cocoa.Image = "rbxassetid://3209796618"
- _2018CGift_Cocoa.MouseButton1Down:connect(function()
- textbox_item.Text = "2018CGift_Cocoa"
- preview.Image = "rbxassetid://3209796618"
- end)
- _2016CGift_Blue.Name = "2016CGift_Blue"
- _2016CGift_Blue.Parent = presentes
- _2016CGift_Blue.BackgroundColor3 = Color3.new(1, 1, 1)
- _2016CGift_Blue.BackgroundTransparency = 1
- _2016CGift_Blue.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2016CGift_Blue.Position = UDim2.new(0.678554177, 0, 0.194241166, 0)
- _2016CGift_Blue.Size = UDim2.new(0, 50, 0, 50)
- _2016CGift_Blue.Image = "rbxassetid://3209776921"
- _2016CGift_Blue.MouseButton1Down:connect(function()
- textbox_item.Text = "2016CGift_Blue"
- preview.Image = "rbxassetid://3209776921"
- end)
- _2018CGift_Cone.Name = "2018CGift_Cone"
- _2018CGift_Cone.Parent = presentes
- _2018CGift_Cone.BackgroundColor3 = Color3.new(1, 1, 1)
- _2018CGift_Cone.BackgroundTransparency = 1
- _2018CGift_Cone.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2018CGift_Cone.Position = UDim2.new(0.198554218, 0, 0.414241135, 0)
- _2018CGift_Cone.Size = UDim2.new(0, 50, 0, 50)
- _2018CGift_Cone.Image = "rbxassetid://3209798753"
- _2018CGift_Cone.MouseButton1Down:connect(function()
- textbox_item.Text = "2018CGift_Cone"
- preview.Image = "rbxassetid://3209798753"
- end)
- _2016CGift_Wobble.Name = "2016CGift_Wobble"
- _2016CGift_Wobble.Parent = presentes
- _2016CGift_Wobble.BackgroundColor3 = Color3.new(1, 1, 1)
- _2016CGift_Wobble.BackgroundTransparency = 1
- _2016CGift_Wobble.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2016CGift_Wobble.Position = UDim2.new(0.198554218, 0, 0.304241151, 0)
- _2016CGift_Wobble.Size = UDim2.new(0, 50, 0, 50)
- _2016CGift_Wobble.Image = "rbxassetid://3209780628"
- _2016CGift_Wobble.MouseButton1Down:connect(function()
- textbox_item.Text = "2016CGift_Wobble"
- preview.Image = "rbxassetid://3209780628"
- end)
- _2017CGift_Gold.Name = "2017CGift_Gold"
- _2017CGift_Gold.Parent = presentes
- _2017CGift_Gold.BackgroundColor3 = Color3.new(1, 1, 1)
- _2017CGift_Gold.BackgroundTransparency = 1
- _2017CGift_Gold.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2017CGift_Gold.Position = UDim2.new(0.318554223, 0, 0.304241151, 0)
- _2017CGift_Gold.Size = UDim2.new(0, 50, 0, 50)
- _2017CGift_Gold.Image = "rbxassetid://3209781646"
- _2017CGift_Gold.MouseButton1Down:connect(function()
- textbox_item.Text = "2017CGift_Gold"
- preview.Image = "rbxassetid://3209781646"
- end)
- preview.Name = "preview"
- preview.Parent = presentes
- 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"
- _2018CGift_Candy.Name = "2018CGift_Candy"
- _2018CGift_Candy.Parent = presentes
- _2018CGift_Candy.BackgroundColor3 = Color3.new(1, 1, 1)
- _2018CGift_Candy.BackgroundTransparency = 1
- _2018CGift_Candy.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2018CGift_Candy.Position = UDim2.new(0.798554182, 0, 0.304241151, 0)
- _2018CGift_Candy.Size = UDim2.new(0, 50, 0, 50)
- _2018CGift_Candy.Image = "rbxassetid://3209795590"
- _2018CGift_Candy.MouseButton1Down:connect(function()
- textbox_item.Text = "2018CGift_Candy"
- preview.Image = "rbxassetid://3209795590"
- end)
- TextBox.Parent = presentes
- 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 = presentes
- 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 Presents/Gifts"
- titulo.TextColor3 = Color3.new(1, 1, 1)
- titulo.TextScaled = true
- titulo.TextSize = 14
- titulo.TextWrapped = true
- _2015CGift_Coal.Name = "2015CGift_Coal"
- _2015CGift_Coal.Parent = presentes
- _2015CGift_Coal.BackgroundColor3 = Color3.new(1, 1, 1)
- _2015CGift_Coal.BackgroundTransparency = 1
- _2015CGift_Coal.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2015CGift_Coal.Position = UDim2.new(0.078554213, 0, 0.194241166, 0)
- _2015CGift_Coal.Size = UDim2.new(0, 50, 0, 50)
- _2015CGift_Coal.Image = "rbxassetid://3209763154"
- _2015CGift_Coal.MouseButton1Down:connect(function()
- textbox_item.Text = "2015CGift_Coal"
- preview.Image = "rbxassetid://3209763154"
- end)
- _2015CGift_Red.Name = "2015CGift_Red"
- _2015CGift_Red.Parent = presentes
- _2015CGift_Red.BackgroundColor3 = Color3.new(1, 1, 1)
- _2015CGift_Red.BackgroundTransparency = 1
- _2015CGift_Red.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2015CGift_Red.Position = UDim2.new(0.198554218, 0, 0.194241166, 0)
- _2015CGift_Red.Size = UDim2.new(0, 50, 0, 50)
- _2015CGift_Red.Image = "rbxassetid://3209766496"
- _2015CGift_Red.MouseButton1Down:connect(function()
- textbox_item.Text = "2015CGift_Red"
- preview.Image = "rbxassetid://3209766496"
- end)
- _2015CGift_Volcano.Name = "2015CGift_Volcano"
- _2015CGift_Volcano.Parent = presentes
- _2015CGift_Volcano.BackgroundColor3 = Color3.new(1, 1, 1)
- _2015CGift_Volcano.BackgroundTransparency = 1
- _2015CGift_Volcano.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2015CGift_Volcano.Position = UDim2.new(0.318554223, 0, 0.194241166, 0)
- _2015CGift_Volcano.Size = UDim2.new(0, 50, 0, 50)
- _2015CGift_Volcano.Image = "rbxassetid://3209769274"
- _2015CGift_Volcano.MouseButton1Down:connect(function()
- textbox_item.Text = "2015CGift_Volcano"
- preview.Image = "rbxassetid://3209769274"
- end)
- _2015CGift_Wobble.Name = "2015CGift_Wobble"
- _2015CGift_Wobble.Parent = presentes
- _2015CGift_Wobble.BackgroundColor3 = Color3.new(1, 1, 1)
- _2015CGift_Wobble.BackgroundTransparency = 1
- _2015CGift_Wobble.BorderColor3 = Color3.new(0.207843, 0, 0)
- _2015CGift_Wobble.Position = UDim2.new(0.438554227, 0, 0.194241166, 0)
- _2015CGift_Wobble.Size = UDim2.new(0, 50, 0, 50)
- _2015CGift_Wobble.Image = "rbxassetid://3209774156"
- _2015CGift_Wobble.MouseButton1Down:connect(function()
- textbox_item.Text = "2015CGift_Wobble"
- preview.Image = "rbxassetid://3209774156"
- 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)
Add Comment
Please, Sign In to add comment