Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- SmartBtools
- -- By vi#1606
- local SmartBtools = Instance.new("ScreenGui")
- local notification = Instance.new("Frame")
- local message = Instance.new("TextLabel")
- SmartBtools.Name = "SmartBtools"
- SmartBtools.Parent = game.CoreGui
- SmartBtools.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- notification.Name = "notification"
- notification.Parent = SmartBtools
- notification.BackgroundColor3 = Color3.fromRGB(34, 33, 33)
- notification.BorderSizePixel = 0
- notification.Position = UDim2.new(0.0153597416, 0, 0.969899654, -109)
- notification.Size = UDim2.new(0, 453, 0, 109)
- notification.Visible = false
- message.Name = "message"
- message.Parent = notification
- message.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- message.BackgroundTransparency = 1.000
- message.Size = UDim2.new(0, 453, 0, 109)
- message.Font = Enum.Font.SourceSansSemibold
- message.Text = "{}"
- message.TextColor3 = Color3.fromRGB(255, 255, 255)
- message.TextSize = 27.000
- local mode = "transparency";
- local disabled = false
- local items = {}
- local function AGVQI_fake_script()
- local script = Instance.new('LocalScript', SmartBtools)
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local objects = game.Workspace:GetDescendants()
- local boxes;
- local function notify(message)
- script.Parent.notification.Visible = true;
- script.Parent.notification.message.Text = message
- wait(5)
- script.Parent.notification.Visible = false
- end
- notify("SmartBtools by vi#1606\nCurrent mode: Transparency\nTo change modes press 'e'\nTo disable/enable press 'r'")
- local function refresh()
- for i, object in pairs(objects) do
- if object:IsA("Part") or object:IsA("MeshPart") then
- local mainHover = Instance.new("SelectionBox")
- mainHover.Name = "mainHover"
- table.insert(items, mainHover)
- local ClickDetector = Instance.new("ClickDetector")
- table.insert(items, ClickDetector)
- ClickDetector.Name = "mainDetect"
- mainHover.Parent = object
- mainHover.Adornee = object
- mainHover.Visible = false;
- ClickDetector.Parent = object;
- ClickDetector.MouseClick:Connect(function()
- if mode == "transparency" and disabled == false then
- if object.Transparency ~= 0.5 and object.CanCollide == true then
- object.Transparency = 0.5
- object.CanCollide = false
- else
- object.Transparency = 0;
- object.CanCollide = true
- end
- elseif mode == "destroy" and disabled == false then
- object:Destroy()
- end
- end)
- ClickDetector.MouseHoverEnter:Connect(function()
- mainHover.Visible = true
- end)
- ClickDetector.MouseHoverLeave:Connect(function()
- mainHover.Visible = false
- end)
- end
- end
- end
- mouse.KeyDown:Connect(function(key)
- if key == "e" then
- if mode == "transparency" then
- mode = "destroy"
- notify("Mode changed to: Destroy")
- elseif mode == "destroy" then
- mode = "transparency"
- notify("Mode changed to: Transparency")
- end
- elseif key == "r" then
- if disabled == false then
- disabled = true
- notify("Disabled SmartBtools")
- for i,v in pairs(items) do
- v:Destroy()
- end
- items = {}
- elseif disabled == true then
- disabled = false
- notify("Enabled SmartBtools")
- refresh()
- end
- end
- end)
- refresh()
- end
- coroutine.wrap(AGVQI_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement