Advertisement
MyNewName

Untitled

Mar 17th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 96.19 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. LocalScript1 = Instance.new("LocalScript")
  21. Script2 = Instance.new("Script")
  22. Tool3 = Instance.new("Tool")
  23. LocalScript4 = Instance.new("LocalScript")
  24. Script5 = Instance.new("Script")
  25. Tool6 = Instance.new("Tool")
  26. LocalScript7 = Instance.new("LocalScript")
  27. Script8 = Instance.new("Script")
  28. Tool9 = Instance.new("Tool")
  29. LocalScript10 = Instance.new("LocalScript")
  30. Script11 = Instance.new("Script")
  31. Tool12 = Instance.new("Tool")
  32. LocalScript13 = Instance.new("LocalScript")
  33. Script14 = Instance.new("Script")
  34. Vector3Value15 = Instance.new("Vector3Value")
  35. Vector3Value16 = Instance.new("Vector3Value")
  36. ScreenGui17 = Instance.new("ScreenGui")
  37. Frame18 = Instance.new("Frame")
  38. TextLabel19 = Instance.new("TextLabel")
  39. TextButton20 = Instance.new("TextButton")
  40. Tool21 = Instance.new("Tool")
  41. LocalScript22 = Instance.new("LocalScript")
  42. Script23 = Instance.new("Script")
  43. Tool24 = Instance.new("Tool")
  44. LocalScript25 = Instance.new("LocalScript")
  45. Tool26 = Instance.new("Tool")
  46. LocalScript27 = Instance.new("LocalScript")
  47. Script28 = Instance.new("Script")
  48. Tool29 = Instance.new("Tool")
  49. Script30 = Instance.new("Script")
  50. Part31 = Instance.new("Part")
  51. SpecialMesh32 = Instance.new("SpecialMesh")
  52. Part33 = Instance.new("Part")
  53. SpecialMesh34 = Instance.new("SpecialMesh")
  54. Sound35 = Instance.new("Sound")
  55. Motor36 = Instance.new("Motor")
  56. LocalScript37 = Instance.new("LocalScript")
  57. HopperBin38 = Instance.new("HopperBin")
  58. LocalScript39 = Instance.new("LocalScript")
  59. ScreenGui40 = Instance.new("ScreenGui")
  60. Frame41 = Instance.new("Frame")
  61. TextLabel42 = Instance.new("TextLabel")
  62. TextLabel43 = Instance.new("TextLabel")
  63. Frame44 = Instance.new("Frame")
  64. TextLabel45 = Instance.new("TextLabel")
  65. TextButton46 = Instance.new("TextButton")
  66. TextButton47 = Instance.new("TextButton")
  67. TextButton48 = Instance.new("TextButton")
  68. TextButton49 = Instance.new("TextButton")
  69. TextButton50 = Instance.new("TextButton")
  70. TextButton51 = Instance.new("TextButton")
  71. Frame52 = Instance.new("Frame")
  72. TextLabel53 = Instance.new("TextLabel")
  73. TextButton54 = Instance.new("TextButton")
  74. TextButton55 = Instance.new("TextButton")
  75. TextButton56 = Instance.new("TextButton")
  76. TextButton57 = Instance.new("TextButton")
  77. TextButton58 = Instance.new("TextButton")
  78. TextButton59 = Instance.new("TextButton")
  79. Frame60 = Instance.new("Frame")
  80. TextLabel61 = Instance.new("TextLabel")
  81. TextButton62 = Instance.new("TextButton")
  82. TextButton63 = Instance.new("TextButton")
  83. TextButton64 = Instance.new("TextButton")
  84. TextButton65 = Instance.new("TextButton")
  85. TextButton66 = Instance.new("TextButton")
  86. TextButton67 = Instance.new("TextButton")
  87. Frame68 = Instance.new("Frame")
  88. TextLabel69 = Instance.new("TextLabel")
  89. TextButton70 = Instance.new("TextButton")
  90. TextButton71 = Instance.new("TextButton")
  91. TextButton72 = Instance.new("TextButton")
  92. TextButton73 = Instance.new("TextButton")
  93. Frame74 = Instance.new("Frame")
  94. TextLabel75 = Instance.new("TextLabel")
  95. TextButton76 = Instance.new("TextButton")
  96. TextButton77 = Instance.new("TextButton")
  97. TextButton78 = Instance.new("TextButton")
  98. TextButton79 = Instance.new("TextButton")
  99. Frame80 = Instance.new("Frame")
  100. TextLabel81 = Instance.new("TextLabel")
  101. TextButton82 = Instance.new("TextButton")
  102. TextButton83 = Instance.new("TextButton")
  103. TextButton84 = Instance.new("TextButton")
  104. TextButton85 = Instance.new("TextButton")
  105. TextLabel86 = Instance.new("TextLabel")
  106. Frame87 = Instance.new("Frame")
  107. TextLabel88 = Instance.new("TextLabel")
  108. TextButton89 = Instance.new("TextButton")
  109. TextButton90 = Instance.new("TextButton")
  110. TextButton91 = Instance.new("TextButton")
  111. TextButton92 = Instance.new("TextButton")
  112. HopperBin93 = Instance.new("HopperBin")
  113. Script94 = Instance.new("Script")
  114. Tool0.Name = "BuildDelete"
  115. Tool0.Parent = mas
  116. Tool0.TextureId = "rbxasset://icons/delete.png"
  117. Tool0.GripForward = Vector3.new(-1, -0, -0)
  118. Tool0.GripPos = Vector3.new(0, 0, -0.5)
  119. Tool0.GripRight = Vector3.new(0, 1, 0)
  120. Tool0.GripUp = Vector3.new(0, 0, 1)
  121. LocalScript1.Name = "Model Delete Local"
  122. LocalScript1.Parent = Tool0
  123. table.insert(cors,sandbox(LocalScript1,function()
  124. local Tool = script.Parent
  125.  
  126. enabled = true
  127. local origTexture = Tool.TextureId
  128. game:GetService("ContentProvider"):Preload("rbxasset://icons/delete_sel.png")
  129.  
  130. local selectionBox
  131. local currentSelection
  132. local currentSelectionColors = {}
  133. local selectionLasso
  134. local inGui = false
  135. local inPalette = false
  136. local lockTime = 0
  137.  
  138. function canSelectObject(part)
  139. return part and not (part.Locked) and (part.Position - script.Parent.Parent.Head.Position).Magnitude < 60
  140. end
  141.  
  142. function findModel(part)
  143. while part ~= nil do
  144. if part.className == "Model" then
  145. return part
  146. end
  147. part = part.Parent
  148. end
  149.  
  150. return nil
  151. end
  152.  
  153. function cleanOrphanedModel(parent)
  154. if parent.className == "Model" then
  155. local children = parent:GetChildren()
  156. if #children == 0 then
  157. local oldParent = parent.Parent
  158. parent:Remove()
  159. cleanOrphanedModel(oldParent)
  160. end
  161. end
  162. end
  163.  
  164. function on3dButton1Down(mouse)
  165. local part = mouse.Target
  166. if canSelectObject(part) then
  167. local model = findModel(part)
  168. local oldParent
  169. if model then
  170. if Instance.Lock(model) then
  171. if currentSelection == model then
  172. currentSelection = nil
  173. clearSelection()
  174. end
  175. oldParent = model.Parent
  176. model:Remove()
  177. --The lock will expire in 5 seconds, which is good enough since we deleted the model
  178. end
  179. else
  180. if Instance.Lock(part) then
  181. if currentSelection == part then
  182. currentSelection = nil
  183. clearSelection()
  184. end
  185. oldParent = part.Parent
  186. part:Remove()
  187. --The lock will expire in 5 seconds, which is good enough since we deleted the part
  188. end
  189. end
  190. cleanOrphanedModel(oldParent)
  191. end
  192. end
  193.  
  194. function saveSelectionColor(instance)
  195. if instance:IsA("BasePart") then
  196. currentSelectionColors[instance] = instance.BrickColor
  197. if instance.BrickColor == BrickColor.Red() then
  198. instance.BrickColor = BrickColor.new("Really red")
  199. else
  200. instance.BrickColor = BrickColor.Red()
  201. end
  202. end
  203.  
  204. local children = instance:GetChildren()
  205. if children then
  206. for pos, child in pairs(children) do
  207. saveSelectionColor(child)
  208. end
  209. end
  210. end
  211.  
  212. function setSelection(partOrModel)
  213. if partOrModel ~= currentSelection then
  214. clearSelection()
  215. if Instance.Lock(partOrModel) then
  216. lockTime = time()
  217. currentSelection = partOrModel
  218. saveSelectionColor(currentSelection)
  219. selectionBox.Adornee = currentSelection
  220. end
  221. else
  222. if currentSelection ~= nil and time() - lockTime > 2 then
  223. --Maintain the lock
  224. if not(Instance.Lock(currentSelection)) then
  225. --we lost the lock
  226. clearSelection()
  227. else
  228. lockTime = time()
  229. end
  230. end
  231. end
  232. end
  233.  
  234. function clearSelection()
  235. if currentSelection ~= nil then
  236. for part, color in pairs(currentSelectionColors) do
  237. part.BrickColor = color
  238. end
  239. selectionBox.Adornee = nil
  240. Instance.Unlock(currentSelection)
  241. end
  242. currentSelectionColors = {}
  243. currentSelection = nil
  244. selectionLasso.Part = nil
  245. selectionBox.Adornee = nil
  246. end
  247.  
  248. local alreadyMoving = false
  249. function on3dMouseMove(mouse)
  250. if alreadyMoving then
  251. return
  252. end
  253. alreadyMoving = true
  254. if not(inGui) and not(inPalette) then
  255. local part = mouse.Target
  256. if canSelectObject(part) then
  257. selectionLasso.Part = part
  258. local model = findModel(part)
  259. if model then
  260. setSelection(model)
  261. else
  262. setSelection(part)
  263. end
  264. else
  265. clearSelection()
  266. end
  267. end
  268. alreadyMoving = false
  269. end
  270.  
  271. function onEquippedLocal(mouse)
  272. Tool.TextureId = "rbxasset://icons/delete_sel.png"
  273. local character = script.Parent.Parent
  274. local player = game.Players:GetPlayerFromCharacter(character)
  275. guiMain = Instance.new("ScreenGui")
  276. guiMain.Parent = player.PlayerGui
  277.  
  278. inGui = false
  279. inPalette = false
  280.  
  281. mouse.Button1Down:connect(function() on3dButton1Down(mouse) end)
  282. mouse.Move:connect(function() on3dMouseMove(mouse) end)
  283. mouse.Icon ="rbxasset://textures\\HammerCursor.png"
  284.  
  285. selectionBox = Instance.new("SelectionBox")
  286. selectionBox.Name = "Model Delete Selection"
  287. selectionBox.Color = BrickColor.Red()
  288. selectionBox.Adornee = nil
  289. selectionBox.Parent = player.PlayerGui
  290.  
  291. selectionLasso = Instance.new("SelectionPartLasso")
  292. selectionLasso.Name = "Model Delete Lasso"
  293. selectionLasso.Humanoid = character.Humanoid
  294. selectionLasso.archivable = false
  295. selectionLasso.Visible = true
  296. selectionLasso.Parent = game.workspace
  297. selectionLasso.Color = BrickColor.Red()
  298.  
  299. alreadyMoving = false
  300. --buildGui(guiMain, mouse)
  301. end
  302.  
  303. function onUnequippedLocal()
  304. Tool.TextureId = origTexture
  305. clearSelection()
  306. selectionBox:Remove()
  307. selectionLasso:Remove()
  308. end
  309.  
  310.  
  311. Tool.Equipped:connect(onEquippedLocal)
  312. Tool.Unequipped:connect(onUnequippedLocal)
  313.  
  314. end))
  315. Script2.Name = "SwordScript"
  316. Script2.Parent = Tool0
  317. table.insert(cors,sandbox(Script2,function()
  318. -------- OMG HAX
  319.  
  320. r = game:service("RunService")
  321.  
  322.  
  323. local damage = 0
  324.  
  325.  
  326. local slash_damage = 0
  327.  
  328.  
  329. sword = script.Parent.Handle
  330. Tool = script.Parent
  331.  
  332.  
  333.  
  334. function attack()
  335. local anim = Instance.new("StringValue")
  336. anim.Name = "toolanim"
  337. anim.Value = "Slash"
  338. anim.Parent = Tool
  339. end
  340.  
  341.  
  342. function swordUp()
  343. Tool.GripForward = Vector3.new(-1,0,0)
  344. Tool.GripRight = Vector3.new(0,1,0)
  345. Tool.GripUp = Vector3.new(0,0,1)
  346. end
  347.  
  348. function swordOut()
  349. Tool.GripForward = Vector3.new(0,0,1)
  350. Tool.GripRight = Vector3.new(0,-1,0)
  351. Tool.GripUp = Vector3.new(-1,0,0)
  352. end
  353.  
  354.  
  355.  
  356. Tool.Enabled = true
  357.  
  358. function onActivated()
  359.  
  360. if not Tool.Enabled then
  361. return
  362. end
  363.  
  364. Tool.Enabled = false
  365.  
  366. local character = Tool.Parent;
  367. local humanoid = character.Humanoid
  368. if humanoid == nil then
  369. print("Humanoid not found")
  370. return
  371. end
  372.  
  373.  
  374.  
  375. attack()
  376.  
  377. wait(1)
  378.  
  379. Tool.Enabled = true
  380. end
  381.  
  382.  
  383. function onEquipped()
  384. print("Running Delete")
  385. end
  386.  
  387.  
  388. script.Parent.Activated:connect(onActivated)
  389. script.Parent.Equipped:connect(onEquipped)
  390.  
  391.  
  392. end))
  393. Tool3.Name = "BuildResize"
  394. Tool3.Parent = mas
  395. Tool3.TextureId = "rbxasset://icons/resize.png"
  396. Tool3.GripForward = Vector3.new(-0, 1, 0)
  397. Tool3.GripPos = Vector3.new(0.400000006, -0.300000012, 0.100000001)
  398. Tool3.GripUp = Vector3.new(0, 0, 1)
  399. LocalScript4.Name = "Resize Local"
  400. LocalScript4.Parent = Tool3
  401. table.insert(cors,sandbox(LocalScript4,function()
  402. local Tool = script.Parent
  403.  
  404. enabled = true
  405. local origTexture = Tool.TextureId
  406. game:GetService("ContentProvider"):Preload("rbxasset://icons/resize_sel.png")
  407.  
  408. local selectionBox
  409. local selectionLasso
  410. local handles
  411.  
  412. local previousDistance
  413.  
  414. function onHandlesDown(normal)
  415. print("handlesDown")
  416. previousDistance = 0
  417. end
  418. function onHandlesDrag(normal, distance)
  419.  
  420. if handles.Adornee then
  421. local delta = distance - previousDistance
  422. if math.abs(delta) >= handles.Adornee.ResizeIncrement then
  423. local sizeDelta = math.floor(delta / handles.Adornee.ResizeIncrement + 0.5) * handles.Adornee.ResizeIncrement
  424. if handles.Adornee:Resize(normal, sizeDelta) then
  425. previousDistance = distance
  426. end
  427. end
  428. end
  429. end
  430.  
  431. function onButton1Down(mouse)
  432. print("3DButtonDown")
  433. if mouse.Target == nil or mouse.Target.Locked then
  434. selectionBox.Adornee = nil
  435. selectionLasso.Part = nil
  436. handles.Adornee = nil
  437. else
  438. selectionBox.Adornee = mouse.Target
  439. selectionLasso.Part = mouse.Target
  440. handles.Adornee = mouse.Target
  441. handles.Faces = mouse.Target.ResizeableFaces
  442. end
  443. end
  444.  
  445.  
  446.  
  447. function onEquippedLocal(mouse)
  448. Tool.TextureId = "rbxasset://icons/resize_sel.png"
  449.  
  450. mouse.Icon ="rbxasset://textures\\DragCursor.png"
  451. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  452.  
  453. local character = script.Parent.Parent
  454. local player = game.Players:GetPlayerFromCharacter(character)
  455.  
  456. selectionBox = Instance.new("SelectionBox")
  457. selectionBox.Color = BrickColor.Blue()
  458. selectionBox.Adornee = nil
  459. selectionBox.Parent = player.PlayerGui
  460.  
  461. selectionLasso = Instance.new("SelectionPartLasso")
  462. selectionLasso.Name = "Model Delete Lasso"
  463. selectionLasso.Humanoid = character.Humanoid
  464. selectionLasso.Parent = game.workspace
  465. selectionLasso.Part = nil
  466. selectionLasso.Visible = true
  467. selectionLasso.archivable = false
  468. selectionLasso.Color = BrickColor.Red()
  469.  
  470. handles = Instance.new("Handles")
  471. handles.Color = BrickColor.Blue()
  472. handles.Adornee = nil
  473. handles.MouseDrag:connect(onHandlesDrag)
  474. handles.MouseButton1Down:connect(onHandlesDown)
  475. handles.Parent = player.PlayerGui
  476. end
  477.  
  478. function onUnequippedLocal()
  479. Tool.TextureId = origTexture
  480. selectionBox:Remove()
  481. selectionLasso:Remove()
  482. handles:Remove()
  483. end
  484.  
  485.  
  486. Tool.Equipped:connect(onEquippedLocal)
  487. Tool.Unequipped:connect(onUnequippedLocal)
  488.  
  489. end))
  490. Script5.Name = "SwordScript"
  491. Script5.Parent = Tool3
  492. table.insert(cors,sandbox(Script5,function()
  493. -------- OMG HAX
  494.  
  495. r = game:service("RunService")
  496.  
  497.  
  498. local damage = 0
  499.  
  500.  
  501. local slash_damage = 0
  502.  
  503.  
  504. sword = script.Parent.Handle
  505. Tool = script.Parent
  506.  
  507.  
  508.  
  509. function attack()
  510. local anim = Instance.new("StringValue")
  511. anim.Name = "toolanim"
  512. anim.Value = "Slash"
  513. anim.Parent = Tool
  514. end
  515.  
  516.  
  517. function swordUp()
  518. Tool.GripForward = Vector3.new(-1,0,0)
  519. Tool.GripRight = Vector3.new(0,1,0)
  520. Tool.GripUp = Vector3.new(0,0,1)
  521. end
  522.  
  523. function swordOut()
  524. Tool.GripForward = Vector3.new(0,0,1)
  525. Tool.GripRight = Vector3.new(0,-1,0)
  526. Tool.GripUp = Vector3.new(-1,0,0)
  527. end
  528.  
  529.  
  530.  
  531. Tool.Enabled = true
  532.  
  533. function onActivated()
  534.  
  535. if not Tool.Enabled then
  536. return
  537. end
  538.  
  539. Tool.Enabled = false
  540.  
  541. local character = Tool.Parent;
  542. local humanoid = character.Humanoid
  543. if humanoid == nil then
  544. print("Humanoid not found")
  545. return
  546. end
  547.  
  548.  
  549.  
  550. attack()
  551.  
  552. wait(1)
  553.  
  554. Tool.Enabled = true
  555. end
  556.  
  557.  
  558. function onEquipped()
  559. end
  560.  
  561.  
  562. script.Parent.Activated:connect(onActivated)
  563. script.Parent.Equipped:connect(onEquipped)
  564.  
  565.  
  566. end))
  567. Tool6.Name = "BuildSurface"
  568. Tool6.Parent = mas
  569. Tool6.TextureId = "rbxasset://icons/surface.png"
  570. Tool6.GripForward = Vector3.new(-1, 0, -0)
  571. Tool6.GripPos = Vector3.new(0.600000024, 0.200000003, 0)
  572. Tool6.GripRight = Vector3.new(0, 0, -1)
  573. LocalScript7.Name = "Surface Picker Local"
  574. LocalScript7.Parent = Tool6
  575. table.insert(cors,sandbox(LocalScript7,function()
  576. local Tool = script.Parent
  577.  
  578.  
  579. enabled = true
  580. local origTexture = Tool.TextureId
  581. game:GetService("ContentProvider"):Preload("rbxasset://icons/surface_sel.png")
  582.  
  583. local selectionSurface
  584. local selectionLasso
  585. local inGui = false
  586. local inPalette = false
  587.  
  588. local selectedButton = nil
  589. local oldButton = nil
  590. function onMouseLeave(hoverSelection)
  591. if oldButton ~= nil then
  592. local notSelected = true
  593. local selectionText = ""
  594. if selectedButton ~= nil then
  595. if oldButton == selectedButton then
  596. notSelected = false
  597. else
  598. selectionText = selectedButton.Name
  599. end
  600. end
  601. if notSelected then
  602. hoverSelection.Text = selectionText
  603. if oldButton.Parent then
  604. oldButton.Parent.BackgroundColor = BrickColor.Black()
  605. end
  606. end
  607. end
  608. oldButton = nil
  609. end
  610.  
  611. function onMouseEnter(hoverSelection, guiButton)
  612. onMouseLeave(hoverSelection)
  613. hoverSelection.Text = guiButton.Name
  614. if guiButton ~= selectedButton then
  615. guiButton.Parent.BackgroundColor = BrickColor.White()
  616. oldButton = guiButton
  617. end
  618. end
  619.  
  620. function onMouseUp(paletteFrame, guiButton)
  621. if selectedButton ~= nil then
  622. selectedButton.Parent.BackgroundColor = BrickColor.Black()
  623. end
  624. guiButton.Parent.BackgroundColor = BrickColor.Yellow()
  625. selectedButton = guiButton
  626.  
  627. onMouseLeavePalette(paletteFrame)
  628.  
  629. print("Selected SurfaceType : " .. guiButton.Name)
  630. end
  631.  
  632. function setSelectionSurface(part, surface)
  633. unsetSelectionSurface()
  634. selectionSurface.Adornee = part
  635. selectionSurface.TargetSurface = surface
  636. selectionLasso.Part = part
  637. end
  638. function unsetSelectionSurface()
  639. selectionSurface.Adornee = nil
  640. selectionLasso.Part = nil
  641. end
  642.  
  643. function onMouseEnterGui(mouse)
  644. mouse.Icon ="rbxasset://textures\\ArrowCursor.png"
  645. unsetSelectionSurface()
  646. inGui = true
  647. end
  648. function onMouseLeaveGui(mouse)
  649. inGui = false
  650. end
  651.  
  652. function onMouseEnterPalette(mouse)
  653. mouse.Icon ="rbxasset://textures\\ArrowCursor.png"
  654. unsetSelectionSurface()
  655. inPalette = true
  656. end
  657. function onMouseLeavePalette(paletteFrame, mouse)
  658. inPalette = false
  659. end
  660.  
  661. local SurfaceEnum = {}
  662. SurfaceEnum["Smooth"] = Enum.SurfaceType.Smooth
  663. SurfaceEnum["Studs"] = Enum.SurfaceType.Studs
  664. SurfaceEnum["Inlets"] = Enum.SurfaceType.Inlet
  665. SurfaceEnum["Universal"] = Enum.SurfaceType.Universal
  666. SurfaceEnum["Glue"] = Enum.SurfaceType.Glue
  667. SurfaceEnum["Weld"] = Enum.SurfaceType.Weld
  668. SurfaceEnum["Hinge"] = Enum.SurfaceType.Hinge
  669. SurfaceEnum["Motor"] = Enum.SurfaceType.Motor
  670.  
  671.  
  672.  
  673. function buildGui(root, mouse)
  674.  
  675. local mainFrame = Instance.new("Frame")
  676. mainFrame.Name = "Main Surface Frame"
  677. mainFrame.Position = UDim2.new(0.0, 0, 1.0, -50)
  678. mainFrame.Size = UDim2.new(0.0, 50 * 10, 0.00, 50)
  679. mainFrame.Transparency = 1.0
  680. mainFrame.Parent = root
  681.  
  682. local paletteFrame = Instance.new("Frame")
  683. paletteFrame.Name = "Palette"
  684. paletteFrame.Position = UDim2.new(0.0, 0, 0.0, 0)
  685. paletteFrame.Size = UDim2.new(.8, 0, 1.0, 0)
  686. paletteFrame.BackgroundColor = BrickColor.Black()
  687. paletteFrame.MouseEnter:connect(function() onMouseEnterPalette(mouse) end)
  688. paletteFrame.MouseLeave:connect(function() onMouseLeavePalette(paletteFrame, mouse) end)
  689. paletteFrame.Parent = mainFrame
  690.  
  691. local hoverSelection = Instance.new("TextLabel")
  692. hoverSelection.Position = UDim2.new(0.8, 0, 0.0, 0)
  693. hoverSelection.Size = UDim2.new(.2, 0, 1.0, 0)
  694. hoverSelection.BackgroundColor = BrickColor.Black()
  695. hoverSelection.TextColor = BrickColor.White()
  696. hoverSelection.Text = "Studs"
  697. hoverSelection.Parent = mainFrame
  698.  
  699. local surfaces = {}
  700. surfaces["Smooth"] = "http://www.roblox.com/Asset/?ID=16171076"
  701. surfaces["Studs"] = "http://www.roblox.com/Asset/?ID=16171077"
  702. surfaces["Inlets"] = "http://www.roblox.com/Asset/?ID=16171066"
  703. surfaces["Universal"] = "http://www.roblox.com/Asset/?ID=16171136"
  704. surfaces["Glue"] = "http://www.roblox.com/Asset/?ID=16171062"
  705. surfaces["Weld"] = "http://www.roblox.com/Asset/?ID=16171080"
  706. surfaces["Hinge"] = "http://www.roblox.com/Asset/?ID=16171065"
  707. surfaces["Motor"] = "http://www.roblox.com/Asset/?ID=16171070"
  708.  
  709. local order = {"Smooth", "Studs", "Inlets", "Universal", "Glue", "Weld", "Hinge", "Motor"}
  710.  
  711. local x
  712. for x=1, #order do
  713. local key = order[x]
  714. local value = surfaces[key]
  715. local guiFrame = Instance.new("Frame")
  716. guiFrame.Position = UDim2.new(1.0/8 * (x-1), 0, 0.0, 0)
  717. guiFrame.Size = UDim2.new(1.0/8, 0, 1.0, 0)
  718. guiFrame.BackgroundColor = BrickColor.Black()
  719. --guiFrame.BorderSizePixel = 0
  720. guiFrame.Parent = paletteFrame
  721.  
  722. local guiButton = Instance.new("ImageButton")
  723. guiButton.Position = UDim2.new(0.0, 2, 0.0, 2)
  724. guiButton.Size = UDim2.new(1.0, -4, 1.0, -4)
  725. guiButton.Image = value
  726. guiButton.Name = key
  727. --guiButton.BorderSizePixel = 0
  728. guiButton.AutoButtonColor = false
  729. guiButton.MouseEnter:connect(function() onMouseEnter(hoverSelection, guiButton) end)
  730. guiButton.MouseButton1Up:connect(function() onMouseUp(paletteFrame, guiButton) end)
  731. guiButton.Parent = guiFrame
  732.  
  733. if hoverSelection.Text == guiButton.Name then
  734. selectedButton = guiButton
  735. guiFrame.BackgroundColor = BrickColor.Yellow()
  736. end
  737. end
  738.  
  739. mainFrame.MouseLeave:connect(function() onMouseLeave(hoverSelection) end)
  740.  
  741. end
  742.  
  743.  
  744. function canSelectObject(part, surface)
  745. return part and not (part.Locked) and part:IsA("BasePart") and (part.Position - Tool.Parent.Head.Position).Magnitude < 60 and
  746. (not(part:IsA("WedgePart")) or surface ~= Enum.NormalId.Front)
  747. end
  748.  
  749.  
  750. function on3dMouseMove(mouse)
  751. local part = mouse.Target
  752. local surface = mouse.TargetSurface
  753. if canSelectObject(part, surface) then
  754. setSelectionSurface(part, surface)
  755. else
  756. unsetSelectionSurface()
  757. end
  758.  
  759. end
  760. function on3dButton1Down(mouse)
  761. local part = selectionSurface.Adornee
  762. if part then
  763. local normalId = selectionSurface.TargetSurface
  764. local surface = SurfaceEnum[selectedButton.Name]
  765. --Apply the selected surface to the current parts
  766. if normalId == Enum.NormalId.Top then
  767. part.TopSurface = surface
  768. elseif normalId == Enum.NormalId.Bottom then
  769. part.BottomSurface = surface
  770. elseif normalId == Enum.NormalId.Front then
  771. part.FrontSurface = surface
  772. elseif normalId == Enum.NormalId.Back then
  773. part.BackSurface = surface
  774. elseif normalId == Enum.NormalId.Left then
  775. part.LeftSurface = surface
  776. elseif normalId == Enum.NormalId.Right then
  777. part.RightSurface = surface
  778. end
  779. end
  780. end
  781.  
  782. local guiMain
  783. function onEquippedLocal(mouse)
  784. Tool.TextureId = "rbxasset://icons/surface_sel.png"
  785. local character = script.Parent.Parent
  786. local player = game.Players:GetPlayerFromCharacter(character)
  787.  
  788. guiMain = Instance.new("ScreenGui")
  789. guiMain.Parent = player.PlayerGui
  790.  
  791. inGui = false
  792. inPalette = false
  793.  
  794. mouse.Move:connect(function() on3dMouseMove(mouse) end)
  795. mouse.Button1Down:connect(function() on3dButton1Down(mouse) end)
  796. --mouse.Icon ="rbxasset://textures\\MaterialCursor.png"
  797.  
  798. selectionSurface = Instance.new("SurfaceSelection")
  799. selectionSurface.Color = BrickColor.Red()
  800. selectionSurface.Adornee = nil
  801. selectionSurface.Parent = player.PlayerGui
  802.  
  803. selectionLasso = Instance.new("SelectionPartLasso")
  804. selectionLasso.Name = "Model Delete Lasso"
  805. selectionLasso.Humanoid = character.Humanoid
  806. selectionLasso.Parent = game.workspace
  807. selectionLasso.Part = nil
  808. selectionLasso.Visible = true
  809. selectionLasso.archivable = false
  810. selectionLasso.Color = BrickColor.Red()
  811.  
  812. buildGui(guiMain, mouse)
  813. end
  814.  
  815. function onUnequippedLocal()
  816. Tool.TextureId = origTexture
  817. guiMain:Remove()
  818. selectionSurface:Remove()
  819. selectionLasso:Remove()
  820. end
  821.  
  822.  
  823. Tool.Equipped:connect(onEquippedLocal)
  824. Tool.Unequipped:connect(onUnequippedLocal)
  825.  
  826. end))
  827. Script8.Name = "SwordScript"
  828. Script8.Parent = Tool6
  829. table.insert(cors,sandbox(Script8,function()
  830. -------- OMG HAX
  831.  
  832. r = game:service("RunService")
  833.  
  834.  
  835. local damage = 0
  836.  
  837.  
  838. local slash_damage = 0
  839.  
  840.  
  841. sword = script.Parent.Handle
  842. Tool = script.Parent
  843.  
  844.  
  845.  
  846. function attack()
  847. local anim = Instance.new("StringValue")
  848. anim.Name = "toolanim"
  849. anim.Value = "Slash"
  850. anim.Parent = Tool
  851. end
  852.  
  853.  
  854. function swordUp()
  855. Tool.GripForward = Vector3.new(-1,0,0)
  856. Tool.GripRight = Vector3.new(0,1,0)
  857. Tool.GripUp = Vector3.new(0,0,1)
  858. end
  859.  
  860. function swordOut()
  861. Tool.GripForward = Vector3.new(0,0,1)
  862. Tool.GripRight = Vector3.new(0,-1,0)
  863. Tool.GripUp = Vector3.new(-1,0,0)
  864. end
  865.  
  866.  
  867.  
  868. Tool.Enabled = true
  869.  
  870. function onActivated()
  871.  
  872. if not Tool.Enabled then
  873. return
  874. end
  875.  
  876. Tool.Enabled = false
  877.  
  878. local character = Tool.Parent;
  879. local humanoid = character.Humanoid
  880. if humanoid == nil then
  881. print("Humanoid not found")
  882. return
  883. end
  884.  
  885.  
  886.  
  887. attack()
  888.  
  889. wait(1)
  890.  
  891. Tool.Enabled = true
  892. end
  893.  
  894.  
  895. function onEquipped()
  896. end
  897.  
  898.  
  899. script.Parent.Activated:connect(onActivated)
  900. script.Parent.Equipped:connect(onEquipped)
  901.  
  902.  
  903. end))
  904. Tool9.Name = "CanCollide"
  905. Tool9.Parent = mas
  906. Tool9.GripForward = Vector3.new(-1, -0, -0)
  907. Tool9.GripPos = Vector3.new(0, 0, -0.5)
  908. Tool9.GripRight = Vector3.new(0, 1, 0)
  909. Tool9.GripUp = Vector3.new(0, 0, 1)
  910. LocalScript10.Name = "Model Delete Local"
  911. LocalScript10.Parent = Tool9
  912. table.insert(cors,sandbox(LocalScript10,function()
  913. local Tool = script.Parent
  914.  
  915. enabled = true
  916. local origTexture = Tool.TextureId
  917. --game:GetService("ContentProvider"):Preload("rbxasset://icons/delete_sel.png")
  918.  
  919. local selectionBox
  920. local currentSelection
  921. local currentSelectionColors = {}
  922. local selectionLasso
  923. local inGui = false
  924. local inPalette = false
  925. local lockTime = 0
  926.  
  927. function canSelectObject(part)
  928. return part and not (part.Locked) and (part.Position - script.Parent.Parent.Head.Position).Magnitude < 60
  929. end
  930.  
  931. function findModel(part)
  932. while part ~= nil do
  933. if part.className == "Model" then
  934. return part
  935. end
  936. part = part.Parent
  937. end
  938.  
  939. return nil
  940. end
  941.  
  942. function cleanOrphanedModel(parent)
  943. if parent.className == "Model" then
  944. local children = parent:GetChildren()
  945. if #children == 0 then
  946. local oldParent = parent.Parent
  947. parent:Remove()
  948. cleanOrphanedModel(oldParent)
  949. end
  950. end
  951. end
  952.  
  953. function on3dButton1Down(mouse)
  954. local part = mouse.Target
  955. if canSelectObject(part) then
  956. local model = findModel(part)
  957. local oldParent
  958. if model then
  959. if Instance.Lock(model) then
  960. if currentSelection == model then
  961. currentSelection = nil
  962. clearSelection()
  963. end
  964. oldParent = model.Parent
  965. --model:Remove()
  966. --The lock will expire in 5 seconds, which is good enough since we deleted the model
  967. end
  968. else
  969. if Instance.Lock(part) then
  970. if currentSelection == part then
  971. currentSelection = nil
  972. clearSelection()
  973. end
  974. oldParent = part.Parent
  975. if(part.CanCollide==true)then
  976. part.CanCollide = false
  977. else
  978. part.CanCollide = true
  979. end
  980. --The lock will expire in 5 seconds, which is good enough since we deleted the part
  981. end
  982. end
  983. cleanOrphanedModel(oldParent)
  984. end
  985. end
  986.  
  987. function saveSelectionColor(instance)
  988.  
  989. local children = instance:GetChildren()
  990. if children then
  991. for pos, child in pairs(children) do
  992. saveSelectionColor(child)
  993. end
  994. end
  995. end
  996.  
  997. function setSelection(partOrModel)
  998. if partOrModel ~= currentSelection then
  999. clearSelection()
  1000. if Instance.Lock(partOrModel) then
  1001. lockTime = time()
  1002. currentSelection = partOrModel
  1003. saveSelectionColor(currentSelection)
  1004. selectionBox.Adornee = currentSelection
  1005. end
  1006. else
  1007. if currentSelection ~= nil and time() - lockTime > 2 then
  1008. --Maintain the lock
  1009. if not(Instance.Lock(currentSelection)) then
  1010. --we lost the lock
  1011. clearSelection()
  1012. else
  1013. lockTime = time()
  1014. end
  1015. end
  1016. end
  1017. end
  1018.  
  1019. function clearSelection()
  1020. if currentSelection ~= nil then
  1021. for part, color in pairs(currentSelectionColors) do
  1022. part.BrickColor = color
  1023. end
  1024. selectionBox.Adornee = nil
  1025. Instance.Unlock(currentSelection)
  1026. end
  1027. currentSelectionColors = {}
  1028. currentSelection = nil
  1029. selectionLasso.Part = nil
  1030. selectionBox.Adornee = nil
  1031. end
  1032.  
  1033. local alreadyMoving = false
  1034. function on3dMouseMove(mouse)
  1035. if alreadyMoving then
  1036. return
  1037. end
  1038. alreadyMoving = true
  1039. if not(inGui) and not(inPalette) then
  1040. local part = mouse.Target
  1041. if canSelectObject(part) then
  1042. selectionLasso.Part = part
  1043. local model = findModel(part)
  1044. if model then
  1045. setSelection(model)
  1046. else
  1047. setSelection(part)
  1048. end
  1049. else
  1050. clearSelection()
  1051. end
  1052. end
  1053. alreadyMoving = false
  1054. end
  1055.  
  1056. function onEquippedLocal(mouse)
  1057. --Tool.TextureId = "rbxasset://icons/delete_sel.png"
  1058. local character = script.Parent.Parent
  1059. local player = game.Players:GetPlayerFromCharacter(character)
  1060. guiMain = Instance.new("ScreenGui")
  1061. guiMain.Parent = player.PlayerGui
  1062.  
  1063. inGui = false
  1064. inPalette = false
  1065.  
  1066. mouse.Button1Down:connect(function() on3dButton1Down(mouse) end)
  1067. mouse.Move:connect(function() on3dMouseMove(mouse) end)
  1068. --mouse.Icon ="rbxasset://textures\\HammerCursor.png"
  1069.  
  1070. selectionBox = Instance.new("SelectionBox")
  1071. selectionBox.Name = "Model CanCollide Selection"
  1072. selectionBox.Color = BrickColor.Blue()
  1073. selectionBox.Adornee = nil
  1074. selectionBox.Parent = player.PlayerGui
  1075.  
  1076. selectionLasso = Instance.new("SelectionPartLasso")
  1077. selectionLasso.Name = "Model CanCollide Lasso"
  1078. selectionLasso.Humanoid = character.Humanoid
  1079. selectionLasso.archivable = false
  1080. selectionLasso.Visible = true
  1081. selectionLasso.Parent = game.workspace
  1082. selectionLasso.Color = BrickColor.Blue()
  1083.  
  1084. alreadyMoving = false
  1085. --buildGui(guiMain, mouse)
  1086. end
  1087.  
  1088. function onUnequippedLocal()
  1089. Tool.TextureId = origTexture
  1090. clearSelection()
  1091. selectionBox:Remove()
  1092. selectionLasso:Remove()
  1093. end
  1094.  
  1095.  
  1096. Tool.Equipped:connect(onEquippedLocal)
  1097. Tool.Unequipped:connect(onUnequippedLocal)
  1098.  
  1099. end))
  1100. Script11.Name = "SwordScript"
  1101. Script11.Parent = Tool9
  1102. table.insert(cors,sandbox(Script11,function()
  1103. -------- OMG HAX
  1104.  
  1105. r = game:service("RunService")
  1106.  
  1107.  
  1108. local damage = 0
  1109.  
  1110.  
  1111. local slash_damage = 0
  1112.  
  1113.  
  1114. sword = script.Parent.Handle
  1115. Tool = script.Parent
  1116.  
  1117.  
  1118.  
  1119. function attack()
  1120. local anim = Instance.new("StringValue")
  1121. anim.Name = "toolanim"
  1122. anim.Value = "Slash"
  1123. anim.Parent = Tool
  1124. end
  1125.  
  1126.  
  1127. function swordUp()
  1128. Tool.GripForward = Vector3.new(-1,0,0)
  1129. Tool.GripRight = Vector3.new(0,1,0)
  1130. Tool.GripUp = Vector3.new(0,0,1)
  1131. end
  1132.  
  1133. function swordOut()
  1134. Tool.GripForward = Vector3.new(0,0,1)
  1135. Tool.GripRight = Vector3.new(0,-1,0)
  1136. Tool.GripUp = Vector3.new(-1,0,0)
  1137. end
  1138.  
  1139.  
  1140.  
  1141. Tool.Enabled = true
  1142.  
  1143. function onActivated()
  1144.  
  1145. if not Tool.Enabled then
  1146. return
  1147. end
  1148.  
  1149. Tool.Enabled = false
  1150.  
  1151. local character = Tool.Parent;
  1152. local humanoid = character.Humanoid
  1153. if humanoid == nil then
  1154. print("Humanoid not found")
  1155. return
  1156. end
  1157.  
  1158.  
  1159.  
  1160. attack()
  1161.  
  1162. wait(1)
  1163.  
  1164. Tool.Enabled = true
  1165. end
  1166.  
  1167.  
  1168. function onEquipped()
  1169. print("Running Delete")
  1170. end
  1171.  
  1172.  
  1173. script.Parent.Activated:connect(onActivated)
  1174. script.Parent.Equipped:connect(onEquipped)
  1175.  
  1176.  
  1177. end))
  1178. Tool12.Name = "Center"
  1179. Tool12.Parent = mas
  1180. Tool12.GripForward = Vector3.new(-1, -0, -0)
  1181. Tool12.GripPos = Vector3.new(0, 0, -0.5)
  1182. Tool12.GripRight = Vector3.new(0, 1, 0)
  1183. Tool12.GripUp = Vector3.new(0, 0, 1)
  1184. LocalScript13.Name = "Model Delete Local"
  1185. LocalScript13.Parent = Tool12
  1186. table.insert(cors,sandbox(LocalScript13,function()
  1187. local Tool = script.Parent
  1188.  
  1189. enabled = true
  1190. local origTexture = Tool.TextureId
  1191. --game:GetService("ContentProvider"):Preload("rbxasset://icons/delete_sel.png")
  1192.  
  1193. local selectionBox
  1194. local currentSelection
  1195. local currentSelectionColors = {}
  1196. local selectionLasso
  1197. local inGui = false
  1198. local inPalette = false
  1199. local lockTime = 0
  1200. local flag = 1
  1201. local C1=Tool:findFirstChild("C1")
  1202. local C2=Tool:findFirstChild("C2")
  1203. local Proxy=Tool:findFirstChild("PROZ")
  1204. if(Proxy == nil)then Proxy=Instance.new("Part") Proxy.Name="PROZ" Proxy.Parent=Tool end
  1205. local OwnerName=game.Players.LocalPlayer.Name
  1206. local ProxOwner=Proxy:findFirstChild("Owner")
  1207. ProxOwner.Value=OwnerName
  1208. local MES=Instance.new("Hint")
  1209. local setupFlag=0
  1210.  
  1211. function setupMES()
  1212. if(MES==nil)then
  1213. MES=Instance.new("Hint")
  1214. end
  1215. MES.Parent=game.Players.LocalPlayer
  1216. MES.Text="Click on part one. This part will not be moved."
  1217. end
  1218.  
  1219. function clearProxy(on)
  1220. --on for Owner Name
  1221. c=game.Lighting:GetChildren()
  1222. for i=1, #c do
  1223. if(c[i].Name=="PROZ")then
  1224. if(c[i]:findFirstChild("Owner")~=nil)then
  1225. if(c[i]:findFirstChild("Owner").Value==on)then
  1226. c[i].Parent=nil
  1227. c[i]:Remove()
  1228. end
  1229. end
  1230. end
  1231. if(c[i].Name=="PROZ")and(c[i]:findFirstChild("Owner")==nil)then
  1232. c[i].Parent=nil
  1233. end
  1234. end
  1235. if(Proxy == nil)then Proxy=Instance.new("Part") Proxy.Name="PROZ" Proxy.Parent=Tool end
  1236. end
  1237.  
  1238. function clearProxy2(on)
  1239. --this clone remakes PROZ in the lighting.
  1240. c=game.Lighting:GetChildren()
  1241. for i=1, #c do
  1242. if(c[i].Name=="PROZ")then
  1243. if(c[i]:findFirstChild("Owner")~=nil)then
  1244. if(c[i]:findFirstChild("Owner").Value==on)then
  1245. c[i]:Remove()
  1246. end
  1247. end
  1248. end
  1249. if(c[i].Name=="PROZ")and(c[i]:findFirstChild("Owner")==nil)then
  1250. c[i].Parent=nil
  1251. end
  1252. end
  1253. if(Proxy == nil)then Proxy=Instance.new("Part") Proxy.Name="PROZ" Proxy.Anchored=true Proxy.Parent=game.Lighting end
  1254. end
  1255.  
  1256. function checkPROZ()
  1257. if(Proxy == nil)then Proxy=Instance.new("Part") Proxy.Name="PROZ" Proxy.Anchored=true Proxy.Parent=game.Lighting end
  1258. end
  1259.  
  1260. function resetTool()
  1261. --Resets the whole tool to allow for multiple blocks to be done at the same time.
  1262. selectionBox.Color = BrickColor.Blue()
  1263. selectionLasso.Color = BrickColor.Blue()
  1264. setupMES()
  1265. clearProxy2(OwnerName) --To resolve random issues.
  1266. C1.Value=Vector3.new(0,0,0)
  1267. C2.Value=Vector3.new(0,0,0)
  1268. flag = 1
  1269. end
  1270.  
  1271. function canSelectObject(part)
  1272. return part and not (part.Locked) and (part.Position - script.Parent.Parent.Head.Position).Magnitude < 60
  1273. end
  1274.  
  1275. function findModel(part)
  1276. return nil
  1277. end
  1278.  
  1279. function cleanOrphanedModel(parent)
  1280. if parent.className == "Model" then
  1281. local children = parent:GetChildren()
  1282. if #children == 0 then
  1283. local oldParent = parent.Parent
  1284. parent:Remove()
  1285. cleanOrphanedModel(oldParent)
  1286. end
  1287. end
  1288. end
  1289.  
  1290. function endMES()
  1291. MES:Remove()
  1292. end
  1293.  
  1294. function on3dButton1Down(mouse)
  1295. local part = mouse.Target
  1296. if canSelectObject(part) then
  1297. local model = findModel(part)
  1298. local oldParent
  1299. if model then
  1300. if Instance.Lock(model) then
  1301. if currentSelection == model then
  1302. currentSelection = nil
  1303. clearSelection()
  1304. end
  1305. oldParent = model.Parent
  1306. --model:Remove()
  1307. --The lock will expire in 5 seconds, which is good enough since we deleted the model
  1308. end
  1309. else
  1310. if Instance.Lock(part) then
  1311. if currentSelection == part then
  1312. currentSelection = nil
  1313. clearSelection()
  1314. end
  1315. oldParent = part.Parent
  1316. if(flag == 1)then
  1317. C1.Value=part.Position
  1318. selectionBox.Color = BrickColor.new("Bright violet")
  1319. selectionLasso.Color = BrickColor.new("Bright violet")
  1320. flag=flag+1
  1321. print("Step one is done.")
  1322. MES.Text="Click on part two. This part will not be moved."
  1323. elseif(flag == 2)then
  1324. C2.Value=part.Position
  1325. selectionBox.Color = BrickColor.Red()
  1326. selectionLasso.Color = BrickColor.Red()
  1327. flag=flag+1
  1328. print("Step two is done.")
  1329. MES.Text="Click on part three. This part will be centered."
  1330. elseif(flag == 3)or(flag > 3)then
  1331. Proxy.Position=((C1.Value+C2.Value)/Vector3.new(2,2,2))
  1332. print("Proxy is set.")
  1333. part.CFrame=Proxy.CFrame
  1334. print("Part is moved.")
  1335. flag=1
  1336. print("Flag is set to one.")
  1337. C1.Value=Vector3.new(0,0,0)
  1338. C2.Value=Vector3.new(0,0,0)
  1339. print("Values reset.")
  1340. MES.Text="Your part should now be centered."
  1341. MES:Remove()
  1342. resetTool()
  1343. end
  1344. --The lock will expire in 5 seconds, which is good enough since we deleted the part
  1345. end
  1346. end
  1347. cleanOrphanedModel(oldParent)
  1348. end
  1349. end
  1350.  
  1351. function saveSelectionColor(instance)
  1352. return
  1353. end
  1354.  
  1355. function setSelection(partOrModel)
  1356. if partOrModel ~= currentSelection then
  1357. clearSelection()
  1358. if Instance.Lock(partOrModel) then
  1359. lockTime = time()
  1360. currentSelection = partOrModel
  1361. saveSelectionColor(currentSelection)
  1362. selectionBox.Adornee = currentSelection
  1363. end
  1364. else
  1365. if currentSelection ~= nil and time() - lockTime > 2 then
  1366. --Maintain the lock
  1367. if not(Instance.Lock(currentSelection)) then
  1368. --we lost the lock
  1369. clearSelection()
  1370. else
  1371. lockTime = time()
  1372. end
  1373. end
  1374. end
  1375. end
  1376.  
  1377. function clearSelection()
  1378. if currentSelection ~= nil then
  1379. for part, color in pairs(currentSelectionColors) do
  1380. part.BrickColor = color
  1381. end
  1382. selectionBox.Adornee = nil
  1383. Instance.Unlock(currentSelection)
  1384. end
  1385. currentSelectionColors = {}
  1386. currentSelection = nil
  1387. selectionLasso.Part = nil
  1388. selectionBox.Adornee = nil
  1389. end
  1390.  
  1391. local alreadyMoving = false
  1392. function on3dMouseMove(mouse)
  1393. if alreadyMoving then
  1394. return
  1395. end
  1396. alreadyMoving = true
  1397. if not(inGui) and not(inPalette) then
  1398. local part = mouse.Target
  1399. if canSelectObject(part) then
  1400. selectionLasso.Part = part
  1401. local model = findModel(part)
  1402. if model then
  1403. setSelection(model)
  1404. else
  1405. setSelection(part)
  1406. end
  1407. else
  1408. clearSelection()
  1409. end
  1410. end
  1411. alreadyMoving = false
  1412. end
  1413.  
  1414. function onEquippedLocal(mouse)
  1415. if(Proxy~=nil)then
  1416. Proxy.Parent=game.Lighting
  1417. else
  1418. return --if we have no proxy this tool doesn't work.
  1419. end
  1420. setupMES()
  1421. MES.Text="Click on part one. This part will not be moved."
  1422. --Tool.TextureId = "rbxasset://icons/delete_sel.png"
  1423. local character = script.Parent.Parent
  1424. local player = game.Players:GetPlayerFromCharacter(character)
  1425. guiMain = Instance.new("ScreenGui")
  1426. guiMain.Parent = player.PlayerGui
  1427.  
  1428. inGui = false
  1429. inPalette = false
  1430.  
  1431. mouse.Button1Down:connect(function() on3dButton1Down(mouse) end)
  1432. mouse.Move:connect(function() on3dMouseMove(mouse) end)
  1433. --mouse.Icon ="rbxasset://textures\\HammerCursor.png"
  1434.  
  1435. selectionBox = Instance.new("SelectionBox")
  1436. selectionBox.Name = "Model Center Selection"
  1437. selectionBox.Color = BrickColor.Blue()
  1438. selectionBox.Adornee = nil
  1439. selectionBox.Parent = player.PlayerGui
  1440.  
  1441. selectionLasso = Instance.new("SelectionPartLasso")
  1442. selectionLasso.Name = "Model Center Lasso"
  1443. selectionLasso.Humanoid = character.Humanoid
  1444. selectionLasso.archivable = false
  1445. selectionLasso.Visible = true
  1446. selectionLasso.Parent = game.workspace
  1447. selectionLasso.Color = BrickColor.Blue()
  1448.  
  1449. alreadyMoving = false
  1450. mouse.KeyDown:connect(onKeyDown)
  1451. --buildGui(guiMain, mouse)
  1452. end
  1453.  
  1454. function onUnequippedLocal()
  1455. wait(0.001)
  1456. endMES()
  1457. wait(0.001)
  1458. clearProxy(OwnerName) --To resolve random issues.
  1459. wait(0.001)
  1460. C1.Value=Vector3.new(0,0,0)
  1461. wait(0.001)
  1462. C2.Value=Vector3.new(0,0,0)
  1463. wait(0.001)
  1464. flag = 1
  1465. wait(0.001)
  1466. Tool.TextureId = origTexture
  1467. wait(0.001)
  1468. clearSelection()
  1469. wait(0.001)
  1470. selectionBox:Remove()
  1471. wait(0.001)
  1472. selectionLasso:Remove()
  1473. wait(0.001) -- each wait gives the script time to work. LEAVE THEM ALONE!!!
  1474. end
  1475.  
  1476.  
  1477. Tool.Equipped:connect(onEquippedLocal)
  1478. Tool.Unequipped:connect(onUnequippedLocal)
  1479.  
  1480. end))
  1481. Script14.Name = "SwordScript"
  1482. Script14.Parent = Tool12
  1483. table.insert(cors,sandbox(Script14,function()
  1484. -------- OMG HAX
  1485.  
  1486. r = game:service("RunService")
  1487.  
  1488.  
  1489. local damage = 0
  1490.  
  1491.  
  1492. local slash_damage = 0
  1493.  
  1494.  
  1495. sword = script.Parent.Handle
  1496. Tool = script.Parent
  1497.  
  1498.  
  1499.  
  1500. function attack()
  1501. local anim = Instance.new("StringValue")
  1502. anim.Name = "toolanim"
  1503. anim.Value = "Slash"
  1504. anim.Parent = Tool
  1505. end
  1506.  
  1507.  
  1508. function swordUp()
  1509. Tool.GripForward = Vector3.new(-1,0,0)
  1510. Tool.GripRight = Vector3.new(0,1,0)
  1511. Tool.GripUp = Vector3.new(0,0,1)
  1512. end
  1513.  
  1514. function swordOut()
  1515. Tool.GripForward = Vector3.new(0,0,1)
  1516. Tool.GripRight = Vector3.new(0,-1,0)
  1517. Tool.GripUp = Vector3.new(-1,0,0)
  1518. end
  1519.  
  1520.  
  1521.  
  1522. Tool.Enabled = true
  1523.  
  1524. function onActivated()
  1525.  
  1526. if not Tool.Enabled then
  1527. return
  1528. end
  1529.  
  1530. Tool.Enabled = false
  1531.  
  1532. local character = Tool.Parent;
  1533. local humanoid = character.Humanoid
  1534. if humanoid == nil then
  1535. print("Humanoid not found")
  1536. return
  1537. end
  1538.  
  1539.  
  1540.  
  1541. attack()
  1542.  
  1543. wait(1)
  1544.  
  1545. Tool.Enabled = true
  1546. end
  1547.  
  1548.  
  1549. function onEquipped()
  1550. print("Running Center")
  1551. end
  1552.  
  1553.  
  1554. script.Parent.Activated:connect(onActivated)
  1555. script.Parent.Equipped:connect(onEquipped)
  1556.  
  1557.  
  1558. end))
  1559. Vector3Value15.Name = "C2"
  1560. Vector3Value15.Parent = Tool12
  1561. Vector3Value16.Name = "C1"
  1562. Vector3Value16.Parent = Tool12
  1563. ScreenGui17.Name = "Center"
  1564. ScreenGui17.Parent = Tool12
  1565. Frame18.Parent = ScreenGui17
  1566. Frame18.Size = UDim2.new(0, 100, 0, 20)
  1567. TextLabel19.Parent = Frame18
  1568. TextLabel19.Text = "Auto-Anchor:"
  1569. TextLabel19.Position = UDim2.new(0, 40, 0, 10)
  1570. TextButton20.Name = "ACTIVE"
  1571. TextButton20.Parent = Frame18
  1572. TextButton20.Size = UDim2.new(0, 15, 0, 16)
  1573. TextButton20.Text = ""
  1574. TextButton20.Position = UDim2.new(0, 80, 0, 2)
  1575. TextButton20.Active = false
  1576. TextButton20.BackgroundColor3 = Color3.new(1, 0, 0)
  1577. TextButton20.AutoButtonColor = false
  1578. Tool21.Name = "Dragger"
  1579. Tool21.Parent = mas
  1580. Tool21.TextureId = "rbxasset://icons/freemove.png"
  1581. Tool21.GripForward = Vector3.new(-0, 1, 0)
  1582. Tool21.GripPos = Vector3.new(0.400000006, -0.300000012, 0.100000001)
  1583. Tool21.GripUp = Vector3.new(0, 0, 1)
  1584. LocalScript22.Name = "Dragger Local"
  1585. LocalScript22.Parent = Tool21
  1586. table.insert(cors,sandbox(LocalScript22,function()
  1587. local Tool = script.Parent
  1588.  
  1589. enabled = true
  1590. local origTexture = Tool.TextureId
  1591. game:GetService("ContentProvider"):Preload("rbxasset://icons/freemove_sel.png")
  1592.  
  1593. local selectionBox
  1594. local currentSelection
  1595. local currentSelectionColors = {}
  1596. local selectionLasso
  1597. local inGui = false
  1598. local inPalette = false
  1599. local lockTime = 0
  1600.  
  1601. function canSelectObject(part)
  1602. return part and not (part.Locked) and (part.Position - script.Parent.Parent.Head.Position).Magnitude < 60
  1603. end
  1604.  
  1605. function findModel(part)
  1606. while part ~= nil do
  1607. if part.className == "Model" then
  1608. return part
  1609. end
  1610. part = part.Parent
  1611. end
  1612.  
  1613. return nil
  1614. end
  1615.  
  1616.  
  1617. function startDrag(mousePart, hitPoint, collection)
  1618. dragger = Instance.new("Dragger")
  1619. pcall(function() dragger:MouseDown(mousePart, hitPoint, collection) end)
  1620. end
  1621.  
  1622. function collectBaseParts(object, collection)
  1623. if object:IsA("BasePart") then
  1624. collection[#collection+1] = object
  1625. end
  1626. for index,child in pairs(object:GetChildren()) do
  1627. collectBaseParts(child, collection)
  1628. end
  1629. end
  1630.  
  1631. function onMouseDown(mouse)
  1632. mouse.Icon ="rbxasset://textures\\GrabRotateCursor.png"
  1633. local part = mouse.Target
  1634. if canSelectObject(part) then
  1635. local hitPoint = mouse.Hit:toObjectSpace(part.CFrame).p
  1636. if trySelection(part) then
  1637. local instances = {}
  1638. collectBaseParts(currentSelection, instances)
  1639. startDrag(part, hitPoint, instances)
  1640. return
  1641. end
  1642. end
  1643.  
  1644. --Clear the selection if we weren't able to lock succesfullu
  1645. onMouseUp(mouse)
  1646. end
  1647.  
  1648.  
  1649.  
  1650. function onMouseUp(mouse)
  1651. mouse.Icon ="rbxasset://textures\\GrabCursor.png"
  1652. if dragger ~= nil then
  1653. pcall(function() dragger:MouseUp() end)
  1654. dragger = nil
  1655. end
  1656. end
  1657.  
  1658. function trySelection(part)
  1659. if canSelectObject(part) then
  1660. selectionLasso.Part = part
  1661. local model = findModel(part)
  1662. if model then
  1663. return setSelection(model)
  1664. else
  1665. return setSelection(part)
  1666. end
  1667. else
  1668. clearSelection()
  1669. return false
  1670. end
  1671. end
  1672.  
  1673. function onKeyDown(key)
  1674. if dragger ~= nil then
  1675. if key == 'R' or key == 'r' then
  1676. dragger:AxisRotate(Enum.Axis.Y)
  1677. elseif key == 'T' or key == 't' then
  1678. dragger:AxisRotate(Enum.Axis.Z)
  1679. end
  1680. end
  1681. end
  1682. local alreadyMoving
  1683. function onMouseMove(mouse)
  1684. if alreadyMoving then
  1685. return
  1686. end
  1687.  
  1688. alreadyMoving = true
  1689. if dragger ~= nil then
  1690. --Maintain the lock
  1691. if time() - lockTime > 3 then
  1692. Instance.Lock(currentSelection)
  1693. lockTime = time()
  1694. end
  1695.  
  1696. --Then drag
  1697. pcall(function() dragger:MouseMove(mouse.UnitRay) end)
  1698. else
  1699. trySelection(mouse.Target)
  1700. end
  1701. alreadyMoving = false
  1702. end
  1703.  
  1704.  
  1705. function saveSelectionColor(instance)
  1706. if instance:IsA("BasePart") then
  1707. currentSelectionColors[instance] = instance.BrickColor
  1708. if instance.BrickColor == BrickColor.Blue() then
  1709. instance.BrickColor = BrickColor.new("Deep blue")
  1710. else
  1711. instance.BrickColor = BrickColor.Blue()
  1712. end
  1713. end
  1714.  
  1715. local children = instance:GetChildren()
  1716. if children then
  1717. for pos, child in pairs(children) do
  1718. saveSelectionColor(child)
  1719. end
  1720. end
  1721. end
  1722.  
  1723. function setSelection(partOrModel)
  1724. if partOrModel ~= currentSelection then
  1725. clearSelection()
  1726. if Instance.Lock(partOrModel) then
  1727. lockTime = time()
  1728. currentSelection = partOrModel
  1729. saveSelectionColor(currentSelection)
  1730. selectionBox.Adornee = currentSelection
  1731. return true
  1732. end
  1733. else
  1734. if currentSelection ~= nil then
  1735. if time() - lockTime > 2 then
  1736. --Maintain the lock
  1737. if not(Instance.Lock(currentSelection)) then
  1738. --we lost the lock
  1739. clearSelection()
  1740. return false
  1741. else
  1742. lockTime = time()
  1743. return true
  1744. end
  1745. else
  1746. return true
  1747. end
  1748. end
  1749. end
  1750.  
  1751. return false
  1752. end
  1753.  
  1754. function clearSelection()
  1755. if currentSelection ~= nil then
  1756. for part, color in pairs(currentSelectionColors) do
  1757. part.BrickColor = color
  1758. end
  1759. selectionBox.Adornee = nil
  1760. Instance.Unlock(currentSelection)
  1761. end
  1762. currentSelectionColors = {}
  1763. currentSelection = nil
  1764. selectionLasso.Part = nil
  1765. selectionBox.Adornee = nil
  1766. end
  1767.  
  1768. function onEquippedLocal(mouse)
  1769. Tool.TextureId = "rbxasset://icons/freemove_sel.png"
  1770.  
  1771. local character = script.Parent.Parent
  1772. local player = game.Players:GetPlayerFromCharacter(character)
  1773. guiMain = Instance.new("ScreenGui")
  1774. guiMain.Parent = player.PlayerGui
  1775.  
  1776. inGui = false
  1777. inPalette = false
  1778.  
  1779. mouse.Icon ="rbxasset://textures\\GrabCursor.png"
  1780. mouse.Button1Down:connect(function() onMouseDown(mouse) end)
  1781. mouse.Button1Up:connect(function() onMouseUp(mouse) end)
  1782. mouse.Move:connect(function() onMouseMove(mouse) end)
  1783. mouse.KeyDown:connect(function(string) onKeyDown(string) end)
  1784.  
  1785. selectionBox = Instance.new("SelectionBox")
  1786. selectionBox.Name = "Model Delete Selection"
  1787. selectionBox.Color = BrickColor.Blue()
  1788. selectionBox.Adornee = nil
  1789. selectionBox.Parent = player.PlayerGui
  1790.  
  1791. selectionLasso = Instance.new("SelectionPartLasso")
  1792. selectionLasso.Name = "Model Drag Lasso"
  1793. selectionLasso.Humanoid = character.Humanoid
  1794. selectionLasso.archivable = false
  1795. selectionLasso.Visible = true
  1796. selectionLasso.Parent = game.workspace
  1797. selectionLasso.Color = BrickColor.Blue()
  1798.  
  1799. alreadyMoving = false
  1800. --buildGui(guiMain, mouse)
  1801. end
  1802.  
  1803. function onUnequippedLocal()
  1804. Tool.TextureId = origTexture
  1805. clearSelection()
  1806. selectionBox:Remove()
  1807. selectionLasso:Remove()
  1808. end
  1809.  
  1810.  
  1811. Tool.Equipped:connect(onEquippedLocal)
  1812. Tool.Unequipped:connect(onUnequippedLocal)
  1813. end))
  1814. Script23.Name = "SwordScript"
  1815. Script23.Parent = Tool21
  1816. table.insert(cors,sandbox(Script23,function()
  1817. -------- OMG HAX
  1818.  
  1819. r = game:service("RunService")
  1820.  
  1821.  
  1822. local damage = 0
  1823.  
  1824.  
  1825. local slash_damage = 0
  1826.  
  1827.  
  1828. sword = script.Parent.Handle
  1829. Tool = script.Parent
  1830.  
  1831.  
  1832.  
  1833. function attack()
  1834. local anim = Instance.new("StringValue")
  1835. anim.Name = "toolanim"
  1836. anim.Value = "Slash"
  1837. anim.Parent = Tool
  1838. end
  1839.  
  1840.  
  1841. function swordUp()
  1842. Tool.GripForward = Vector3.new(-1,0,0)
  1843. Tool.GripRight = Vector3.new(0,1,0)
  1844. Tool.GripUp = Vector3.new(0,0,1)
  1845. end
  1846.  
  1847. function swordOut()
  1848. Tool.GripForward = Vector3.new(0,0,1)
  1849. Tool.GripRight = Vector3.new(0,-1,0)
  1850. Tool.GripUp = Vector3.new(-1,0,0)
  1851. end
  1852.  
  1853.  
  1854.  
  1855. Tool.Enabled = true
  1856.  
  1857. function onActivated()
  1858.  
  1859. if not Tool.Enabled then
  1860. return
  1861. end
  1862.  
  1863. Tool.Enabled = false
  1864.  
  1865. local character = Tool.Parent;
  1866. local humanoid = character.Humanoid
  1867. if humanoid == nil then
  1868. print("Humanoid not found")
  1869. return
  1870. end
  1871.  
  1872.  
  1873.  
  1874. attack()
  1875.  
  1876. wait(1)
  1877.  
  1878. Tool.Enabled = true
  1879. end
  1880.  
  1881.  
  1882. function onEquipped()
  1883. end
  1884.  
  1885.  
  1886. script.Parent.Activated:connect(onActivated)
  1887. script.Parent.Equipped:connect(onEquipped)
  1888.  
  1889.  
  1890. end))
  1891. Tool24.Name = "Rotate Tool"
  1892. Tool24.Parent = mas
  1893. Tool24.TextureId = "http://www.roblox.com/asset/?id=24191398"
  1894. Tool24.GripForward = Vector3.new(-1, 0, -0)
  1895. Tool24.GripPos = Vector3.new(0.899999976, 0.100000001, 0)
  1896. Tool24.GripRight = Vector3.new(0, 0, -1)
  1897. LocalScript25.Name = "Rotate"
  1898. LocalScript25.Parent = Tool24
  1899. table.insert(cors,sandbox(LocalScript25,function()
  1900. local Tool = script.Parent
  1901. local Player = game.Players.LocalPlayer
  1902. local MainGui
  1903. local RotateGui
  1904. local Selectbox = Instance.new("SelectionBox")
  1905. Selectbox.Name = "RotateSelectionBox"
  1906. local Lasso = Instance.new("SelectionPartLasso")
  1907. Lasso.Name = "RotateLasso"
  1908. local Handles = Instance.new("ArcHandles")
  1909. Handles.Name = "RotateHandles"
  1910.  
  1911. events = {}
  1912. undo_part = {}
  1913. undo_cframe = {}
  1914. increment = 1
  1915. selection = nil
  1916. lastCFrame = nil
  1917.  
  1918. function round(number,by)
  1919. return math.floor((number/by)+0.5) * by
  1920. end
  1921.  
  1922. function AngleFromAxis(axis,rA)
  1923. rA = math.rad(round(math.deg(rA),increment))
  1924. return axis==Enum.Axis.X and {rA,0,0}
  1925. or axis==Enum.Axis.Y and {0,rA,0}
  1926. or axis==Enum.Axis.Z and {0,0,rA}
  1927. end
  1928.  
  1929. function IsSelectable(part,hit)
  1930. if part and Player.Character:FindFirstChild("Head") then
  1931. if not part.Locked and (hit - Player.Character.Head.Position).magnitude < 60 then return true end
  1932. end
  1933. return false
  1934. end
  1935.  
  1936. function UndoRotate()
  1937. if #undo_part > 0 then
  1938. local part = undo_part[#undo_part]
  1939. local cframe = undo_cframe[#undo_cframe]
  1940. part.CFrame = cframe
  1941. table.remove(undo_part,#undo_part)
  1942. table.remove(undo_cframe,#undo_cframe)
  1943. end
  1944. end
  1945.  
  1946. function ResetAngles()
  1947. if selection then
  1948. lastCFrame = selection.CFrame
  1949. selection.CFrame = CFrame.new(selection.CFrame.p)
  1950. if lastCFrame ~= selection.CFrame then
  1951. table.insert(undo_part,selection)
  1952. table.insert(undo_cframe,lastCFrame)
  1953. end
  1954. end
  1955. end
  1956.  
  1957. local e = true
  1958. function SetIncrement(p)
  1959. if p == "Text" then
  1960. if not e then return end
  1961. e = false
  1962. local n = tonumber(RotateGui.Increment.Field.Text) or 1
  1963. n = n < 1 and 1 or n > 360 and 360 or n
  1964. increment = n
  1965. RotateGui.Increment.Field.Text = n
  1966. e = true
  1967. end
  1968. end
  1969.  
  1970. function SetupGUI()
  1971. MainGui = Player.PlayerGui:FindFirstChild("BuildGUI")
  1972. if not MainGui then
  1973. MainGui = Instance.new("ScreenGui")
  1974. MainGui.Name = "BuildGUI"
  1975. MainGui.Parent = Player.PlayerGui
  1976. end
  1977.  
  1978. RotateGui = RotateGui or MainGui:FindFirstChild("RotateTool")
  1979. if not RotateGui then
  1980. RotateGui = Instance.new("Frame")
  1981. RotateGui.Name = "RotateTool"
  1982. RotateGui.BackgroundColor3 = Color3.new(51/255,153/255,1)
  1983. RotateGui.BorderColor3 = Color3.new(0,0,0)
  1984. RotateGui.Position = UDim2.new(0,0,1,-60)
  1985. RotateGui.Size = UDim2.new(0,225,0,60)
  1986.  
  1987. local item = Instance.new("Frame")
  1988. item.Name = "Increment"
  1989. item.BackgroundColor3 = Color3.new(1,147/255,25/255)
  1990. item.BorderColor3 = Color3.new(0,0,0)
  1991. item.Position = UDim2.new(0,0,0.5,0)
  1992. item.Size = UDim2.new(0.75,0,0.5,0)
  1993. item.Parent = RotateGui
  1994. local subitem = Instance.new("TextLabel")
  1995. subitem.Name = "Label"
  1996. subitem.Text = "Increment (degrees)"
  1997. subitem.TextWrap = true
  1998. subitem.BackgroundColor3 = Color3.new(1,147/255,25/255)
  1999. subitem.BorderColor3 = Color3.new(0,0,0)
  2000. subitem.TextColor3 = Color3.new(0,0,0)
  2001. subitem.Position = UDim2.new(0,0,0,0)
  2002. subitem.Size = UDim2.new(0.5,0,1,0)
  2003. subitem.Parent = item
  2004. local subitem = Instance.new("TextBox")
  2005. subitem.Name = "Field"
  2006. subitem.Text = "1"
  2007. subitem.BackgroundColor3 = Color3.new(1,147/255,25/255)
  2008. subitem.BorderColor3 = Color3.new(0,0,0)
  2009. subitem.TextColor3 = Color3.new(0,0,0)
  2010. subitem.Position = UDim2.new(0.5,0,0,0)
  2011. subitem.Size = UDim2.new(0.5,0,1,0)
  2012. subitem.Parent = item
  2013.  
  2014. local item = Instance.new("Frame")
  2015. item.Name = "Selection"
  2016. item.BackgroundColor3 = Color3.new(51/255,153/255,1)
  2017. item.BorderColor3 = Color3.new(0,0,0)
  2018. item.Position = UDim2.new(0,0,0,0)
  2019. item.Size = UDim2.new(0.75,0,0.5,0)
  2020. item.Parent = RotateGui
  2021. local subitem = Instance.new("TextLabel")
  2022. subitem.Name = "Label"
  2023. subitem.Text = "Selection:"
  2024. subitem.TextWrap = true
  2025. subitem.TextXAlignment = Enum.TextXAlignment.Right
  2026. subitem.BorderSizePixel = 0
  2027. subitem.BackgroundColor3 = Color3.new(51/255,153/255,1)
  2028. subitem.BorderColor3 = Color3.new(0,0,0)
  2029. subitem.TextColor3 = Color3.new(0,0,0)
  2030. subitem.Position = UDim2.new(0,2,0,2)
  2031. subitem.Size = UDim2.new(0.5,-4,1,-4)
  2032. subitem.Parent = item
  2033. local subitem = Instance.new("TextLabel")
  2034. subitem.Name = "Part"
  2035. subitem.Text = "[none]"
  2036. subitem.TextWrap = true
  2037. subitem.TextXAlignment = Enum.TextXAlignment.Left
  2038. subitem.BorderSizePixel = 0
  2039. subitem.BackgroundColor3 = Color3.new(51/255,153/255,1)
  2040. subitem.BorderColor3 = Color3.new(0,0,0)
  2041. subitem.TextColor3 = Color3.new(0,0,0)
  2042. subitem.Position = UDim2.new(0.5,2,0,2)
  2043. subitem.Size = UDim2.new(0.5,-4,1,-4)
  2044. subitem.Parent = item
  2045.  
  2046. local item = Instance.new("TextButton")
  2047. item.Name = "Reset"
  2048. item.Text = "Reset (R)"
  2049. item.BackgroundColor3 = Color3.new(27/255, 110/255, 27/255)
  2050. item.BorderColor3 = Color3.new(0,0,0)
  2051. item.TextColor3 = Color3.new(0,0,0)
  2052. item.Position = UDim2.new(0.75,0,0,0)
  2053. item.Size = UDim2.new(0.25,0,0.5,0)
  2054. item.Parent = RotateGui
  2055.  
  2056. local item = Instance.new("TextButton")
  2057. item.Name = "Undo"
  2058. item.Text = "Undo (F)"
  2059. item.BackgroundColor3 = Color3.new(221/255,203/255,0)
  2060. item.BorderColor3 = Color3.new(0,0,0)
  2061. item.TextColor3 = Color3.new(0,0,0)
  2062. item.Position = UDim2.new(0.75,0,0.5,0)
  2063. item.Size = UDim2.new(0.25,0,0.5,0)
  2064. item.Parent = RotateGui
  2065. end
  2066. RotateGui.Parent = MainGui
  2067. Selectbox.Parent = Player.PlayerGui
  2068. Selectbox.Color = BrickColor.new("Bright blue")
  2069. Handles.Parent = Player.PlayerGui
  2070. Handles.Color = BrickColor.new("Bright orange")
  2071. if Player.Character:FindFirstChild("Humanoid") then
  2072. Lasso.Humanoid = Player.Character.Humanoid
  2073. Lasso.Parent = Player.PlayerGui
  2074. Lasso.Color = BrickColor.new("Bright blue")
  2075. end
  2076. events["Undo"] = RotateGui.Undo.MouseButton1Click:connect(UndoRotate)
  2077. events["Reset"] = RotateGui.Reset.MouseButton1Click:connect(ResetAngles)
  2078. events["Inc"] = RotateGui.Increment.Field.Changed:connect(SetIncrement)
  2079. end
  2080.  
  2081. to_undo_part = nil
  2082. to_undo_cframe = nil
  2083.  
  2084. Tool.Equipped:connect(function(mouse)
  2085. SetupGUI()
  2086.  
  2087. RotateGui.Increment.Field.Text = tostring(increment)
  2088.  
  2089. events["MouseDown"] = mouse.Button1Down:connect(function()
  2090. if IsSelectable(mouse.Target,mouse.Hit.p) then
  2091. selection = mouse.Target
  2092. Selectbox.Adornee = selection
  2093. Handles.Adornee = selection
  2094. Lasso.Part = selection
  2095.  
  2096. RotateGui.Selection.Part.Text = selection.Name .. " (" .. selection.className .. ")"
  2097. RotateGui.Reset.BackgroundColor3 = Color3.new(47/255, 208/255, 47/255)
  2098. else
  2099. Selectbox.Adornee = nil
  2100. Handles.Adornee = nil
  2101. Lasso.Part = nil
  2102. selection = nil
  2103.  
  2104. RotateGui.Selection.Part.Text = "[none]"
  2105. RotateGui.Reset.BackgroundColor3 = Color3.new(27/255, 110/255, 27/255)
  2106. end
  2107. end)
  2108.  
  2109. events["KeyDown"] = mouse.KeyDown:connect(function(key)
  2110. key = key:lower()
  2111. if key == "r" then -- reset hotkey
  2112. ResetAngles()
  2113. elseif key == "f" then -- undo hotkey
  2114. UndoRotate()
  2115. end
  2116. end)
  2117.  
  2118. events["MouseUp"] = mouse.Button1Up:connect(function()
  2119. if to_undo_part and to_undo_cframe then
  2120. if to_undo_part ~= selection or to_undo_cframe ~= selection.CFrame then
  2121. table.insert(undo_part,to_undo_part)
  2122. table.insert(undo_cframe,to_undo_cframe)
  2123. end
  2124. end
  2125. to_undo_part = nil
  2126. to_undo_cframe = nil
  2127. Handles.Axes = Axes.new(Enum.Axis.X,Enum.Axis.Y,Enum.Axis.Z)
  2128. end)
  2129.  
  2130. events["HandleMouseDown"] = Handles.MouseButton1Down:connect(function(axis)
  2131. if selection then
  2132. lastCFrame = selection.CFrame
  2133. to_undo_part = selection
  2134. to_undo_cframe = lastCFrame
  2135. Handles.Axes = Axes.new(axis)
  2136. end
  2137. end)
  2138.  
  2139. events["HandleMouseDrag"] = Handles.MouseDrag:connect(function(axis, relativeAngle, deltaRadius)
  2140. if selection then
  2141. selection.CFrame = lastCFrame * CFrame.Angles(unpack(AngleFromAxis(axis,relativeAngle)))
  2142. end
  2143. end)
  2144. end)
  2145.  
  2146. function onUnequip()
  2147. wait(0.01)
  2148. Player.PlayerGui:findFirstChild("BuildGUI").Parent=nil
  2149. Player.PlayerGui:findFirstChild("RotateHandles").Parent=nil
  2150. Player.PlayerGui:findFirstChild("RotateSelectionBox").Parent=nil
  2151. Player.PlayerGui:findFirstChild("RotateLasso").Parent=nil
  2152. wait(0.01)
  2153. if not RotateGui then
  2154. MainGui.Parent=nil
  2155. end
  2156. if RotateGui then
  2157. RotateGui.Parent = nil
  2158. end
  2159. if SelectBox then
  2160. Selectbox.Adornee = nil
  2161. Selectbox.Parent = nil
  2162. end
  2163. if Handles then
  2164. Handles.Adornee = nil
  2165. Handles.Parent = nil
  2166. end
  2167. if Lasso then
  2168. Lasso.Part = nil
  2169. Lasso.Parent = nil
  2170. end
  2171. wait(0.01)
  2172.  
  2173. selection = nil
  2174. to_undo_part = nil
  2175. to_undo_cframe = nil
  2176. wait(0.01)
  2177.  
  2178. RotateGui.Selection.Part.Text = "[none]"
  2179. RotateGui.Reset.BackgroundColor3 = Color3.new(27/255, 110/255, 27/255)
  2180. Handles.Axes = Axes.new(Enum.Axis.X,Enum.Axis.Y,Enum.Axis.Z)
  2181. wait(0.01)
  2182.  
  2183. for i,v in pairs(undo_part) do
  2184. undo_part[i] = nil -- deselected the tool, so get rid of undo history
  2185. undo_cframe[i] = nil
  2186. end
  2187. wait(0.01)
  2188. undo_part = {}
  2189. undo_cframe = {}
  2190. for ref in pairs(events) do
  2191. events[ref]:disconnect()
  2192. events[ref] = nil
  2193. end
  2194. wait(0.01)
  2195. collectgarbage()
  2196. end
  2197.  
  2198. Tool.Unequipped:connect(function() onUnequip() end)
  2199. end))
  2200. Tool26.Name = "SquareDown"
  2201. Tool26.Parent = mas
  2202. Tool26.GripForward = Vector3.new(-1, -0, -0)
  2203. Tool26.GripPos = Vector3.new(0, 0, -0.5)
  2204. Tool26.GripRight = Vector3.new(0, 1, 0)
  2205. Tool26.GripUp = Vector3.new(0, 0, 1)
  2206. LocalScript27.Name = "Model Delete Local"
  2207. LocalScript27.Parent = Tool26
  2208. table.insert(cors,sandbox(LocalScript27,function()
  2209. local Tool = script.Parent
  2210.  
  2211. enabled = true
  2212. local origTexture = Tool.TextureId
  2213. --game:GetService("ContentProvider"):Preload("rbxasset://icons/delete_sel.png")
  2214.  
  2215. local selectionBox
  2216. local currentSelection
  2217. local currentSelectionColors = {}
  2218. local selectionLasso
  2219. local inGui = false
  2220. local inPalette = false
  2221. local lockTime = 0
  2222.  
  2223. function canSelectObject(part)
  2224. return part and not (part.Locked) and (part.Position - script.Parent.Parent.Head.Position).Magnitude < 60
  2225. end
  2226.  
  2227. function findModel(part)
  2228. while part ~= nil do
  2229. if part.className == "Model" then
  2230. return part
  2231. end
  2232. part = part.Parent
  2233. end
  2234.  
  2235. return nil
  2236. end
  2237.  
  2238. function cleanOrphanedModel(parent)
  2239. if parent.className == "Model" then
  2240. local children = parent:GetChildren()
  2241. if #children == 0 then
  2242. local oldParent = parent.Parent
  2243. parent:Remove()
  2244. cleanOrphanedModel(oldParent)
  2245. end
  2246. end
  2247. end
  2248.  
  2249. function on3dButton1Down(mouse)
  2250. local part = mouse.Target
  2251. if canSelectObject(part) then
  2252. local model = findModel(part)
  2253. local oldParent
  2254. if model then
  2255. if Instance.Lock(model) then
  2256. if currentSelection == model then
  2257. currentSelection = nil
  2258. clearSelection()
  2259. end
  2260. oldParent = model.Parent
  2261. --model:Remove()
  2262. --The lock will expire in 5 seconds, which is good enough since we deleted the model
  2263. end
  2264. else
  2265. if Instance.Lock(part) then
  2266. if currentSelection == part then
  2267. currentSelection = nil
  2268. clearSelection()
  2269. end
  2270. oldParent = part.Parent
  2271. part.Size=part.Size-Vector3.new(2,0,2)
  2272. --The lock will expire in 5 seconds, which is good enough since we deleted the part
  2273. end
  2274. end
  2275. cleanOrphanedModel(oldParent)
  2276. end
  2277. end
  2278.  
  2279. function saveSelectionColor(instance)
  2280.  
  2281. local children = instance:GetChildren()
  2282. if children then
  2283. for pos, child in pairs(children) do
  2284. saveSelectionColor(child)
  2285. end
  2286. end
  2287. end
  2288.  
  2289. function setSelection(partOrModel)
  2290. if partOrModel ~= currentSelection then
  2291. clearSelection()
  2292. if Instance.Lock(partOrModel) then
  2293. lockTime = time()
  2294. currentSelection = partOrModel
  2295. saveSelectionColor(currentSelection)
  2296. selectionBox.Adornee = currentSelection
  2297. end
  2298. else
  2299. if currentSelection ~= nil and time() - lockTime > 2 then
  2300. --Maintain the lock
  2301. if not(Instance.Lock(currentSelection)) then
  2302. --we lost the lock
  2303. clearSelection()
  2304. else
  2305. lockTime = time()
  2306. end
  2307. end
  2308. end
  2309. end
  2310.  
  2311. function clearSelection()
  2312. if currentSelection ~= nil then
  2313. for part, color in pairs(currentSelectionColors) do
  2314. part.BrickColor = color
  2315. end
  2316. selectionBox.Adornee = nil
  2317. Instance.Unlock(currentSelection)
  2318. end
  2319. currentSelectionColors = {}
  2320. currentSelection = nil
  2321. selectionLasso.Part = nil
  2322. selectionBox.Adornee = nil
  2323. end
  2324.  
  2325. local alreadyMoving = false
  2326. function on3dMouseMove(mouse)
  2327. if alreadyMoving then
  2328. return
  2329. end
  2330. alreadyMoving = true
  2331. if not(inGui) and not(inPalette) then
  2332. local part = mouse.Target
  2333. if canSelectObject(part) then
  2334. selectionLasso.Part = part
  2335. local model = findModel(part)
  2336. if model then
  2337. setSelection(model)
  2338. else
  2339. setSelection(part)
  2340. end
  2341. else
  2342. clearSelection()
  2343. end
  2344. end
  2345. alreadyMoving = false
  2346. end
  2347.  
  2348. function onEquippedLocal(mouse)
  2349. --Tool.TextureId = "rbxasset://icons/delete_sel.png"
  2350. local character = script.Parent.Parent
  2351. local player = game.Players:GetPlayerFromCharacter(character)
  2352. guiMain = Instance.new("ScreenGui")
  2353. guiMain.Parent = player.PlayerGui
  2354.  
  2355. inGui = false
  2356. inPalette = false
  2357.  
  2358. mouse.Button1Down:connect(function() on3dButton1Down(mouse) end)
  2359. mouse.Move:connect(function() on3dMouseMove(mouse) end)
  2360. --mouse.Icon ="rbxasset://textures\\HammerCursor.png"
  2361.  
  2362. selectionBox = Instance.new("SelectionBox")
  2363. selectionBox.Name = "Model CanCollide Selection"
  2364. selectionBox.Color = BrickColor.Green()
  2365. selectionBox.Adornee = nil
  2366. selectionBox.Parent = player.PlayerGui
  2367.  
  2368. selectionLasso = Instance.new("SelectionPartLasso")
  2369. selectionLasso.Name = "Model CanCollide Lasso"
  2370. selectionLasso.Humanoid = character.Humanoid
  2371. selectionLasso.archivable = false
  2372. selectionLasso.Visible = true
  2373. selectionLasso.Parent = game.workspace
  2374. selectionLasso.Color = BrickColor.Green()
  2375.  
  2376. alreadyMoving = false
  2377. --buildGui(guiMain, mouse)
  2378. end
  2379.  
  2380. function onUnequippedLocal()
  2381. Tool.TextureId = origTexture
  2382. clearSelection()
  2383. selectionBox:Remove()
  2384. selectionLasso:Remove()
  2385. end
  2386.  
  2387.  
  2388. Tool.Equipped:connect(onEquippedLocal)
  2389. Tool.Unequipped:connect(onUnequippedLocal)
  2390.  
  2391. end))
  2392. Script28.Name = "SwordScript"
  2393. Script28.Parent = Tool26
  2394. table.insert(cors,sandbox(Script28,function()
  2395. -------- OMG HAX
  2396.  
  2397. r = game:service("RunService")
  2398.  
  2399.  
  2400. local damage = 0
  2401.  
  2402.  
  2403. local slash_damage = 0
  2404.  
  2405.  
  2406. sword = script.Parent.Handle
  2407. Tool = script.Parent
  2408.  
  2409.  
  2410.  
  2411. function attack()
  2412. local anim = Instance.new("StringValue")
  2413. anim.Name = "toolanim"
  2414. anim.Value = "Slash"
  2415. anim.Parent = Tool
  2416. end
  2417.  
  2418.  
  2419. function swordUp()
  2420. Tool.GripForward = Vector3.new(-1,0,0)
  2421. Tool.GripRight = Vector3.new(0,1,0)
  2422. Tool.GripUp = Vector3.new(0,0,1)
  2423. end
  2424.  
  2425. function swordOut()
  2426. Tool.GripForward = Vector3.new(0,0,1)
  2427. Tool.GripRight = Vector3.new(0,-1,0)
  2428. Tool.GripUp = Vector3.new(-1,0,0)
  2429. end
  2430.  
  2431.  
  2432.  
  2433. Tool.Enabled = true
  2434.  
  2435. function onActivated()
  2436.  
  2437. if not Tool.Enabled then
  2438. return
  2439. end
  2440.  
  2441. Tool.Enabled = false
  2442.  
  2443. local character = Tool.Parent;
  2444. local humanoid = character.Humanoid
  2445. if humanoid == nil then
  2446. print("Humanoid not found")
  2447. return
  2448. end
  2449.  
  2450.  
  2451.  
  2452. attack()
  2453.  
  2454. wait(1)
  2455.  
  2456. Tool.Enabled = true
  2457. end
  2458.  
  2459.  
  2460. function onEquipped()
  2461. print("Running Delete")
  2462. end
  2463.  
  2464.  
  2465. script.Parent.Activated:connect(onActivated)
  2466. script.Parent.Equipped:connect(onEquipped)
  2467.  
  2468.  
  2469. end))
  2470. Tool29.Name = "Vacuum"
  2471. Tool29.Parent = mas
  2472. Tool29.TextureId = "http://www.roblox.com/asset/?id=6803649"
  2473. Tool29.GripForward = Vector3.new(-0, -2.18556949e-07, -1)
  2474. Tool29.GripPos = Vector3.new(-1.5, -0.800000012, -2.70000005)
  2475. Tool29.GripRight = Vector3.new(-1, 0, 0)
  2476. Tool29.GripUp = Vector3.new(0, -1, 2.18556949e-07)
  2477. Script30.Name = "SoundScript"
  2478. Script30.Parent = Tool29
  2479. table.insert(cors,sandbox(Script30,function()
  2480. --Stickmasterluke
  2481.  
  2482.  
  2483. sp=script.Parent
  2484. handle=sp.Handle
  2485.  
  2486.  
  2487. script.ChildAdded:connect(function(item)
  2488. if item~=nil then
  2489. local s=handle:FindFirstChild(item.Name)
  2490. if s~=nil then
  2491. s:Play()
  2492. end
  2493. item:remove()
  2494. end
  2495. end)
  2496.  
  2497.  
  2498. end))
  2499. Part31.Name = "Handle"
  2500. Part31.Parent = Tool29
  2501. Part31.BrickColor = BrickColor.new("White")
  2502. Part31.Reflectance = 0.40000000596046
  2503. Part31.Transparency = 1
  2504. Part31.Rotation = Vector3.new(0, 0, 180)
  2505. Part31.RotVelocity = Vector3.new(0.000934527023, -0.000159777162, 0.00355314207)
  2506. Part31.Velocity = Vector3.new(-0.00583897438, -0.0120003168, 0.00432131672)
  2507. Part31.FormFactor = Enum.FormFactor.Custom
  2508. Part31.Size = Vector3.new(1.79999995, 2.5, 1)
  2509. Part31.CFrame = CFrame.new(264.899994, 66.8998566, -558.5, -1, -0, 0, -0, -1, 0, -0, -0, 1)
  2510. Part31.BottomSurface = Enum.SurfaceType.Smooth
  2511. Part31.TopSurface = Enum.SurfaceType.Smooth
  2512. Part31.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2513. Part31.Position = Vector3.new(264.899994, 66.8998566, -558.5)
  2514. Part31.Orientation = Vector3.new(0, 0, -180)
  2515. Part31.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2516. SpecialMesh32.Parent = Part31
  2517. SpecialMesh32.MeshId = "http://www.roblox.com/asset/?id=84313478 "
  2518. SpecialMesh32.Scale = Vector3.new(1.5, 1.5, 1.5)
  2519. SpecialMesh32.TextureId = "http://www.roblox.com/asset/?id=84313638 "
  2520. SpecialMesh32.MeshType = Enum.MeshType.FileMesh
  2521. SpecialMesh32.Scale = Vector3.new(1.5, 1.5, 1.5)
  2522. Part33.Name = "HosePart"
  2523. Part33.Parent = Part31
  2524. Part33.BrickColor = BrickColor.new("Pastel Blue")
  2525. Part33.Transparency = 1
  2526. Part33.Rotation = Vector3.new(90, 0, -180)
  2527. Part33.RotVelocity = Vector3.new(0.000934527023, -0.000159777162, 0.00355314207)
  2528. Part33.Velocity = Vector3.new(-0.00941004883, -0.00484789349, 0.00558218919)
  2529. Part33.Locked = true
  2530. Part33.FormFactor = Enum.FormFactor.Custom
  2531. Part33.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  2532. Part33.CFrame = CFrame.new(266.759094, 67.9312134, -559.085083, -0.999999523, 5.96046235e-08, 0, 0, 5.96046341e-08, -0.999999702, -5.96046164e-08, -0.999999523, -5.96046164e-08)
  2533. Part33.Color = Color3.new(0.501961, 0.733333, 0.858824)
  2534. Part33.Position = Vector3.new(266.759094, 67.9312134, -559.085083)
  2535. Part33.Orientation = Vector3.new(89.9599991, 180, 0)
  2536. Part33.Color = Color3.new(0.501961, 0.733333, 0.858824)
  2537. SpecialMesh34.Parent = Part33
  2538. SpecialMesh34.MeshId = "http://www.roblox.com/asset/?id=84313555 "
  2539. SpecialMesh34.Scale = Vector3.new(1.5, 1.5, 1.5)
  2540. SpecialMesh34.TextureId = "http://www.roblox.com/asset/?id=84313638 "
  2541. SpecialMesh34.MeshType = Enum.MeshType.FileMesh
  2542. SpecialMesh34.Scale = Vector3.new(1.5, 1.5, 1.5)
  2543. Sound35.Name = "HoseSound"
  2544. Sound35.Parent = Part31
  2545. Sound35.SoundId = "http://www.roblox.com/asset/?id=81699764"
  2546. Sound35.Volume = 0.69999998807907
  2547. Motor36.Parent = Part31
  2548. Motor36.C0 = CFrame.new(0, 0, 0, -0.999999881, 0, 0, 0, -0.99999994, 0, 0, 0, 0.999999881)
  2549. Motor36.C1 = CFrame.new(1.85910034, -0.585082412, 1.0313549, -0.999999642, 0, -5.96046235e-08, 5.96046306e-08, 5.96046377e-08, -0.999999642, 0, -0.999999762, -5.96046235e-08)
  2550. Motor36.Part0 = Part31
  2551. Motor36.Part1 = Part33
  2552. Motor36.MaxVelocity = 0.050000000745058
  2553. LocalScript37.Parent = Tool29
  2554. table.insert(cors,sandbox(LocalScript37,function()
  2555. --Stickmasterluke
  2556. --Altered by QuantumSama
  2557.  
  2558.  
  2559. local Tool=script.Parent
  2560. local Backpack = Tool.Handle
  2561.  
  2562. rate=1/30
  2563.  
  2564. equipped=false
  2565. check=true
  2566. debris=game:GetService("Debris")
  2567.  
  2568.  
  2569. while Tool.Handle:FindFirstChild("Motor")==nil do
  2570. wait()
  2571. end
  2572. local storeWeld=Tool.Handle.Motor
  2573.  
  2574. local HoseSound
  2575.  
  2576.  
  2577. function playsound(soundname)
  2578. if soundname and Tool:FindFirstChild("SoundScript")~=nil then
  2579. local soundtag=Instance.new("StringValue")
  2580. soundtag.Name=soundname
  2581. soundtag.Parent=Tool.SoundScript
  2582. end
  2583. end
  2584.  
  2585. function setwelds()
  2586. if storeWeld then
  2587. storeWeld.Parent=Tool.Handle
  2588. end
  2589. if equipped then
  2590. local ra=Tool.Parent:FindFirstChild("Right Arm")
  2591. local t=Tool.Parent:FindFirstChild("Torso")
  2592. if ra~=nil and t~=nil then
  2593. local rightgrip=ra:FindFirstChild("RightGrip")
  2594. if rightgrip~=nil then
  2595. rightgrip.Part0=t
  2596. rightgrip.C0=CFrame.new(0,0,1)*CFrame.Angles(0,0,math.pi)
  2597. rightgrip.C1=CFrame.new(0,0,0)
  2598. end
  2599. end
  2600. end
  2601. end
  2602.  
  2603. function doSuck()
  2604. local plr=game.Players.LocalPlayer
  2605. if plr~=nil then
  2606. local radiusVec = Vector3.new(6,6,6)
  2607. local handle = Tool:FindFirstChild("Handle")
  2608. local hose = handle:FindFirstChild("HosePart")
  2609. local hoseCFrame = hose.CFrame*CFrame.Angles(math.pi/2,0,0)
  2610. local hoseTarget = hoseCFrame + hoseCFrame.lookVector*9
  2611. local suckTarget = hoseCFrame + hoseCFrame.lookVector*3
  2612. local suckPart = Instance.new("Part")
  2613. suckPart.CanCollide = false
  2614. suckPart.FormFactor = "Custom"
  2615. --suckPart.Shape = "Ball"
  2616. suckPart.Size = Vector3.new(.2,.2,.2)
  2617. suckPart.CFrame = hoseTarget + Vector3.new((math.random()-.5)*10,(math.random()-.5)*10,(math.random()-.5)*10)
  2618. suckPart2 = suckPart:Clone()
  2619. suckPart2.CFrame = hoseTarget + Vector3.new((math.random()-.5)*10,(math.random()-.5)*10,(math.random()-.5)*10)
  2620. debris:AddItem(suckPart,3)
  2621. debris:AddItem(suckPart2,3)
  2622. suckPart.Parent = game.Workspace
  2623. suckPart2.Parent = game.Workspace
  2624.  
  2625. local suckRegion = Region3.new(hoseTarget.p - radiusVec, hoseTarget.p + radiusVec)
  2626.  
  2627. local suckableParts = game.Workspace:FindPartsInRegion3(suckRegion, Tool.Parent,50)
  2628.  
  2629. local limbChance = .075
  2630. for i,v in pairs(suckableParts) do
  2631. if v and v.Parent and v:IsA("BasePart") and not v:IsA("Terrain") and v:getMass() < 40 and not v:FindFirstChild("bp") then
  2632. local bp = Instance.new("BodyPosition")
  2633. bp.Name = "bp"
  2634. bp.maxForce = Vector3.new(99999,99999,99999)
  2635. bp.D = 3000
  2636. bp.P = 30000
  2637. bp.position = suckTarget.p
  2638. debris:AddItem(bp,.5)
  2639. local hum = v.Parent:FindFirstChild("Humanoid")
  2640. if hum then
  2641. if math.random() < limbChance or hum.Health == 0 then
  2642. local creatorTag = Instance.new("ObjectValue")
  2643. creatorTag.Value = plr
  2644. creatorTag.Name = "creator"
  2645. debris:AddItem(creatorTag,.5)
  2646. creatorTag.Parent = hum
  2647.  
  2648. v:BreakJoints()
  2649. bp.Parent = v
  2650. debris:AddItem(v,.15)
  2651. end
  2652. else
  2653. bp.Parent = v
  2654. if not v.Parent:IsA("Tool") then
  2655. delay(0,function()
  2656. local pos = v.Position
  2657. wait(.15)
  2658. if (pos-v.Position).magnitude > .1 then
  2659. v:Destroy()
  2660. end
  2661. end)
  2662. end
  2663. end
  2664. end
  2665. end
  2666. end
  2667. end
  2668.  
  2669. function onEquipped(mouse)
  2670. if mouse==nil then
  2671. print("Mouse not found")
  2672. return
  2673. end
  2674. equipped=true
  2675. mouse.Icon="rbxasset://textures\\GunCursor.png"
  2676. mouse.Button1Down:connect(function()
  2677. if check and equipped then
  2678. check=false
  2679. mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
  2680. local hum=Tool.Parent:FindFirstChild("Humanoid")
  2681. local torso=Tool.Parent:FindFirstChild("Torso")
  2682. --local rightArm=Tool.Parent:FindFirstChild("Right Arm")
  2683. if torso and hum then
  2684. if hum.Health>0 then
  2685. HoseSound = Backpack:FindFirstChild("HoseSound")
  2686. if HoseSound then HoseSound:Play() end
  2687. --theanim:Play()
  2688. playsound("Spray")
  2689. if storeWeld then
  2690. storeWeld.DesiredAngle=-.5
  2691. end
  2692. local frames = 10
  2693. for i = 1, frames do
  2694. if not equipped then break end
  2695. doSuck()
  2696. wait(.2)
  2697. end
  2698. if storeWeld then
  2699. storeWeld.DesiredAngle=0
  2700. end
  2701. wait(2)
  2702. end
  2703. end
  2704. mouse.Icon="rbxasset://textures\\GunCursor.png"
  2705. check=true
  2706. end
  2707. end)
  2708. setwelds()
  2709. end
  2710.  
  2711. function onUnequipped()
  2712. equipped=false
  2713. if HoseSound then HoseSound:Stop() end
  2714. end
  2715.  
  2716.  
  2717. Tool.Equipped:connect(onEquipped)
  2718. Tool.Unequipped:connect(onUnequipped)
  2719. setwelds()
  2720.  
  2721.  
  2722.  
  2723. end))
  2724. HopperBin38.Name = "CFrame"
  2725. HopperBin38.Parent = mas
  2726. LocalScript39.Name = "CFrameScript"
  2727. LocalScript39.Parent = HopperBin38
  2728. table.insert(cors,sandbox(LocalScript39,function()
  2729. CurrentObject = nil
  2730. PositionValue = Vector3.new(0, 0, 0)
  2731. RotationValue = Vector3.new(0, 0, 0)
  2732. player = game.Players.LocalPlayer
  2733. repeat wait() until player.Character
  2734. function onClicked(target)
  2735. if target then
  2736. if not target.Locked then
  2737. CurrentObject = target
  2738. selection.Adornee = CurrentObject
  2739. selection.Color = BrickColor.new("Pastel Blue")
  2740. PositionValue = target.CFrame.p
  2741. local a, b, c = target.CFrame:toEulerAnglesXYZ()
  2742. RotationValue = Vector3.new(math.deg(a), math.deg(b), math.deg(c))
  2743. updateGui(PositionValue, RotationValue)
  2744. else
  2745. CurrentObject = nil
  2746. selection.Adornee = nil
  2747. PositionValue = Vector3.new(0, 0, 0)
  2748. RotationValue = Vector3.new(0, 0, 0)
  2749. updateGui(PositionValue, RotationValue)
  2750. selection.Color = BrickColor.Blue()
  2751. end
  2752. else
  2753. CurrentObject = nil
  2754. selection.Adornee = nil
  2755. PositionValue = Vector3.new(0, 0, 0)
  2756. RotationValue = Vector3.new(0, 0, 0)
  2757. updateGui(PositionValue, RotationValue)
  2758. selection.Color = BrickColor.Blue()
  2759. end end
  2760. function onMoved(target)
  2761. if not CurrentObject then
  2762. if target then
  2763. if not target.Locked then
  2764. selection.Adornee = target
  2765. else
  2766. selection.Adornee = nil
  2767. end
  2768. else
  2769. selection.Adornee = nil
  2770. end end end
  2771. function onSelected(mouse)
  2772. if mygui then
  2773. mygui.Parent = player.PlayerGui
  2774. elseif player.PlayerGui:findFirstChild("CFrameGui") == nil then
  2775. mygui = script.Parent.CFrameGui:clone()
  2776. mygui.Parent = player.PlayerGui
  2777. selection = Instance.new("SelectionBox")
  2778. selection.Parent = player.PlayerGui
  2779. end
  2780. mouse.Button1Down:connect(function() onClicked(mouse.Target) end)
  2781. mouse.Move:connect(function() onMoved(mouse.Target) end)
  2782. mygui.Frame.PosX.Minus2.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(-1, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2783. mygui.Frame.PosX.Minus1.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(-0.1, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2784. mygui.Frame.PosX.Minus0.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(-0.01, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2785. mygui.Frame.PosX.Plus1.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0.1, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2786. mygui.Frame.PosX.Plus2.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(1, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2787. mygui.Frame.PosX.Plus0.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0.01, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2788. mygui.Frame.PosY.Minus2.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, -1, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2789. mygui.Frame.PosY.Minus1.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, -0.1, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2790. mygui.Frame.PosY.Minus0.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, -0.01, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2791. mygui.Frame.PosY.Plus1.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0.1, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2792. mygui.Frame.PosY.Plus2.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 1, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2793. mygui.Frame.PosY.Plus0.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0.01, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2794. mygui.Frame.PosZ.Minus2.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0, -1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2795. mygui.Frame.PosZ.Minus1.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0, -0.1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2796. mygui.Frame.PosZ.Minus0.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0, -0.01) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2797. mygui.Frame.PosZ.Plus1.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0, 0.1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2798. mygui.Frame.PosZ.Plus2.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0, 1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2799. mygui.Frame.PosZ.Plus0.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0, 0.01) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2800. mygui.Frame.PosLookVector.Minus2.MouseButton1Click:connect(function() PositionValue = PositionValue + CurrentObject.CFrame.lookVector * Vector3.new(-1, -1, -1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2801. mygui.Frame.PosLookVector.Minus1.MouseButton1Click:connect(function() PositionValue = PositionValue + CurrentObject.CFrame.lookVector * Vector3.new(-0.1, -0.1, -0.1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2802. mygui.Frame.PosLookVector.Plus1.MouseButton1Click:connect(function() PositionValue = PositionValue + CurrentObject.CFrame.lookVector * Vector3.new(0.1, 0.1, 0.1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2803. mygui.Frame.PosLookVector.Plus2.MouseButton1Click:connect(function() PositionValue = PositionValue + CurrentObject.CFrame.lookVector * Vector3.new(1, 1, 1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2804. mygui.Frame.RotX.Minus2.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(-15, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2805. mygui.Frame.RotX.Minus1.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(-1, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2806. mygui.Frame.RotX.Plus1.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(1, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2807. mygui.Frame.RotX.Plus2.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(15, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2808. mygui.Frame.RotY.Minus2.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, -15, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2809. mygui.Frame.RotY.Minus1.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, -1, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2810. mygui.Frame.RotY.Plus1.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, 1, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2811. mygui.Frame.RotY.Plus2.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, 15, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2812. mygui.Frame.RotZ.Minus2.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, 0, -15) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2813. mygui.Frame.RotZ.Minus1.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, 0, -1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2814. mygui.Frame.RotZ.Plus1.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, 0, 1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end) mygui.Frame.RotZ.Plus2.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, 0, 15) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
  2815. end
  2816. function onDeselected(mouse)
  2817. if mygui then
  2818. selection:remove()
  2819. CurrentObject = nil
  2820. PositionValue = Vector3.new(1, 1, 1)
  2821. RotationValue = Vector3.new(1, 1, 1)
  2822. mygui:remove()
  2823. mygui = nil
  2824. else
  2825. m=Instance.new("Message")
  2826. m.Text="Warning! mygui not found in deselect!"
  2827. m.Parent=game.Workspace
  2828. wait(1)
  2829. m:Remove()
  2830. end
  2831. end
  2832. function updateGui(pos, rot)
  2833. mygui.Frame.PosX.Text.Text = string.format("X: %0.2f", pos.x)
  2834. mygui.Frame.PosY.Text.Text = string.format("Y: %0.2f", pos.y)
  2835. mygui.Frame.PosZ.Text.Text = string.format("Z: %0.2f", pos.z)
  2836. mygui.Frame.RotX.Text.Text = string.format("X: %0.2f", rot.x)
  2837. mygui.Frame.RotY.Text.Text = string.format("Y: %0.2f", rot.y)
  2838. mygui.Frame.RotZ.Text.Text = string.format("Z: %0.2f", rot.z)
  2839. end
  2840. function changeCFrame(pos, rot)
  2841. CurrentObject.CFrame = CFrame.new(pos) * CFrame.fromEulerAnglesXYZ(math.rad(rot.x), math.rad(rot.y), math.rad(rot.z))
  2842. end
  2843. script.Parent.Selected:connect(onSelected)
  2844. script.Parent.Deselected:connect(onDeselected)
  2845. end))
  2846. ScreenGui40.Name = "CFrameGui"
  2847. ScreenGui40.Parent = HopperBin38
  2848. Frame41.Parent = ScreenGui40
  2849. Frame41.Transparency = 0.44999998807907
  2850. Frame41.Size = UDim2.new(0, 190, 0, 185)
  2851. Frame41.Position = UDim2.new(0, 0, 1, -186)
  2852. Frame41.BackgroundColor3 = Color3.new(0, 0, 0)
  2853. Frame41.BackgroundTransparency = 0.44999998807907
  2854. Frame41.BorderColor3 = Color3.new(0, 0, 0)
  2855. TextLabel42.Name = "Title"
  2856. TextLabel42.Parent = Frame41
  2857. TextLabel42.Transparency = 1
  2858. TextLabel42.Size = UDim2.new(1, 0, 0, 16)
  2859. TextLabel42.Text = "Advanced CFrame Tool"
  2860. TextLabel42.BackgroundColor3 = Color3.new(0.941177, 0.937255, 0.94902)
  2861. TextLabel42.BackgroundTransparency = 1
  2862. TextLabel42.TextColor3 = Color3.new(1, 1, 1)
  2863. TextLabel43.Parent = Frame41
  2864. TextLabel43.Transparency = 1
  2865. TextLabel43.Size = UDim2.new(0, 50, 0, 16)
  2866. TextLabel43.Text = "Selection's Position"
  2867. TextLabel43.Position = UDim2.new(0.5, -25, 0, 21)
  2868. TextLabel43.BackgroundColor3 = Color3.new(0.952941, 0.94902, 0.960784)
  2869. TextLabel43.BackgroundTransparency = 1
  2870. TextLabel43.TextColor3 = Color3.new(1, 1, 1)
  2871. Frame44.Name = "PosX"
  2872. Frame44.Parent = Frame41
  2873. Frame44.Transparency = 1
  2874. Frame44.Size = UDim2.new(1, -10, 0, 16)
  2875. Frame44.Position = UDim2.new(0, 5, 0, 41)
  2876. Frame44.BackgroundColor3 = Color3.new(0.941177, 0.937255, 0.94902)
  2877. Frame44.BackgroundTransparency = 1
  2878. TextLabel45.Name = "Text"
  2879. TextLabel45.Parent = Frame44
  2880. TextLabel45.Size = UDim2.new(1, -96, 1, 0)
  2881. TextLabel45.Text = "X: 0"
  2882. TextLabel45.Position = UDim2.new(0, 48, 0, 0)
  2883. TextLabel45.BackgroundColor3 = Color3.new(1, 1, 1)
  2884. TextLabel45.BorderColor3 = Color3.new(0, 0, 0)
  2885. TextLabel45.TextColor3 = Color3.new(0, 0, 0)
  2886. TextButton46.Name = "Minus2"
  2887. TextButton46.Parent = Frame44
  2888. TextButton46.Size = UDim2.new(0, 16, 0, 16)
  2889. TextButton46.Text = "--"
  2890. TextButton46.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  2891. TextButton46.BorderColor3 = Color3.new(0, 0, 0)
  2892. TextButton46.TextColor3 = Color3.new(0, 0, 0)
  2893. TextButton47.Name = "Plus1"
  2894. TextButton47.Parent = Frame44
  2895. TextButton47.Size = UDim2.new(0, 16, 0, 16)
  2896. TextButton47.Text = "+"
  2897. TextButton47.Position = UDim2.new(1, -32, 0, 0)
  2898. TextButton47.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  2899. TextButton47.BorderColor3 = Color3.new(0, 0, 0)
  2900. TextButton47.TextColor3 = Color3.new(0, 0, 0)
  2901. TextButton48.Name = "Minus1"
  2902. TextButton48.Parent = Frame44
  2903. TextButton48.Size = UDim2.new(0, 16, 0, 16)
  2904. TextButton48.Text = "-"
  2905. TextButton48.Position = UDim2.new(0, 16, 0, 0)
  2906. TextButton48.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  2907. TextButton48.BorderColor3 = Color3.new(0, 0, 0)
  2908. TextButton48.TextColor3 = Color3.new(0, 0, 0)
  2909. TextButton49.Name = "Plus2"
  2910. TextButton49.Parent = Frame44
  2911. TextButton49.Size = UDim2.new(0, 16, 0, 16)
  2912. TextButton49.Text = "++"
  2913. TextButton49.Position = UDim2.new(1, -16, 0, 0)
  2914. TextButton49.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  2915. TextButton49.BorderColor3 = Color3.new(0, 0, 0)
  2916. TextButton49.TextColor3 = Color3.new(0, 0, 0)
  2917. TextButton50.Name = "Minus0"
  2918. TextButton50.Parent = Frame44
  2919. TextButton50.Size = UDim2.new(0, 16, 0, 16)
  2920. TextButton50.Text = "~"
  2921. TextButton50.Position = UDim2.new(0, 32, 0, 0)
  2922. TextButton50.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
  2923. TextButton50.BorderColor3 = Color3.new(0, 0, 0)
  2924. TextButton50.TextColor3 = Color3.new(0, 0, 0)
  2925. TextButton51.Name = "Plus0"
  2926. TextButton51.Parent = Frame44
  2927. TextButton51.Size = UDim2.new(0, 16, 0, 16)
  2928. TextButton51.Text = "~"
  2929. TextButton51.Position = UDim2.new(1, -48, 0, 0)
  2930. TextButton51.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
  2931. TextButton51.BorderColor3 = Color3.new(0, 0, 0)
  2932. TextButton51.TextColor3 = Color3.new(0, 0, 0)
  2933. Frame52.Name = "PosY"
  2934. Frame52.Parent = Frame41
  2935. Frame52.Transparency = 1
  2936. Frame52.Size = UDim2.new(1, -10, 0, 16)
  2937. Frame52.Position = UDim2.new(0, 5, 0, 57)
  2938. Frame52.BackgroundColor3 = Color3.new(0.945098, 0.941177, 0.952941)
  2939. Frame52.BackgroundTransparency = 1
  2940. Frame52.BorderColor3 = Color3.new(0, 0, 0)
  2941. TextLabel53.Name = "Text"
  2942. TextLabel53.Parent = Frame52
  2943. TextLabel53.Size = UDim2.new(1, -96, 1, 0)
  2944. TextLabel53.Text = "Y: 0"
  2945. TextLabel53.Position = UDim2.new(0, 48, 0, 0)
  2946. TextLabel53.BackgroundColor3 = Color3.new(1, 1, 1)
  2947. TextLabel53.BorderColor3 = Color3.new(0, 0, 0)
  2948. TextLabel53.TextColor3 = Color3.new(0, 0, 0)
  2949. TextButton54.Name = "Minus2"
  2950. TextButton54.Parent = Frame52
  2951. TextButton54.Size = UDim2.new(0, 16, 0, 16)
  2952. TextButton54.Text = "--"
  2953. TextButton54.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  2954. TextButton54.BorderColor3 = Color3.new(0, 0, 0)
  2955. TextButton54.TextColor3 = Color3.new(0, 0, 0)
  2956. TextButton55.Name = "Plus1"
  2957. TextButton55.Parent = Frame52
  2958. TextButton55.Size = UDim2.new(0, 16, 0, 16)
  2959. TextButton55.Text = "+"
  2960. TextButton55.Position = UDim2.new(1, -32, 0, 0)
  2961. TextButton55.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  2962. TextButton55.BorderColor3 = Color3.new(0, 0, 0)
  2963. TextButton55.TextColor3 = Color3.new(0, 0, 0)
  2964. TextButton56.Name = "Minus1"
  2965. TextButton56.Parent = Frame52
  2966. TextButton56.Size = UDim2.new(0, 16, 0, 16)
  2967. TextButton56.Text = "-"
  2968. TextButton56.Position = UDim2.new(0, 16, 0, 0)
  2969. TextButton56.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  2970. TextButton56.BorderColor3 = Color3.new(0, 0, 0)
  2971. TextButton56.TextColor3 = Color3.new(0, 0, 0)
  2972. TextButton57.Name = "Plus2"
  2973. TextButton57.Parent = Frame52
  2974. TextButton57.Size = UDim2.new(0, 16, 0, 16)
  2975. TextButton57.Text = "++"
  2976. TextButton57.Position = UDim2.new(1, -16, 0, 0)
  2977. TextButton57.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  2978. TextButton57.BorderColor3 = Color3.new(0, 0, 0)
  2979. TextButton57.TextColor3 = Color3.new(0, 0, 0)
  2980. TextButton58.Name = "Minus0"
  2981. TextButton58.Parent = Frame52
  2982. TextButton58.Size = UDim2.new(0, 16, 0, 16)
  2983. TextButton58.Text = "~"
  2984. TextButton58.Position = UDim2.new(0, 32, 0, 0)
  2985. TextButton58.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
  2986. TextButton58.BorderColor3 = Color3.new(0, 0, 0)
  2987. TextButton58.TextColor3 = Color3.new(0, 0, 0)
  2988. TextButton59.Name = "Plus0"
  2989. TextButton59.Parent = Frame52
  2990. TextButton59.Size = UDim2.new(0, 16, 0, 16)
  2991. TextButton59.Text = "~"
  2992. TextButton59.Position = UDim2.new(1, -48, 0, 0)
  2993. TextButton59.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
  2994. TextButton59.BorderColor3 = Color3.new(0, 0, 0)
  2995. TextButton59.TextColor3 = Color3.new(0, 0, 0)
  2996. Frame60.Name = "PosZ"
  2997. Frame60.Parent = Frame41
  2998. Frame60.Transparency = 1
  2999. Frame60.Size = UDim2.new(1, -10, 0, 16)
  3000. Frame60.Position = UDim2.new(0, 5, 0, 73)
  3001. Frame60.BackgroundColor3 = Color3.new(0.94902, 0.945098, 0.956863)
  3002. Frame60.BackgroundTransparency = 1
  3003. Frame60.BorderColor3 = Color3.new(0, 0, 0)
  3004. TextLabel61.Name = "Text"
  3005. TextLabel61.Parent = Frame60
  3006. TextLabel61.Size = UDim2.new(1, -96, 1, 0)
  3007. TextLabel61.Text = "Z: 0"
  3008. TextLabel61.Position = UDim2.new(0, 48, 0, 0)
  3009. TextLabel61.BackgroundColor3 = Color3.new(1, 1, 1)
  3010. TextLabel61.BorderColor3 = Color3.new(0, 0, 0)
  3011. TextLabel61.TextColor3 = Color3.new(0, 0, 0)
  3012. TextButton62.Name = "Minus2"
  3013. TextButton62.Parent = Frame60
  3014. TextButton62.Size = UDim2.new(0, 16, 0, 16)
  3015. TextButton62.Text = "--"
  3016. TextButton62.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  3017. TextButton62.BorderColor3 = Color3.new(0, 0, 0)
  3018. TextButton62.TextColor3 = Color3.new(0, 0, 0)
  3019. TextButton63.Name = "Plus1"
  3020. TextButton63.Parent = Frame60
  3021. TextButton63.Size = UDim2.new(0, 16, 0, 16)
  3022. TextButton63.Text = "+"
  3023. TextButton63.Position = UDim2.new(1, -32, 0, 0)
  3024. TextButton63.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  3025. TextButton63.BorderColor3 = Color3.new(0, 0, 0)
  3026. TextButton63.TextColor3 = Color3.new(0, 0, 0)
  3027. TextButton64.Name = "Minus1"
  3028. TextButton64.Parent = Frame60
  3029. TextButton64.Size = UDim2.new(0, 16, 0, 16)
  3030. TextButton64.Text = "-"
  3031. TextButton64.Position = UDim2.new(0, 16, 0, 0)
  3032. TextButton64.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  3033. TextButton64.BorderColor3 = Color3.new(0, 0, 0)
  3034. TextButton64.TextColor3 = Color3.new(0, 0, 0)
  3035. TextButton65.Name = "Plus2"
  3036. TextButton65.Parent = Frame60
  3037. TextButton65.Size = UDim2.new(0, 16, 0, 16)
  3038. TextButton65.Text = "++"
  3039. TextButton65.Position = UDim2.new(1, -16, 0, 0)
  3040. TextButton65.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  3041. TextButton65.BorderColor3 = Color3.new(0, 0, 0)
  3042. TextButton65.TextColor3 = Color3.new(0, 0, 0)
  3043. TextButton66.Name = "Minus0"
  3044. TextButton66.Parent = Frame60
  3045. TextButton66.Size = UDim2.new(0, 16, 0, 16)
  3046. TextButton66.Text = "~"
  3047. TextButton66.Position = UDim2.new(0, 32, 0, 0)
  3048. TextButton66.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
  3049. TextButton66.BorderColor3 = Color3.new(0, 0, 0)
  3050. TextButton66.TextColor3 = Color3.new(0, 0, 0)
  3051. TextButton67.Name = "Plus0"
  3052. TextButton67.Parent = Frame60
  3053. TextButton67.Size = UDim2.new(0, 16, 0, 16)
  3054. TextButton67.Text = "~"
  3055. TextButton67.Position = UDim2.new(1, -48, 0, 0)
  3056. TextButton67.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
  3057. TextButton67.BorderColor3 = Color3.new(0, 0, 0)
  3058. TextButton67.TextColor3 = Color3.new(0, 0, 0)
  3059. Frame68.Name = "RotX"
  3060. Frame68.Parent = Frame41
  3061. Frame68.Transparency = 1
  3062. Frame68.Size = UDim2.new(1, -10, 0, 16)
  3063. Frame68.Position = UDim2.new(0, 5, 0, 131)
  3064. Frame68.BackgroundColor3 = Color3.new(0.941177, 0.937255, 0.94902)
  3065. Frame68.BackgroundTransparency = 1
  3066. TextLabel69.Name = "Text"
  3067. TextLabel69.Parent = Frame68
  3068. TextLabel69.Size = UDim2.new(1, -64, 1, 0)
  3069. TextLabel69.Text = "X: 0"
  3070. TextLabel69.Position = UDim2.new(0, 32, 0, 0)
  3071. TextLabel69.BackgroundColor3 = Color3.new(1, 1, 1)
  3072. TextLabel69.BorderColor3 = Color3.new(0, 0, 0)
  3073. TextLabel69.TextColor3 = Color3.new(0, 0, 0)
  3074. TextButton70.Name = "Minus2"
  3075. TextButton70.Parent = Frame68
  3076. TextButton70.Size = UDim2.new(0, 16, 0, 16)
  3077. TextButton70.Text = "--"
  3078. TextButton70.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  3079. TextButton70.BorderColor3 = Color3.new(0, 0, 0)
  3080. TextButton70.TextColor3 = Color3.new(0, 0, 0)
  3081. TextButton71.Name = "Plus1"
  3082. TextButton71.Parent = Frame68
  3083. TextButton71.Size = UDim2.new(0, 16, 0, 16)
  3084. TextButton71.Text = "+"
  3085. TextButton71.Position = UDim2.new(1, -32, 0, 0)
  3086. TextButton71.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  3087. TextButton71.BorderColor3 = Color3.new(0, 0, 0)
  3088. TextButton71.TextColor3 = Color3.new(0, 0, 0)
  3089. TextButton72.Name = "Minus1"
  3090. TextButton72.Parent = Frame68
  3091. TextButton72.Size = UDim2.new(0, 16, 0, 16)
  3092. TextButton72.Text = "-"
  3093. TextButton72.Position = UDim2.new(0, 16, 0, 0)
  3094. TextButton72.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  3095. TextButton72.BorderColor3 = Color3.new(0, 0, 0)
  3096. TextButton72.TextColor3 = Color3.new(0, 0, 0)
  3097. TextButton73.Name = "Plus2"
  3098. TextButton73.Parent = Frame68
  3099. TextButton73.Size = UDim2.new(0, 16, 0, 16)
  3100. TextButton73.Text = "++"
  3101. TextButton73.Position = UDim2.new(1, -16, 0, 0)
  3102. TextButton73.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  3103. TextButton73.BorderColor3 = Color3.new(0, 0, 0)
  3104. TextButton73.TextColor3 = Color3.new(0, 0, 0)
  3105. Frame74.Name = "RotY"
  3106. Frame74.Parent = Frame41
  3107. Frame74.Transparency = 1
  3108. Frame74.Size = UDim2.new(1, -10, 0, 16)
  3109. Frame74.Position = UDim2.new(0, 5, 0, 147)
  3110. Frame74.BackgroundColor3 = Color3.new(0.945098, 0.941177, 0.952941)
  3111. Frame74.BackgroundTransparency = 1
  3112. Frame74.BorderColor3 = Color3.new(0, 0, 0)
  3113. TextLabel75.Name = "Text"
  3114. TextLabel75.Parent = Frame74
  3115. TextLabel75.Size = UDim2.new(1, -64, 1, 0)
  3116. TextLabel75.Text = "Y: 0"
  3117. TextLabel75.Position = UDim2.new(0, 32, 0, 0)
  3118. TextLabel75.BackgroundColor3 = Color3.new(1, 1, 1)
  3119. TextLabel75.BorderColor3 = Color3.new(0, 0, 0)
  3120. TextLabel75.TextColor3 = Color3.new(0, 0, 0)
  3121. TextButton76.Name = "Minus2"
  3122. TextButton76.Parent = Frame74
  3123. TextButton76.Size = UDim2.new(0, 16, 0, 16)
  3124. TextButton76.Text = "--"
  3125. TextButton76.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  3126. TextButton76.BorderColor3 = Color3.new(0, 0, 0)
  3127. TextButton76.TextColor3 = Color3.new(0, 0, 0)
  3128. TextButton77.Name = "Plus1"
  3129. TextButton77.Parent = Frame74
  3130. TextButton77.Size = UDim2.new(0, 16, 0, 16)
  3131. TextButton77.Text = "+"
  3132. TextButton77.Position = UDim2.new(1, -32, 0, 0)
  3133. TextButton77.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  3134. TextButton77.BorderColor3 = Color3.new(0, 0, 0)
  3135. TextButton77.TextColor3 = Color3.new(0, 0, 0)
  3136. TextButton78.Name = "Minus1"
  3137. TextButton78.Parent = Frame74
  3138. TextButton78.Size = UDim2.new(0, 16, 0, 16)
  3139. TextButton78.Text = "-"
  3140. TextButton78.Position = UDim2.new(0, 16, 0, 0)
  3141. TextButton78.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  3142. TextButton78.BorderColor3 = Color3.new(0, 0, 0)
  3143. TextButton78.TextColor3 = Color3.new(0, 0, 0)
  3144. TextButton79.Name = "Plus2"
  3145. TextButton79.Parent = Frame74
  3146. TextButton79.Size = UDim2.new(0, 16, 0, 16)
  3147. TextButton79.Text = "++"
  3148. TextButton79.Position = UDim2.new(1, -16, 0, 0)
  3149. TextButton79.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  3150. TextButton79.BorderColor3 = Color3.new(0, 0, 0)
  3151. TextButton79.TextColor3 = Color3.new(0, 0, 0)
  3152. Frame80.Name = "RotZ"
  3153. Frame80.Parent = Frame41
  3154. Frame80.Transparency = 1
  3155. Frame80.Size = UDim2.new(1, -10, 0, 16)
  3156. Frame80.Position = UDim2.new(0, 5, 0, 163)
  3157. Frame80.BackgroundColor3 = Color3.new(0.94902, 0.945098, 0.956863)
  3158. Frame80.BackgroundTransparency = 1
  3159. Frame80.BorderColor3 = Color3.new(0, 0, 0)
  3160. TextLabel81.Name = "Text"
  3161. TextLabel81.Parent = Frame80
  3162. TextLabel81.Size = UDim2.new(1, -64, 1, 0)
  3163. TextLabel81.Text = "Z: 0"
  3164. TextLabel81.Position = UDim2.new(0, 32, 0, 0)
  3165. TextLabel81.BackgroundColor3 = Color3.new(1, 1, 1)
  3166. TextLabel81.BorderColor3 = Color3.new(0, 0, 0)
  3167. TextLabel81.TextColor3 = Color3.new(0, 0, 0)
  3168. TextButton82.Name = "Minus2"
  3169. TextButton82.Parent = Frame80
  3170. TextButton82.Size = UDim2.new(0, 16, 0, 16)
  3171. TextButton82.Text = "--"
  3172. TextButton82.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  3173. TextButton82.BorderColor3 = Color3.new(0, 0, 0)
  3174. TextButton82.TextColor3 = Color3.new(0, 0, 0)
  3175. TextButton83.Name = "Plus1"
  3176. TextButton83.Parent = Frame80
  3177. TextButton83.Size = UDim2.new(0, 16, 0, 16)
  3178. TextButton83.Text = "+"
  3179. TextButton83.Position = UDim2.new(1, -32, 0, 0)
  3180. TextButton83.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  3181. TextButton83.BorderColor3 = Color3.new(0, 0, 0)
  3182. TextButton83.TextColor3 = Color3.new(0, 0, 0)
  3183. TextButton84.Name = "Minus1"
  3184. TextButton84.Parent = Frame80
  3185. TextButton84.Size = UDim2.new(0, 16, 0, 16)
  3186. TextButton84.Text = "-"
  3187. TextButton84.Position = UDim2.new(0, 16, 0, 0)
  3188. TextButton84.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  3189. TextButton84.BorderColor3 = Color3.new(0, 0, 0)
  3190. TextButton84.TextColor3 = Color3.new(0, 0, 0)
  3191. TextButton85.Name = "Plus2"
  3192. TextButton85.Parent = Frame80
  3193. TextButton85.Size = UDim2.new(0, 16, 0, 16)
  3194. TextButton85.Text = "++"
  3195. TextButton85.Position = UDim2.new(1, -16, 0, 0)
  3196. TextButton85.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  3197. TextButton85.BorderColor3 = Color3.new(0, 0, 0)
  3198. TextButton85.TextColor3 = Color3.new(0, 0, 0)
  3199. TextLabel86.Name = "TextLabel2"
  3200. TextLabel86.Parent = Frame41
  3201. TextLabel86.Transparency = 1
  3202. TextLabel86.Size = UDim2.new(0, 50, 0, 16)
  3203. TextLabel86.Text = "Rotate Selection:"
  3204. TextLabel86.Position = UDim2.new(0.5, -25, 0, 110)
  3205. TextLabel86.BackgroundColor3 = Color3.new(0.956863, 0.952941, 0.964706)
  3206. TextLabel86.BackgroundTransparency = 1
  3207. TextLabel86.TextColor3 = Color3.new(1, 1, 1)
  3208. Frame87.Name = "PosLookVector"
  3209. Frame87.Parent = Frame41
  3210. Frame87.Transparency = 1
  3211. Frame87.Size = UDim2.new(1, -10, 0, 16)
  3212. Frame87.Position = UDim2.new(0, 5, 0, 89)
  3213. Frame87.BackgroundColor3 = Color3.new(0.952941, 0.94902, 0.960784)
  3214. Frame87.BackgroundTransparency = 1
  3215. Frame87.BorderColor3 = Color3.new(0, 0, 0)
  3216. TextLabel88.Name = "Text"
  3217. TextLabel88.Parent = Frame87
  3218. TextLabel88.Size = UDim2.new(1, -64, 1, 0)
  3219. TextLabel88.Text = "LookVector"
  3220. TextLabel88.Position = UDim2.new(0, 32, 0, 0)
  3221. TextLabel88.BackgroundColor3 = Color3.new(1, 1, 1)
  3222. TextLabel88.BorderColor3 = Color3.new(0, 0, 0)
  3223. TextLabel88.TextColor3 = Color3.new(0, 0, 0)
  3224. TextButton89.Name = "Minus2"
  3225. TextButton89.Parent = Frame87
  3226. TextButton89.Size = UDim2.new(0, 16, 0, 16)
  3227. TextButton89.Text = "--"
  3228. TextButton89.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  3229. TextButton89.BorderColor3 = Color3.new(0, 0, 0)
  3230. TextButton89.TextColor3 = Color3.new(0, 0, 0)
  3231. TextButton90.Name = "Plus1"
  3232. TextButton90.Parent = Frame87
  3233. TextButton90.Size = UDim2.new(0, 16, 0, 16)
  3234. TextButton90.Text = "+"
  3235. TextButton90.Position = UDim2.new(1, -32, 0, 0)
  3236. TextButton90.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
  3237. TextButton90.BorderColor3 = Color3.new(0, 0, 0)
  3238. TextButton90.TextColor3 = Color3.new(0, 0, 0)
  3239. TextButton91.Name = "Minus1"
  3240. TextButton91.Parent = Frame87
  3241. TextButton91.Size = UDim2.new(0, 16, 0, 16)
  3242. TextButton91.Text = "-"
  3243. TextButton91.Position = UDim2.new(0, 16, 0, 0)
  3244. TextButton91.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
  3245. TextButton91.BorderColor3 = Color3.new(0, 0, 0)
  3246. TextButton91.TextColor3 = Color3.new(0, 0, 0)
  3247. TextButton92.Name = "Plus2"
  3248. TextButton92.Parent = Frame87
  3249. TextButton92.Size = UDim2.new(0, 16, 0, 16)
  3250. TextButton92.Text = "++"
  3251. TextButton92.Position = UDim2.new(1, -16, 0, 0)
  3252. TextButton92.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
  3253. TextButton92.BorderColor3 = Color3.new(0, 0, 0)
  3254. TextButton92.TextColor3 = Color3.new(0, 0, 0)
  3255. HopperBin93.Name = "Reset"
  3256. HopperBin93.Parent = mas
  3257. Script94.Parent = HopperBin93
  3258. table.insert(cors,sandbox(Script94,function()
  3259. bin = script.Parent
  3260. resetted = false
  3261.  
  3262. function dis(part)
  3263. while (part.Transparency < 1) do
  3264. part.Transparency = part.Transparency+0.1
  3265. wait()
  3266. end
  3267. part:remove()
  3268. end
  3269. function ref(part)
  3270. while (part.Reflectance < 1) do
  3271. part.Reflectance = part.Reflectance+0.1
  3272. wait()
  3273. end
  3274. part:remove()
  3275. end
  3276. function onButton1Down(mouse)
  3277. resetted = true
  3278. local player = game.Players.LocalPlayer
  3279. local char = player.Character
  3280. if (char ~= nil) then
  3281. local p = char:GetChildren()
  3282. for i=1,#p do
  3283. if (p[i].className == "Part") then
  3284. local cA = coroutine.create(function() dis(p[i]) end)
  3285. local cB = coroutine.create(function() ref(p[i]) end)
  3286. coroutine.resume(cA)
  3287. coroutine.resume(cB)
  3288. end
  3289. end
  3290. end
  3291. end
  3292.  
  3293. function onSelected(mouse)
  3294. print("Reset Selected");
  3295. if (resetted == true) then return end
  3296. mouse.Button1Down:connect(onButton1Down)
  3297. end
  3298.  
  3299. bin.Selected:connect(onSelected)
  3300. end))
  3301. for i,v in pairs(mas:GetChildren()) do
  3302. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  3303. pcall(function() v:MakeJoints() end)
  3304. end
  3305. mas:Destroy()
  3306. for i,v in pairs(cors) do
  3307. spawn(function()
  3308. pcall(v)
  3309. end)
  3310. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement