Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --ты что тут делаешь мальчик
- local Admin = Instance.new("ScreenGui")
- local Open = Instance.new("TextButton")
- local DropShadow = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local Frame = Instance.new("Frame")
- local Header = Instance.new("TextLabel")
- local DropShadow_2 = Instance.new("Frame")
- local Main = Instance.new("Frame")
- local Header_2 = Instance.new("TextLabel")
- local Spawn = Instance.new("TextButton")
- local TextLabel_2 = Instance.new("TextLabel")
- local Close = Instance.new("TextButton")
- local TextLabel_3 = Instance.new("TextLabel")
- local ItemName = Instance.new("TextBox")
- local Info = Instance.new("TextLabel")
- local ItemAmount = Instance.new("TextBox")
- local Blueprints = Instance.new("TextButton")
- local TextLabel_4 = Instance.new("TextLabel")
- local MaxLand = Instance.new("TextButton")
- local TextLabel_5 = Instance.new("TextLabel")
- local Rejoin = Instance.new("TextButton")
- local TextLabel_6 = Instance.new("TextLabel")
- local SellPlanks = Instance.new("TextButton")
- local TextLabel_7 = Instance.new("TextLabel")
- local SellWood = Instance.new("TextButton")
- local TextLabel_8 = Instance.new("TextLabel")
- local TPPlanks = Instance.new("TextButton")
- local TextLabel_9 = Instance.new("TextLabel")
- local TPPlot = Instance.new("TextButton")
- local TextLabel_10 = Instance.new("TextLabel")
- local TPWood = Instance.new("TextButton")
- local TextLabel_11 = Instance.new("TextLabel")
- --Properties:
- Admin.Name = "Admin"
- Admin.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Open.Name = "Open"
- Open.Parent = Admin
- Open.BackgroundColor3 = Color3.new(1, 1, 1)
- Open.BorderSizePixel = 0
- Open.Position = UDim2.new(0.925587535, -45, -0.00569259981, 10)
- Open.Selectable = false
- Open.Size = UDim2.new(0, 90, 0, 30)
- Open.ZIndex = 5
- Open.Font = Enum.Font.SourceSans
- Open.Text = ""
- Open.TextSize = 18
- DropShadow.Name = "DropShadow"
- DropShadow.Parent = Open
- DropShadow.BackgroundColor3 = Color3.new(0, 0, 0)
- DropShadow.BorderSizePixel = 0
- DropShadow.Position = UDim2.new(0, 4, 0, 4)
- DropShadow.Size = UDim2.new(1, 0, 1, 0)
- DropShadow.ZIndex = 4
- TextLabel.Parent = Open
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0, 17, 0, 0)
- TextLabel.Size = UDim2.new(1, -30, 1, 0)
- TextLabel.ZIndex = 5
- TextLabel.Font = Enum.Font.ArialBold
- TextLabel.Text = "Functions"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 24
- TextLabel.TextWrapped = true
- Frame.Parent = Admin
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.348070502, -150, 0.194617435, -22)
- Frame.Size = UDim2.new(0, 329, 0, 365)
- Frame.Visible = false
- Frame.ZIndex = 5
- Header.Name = "Header"
- Header.Parent = Frame
- Header.BackgroundColor3 = Color3.new(1, 1, 1)
- Header.BackgroundTransparency = 1
- Header.BorderSizePixel = 0
- Header.Position = UDim2.new(0, 0, 0, 4)
- Header.Size = UDim2.new(1, 0, 0, 24)
- Header.ZIndex = 6
- Header.Font = Enum.Font.ArialBold
- Header.Text = "Other"
- Header.TextColor3 = Color3.new(0, 0, 0)
- Header.TextSize = 24
- Header.TextWrapped = true
- DropShadow_2.Name = "DropShadow"
- DropShadow_2.Parent = Frame
- DropShadow_2.BackgroundColor3 = Color3.new(0, 0, 0)
- DropShadow_2.BorderSizePixel = 0
- DropShadow_2.Position = UDim2.new(0, 4, 0, 4)
- DropShadow_2.Size = UDim2.new(1, 0, 1, 0)
- DropShadow_2.ZIndex = 4
- Main.Name = "Main"
- Main.Parent = Frame
- Main.BackgroundColor3 = Color3.new(1, 1, 1)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(1.63917959, -150, 0.0702373236, -22)
- Main.Size = UDim2.new(0, 293, 0, 142)
- Main.ZIndex = 5
- Header_2.Name = "Header"
- Header_2.Parent = Main
- Header_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Header_2.BackgroundTransparency = 1
- Header_2.BorderSizePixel = 0
- Header_2.Position = UDim2.new(0, 0, 0, 4)
- Header_2.Size = UDim2.new(1, 0, 0, 24)
- Header_2.ZIndex = 6
- Header_2.Font = Enum.Font.ArialBold
- Header_2.Text = "Item Spawner"
- Header_2.TextColor3 = Color3.new(0, 0, 0)
- Header_2.TextSize = 24
- Header_2.TextWrapped = true
- Spawn.Name = "Spawn"
- Spawn.Parent = Main
- Spawn.BackgroundColor3 = Color3.new(1, 1, 1)
- Spawn.BorderSizePixel = 0
- Spawn.Position = UDim2.new(0.49905628, -75, -0.479249299, 160)
- Spawn.Size = UDim2.new(0, 150, 0, 50)
- Spawn.ZIndex = 6
- Spawn.Font = Enum.Font.SourceSans
- Spawn.Text = ""
- Spawn.TextSize = 14
- TextLabel_2.Parent = Spawn
- TextLabel_2.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
- TextLabel_2.BorderSizePixel = 0
- TextLabel_2.Position = UDim2.new(0, 8, 0, 8)
- TextLabel_2.Size = UDim2.new(1, -16, 1, -16)
- TextLabel_2.ZIndex = 6
- TextLabel_2.Font = Enum.Font.ArialBold
- TextLabel_2.Text = "Spawn"
- TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_2.TextSize = 24
- TextLabel_2.TextWrapped = true
- Close.Name = "Close"
- Close.Parent = Main
- Close.BackgroundColor3 = Color3.new(1, 1, 1)
- Close.BorderSizePixel = 0
- Close.Position = UDim2.new(-0.75624603, -75, 1.06409204, 160)
- Close.Size = UDim2.new(0, 150, 0, 50)
- Close.ZIndex = 6
- Close.Font = Enum.Font.SourceSans
- Close.Text = ""
- Close.TextSize = 14
- TextLabel_3.Parent = Close
- TextLabel_3.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
- TextLabel_3.BorderSizePixel = 0
- TextLabel_3.Position = UDim2.new(0, 8, 0, 8)
- TextLabel_3.Size = UDim2.new(1, -16, 1, -16)
- TextLabel_3.ZIndex = 6
- TextLabel_3.Font = Enum.Font.ArialBold
- TextLabel_3.Text = "Close"
- TextLabel_3.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_3.TextSize = 24
- TextLabel_3.TextWrapped = true
- ItemName.Name = "ItemName"
- ItemName.Parent = Main
- ItemName.Active = false
- ItemName.BackgroundColor3 = Color3.new(1, 1, 1)
- ItemName.Position = UDim2.new(0.0448339656, 0, 0.257395774, 0)
- ItemName.Selectable = false
- ItemName.Size = UDim2.new(0, 171, 0, 38)
- ItemName.ZIndex = 6
- ItemName.ClearTextOnFocus = false
- ItemName.Font = Enum.Font.SourceSans
- ItemName.PlaceholderText = "ItemName"
- ItemName.Text = ""
- ItemName.TextColor3 = Color3.new(0, 0, 0)
- ItemName.TextScaled = true
- ItemName.TextSize = 14
- ItemName.TextWrapped = true
- Info.Name = "Info"
- Info.Parent = Main
- Info.BackgroundColor3 = Color3.new(1, 1, 1)
- Info.BackgroundTransparency = 1
- Info.BorderSizePixel = 0
- Info.Position = UDim2.new(0, -1, 0, 75)
- Info.Size = UDim2.new(0.974129438, 0, 0, 24)
- Info.ZIndex = 6
- Info.Font = Enum.Font.ArialBold
- Info.Text = "This function is spawning only unboxed items!"
- Info.TextColor3 = Color3.new(0.427451, 0.427451, 0.427451)
- Info.TextScaled = true
- Info.TextSize = 24
- Info.TextWrapped = true
- ItemAmount.Name = "ItemAmount"
- ItemAmount.Parent = Main
- ItemAmount.Active = false
- ItemAmount.BackgroundColor3 = Color3.new(1, 1, 1)
- ItemAmount.Position = UDim2.new(0.65575552, 0, 0.257395774, 0)
- ItemAmount.Selectable = false
- ItemAmount.Size = UDim2.new(0, 88, 0, 38)
- ItemAmount.ZIndex = 6
- ItemAmount.ClearTextOnFocus = false
- ItemAmount.Font = Enum.Font.SourceSans
- ItemAmount.PlaceholderText = "Amount"
- ItemAmount.Text = ""
- ItemAmount.TextColor3 = Color3.new(0, 0, 0)
- ItemAmount.TextScaled = true
- ItemAmount.TextSize = 14
- ItemAmount.TextWrapped = true
- Blueprints.Name = "Blueprints"
- Blueprints.Parent = Main
- Blueprints.BackgroundColor3 = Color3.new(1, 1, 1)
- Blueprints.BorderSizePixel = 0
- Blueprints.Position = UDim2.new(-1.0303005, -75, -0.226793751, 160)
- Blueprints.Size = UDim2.new(0, 150, 0, 50)
- Blueprints.ZIndex = 6
- Blueprints.Font = Enum.Font.SourceSans
- Blueprints.Text = ""
- Blueprints.TextSize = 14
- TextLabel_4.Parent = Blueprints
- TextLabel_4.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
- TextLabel_4.BorderSizePixel = 0
- TextLabel_4.Position = UDim2.new(0, 8, 0, 8)
- TextLabel_4.Size = UDim2.new(1, -16, 1, -16)
- TextLabel_4.ZIndex = 6
- TextLabel_4.Font = Enum.Font.ArialBold
- TextLabel_4.Text = "Get Blueprints"
- TextLabel_4.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_4.TextScaled = true
- TextLabel_4.TextSize = 24
- TextLabel_4.TextWrapped = true
- MaxLand.Name = "MaxLand"
- MaxLand.Parent = Main
- MaxLand.BackgroundColor3 = Color3.new(1, 1, 1)
- MaxLand.BorderSizePixel = 0
- MaxLand.Position = UDim2.new(-0.519954801, -75, 0.118509442, 160)
- MaxLand.Size = UDim2.new(0, 150, 0, 50)
- MaxLand.ZIndex = 6
- MaxLand.Font = Enum.Font.SourceSans
- MaxLand.Text = ""
- MaxLand.TextSize = 14
- TextLabel_5.Parent = MaxLand
- TextLabel_5.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
- TextLabel_5.BorderSizePixel = 0
- TextLabel_5.Position = UDim2.new(0, 8, 0, 8)
- TextLabel_5.Size = UDim2.new(1, -16, 1, -16)
- TextLabel_5.ZIndex = 6
- TextLabel_5.Font = Enum.Font.ArialBold
- TextLabel_5.Text = "MaximizeLand"
- TextLabel_5.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_5.TextScaled = true
- TextLabel_5.TextSize = 24
- TextLabel_5.TextWrapped = true
- Rejoin.Name = "Rejoin"
- Rejoin.Parent = Main
- Rejoin.BackgroundColor3 = Color3.new(1, 1, 1)
- Rejoin.BorderSizePixel = 0
- Rejoin.Position = UDim2.new(-1.03300095, -75, 0.119789958, 160)
- Rejoin.Size = UDim2.new(0, 150, 0, 50)
- Rejoin.ZIndex = 6
- Rejoin.Font = Enum.Font.SourceSans
- Rejoin.Text = ""
- Rejoin.TextSize = 14
- TextLabel_6.Parent = Rejoin
- TextLabel_6.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
- TextLabel_6.BorderSizePixel = 0
- TextLabel_6.Position = UDim2.new(0, 8, 0, 8)
- TextLabel_6.Size = UDim2.new(1, -16, 1, -16)
- TextLabel_6.ZIndex = 6
- TextLabel_6.Font = Enum.Font.ArialBold
- TextLabel_6.Text = "Rejoin"
- TextLabel_6.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_6.TextSize = 24
- TextLabel_6.TextWrapped = true
- SellPlanks.Name = "SellPlanks"
- SellPlanks.Parent = Main
- SellPlanks.BackgroundColor3 = Color3.new(1, 1, 1)
- SellPlanks.BorderSizePixel = 0
- SellPlanks.Position = UDim2.new(-0.516150236, -75, -0.931019127, 160)
- SellPlanks.Size = UDim2.new(0, 150, 0, 50)
- SellPlanks.ZIndex = 6
- SellPlanks.Font = Enum.Font.SourceSans
- SellPlanks.Text = ""
- SellPlanks.TextSize = 14
- TextLabel_7.Parent = SellPlanks
- TextLabel_7.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
- TextLabel_7.BorderSizePixel = 0
- TextLabel_7.Position = UDim2.new(0, 8, 0, 8)
- TextLabel_7.Size = UDim2.new(1, -16, 1, -16)
- TextLabel_7.ZIndex = 6
- TextLabel_7.Font = Enum.Font.ArialBold
- TextLabel_7.Text = "Sell Planks"
- TextLabel_7.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_7.TextSize = 24
- TextLabel_7.TextWrapped = true
- SellWood.Name = "SellWood"
- SellWood.Parent = Main
- SellWood.BackgroundColor3 = Color3.new(1, 1, 1)
- SellWood.BorderSizePixel = 0
- SellWood.Position = UDim2.new(-0.515324593, -75, -0.574133992, 160)
- SellWood.Size = UDim2.new(0, 150, 0, 50)
- SellWood.ZIndex = 6
- SellWood.Font = Enum.Font.SourceSans
- SellWood.Text = ""
- SellWood.TextSize = 14
- TextLabel_8.Parent = SellWood
- TextLabel_8.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
- TextLabel_8.BorderSizePixel = 0
- TextLabel_8.Position = UDim2.new(0, 8, 0, 8)
- TextLabel_8.Size = UDim2.new(1, -16, 1, -16)
- TextLabel_8.ZIndex = 6
- TextLabel_8.Font = Enum.Font.ArialBold
- TextLabel_8.Text = "Sell Wood"
- TextLabel_8.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_8.TextSize = 24
- TextLabel_8.TextWrapped = true
- TPPlanks.Name = "TPPlanks"
- TPPlanks.Parent = Main
- TPPlanks.BackgroundColor3 = Color3.new(1, 1, 1)
- TPPlanks.BorderSizePixel = 0
- TPPlanks.Position = UDim2.new(-1.02755868, -75, -0.933288991, 160)
- TPPlanks.Size = UDim2.new(0, 150, 0, 50)
- TPPlanks.ZIndex = 6
- TPPlanks.Font = Enum.Font.SourceSans
- TPPlanks.Text = ""
- TPPlanks.TextSize = 14
- TextLabel_9.Parent = TPPlanks
- TextLabel_9.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
- TextLabel_9.BorderSizePixel = 0
- TextLabel_9.Position = UDim2.new(0, 8, 0, 8)
- TextLabel_9.Size = UDim2.new(1, -16, 1, -16)
- TextLabel_9.ZIndex = 6
- TextLabel_9.Font = Enum.Font.ArialBold
- TextLabel_9.Text = "TP Planks"
- TextLabel_9.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_9.TextSize = 24
- TextLabel_9.TextWrapped = true
- TPPlot.Name = "TPPlot"
- TPPlot.Parent = Main
- TPPlot.BackgroundColor3 = Color3.new(1, 1, 1)
- TPPlot.BorderSizePixel = 0
- TPPlot.Position = UDim2.new(-0.518546343, -75, -0.231333375, 160)
- TPPlot.Size = UDim2.new(0, 150, 0, 50)
- TPPlot.ZIndex = 6
- TPPlot.Font = Enum.Font.SourceSans
- TPPlot.Text = ""
- TPPlot.TextSize = 14
- TextLabel_10.Parent = TPPlot
- TextLabel_10.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
- TextLabel_10.BorderSizePixel = 0
- TextLabel_10.Position = UDim2.new(0, 8, 0, 8)
- TextLabel_10.Size = UDim2.new(1, -16, 1, -16)
- TextLabel_10.ZIndex = 6
- TextLabel_10.Font = Enum.Font.ArialBold
- TextLabel_10.Text = "Plot TP"
- TextLabel_10.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_10.TextSize = 24
- TextLabel_10.TextWrapped = true
- TPWood.Name = "TPWood"
- TPWood.Parent = Main
- TPWood.BackgroundColor3 = Color3.new(1, 1, 1)
- TPWood.BorderSizePixel = 0
- TPWood.Position = UDim2.new(-1.02564979, -75, -0.569361627, 160)
- TPWood.Size = UDim2.new(0, 150, 0, 50)
- TPWood.ZIndex = 6
- TPWood.Font = Enum.Font.SourceSans
- TPWood.Text = ""
- TPWood.TextSize = 14
- TextLabel_11.Parent = TPWood
- TextLabel_11.BackgroundColor3 = Color3.new(0.862745, 0.862745, 0.862745)
- TextLabel_11.BorderSizePixel = 0
- TextLabel_11.Position = UDim2.new(0, 8, 0, 8)
- TextLabel_11.Size = UDim2.new(1, -16, 1, -16)
- TextLabel_11.ZIndex = 6
- TextLabel_11.Font = Enum.Font.ArialBold
- TextLabel_11.Text = "TP Wood"
- TextLabel_11.TextColor3 = Color3.new(0, 0, 0)
- TextLabel_11.TextSize = 24
- TextLabel_11.TextWrapped = true
- -- Scripts:
- function SCRIPT_LPVP84_FAKESCRIPT() -- Admin.LocalScript
- local script = Instance.new('LocalScript')
- script.Parent = Admin
- local SoundBump = game.StarterGui.ClientSounds.Bump
- local SoundErr = game.StarterGui.ClientSounds.Err
- local Close = script.Parent.Frame.Main.Close
- local Spawn = script.Parent.Frame.Main.Spawn
- local ItemName = script.Parent.Frame.Main.ItemName
- local ItemAmount = script.Parent.Frame.Main.ItemAmount
- local button = script.Parent.Open
- local Frame = script.Parent.Frame
- local menudetect = game.StarterGui.MenuGUI.Open
- Close.MouseButton1Click:Connect(function()
- ItemName.Text = ""
- SoundBump:Play()
- Frame.Visible = false
- end)
- Spawn.MouseButton1Click:Connect(function()
- if ItemName.Text == "" or ItemAmount.Text == "" then
- SoundErr:Play()
- else
- SoundBump:Play()
- print(ItemName.Text)
- local Item = ItemName.Text
- local Quantity = ItemAmount.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
- Frame.Visible = false
- end
- ItemName.Text = ""
- end)
- --Open/Close
- button.MouseButton1Click:Connect(function()
- SoundBump:Play()
- Frame.Visible = true
- ItemName.Text = ""
- end)
- --Other
- local main = script.Parent.Frame.Main
- local TPPlot = main.TPPlot
- local TPPlanks = main.TPPlanks
- local MaxLand = main.MaxLand
- local Rejoin = main.Rejoin
- local TPWood = main.TPWood
- local SellWood = main.SellWood
- local SellPlanks = main.SellPlanks
- local Blueprints = main.Blueprints
- TPPlot.MouseButton1Click:Connect(function()
- for i,v in pairs(game.Workspace.Properties:GetChildren()) do
- if v.Owner.Value == game.Players.LocalPlayer then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.OriginSquare.CFrame + Vector3.new(0,10,0)
- end
- end
- Frame.Visible = false
- SoundBump:Play()
- end)
- TPPlanks.MouseButton1Click:Connect(function()
- for i,models in pairs(game.Workspace.PlayerModels:GetChildren()) do
- if string.match(models.Name:lower(), "plank") then
- if models.Owner.Value == game.Players.LocalPlayer then
- spawn(function()
- for i=1, 5 do
- models.WoodSection.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,10,0)
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(models.WoodSection)
- wait()
- end
- end)
- end
- end
- end
- Frame.Visible = false
- SoundBump:Play()
- end)
- MaxLand.MouseButton1Click:Connect(function()
- for i, v in pairs(game:GetService("Workspace").Properties:GetChildren()) do
- if v:FindFirstChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then
- base = v
- square = v.OriginSquare
- end
- end
- function makebase(pos)
- local Event = game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty
- Event:FireServer(base, pos)
- 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))
- --Corners--
- 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))
- --Corners--
- 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))
- Frame.Visible = false
- SoundBump:Play()
- end)
- Rejoin.MouseButton1Click:Connect(function()
- local placeId = script.Parent.PlaceId.Value
- game:GetService("TeleportService"):Teleport(placeId)
- end)
- TPWood.MouseButton1Click:Connect(function()
- for _, Log in pairs(game.Workspace.LogModels:GetChildren()) do
- if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
- if Log.Owner.Value == game.Players.LocalPlayer then
- Log:MoveTo(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
- for i=1,20 do
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log.WoodSection)
- game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(Log.WoodSection)
- end
- end
- end
- end
- Frame.Visible = false
- SoundBump:Play()
- end)
- SellWood.MouseButton1Click:Connect(function()
- for _, Log in pairs(workspace.LogModels:GetChildren()) do
- if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
- if Log.Owner.Value == game.Players.LocalPlayer then
- for i,v in pairs(Log:GetChildren()) do
- if v.Name=="WoodSection" then
- spawn(function()
- for i=1,10 do
- wait()
- v.CFrame=CFrame.new(Vector3.new(315, -0.296, 85.791))*CFrame.Angles(math.rad(90),0,0)
- end
- end)
- end
- end
- spawn(function()
- for i=1,20 do
- wait()
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log.WoodSection)
- game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(Log.WoodSection)
- end
- end)
- end
- end
- end
- Frame.Visible = false
- SoundBump:Play()
- end)
- SellPlanks.MouseButton1Click:Connect(function()
- for _, Plank in pairs(game.Workspace.PlayerModels:GetChildren()) do
- if Plank.Name=="Plank" and Plank:findFirstChild("Owner") then
- if Plank.Owner.Value == game.Players.LocalPlayer then
- for i,v in pairs(Plank:GetChildren()) do
- if v.Name=="WoodSection" then
- spawn(function()
- for i=1,10 do
- wait()
- v.CFrame=CFrame.new(Vector3.new(315, -0.296, 85.791))*CFrame.Angles(math.rad(90),0,0)
- end
- end)
- end
- end
- spawn(function()
- for i=1,20 do
- wait()
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Plank.WoodSection)
- game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(Plank.WoodSection)
- end
- end)
- end
- end
- end
- SoundBump:Play()
- Frame.Visible = false
- end)
- Blueprints.MouseButton1Click:Connect(function()
- for i,v in pairs(game.ReplicatedStorage.Purchasables.Structures.BlueprintStructures:GetChildren()) do
- local clone = v:Clone()
- clone.Parent = game.Players.LocalPlayer.PlayerBlueprints.Blueprints
- end
- Frame.Visible = false
- SoundBump:Play()
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_LPVP84_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement