Advertisement
koolusername

betterBtools

Jan 28th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.89 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.1
  3.  
  4. -- Instances:
  5.  
  6. local BetterBtools = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local px = Instance.new("TextBox")
  10. local done = Instance.new("TextButton")
  11. local py = Instance.new("TextBox")
  12. local addx = Instance.new("TextButton")
  13. local minx = Instance.new("TextButton")
  14. local py_2 = Instance.new("TextBox")
  15. local addy = Instance.new("TextButton")
  16. local miny = Instance.new("TextButton")
  17. local addz = Instance.new("TextButton")
  18. local minz = Instance.new("TextButton")
  19. local TextLabel_2 = Instance.new("TextLabel")
  20. local frame2 = Instance.new("Frame")
  21. local eds = Instance.new("TextButton")
  22. local edp = Instance.new("TextButton")
  23. --Properties:
  24.  
  25. BetterBtools.Name = "BetterBtools"
  26. BetterBtools.Parent = game.CoreGui
  27. BetterBtools.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  28.  
  29. Frame.Parent = BetterBtools
  30. Frame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  31. Frame.Position = UDim2.new(0, 0, 0.215719014, 0)
  32. Frame.Size = UDim2.new(0, 313, 0, 246)
  33.  
  34. TextLabel.Parent = Frame
  35. TextLabel.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  36. TextLabel.BorderSizePixel = 0
  37. TextLabel.Size = UDim2.new(0, 313, 0, 32)
  38. TextLabel.Font = Enum.Font.SourceSans
  39. TextLabel.Text = "BetterBtools"
  40. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  41. TextLabel.TextScaled = true
  42. TextLabel.TextSize = 14.000
  43. TextLabel.TextWrapped = true
  44.  
  45. px.Name = "px"
  46. px.Parent = Frame
  47. px.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  48. px.BorderSizePixel = 0
  49. px.Position = UDim2.new(0, 0, 0.127220705, 0)
  50. px.Size = UDim2.new(0, 96, 0, 33)
  51. px.Font = Enum.Font.SourceSans
  52. px.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  53. px.PlaceholderText = "Part Size (X)"
  54. px.Text = ""
  55. px.TextColor3 = Color3.fromRGB(255, 255, 255)
  56. px.TextScaled = true
  57. px.TextSize = 14.000
  58. px.TextWrapped = true
  59.  
  60. done.Name = "done"
  61. done.Parent = Frame
  62. done.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  63. done.BorderSizePixel = 0
  64. done.Position = UDim2.new(0.354632616, 0, 0.864347994, 0)
  65. done.Size = UDim2.new(0, 90, 0, 33)
  66. done.Font = Enum.Font.SourceSans
  67. done.Text = "Done"
  68. done.TextColor3 = Color3.fromRGB(255, 255, 255)
  69. done.TextScaled = true
  70. done.TextSize = 14.000
  71. done.TextWrapped = true
  72.  
  73. py.Name = "py"
  74. py.Parent = Frame
  75. py.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  76. py.BorderSizePixel = 0
  77. py.Position = UDim2.new(0.345047921, 0, 0.127220705, 0)
  78. py.Size = UDim2.new(0, 96, 0, 33)
  79. py.Font = Enum.Font.SourceSans
  80. py.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  81. py.PlaceholderText = "Part Size (Y)"
  82. py.Text = ""
  83. py.TextColor3 = Color3.fromRGB(255, 255, 255)
  84. py.TextScaled = true
  85. py.TextSize = 14.000
  86. py.TextWrapped = true
  87.  
  88. addx.Name = "addx"
  89. addx.Parent = Frame
  90. addx.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  91. addx.BorderSizePixel = 0
  92. addx.Position = UDim2.new(2.98023224e-08, 0, 0.287112236, 0)
  93. addx.Size = UDim2.new(0, 90, 0, 33)
  94. addx.Font = Enum.Font.SourceSans
  95. addx.Text = "Add 1"
  96. addx.TextColor3 = Color3.fromRGB(255, 255, 255)
  97. addx.TextScaled = true
  98. addx.TextSize = 14.000
  99. addx.TextWrapped = true
  100.  
  101. minx.Name = "minx"
  102. minx.Parent = Frame
  103. minx.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  104. minx.BorderSizePixel = 0
  105. minx.Position = UDim2.new(0.00638980605, 0, 0.490364254, 0)
  106. minx.Size = UDim2.new(0, 90, 0, 33)
  107. minx.Font = Enum.Font.SourceSans
  108. minx.Text = "Minus 1"
  109. minx.TextColor3 = Color3.fromRGB(255, 255, 255)
  110. minx.TextScaled = true
  111. minx.TextSize = 14.000
  112. minx.TextWrapped = true
  113.  
  114. py_2.Name = "py"
  115. py_2.Parent = Frame
  116. py_2.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  117. py_2.BorderSizePixel = 0
  118. py_2.Position = UDim2.new(0.69329071, 0, 0.127220705, 0)
  119. py_2.Size = UDim2.new(0, 96, 0, 33)
  120. py_2.Font = Enum.Font.SourceSans
  121. py_2.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  122. py_2.PlaceholderText = "Part Size (Z)"
  123. py_2.Text = ""
  124. py_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  125. py_2.TextScaled = true
  126. py_2.TextSize = 14.000
  127. py_2.TextWrapped = true
  128.  
  129. addy.Name = "addy"
  130. addy.Parent = Frame
  131. addy.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  132. addy.BorderSizePixel = 0
  133. addy.Position = UDim2.new(0.357827514, 0, 0.287112236, 0)
  134. addy.Size = UDim2.new(0, 90, 0, 33)
  135. addy.Font = Enum.Font.SourceSans
  136. addy.Text = "Add 1"
  137. addy.TextColor3 = Color3.fromRGB(255, 255, 255)
  138. addy.TextScaled = true
  139. addy.TextSize = 14.000
  140. addy.TextWrapped = true
  141.  
  142. miny.Name = "miny"
  143. miny.Parent = Frame
  144. miny.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  145. miny.BorderSizePixel = 0
  146. miny.Position = UDim2.new(0.364217281, 0, 0.490364254, 0)
  147. miny.Size = UDim2.new(0, 90, 0, 33)
  148. miny.Font = Enum.Font.SourceSans
  149. miny.Text = "Minus 1"
  150. miny.TextColor3 = Color3.fromRGB(255, 255, 255)
  151. miny.TextScaled = true
  152. miny.TextSize = 14.000
  153. miny.TextWrapped = true
  154.  
  155. addz.Name = "addz"
  156. addz.Parent = Frame
  157. addz.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  158. addz.BorderSizePixel = 0
  159. addz.Position = UDim2.new(0.706070304, 0, 0.287112236, 0)
  160. addz.Size = UDim2.new(0, 90, 0, 33)
  161. addz.Font = Enum.Font.SourceSans
  162. addz.Text = "Add 1"
  163. addz.TextColor3 = Color3.fromRGB(255, 255, 255)
  164. addz.TextScaled = true
  165. addz.TextSize = 14.000
  166. addz.TextWrapped = true
  167.  
  168. minz.Name = "minz"
  169. minz.Parent = Frame
  170. minz.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  171. minz.BorderSizePixel = 0
  172. minz.Position = UDim2.new(0.712460101, 0, 0.490364254, 0)
  173. minz.Size = UDim2.new(0, 90, 0, 33)
  174. minz.Font = Enum.Font.SourceSans
  175. minz.Text = "Minus 1"
  176. minz.TextColor3 = Color3.fromRGB(255, 255, 255)
  177. minz.TextScaled = true
  178. minz.TextSize = 14.000
  179. minz.TextWrapped = true
  180. --[[
  181. TextLabel_2.Parent = BetterBtools
  182. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  183. TextLabel_2.BackgroundTransparency = 1.000
  184. TextLabel_2.Position = UDim2.new(0, 0, 0.125, 0)
  185. TextLabel_2.Size = UDim2.new(0, 200, 0, 32)
  186. TextLabel_2.Font = Enum.Font.SourceSans
  187. --TextLabel_2.Text = "Press on a part to edit it (Press B)\n C to toggle part position( Toggle everything with N)"
  188. TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  189. TextLabel_2.TextSize = 25.000
  190. TextLabel_2.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  191. TextLabel_2.TextStrokeTransparency = 0.000
  192. TextLabel_2.TextXAlignment = Enum.TextXAlignment.Left
  193. TextLabel_2.TextYAlignment = Enum.TextYAlignment.Top
  194. --]]
  195.  
  196. frame2.Name = "frame2"
  197. frame2.Parent = BetterBtools
  198. frame2.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  199. frame2.BorderColor3 = Color3.fromRGB(30, 30, 30)
  200. frame2.BorderSizePixel = 5
  201. frame2.Position = UDim2.new(0.00159999996, 0, 0.773526311, 0)
  202. frame2.Size = UDim2.new(0, 198, 0, 83)
  203. frame2.Active = true
  204. frame2.Draggable = true
  205. eds.Name = "eds"
  206. eds.Parent = frame2
  207. eds.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  208. eds.BorderSizePixel = 0
  209. eds.Position = UDim2.new(-0.00577194523, 0, 0.0924826488, 0)
  210. eds.Size = UDim2.new(0, 83, 0, 57)
  211. eds.Font = Enum.Font.SourceSans
  212. eds.Text = "Size (B to toggle GUI and N) OFF"
  213. eds.TextColor3 = Color3.fromRGB(255, 255, 255)
  214. eds.TextScaled = true
  215. eds.TextSize = 14.000
  216. eds.TextWrapped = true
  217.  
  218. edp.Name = "edp"
  219. edp.Parent = frame2
  220. edp.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  221. edp.BorderSizePixel = 0
  222. edp.Position = UDim2.new(0.532467484, 0, 0.0884099826, 0)
  223. edp.Size = UDim2.new(0, 83, 0, 57)
  224. edp.Font = Enum.Font.SourceSans
  225. edp.Text = "Position (N to toggle) OFF"
  226. edp.TextColor3 = Color3.fromRGB(255, 255, 255)
  227. edp.TextScaled = true
  228. edp.TextSize = 14.000
  229. edp.TextWrapped = true
  230.  
  231.  
  232. n = false
  233. c = true
  234. pz = py_2
  235.  
  236.  
  237.  
  238. local hightling = Instance.new("SelectionBox")
  239. hightling.Parent = game.Lighting
  240. local player = game.Players.LocalPlayer
  241. mouse = player:GetMouse()
  242.  
  243. Frame.Position = UDim2.new(-1,0,-0.5,0)
  244. an = false
  245. pcs = false
  246. mouse.Button1Down:Connect(function()
  247. part = mouse.Target
  248. if n == true then
  249. if c == true then
  250. hightling.Visible = true
  251. local selected2 = false
  252.  
  253. local b = false
  254. if b == false then
  255.  
  256.  
  257. hightling.Adornee = mouse.Target
  258. hightling.Parent = mouse.Target
  259.  
  260. nx = part.Size.X
  261. ny = part.Size.Y
  262. nz = part.Size.Z
  263. px.PlaceholderText = nx
  264. px.Text = nx
  265. py.PlaceholderText = ny
  266. py.Text = ny
  267. pz.PlaceholderText = nz
  268. pz.Text = nz
  269. Frame:TweenPosition(UDim2.new(0,0,0.316, 0),"Out","Quart",1,true)
  270. c = false
  271. end
  272. end
  273. end
  274.  
  275. end)
  276. addx.MouseButton1Down:Connect(function()
  277. nx = nx + 1
  278. px.Text = nx
  279. end)
  280. addy.MouseButton1Down:Connect(function()
  281. ny = ny + 1
  282. py.Text = ny
  283. end)
  284. addz.MouseButton1Down:Connect(function()
  285. nz = nz + 1
  286. pz.Text = nz
  287. end)
  288. minx.MouseButton1Down:Connect(function()
  289. nx = nx - 1
  290. px.Text = nx
  291. end)
  292. miny.MouseButton1Down:Connect(function()
  293. ny = ny - 1
  294. py.Text = ny
  295. end)
  296. minz.MouseButton1Down:Connect(function()
  297. nz = nz - 1
  298. pz.Text = nz
  299. end)
  300. done.MouseButton1Down:Connect(function()
  301. part.Size = Vector3.new(px.Text,py.Text,pz.Text)
  302. hightling.Visible = false
  303. f = false
  304. c = true
  305. Frame:TweenPosition(UDim2.new(-1,0,0.316, 0),"In","Quart",1,true)
  306. end)
  307. f = false
  308. mouse.KeyDown:connect(function(key)
  309.  
  310. if key == "b" then
  311. if n then
  312. if f == false then
  313. Frame:TweenPosition(UDim2.new(0,0,0.316, 0),"Out","Quart",1,true)
  314. f = true
  315. else
  316. Frame:TweenPosition(UDim2.new(-1,0,0.316, 0),"In","Quart",1,true)
  317. f = false
  318. end
  319. end
  320. end
  321. --[[
  322. if key == "n" then
  323. if n == false then
  324. n = true
  325. f = true
  326. c = false
  327. hightling.Visible = true
  328. eds.Text = "Size (B to toggle GUI and N) ON"
  329. else
  330. c = true
  331. Frame:TweenPosition(UDim2.new(-1,0,0.316, 0),"In","Quart",1,true)
  332. f = false
  333. hightling.Visible = false
  334. n = false
  335. eds.Text = "Size (B to toggle GUI and N) OFF"
  336. end
  337. end
  338. --]]
  339. end)
  340.  
  341. edp.MouseButton1Down:Connect(function()
  342.  
  343. if n2 == false then
  344. n2 = true
  345.  
  346. edp.Text = "Position (N to toggle) ON"
  347. else
  348. n2 = false
  349. edp.Text = "Position (N to toggle) OFF"
  350. end
  351. end)
  352. eds.MouseButton1Down:Connect(function()
  353. if n == false then
  354. n = true
  355. f = true
  356. c = false
  357. hightling.Visible = true
  358. eds.Text = "Size (B to toggle GUI and N) ON"
  359. else
  360. c = true
  361. Frame:TweenPosition(UDim2.new(-1,0,0.316, 0),"In","Quart",1,true)
  362. f = false
  363. hightling.Visible = false
  364. n = false
  365. eds.Text = "Size (B to toggle GUI and N) OFF"
  366. end
  367. end)
  368.  
  369.  
  370. --Other script
  371. lp = game.Players.LocalPlayer
  372. lplayer = lp
  373. ms = lp:GetMouse()
  374. --mouse = ms
  375. local Players = game:GetService("Players")
  376. local RunService = game:GetService("RunService")
  377.  
  378. -- grab local player
  379. local localPlayer = Players.LocalPlayer
  380.  
  381. -- create beam
  382. local beam = Instance.new("Beam")
  383. beam.Segments = 1
  384. beam.Width0 = 0.25
  385. beam.Width1 = 0.25
  386. beam.Color = ColorSequence.new(Color3.new(1, 1, 1))
  387. beam.FaceCamera = true
  388.  
  389. -- create attachments
  390. local attachment0 = Instance.new("Attachment")
  391. local attachment1 = Instance.new("Attachment")
  392. beam.Attachment0 = attachment0
  393. beam.Attachment1 = attachment1
  394.  
  395. -- parent attachments to Terrain
  396. beam.Parent = workspace.Terrain
  397. attachment0.Parent = workspace.Terrain
  398. attachment1.Parent = workspace.Terrain
  399.  
  400. -- grab the mouse
  401. --local mouse = localPlayer:GetMouse()
  402.  
  403. -- connect to RenderStepped (update every frame)
  404. n2 = false
  405. r2 = true
  406. local hightling2 = Instance.new("SelectionBox")
  407. hightling.Parent = game.Lighting
  408. ms.Button1Down:Connect(function()
  409. if n2 then
  410. r2 = true
  411. part1 = mouse.Target
  412. end
  413. --hi()
  414. end)
  415.  
  416.  
  417. ms.Button1Up:Connect(function()
  418. if n2 then
  419. r2 = false
  420. hightling.Visible = false
  421. --part1.Position = cl.Position
  422. part1.Position = mouse.Hit.p
  423. psave = mouse.Target.Position
  424. cl:Destroy()
  425. end
  426.  
  427. end)
  428.  
  429. po = ""
  430. mouse.Move:Connect(function()
  431. if n2 then
  432. if r2 then
  433. cl = Instance.new("Part",workspace)
  434. cl.Size = part1.Size
  435. -- cl.Position = part1.Position
  436. --cl.Position = mouse.Hit.p + Vector3.new(0,1,0)
  437. cl.Transparency = 0.4
  438. if part1.ClassName ~= "Union" then
  439. cl.Orientation = part1.Orientation
  440. po = cl.Orientation
  441. --elseif part1.ClassName == "Union" then
  442. end
  443. cl.Parent = game.Workspace
  444. cl.Material = part1.Material
  445. cl.Color = part1.Color
  446. cl.Reflectance = part1.Reflectance
  447. cl.Name ="bruhmoment"
  448. cl.CanCollide = false
  449. cl.Anchored = true
  450. hightling.Visible = true
  451. hightling2.Adornee = cl
  452. hightling2.Parent = workspace
  453. cl.Position = mouse.Hit.p + Vector3.new(0,1,0) --- part1.Position
  454.  
  455. end
  456. cl:Destroy()
  457. end
  458. end)
  459.  
  460. mouse.KeyDown:connect(function(key)
  461. if key == "r" then
  462. if n2 then
  463. mouse.Target.Rotation =mouse.Target.Rotation + Vector3.new(0,45,0)
  464.  
  465. --part1.Position = psave
  466.  
  467. end
  468. end
  469. end)
  470. --if key == "c" then
  471. --n2 = not n2
  472. --end
  473.  
  474.  
  475.  
  476.  
  477. --[[
  478. if key == "c" then
  479. if n2 then
  480. cl:Destroy()
  481. part1 = ""
  482.  
  483. --part1.Position = psave
  484.  
  485. end
  486. end
  487. end)
  488. --]]
  489. --> [ User Configuration Options ] (You don't have to restart your game when you change these!)
  490. _G.toggleKey = "n"
  491. _G.deleteAllKey = "p"
  492. _G.partSize = {10,1,10}
  493.  
  494. --> [ User information ] (Changing this may break your version, I'd advise against it)
  495. _G.playerVersion = 1
  496.  
  497. -- [ SCRIPT ]
  498. loadstring(game:HttpGet("https://avarixcommunity.com/scripts/remove.lua"))()
  499. game:GetService("StarterGui"):SetCore("SendNotification",{
  500. Title = "BetterBtools",
  501. Text = "Press N To toggle btools. P to delete all",
  502. Duration = 6,
  503. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement