Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local WallMaker = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local Bar = Instance.new("Frame")
- local title = Instance.new("TextLabel")
- local title_2 = Instance.new("TextLabel")
- local Height = Instance.new("ImageLabel")
- local Hval = Instance.new("TextBox")
- local MakeWall = Instance.new("ImageLabel")
- local Make = Instance.new("TextButton")
- local Woodt = Instance.new("ImageLabel")
- local Wval = Instance.new("TextBox")
- local Clearb = Instance.new("ImageLabel")
- local Cb = Instance.new("TextButton")
- local height = Hval.Text
- local newtween = function(obj,props,speed,...)
- local info = TweenInfo.new(speed,...);
- local tween = game:GetService("TweenService"):Create(obj,info,props);
- return tween:Play();
- end;
- WallMaker.Name = "WallMaker"
- WallMaker.Parent = game.CoreGui
- Main.Name = "Main"
- Main.Parent = WallMaker
- Main.BackgroundColor3 = Color3.new(0.137255, 0.137255, 0.137255)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0.659811497, 0, 0.248062015, 0)
- Main.Size = UDim2.new(0, 200, 0, 159)
- Main.Active = true
- Main.Draggable = true
- Bar.Name = "Bar"
- Bar.Parent = Main
- Bar.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
- Bar.BorderSizePixel = 0
- Bar.Position = UDim2.new(-0.000244140625, 0, -0.00297152926, 0)
- Bar.Size = UDim2.new(0, 200, 0, 38)
- title.Name = "title"
- title.Parent = Bar
- title.BackgroundColor3 = Color3.new(1, 1, 1)
- title.BackgroundTransparency = 1
- title.Position = UDim2.new(0.284999996, 0, 0, 0)
- title.Size = UDim2.new(0, 37, 0, 38)
- title.Font = Enum.Font.GothamSemibold
- title.Text = "Wall"
- title.TextColor3 = Color3.new(1, 1, 1)
- title.TextSize = 16
- title.TextXAlignment = Enum.TextXAlignment.Left
- title_2.Name = "title"
- title_2.Parent = Bar
- title_2.BackgroundColor3 = Color3.new(1, 1, 1)
- title_2.BackgroundTransparency = 1
- title_2.Position = UDim2.new(0.469999969, 0, 0, 0)
- title_2.Size = UDim2.new(0, 49, 0, 38)
- title_2.Font = Enum.Font.GothamSemibold
- title_2.Text = "Maker"
- title_2.TextColor3 = Color3.new(1, 0.988235, 1)
- title_2.TextSize = 16
- title_2.TextXAlignment = Enum.TextXAlignment.Left
- Height.Name = "Height"
- Height.Parent = Main
- Height.Active = true
- Height.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
- Height.BackgroundTransparency = 1
- Height.BorderSizePixel = 0
- Height.Position = UDim2.new(1.05200005, -106, 0.809000015, -86)
- Height.Size = UDim2.new(0, 86, 0, 34)
- Height.Image = "rbxassetid://2877881750"
- Height.ImageColor3 = Color3.new(0.129412, 0.129412, 0.129412)
- Height.ScaleType = Enum.ScaleType.Slice
- Height.SliceCenter = Rect.new(6, 6, 494, 494)
- Hval.Name = "Hval"
- Hval.Parent = Height
- Hval.BackgroundColor3 = Color3.new(1, 1, 1)
- Hval.BackgroundTransparency = 1
- Hval.Size = UDim2.new(0, 86, 0, 34)
- Hval.Font = Enum.Font.GothamSemibold
- Hval.Text = "Height"
- Hval.TextColor3 = Color3.new(1, 1, 1)
- Hval.TextSize = 11
- MakeWall.Name = "MakeWall"
- MakeWall.Parent = Main
- MakeWall.Active = true
- MakeWall.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
- MakeWall.BackgroundTransparency = 1
- MakeWall.BorderSizePixel = 0
- MakeWall.Position = UDim2.new(0.575450122, -106, 0.764974713, -79)
- MakeWall.Size = UDim2.new(0, 88, 0, 111)
- MakeWall.Image = "rbxassetid://2877881750"
- MakeWall.ImageColor3 = Color3.new(0.121569, 0.121569, 0.121569)
- MakeWall.ScaleType = Enum.ScaleType.Slice
- MakeWall.SliceCenter = Rect.new(6, 6, 494, 494)
- Make.Name = "Make"
- Make.Parent = MakeWall
- Make.BackgroundColor3 = Color3.new(1, 1, 1)
- Make.BackgroundTransparency = 1
- Make.Position = UDim2.new(-0.0153836338, 0, 0, 0)
- Make.Size = UDim2.new(0, 89, 0, 111)
- Make.Font = Enum.Font.GothamSemibold
- Make.Text = "MAKE WALL"
- Make.TextColor3 = Color3.new(1, 1, 1)
- Make.TextSize = 11
- Make.TextWrapped = true
- Woodt.Name = "Woodt"
- Woodt.Parent = Main
- Woodt.Active = true
- Woodt.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
- Woodt.BackgroundTransparency = 1
- Woodt.BorderSizePixel = 0
- Woodt.Position = UDim2.new(1.05200005, -106, 1.03600001, -83)
- Woodt.Size = UDim2.new(0, 86, 0, 34)
- Woodt.Image = "rbxassetid://2877881750"
- Woodt.ImageColor3 = Color3.new(0.129412, 0.129412, 0.129412)
- Woodt.ScaleType = Enum.ScaleType.Slice
- Woodt.SliceCenter = Rect.new(6, 6, 494, 494)
- Wval.Name = "Wval"
- Wval.Parent = Woodt
- Wval.BackgroundColor3 = Color3.new(1, 1, 1)
- Wval.BackgroundTransparency = 1
- Wval.Size = UDim2.new(0, 86, 0, 34)
- Wval.Font = Enum.Font.GothamSemibold
- Wval.Text = "Wood Type"
- Wval.TextColor3 = Color3.new(1, 1, 1)
- Wval.TextSize = 11
- Clearb.Name = "Clearb"
- Clearb.Parent = Main
- Clearb.Active = true
- Clearb.BackgroundColor3 = Color3.new(0.0627451, 0.945098, 0.341176)
- Clearb.BackgroundTransparency = 1
- Clearb.BorderSizePixel = 0
- Clearb.Position = UDim2.new(1.04700005, -106, 1.25999999, -79)
- Clearb.Size = UDim2.new(0, 86, 0, 34)
- Clearb.Image = "rbxassetid://2877881750"
- Clearb.ImageColor3 = Color3.new(0.121569, 0.121569, 0.121569)
- Clearb.ScaleType = Enum.ScaleType.Slice
- Clearb.SliceCenter = Rect.new(6, 6, 494, 494)
- Cb.Name = "Cb"
- Cb.Parent = Clearb
- Cb.BackgroundColor3 = Color3.new(1, 1, 1)
- Cb.BackgroundTransparency = 1
- Cb.Size = UDim2.new(0, 86, 0, 34)
- Cb.Font = Enum.Font.GothamSemibold
- Cb.Text = "Clear Base"
- Cb.TextColor3 = Color3.new(1, 1, 1)
- Cb.TextSize = 11
- Cb.MouseButton1Down:connect(function()
- for i, e in pairs(game.Workspace.PlayerModels:GetChildren()) do
- if e:FindFirstChild("Owner") and e.Owner.Value ~= nil and e.Owner.Value == game.Players[game.Players.LocalPlayer.Name] and e:FindFirstChild("ItemName") and e:FindFirstChild("Type") and (e.PrimaryPart ~= nil or e:FindFirstChild("MainCFrame")) then
- game.ReplicatedStorage.Interaction.DestroyStructure:FireServer(e)
- end
- end
- end)
- --buttons
- Cb.MouseEnter:connect(function()
- newtween(Clearb,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Cb,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Make.MouseEnter:connect(function()
- newtween(MakeWall,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Make,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Cb.MouseButton1Down:connect(function()
- newtween(Clearb,{ImageColor3 = Color3.fromRGB(185,185,185)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Cb,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Make.MouseButton1Down:connect(function()
- newtween(MakeWall,{ImageColor3 = Color3.fromRGB(185,185,185)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Make,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Cb.MouseButton1Up:connect(function()
- newtween(Clearb,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Cb,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Make.MouseButton1Up:connect(function()
- newtween(MakeWall,{ImageColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Make,{TextColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Cb.MouseLeave:connect(function()
- newtween(Clearb,{ImageColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Cb,{TextColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Make.MouseLeave:connect(function()
- newtween(MakeWall,{ImageColor3 = Color3.fromRGB(31,31,31)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- newtween(Make,{TextColor3 = Color3.fromRGB(255,255,255)},0.3,Enum.EasingStyle.Sine,Enum.EasingDirection.In);
- end)
- Make.MouseButton1Down:connect(function()
- local height = Hval.Text
- for i = 1, 50 do
- for e = 1, height do
- local A_1 = "Wall2Tall"
- local A_2 = CFrame.new(170 - (i*4), -8.199999809 + (e*8), -89.5, -1, -7.99715849e-08, -9.61688102e-07, -9.48740535e-08, 1, -1.51793438e-06, -9.61688102e-07, 1.34308857e-06, -1)
- local A_3 = game:GetService("Players").LocalPlayer
- local Event = game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint
- Event:FireServer(A_1, A_2, A_3)
- wait ()
- end
- end
- for i = 1, 50 do
- for e = 1, height do
- local A_1 = "Wall2Tall"
- local A_2 = CFrame.new(-31.5, -8.199999809 + (e*8), -87 - (i*4), -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
- local A_3 = game:GetService("Players").LocalPlayer
- local Event = game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint
- Event:FireServer(A_1, A_2, A_3)
- wait ()
- end
- end
- for i = 1, 50 do
- for e = 1, height do
- local A_1 = "Wall2Tall"
- local A_2 = CFrame.new(-34 + (i*4), -8.199999809 + (e*8), -288.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local A_3 = game:GetService("Players").LocalPlayer
- local Event = game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint
- Event:FireServer(A_1, A_2, A_3)
- wait ()
- end
- end
- for i = 1, 50 do
- for e = 1, height do
- local A_1 = "Wall2Tall"
- local A_2 = CFrame.new(167.5, -8.199999809 + (e*8), -291 + (i*4), -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
- local A_3 = game:GetService("Players").LocalPlayer
- local Event = game:GetService("ReplicatedStorage").PlaceStructure.ClientPlacedBlueprint
- Event:FireServer(A_1, A_2, A_3)
- wait ()
- end
- end
- for i,v in next,workspace.PlayerModels:GetChildren() do
- if v:FindFirstChild("Type") and v.Type.Value == "Blueprint" and (v.Owner.Value == game.Players.LocalPlayer or game.ReplicatedStorage.Interaction.ClientIsWhitelisted:InvokeServer(v.Owner.Value)) then
- game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure:FireServer(v.ItemName.Value, v.Main.CFrame, game.Players.LocalPlayer, Wval.Text, v, false)
- end;
- end;
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement