Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:GetService("Players")
- local me = plr.LocalPlayer
- local hum = me.Character.Humanoid
- local hrp = me.Character.HumanoidRootPart
- local work = game:GetService("Workspace")
- local mouse = me:GetMouse()
- local tp = mouse.Hit + Vector3.new(0,2.5,0)
- local bmouse = me:GetMouse()
- local screen = Instance.new("ScreenGui")
- screen.Name = "ColMat"
- screen.Parent = me.PlayerGui
- screen.Enabled = false
- local creen = Instance.new("ScreenGui")
- creen.Name = "Anchor"
- creen.Parent = me.PlayerGui
- creen.Enabled = false
- local dreen = Instance.new("ScreenGui")
- dreen.Parent = me.PlayerGui
- dreen.Name = "ClearAll"
- dreen.Enabled = false
- local ancreen = Instance.new("ScreenGui")
- ancreen.Parent = me.PlayerGui
- ancreen.Name = "AnchorToggler"
- ancreen.Enabled = false
- local anrame = Instance.new("Frame")
- anrame.Parent = ancreen
- anrame.Size = UDim2.new(0,150,0,50)
- anrame.BackgroundColor3 = Color3.fromRGB(65,65,65)
- anrame.BackgroundTransparency = 0.4
- anrame.Position = UDim2.new(0,10,0,890)
- anrame.Active = true
- anrame.Draggable = true
- local antog = Instance.new("TextLabel")
- antog.Text = "Anchor Toggler"
- antog.Parent = anrame
- antog.TextColor3 = Color3.fromRGB(255, 255, 255)
- antog.Size = UDim2.new(0,140,0,30)
- antog.Position = UDim2.new(0.03, 0, 0.175, 0)
- antog.TextSize = 18
- antog.Font = Enum.Font.GothamBold
- antog.BackgroundTransparency = 0.8
- local coreen = Instance.new("ScreenGui")
- coreen.Parent = me.PlayerGui
- coreen.Name = "Collision"
- coreen.Enabled = false
- local crame = Instance.new("Frame")
- crame.Parent = coreen
- crame.Size = UDim2.new(0,150,0,50)
- crame.BackgroundColor3 = Color3.fromRGB(65,65,65)
- crame.BackgroundTransparency = 0.4
- crame.Position = UDim2.new(0,10,0,890)
- crame.Active = true
- crame.Draggable = true
- local colbtn = Instance.new("TextLabel")
- colbtn.Text = "Collision Toggler"
- colbtn.Parent = crame
- colbtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- colbtn.Size = UDim2.new(0,140,0,30)
- colbtn.Position = UDim2.new(0.03, 0, 0.175, 0)
- colbtn.TextSize = 18
- colbtn.Font = Enum.Font.GothamBold
- colbtn.BackgroundTransparency = 0.8
- local drame = Instance.new("Frame")
- drame.Parent = dreen
- drame.Size = UDim2.new(0,150,0,50)
- drame.BackgroundColor3 = Color3.fromRGB(65,65,65)
- drame.BackgroundTransparency = 0.4
- drame.Position = UDim2.new(0,10,0,890)
- drame.Active = true
- drame.Draggable = true
- local clrbtn = Instance.new("TextButton")
- clrbtn.Text = "Clear All"
- clrbtn.Parent = drame
- clrbtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- clrbtn.Size = UDim2.new(0,110,0,30)
- clrbtn.Position = UDim2.new(0.13, 0, 0.175, 0)
- clrbtn.TextSize = 18
- clrbtn.Font = Enum.Font.GothamBold
- clrbtn.BackgroundTransparency = 0.8
- local aframe = Instance.new("Frame")
- aframe.Parent = creen
- aframe.Size = UDim2.new(0,300,0,100)
- aframe.BackgroundColor3 = Color3.fromRGB(65,65,65)
- aframe.BackgroundTransparency = 0.4
- aframe.Position = UDim2.new(0,10,0,840)
- aframe.Active = true
- aframe.Draggable = true
- local anclab = Instance.new("TextLabel")
- anclab.Parent = aframe
- anclab.BackgroundTransparency = 1
- anclab.BorderSizePixel = 0
- anclab.Text = "Anchor /\nUnanchor\nAll"
- anclab.TextSize = 18
- anclab.TextColor3 = Color3.fromRGB(255,255,255)
- anclab.Position = UDim2.new(0.3,0,0.5,0)
- local ancbtn = Instance.new("TextButton")
- ancbtn.Text = "true"
- ancbtn.Parent = aframe
- ancbtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- ancbtn.Size = UDim2.new(0,95,0,30)
- ancbtn.Position = UDim2.new(0.58, 0, 0.35, 0)
- ancbtn.TextSize = 18
- ancbtn.Font = Enum.Font.GothamBold
- ancbtn.BackgroundTransparency = 0.8
- local treen = Instance.new("ScreenGui")
- treen.Parent = me.PlayerGui
- treen.Name = "TransparencyToggler"
- treen.Enabled = false
- local trame = Instance.new("Frame")
- trame.Parent = treen
- trame.Size = UDim2.new(0,200,0,50)
- trame.BackgroundColor3 = Color3.fromRGB(65,65,65)
- trame.BackgroundTransparency = 0.4
- trame.Position = UDim2.new(0,10,0,890)
- trame.Active = true
- trame.Draggable = true
- local trext = Instance.new("TextBox")
- trext.Text = ""
- trext.PlaceholderText = "Transparency Toggler"
- trext.Parent = trame
- trext.TextColor3 = Color3.fromRGB(255, 255, 255)
- trext.Size = UDim2.new(0,188,0,30)
- trext.Position = UDim2.new(0.03, 0, 0.175, 0)
- trext.TextSize = 18
- trext.Font = Enum.Font.GothamBold
- trext.BackgroundTransparency = 0.8
- local paint = Instance.new("Frame")
- paint.Parent = screen
- paint.Size = UDim2.new(0,400,0,400)
- paint.BackgroundColor3 = Color3.fromRGB(65,65,65)
- paint.BackgroundTransparency = 0.4
- paint.Position = UDim2.new(0,10,0,540)
- paint.Active = true
- paint.Draggable = true
- local cbtn = Instance.new("TextButton")
- cbtn.Text = ""
- cbtn.Parent = paint
- cbtn.BackgroundColor3 = Color3.fromRGB(255,0,0)
- cbtn.Size = UDim2.new(0,35,0,35)
- cbtn.Position = UDim2.new(0.05, 0, 0.2, 0)
- local cbtn2 = Instance.new("TextButton")
- cbtn2.Text = ""
- cbtn2.Parent = paint
- cbtn2.BackgroundColor3 = Color3.fromRGB(255,165,0)
- cbtn2.Size = UDim2.new(0,35,0,35)
- cbtn2.Position = UDim2.new(0.18, 0, 0.2, 0)
- local cbtn3 = Instance.new("TextButton")
- cbtn3.Text = ""
- cbtn3.Parent = paint
- cbtn3.BackgroundColor3 = Color3.fromRGB(255,255,0)
- cbtn3.Size = UDim2.new(0,35,0,35)
- cbtn3.Position = UDim2.new(0.31, 0, 0.2, 0)
- local cbtn4 = Instance.new("TextButton")
- cbtn4.Text = ""
- cbtn4.Parent = paint
- cbtn4.BackgroundColor3 = Color3.fromRGB(0,255,0)
- cbtn4.Size = UDim2.new(0,35,0,35)
- cbtn4.Position = UDim2.new(0.44, 0, 0.2, 0)
- local cbtn5 = Instance.new("TextButton")
- cbtn5.Text = ""
- cbtn5.Parent = paint
- cbtn5.BackgroundColor3 = Color3.fromRGB(0,255,255)
- cbtn5.Size = UDim2.new(0,35,0,35)
- cbtn5.Position = UDim2.new(0.57, 0, 0.2, 0)
- local cbtn6 = Instance.new("TextButton")
- cbtn6.Text = ""
- cbtn6.Parent = paint
- cbtn6.BackgroundColor3 = Color3.fromRGB(0,0,255)
- cbtn6.Size = UDim2.new(0,35,0,35)
- cbtn6.Position = UDim2.new(0.70, 0, 0.2, 0)
- local cbtn7 = Instance.new("TextButton")
- cbtn7.Text = ""
- cbtn7.Parent = paint
- cbtn7.BackgroundColor3 = Color3.fromRGB(145,0,200)
- cbtn7.Size = UDim2.new(0,35,0,35)
- cbtn7.Position = UDim2.new(0.83, 0, 0.2, 0)
- local mbtn = Instance.new("TextButton")
- mbtn.Text = "Plastic"
- mbtn.Parent = paint
- mbtn.BackgroundColor3 = Color3.fromRGB(161, 161, 161)
- mbtn.Size = UDim2.new(0,65,0,35)
- mbtn.Position = UDim2.new(0.1, 0, 0.35, 0)
- mbtn.TextSize = 12
- local mbtn2 = Instance.new("TextButton")
- mbtn2.Text = "Smooth"
- mbtn2.Parent = paint
- mbtn2.BackgroundColor3 = Color3.fromRGB(255, 214, 214)
- mbtn2.Size = UDim2.new(0,65,0,35)
- mbtn2.Position = UDim2.new(0.30, 0, 0.35, 0)
- mbtn2.TextSize = 12
- local mbtn3 = Instance.new("TextButton")
- mbtn3.Text = "Wood"
- mbtn3.Parent = paint
- mbtn3.BackgroundColor3 = Color3.fromRGB(120, 54, 24)
- mbtn3.Size = UDim2.new(0,65,0,35)
- mbtn3.Position = UDim2.new(0.50, 0, 0.35, 0)
- mbtn3.TextSize = 12
- local mbtn4 = Instance.new("TextButton")
- mbtn4.Text = "Ice"
- mbtn4.Parent = paint
- mbtn4.BackgroundColor3 = Color3.fromRGB(123, 221, 224)
- mbtn4.Size = UDim2.new(0,65,0,35)
- mbtn4.Position = UDim2.new(0.70, 0, 0.35, 0)
- mbtn4.TextSize = 12
- local mbtn5 = Instance.new("TextButton")
- mbtn5.Text = "Brick"
- mbtn5.Parent = paint
- mbtn5.BackgroundColor3 = Color3.fromRGB(168, 40, 40)
- mbtn5.Size = UDim2.new(0,65,0,35)
- mbtn5.Position = UDim2.new(0.1, 0, 0.45, 0)
- mbtn5.TextSize = 12
- local mbtn6 = Instance.new("TextButton")
- mbtn6.Text = "Grass"
- mbtn6.Parent = paint
- mbtn6.BackgroundColor3 = Color3.fromRGB(0, 161, 0)
- mbtn6.Size = UDim2.new(0,65,0,35)
- mbtn6.Position = UDim2.new(0.30, 0, 0.45, 0)
- mbtn6.TextSize = 12
- local mbtn7 = Instance.new("TextButton")
- mbtn7.Text = "Glass"
- mbtn7.Parent = paint
- mbtn7.BackgroundColor3 = Color3.fromRGB(173, 202, 204)
- mbtn7.Size = UDim2.new(0,65,0,35)
- mbtn7.Position = UDim2.new(0.50, 0, 0.45, 0)
- mbtn7.TextSize = 12
- local mbtn8 = Instance.new("TextButton")
- mbtn8.Text = "Metal"
- mbtn8.Parent = paint
- mbtn8.BackgroundColor3 = Color3.fromRGB(163, 151, 145)
- mbtn8.Size = UDim2.new(0,65,0,35)
- mbtn8.Position = UDim2.new(0.70, 0, 0.45, 0)
- mbtn8.TextSize = 12
- local mbtn9 = Instance.new("TextButton")
- mbtn9.Text = "Neon"
- mbtn9.Parent = paint
- mbtn9.BackgroundColor3 = Color3.fromRGB(255, 0, 255)
- mbtn9.Size = UDim2.new(0,65,0,35)
- mbtn9.Position = UDim2.new(0.40, 0, 0.55, 0)
- mbtn9.TextSize = 12
- local credits = Instance.new("TextLabel")
- credits.Parent = paint
- credits.Text = "Made by x0y0zkidd"
- credits.BackgroundTransparency = 1
- credits.TextSize = 24
- credits.TextColor3 = Color3.fromRGB(255,255,255)
- credits.Size = UDim2.new(0,50,0,20)
- credits.BorderSizePixel = 0
- credits.Position = UDim2.new(0.43, 0, 0.75,0)
- local status = Instance.new("TextLabel")
- status.Parent = paint
- status.Text = "Choose"
- status.BackgroundTransparency = 1
- status.TextSize = 12
- status.TextColor3 = Color3.fromRGB(255,255,255)
- status.Size = UDim2.new(0,50,0,20)
- status.BorderSizePixel = 0
- status.Position = UDim2.new(0.43, 0, 0.08,0)
- local tool = Instance.new("Tool")
- tool.RequiresHandle = false
- tool.Name = "Build"
- tool.Parent = me.Backpack
- local dtool = Instance.new("Tool")
- dtool.RequiresHandle = false
- dtool.Name = "Delete"
- dtool.Parent = me.Backpack
- local ptool = Instance.new("Tool")
- ptool.RequiresHandle = false
- ptool.Name = "Paint"
- ptool.Parent = me.Backpack
- local anctool = Instance.new("Tool")
- anctool.RequiresHandle = false
- anctool.Parent = me.Backpack
- anctool.Name = "Anchor"
- local ctool = Instance.new("Tool")
- ctool.RequiresHandle = false
- ctool.Parent = me.Backpack
- ctool.Name = "Collision"
- local ttool = Instance.new("Tool")
- ttool.RequiresHandle = false
- ttool.Parent = me.Backpack
- ttool.Name = "Transparency"
- tool.Equipped:Connect(function()
- creen.Enabled = true
- local block = Instance.new("Part")
- block.Name = "blockEx"
- block.Parent = game.Workspace
- block.CanCollide = false
- block.Anchored = true
- block.Transparency = 0.5
- block.Size = Vector3.new(2,2,2)
- block.Material = Enum.Material.SmoothPlastic
- block.Color = Color3.fromRGB(255,255,255)
- block.CanQuery = false
- local con
- con = game:GetService("RunService").RenderStepped:Connect(function()
- local btp = mouse.Hit.p + Vector3.new(0,0,0)
- block.CFrame = CFrame.new(btp)
- end)
- end)
- tool.Activated:Connect(function()
- print("Tool")
- local dtp = bmouse.Hit.p + Vector3.new(0,0,0)
- local nblock = Instance.new("Part")
- nblock.Parent = game.Workspace
- nblock.Size = Vector3.new(2,2,2)
- nblock.Name = "nblock"
- nblock.Material = work.blockEx.Material
- nblock.Anchored = true
- nblock.Transparency = 0
- nblock.CFrame = CFrame.new(dtp)
- nblock.Position = nblock.Position + Vector3.new(0,1,0)
- anctool.Activated:Connect(function()
- if mouse.Target:IsA("BasePart") then
- if mouse.Target.Name == "nblock" then
- mouse.Target.Anchored = not mouse.Target.Anchored
- end
- end
- end)
- ancbtn.MouseButton1Click:Connect(function()
- nblock.Anchored = not nblock.Anchored
- if ancbtn.Text == "false" then
- ancbtn.Text = "true"
- elseif ancbtn.Text == "true" then
- ancbtn.Text = "false"
- end
- end)
- clrbtn.MouseButton1Click:Connect(function()
- for _, all in pairs(work:GetDescendants()) do
- if all:IsA("BasePart") then
- if all.Name == "nblock" then
- all:Destroy()
- end
- end
- end
- end)
- ctool.Activated:Connect(function()
- if mouse.Target:IsA("BasePart") then
- if mouse.Target.Name == "nblock" then
- if mouse.Target.CanCollide then
- mouse.Target.CanCollide = false
- else
- mouse.Target.CanCollide = true
- end
- end
- end
- end)
- ttool.Activated:Connect(function()
- if mouse.Target:IsA("BasePart") then
- if mouse.Target.Name == "nblock" then
- mouse.Target.Transparency = trext.Text
- end
- end
- end)
- ptool.Activated:Connect(function()
- if mouse.Target:IsA("BasePart") then
- if mouse.Target.Name == "nblock" then
- if status.Text == "Red" then
- mouse.Target.Color = status.TextColor3
- block.Color = status.TextColor3
- elseif status.Text == "Orange" then
- mouse.Target.Color = status.TextColor3
- elseif status.Text == "Yellow" then
- mouse.Target.Color = status.TextColor3
- elseif status.Text == "Green" then
- mouse.Target.Color = status.TextColor3
- elseif status.Text == "Cyan" then
- mouse.Target.Color = status.TextColor3
- elseif status.Text == "Blue" then
- mouse.Target.Color = status.TextColor3
- elseif status.Text == "Purple" then
- mouse.Target.Color = status.TextColor3
- elseif status.Text == "Plastic" then
- mouse.Target.Material = Enum.Material.Plastic
- mouse.Target.Transparency = trext.Text
- elseif status.Text == "Smooth" then
- mouse.Target.Material = Enum.Material.SmoothPlastic
- mouse.Target.Transparency = trext.Text
- elseif status.Text == "Wood" then
- mouse.Target.Material = Enum.Material.Wood
- mouse.Target.Transparency = trext.Text
- elseif status.Text == "Ice" then
- mouse.Target.Material = Enum.Material.Ice
- mouse.Target.Transparency = trext.Text
- elseif status.Text == "Brick" then
- mouse.Target.Material = Enum.Material.Brick
- mouse.Target.Transparency = trext.Text
- elseif status.Text == "Grass" then
- mouse.Target.Material = Enum.Material.Grass
- mouse.Target.Transparency = trext.Text
- elseif status.Text == "Glass" then
- mouse.Target.Material = Enum.Material.Glass
- mouse.Target.Transparency = 0.5
- elseif status.Text == "Metal" then
- mouse.Target.Material = Enum.Material.DiamondPlate
- mouse.Target.Transparency = trext.Text
- elseif status.Text == "Neon" then
- mouse.Target.Material = Enum.Material.Neon
- mouse.Target.Transparency = trext.Text
- end
- end
- end
- end)
- end)
- tool.Unequipped:Connect(function()
- creen.Enabled = false
- work:WaitForChild("blockEx"):Destroy()
- end)
- dtool.Equipped:Connect(function()
- dreen.Enabled = true
- end)
- dtool.Unequipped:Connect(function()
- dreen.Enabled = false
- end)
- dtool.Activated:Connect(function()
- if mouse.Target:IsA("BasePart") then
- if mouse.Target.Name == "nblock" then
- mouse.Target:Destroy()
- end
- end
- end)
- ptool.Equipped:Connect(function()
- screen.Enabled = true
- end)
- ptool.Unequipped:Connect(function()
- screen.Enabled = false
- end)
- ctool.Equipped:Connect(function()
- coreen.Enabled = true
- end)
- ctool.Unequipped:Connect(function()
- coreen.Enabled = false
- end)
- anctool.Unequipped:Connect(function()
- ancreen.Enabled = false
- end)
- anctool.Equipped:Connect(function()
- ancreen.Enabled = true
- end)
- ttool.Equipped:Connect(function()
- treen.Enabled = true
- end)
- ttool.Unequipped:Connect(function()
- treen.Enabled = false
- end)
- cbtn.MouseButton1Click:Connect(function()
- status.TextColor3 = cbtn.BackgroundColor3
- status.Text = "Red"
- end)
- cbtn2.MouseButton1Click:Connect(function()
- status.TextColor3 = cbtn2.BackgroundColor3
- status.Text = "Orange"
- end)
- cbtn3.MouseButton1Click:Connect(function()
- status.TextColor3 = cbtn3.BackgroundColor3
- status.Text = "Yellow"
- end)
- cbtn4.MouseButton1Click:Connect(function()
- status.TextColor3 = cbtn4.BackgroundColor3
- status.Text = "Green"
- end)
- cbtn5.MouseButton1Click:Connect(function()
- status.TextColor3 = cbtn5.BackgroundColor3
- status.Text = "Cyan"
- end)
- cbtn6.MouseButton1Click:Connect(function()
- status.TextColor3 = cbtn6.BackgroundColor3
- status.Text = "Blue"
- end)
- cbtn7.MouseButton1Click:Connect(function()
- status.TextColor3 = cbtn7.BackgroundColor3
- status.Text = "Purple"
- end)
- mbtn.MouseButton1Click:Connect(function()
- status.TextColor3 = mbtn.BackgroundColor3
- status.Text = mbtn.Text
- end)
- mbtn2.MouseButton1Click:Connect(function()
- status.TextColor3 = mbtn2.BackgroundColor3
- status.Text = mbtn2.Text
- end)
- mbtn3.MouseButton1Click:Connect(function()
- status.TextColor3 = mbtn3.BackgroundColor3
- status.Text = mbtn3.Text
- end)
- mbtn4.MouseButton1Click:Connect(function()
- status.TextColor3 = mbtn4.BackgroundColor3
- status.Text = mbtn4.Text
- end)
- mbtn5.MouseButton1Click:Connect(function()
- status.TextColor3 = mbtn5.BackgroundColor3
- status.Text = mbtn5.Text
- end)
- mbtn6.MouseButton1Click:Connect(function()
- status.TextColor3 = mbtn6.BackgroundColor3
- status.Text = mbtn6.Text
- end)
- mbtn7.MouseButton1Click:Connect(function()
- status.TextColor3 = mbtn7.BackgroundColor3
- status.Text = mbtn7.Text
- end)
- mbtn8.MouseButton1Click:Connect(function()
- status.TextColor3 = mbtn8.BackgroundColor3
- status.Text = mbtn8.Text
- end)
- mbtn9.MouseButton1Click:Connect(function()
- status.TextColor3 = mbtn9.BackgroundColor3
- status.Text = mbtn9.Text
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement