Advertisement
MyNewName

Untitled

Mar 18th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.09 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. Part1 = Instance.new("Part")
  21. Part2 = Instance.new("Part")
  22. CylinderMesh3 = Instance.new("CylinderMesh")
  23. Smoke4 = Instance.new("Smoke")
  24. Part5 = Instance.new("Part")
  25. Script6 = Instance.new("Script")
  26. ObjectValue7 = Instance.new("ObjectValue")
  27. Animation8 = Instance.new("Animation")
  28. ObjectValue9 = Instance.new("ObjectValue")
  29. LocalScript10 = Instance.new("LocalScript")
  30. ScreenGui11 = Instance.new("ScreenGui")
  31. Frame12 = Instance.new("Frame")
  32. Frame13 = Instance.new("Frame")
  33. TextLabel14 = Instance.new("TextLabel")
  34. NumberValue15 = Instance.new("NumberValue")
  35. Script16 = Instance.new("Script")
  36. Script17 = Instance.new("Script")
  37. Script18 = Instance.new("Script")
  38. Tool19 = Instance.new("Tool")
  39. Part20 = Instance.new("Part")
  40. Part21 = Instance.new("Part")
  41. CylinderMesh22 = Instance.new("CylinderMesh")
  42. Smoke23 = Instance.new("Smoke")
  43. Part24 = Instance.new("Part")
  44. Script25 = Instance.new("Script")
  45. ObjectValue26 = Instance.new("ObjectValue")
  46. Animation27 = Instance.new("Animation")
  47. ObjectValue28 = Instance.new("ObjectValue")
  48. LocalScript29 = Instance.new("LocalScript")
  49. ScreenGui30 = Instance.new("ScreenGui")
  50. Frame31 = Instance.new("Frame")
  51. Frame32 = Instance.new("Frame")
  52. TextLabel33 = Instance.new("TextLabel")
  53. NumberValue34 = Instance.new("NumberValue")
  54. Script35 = Instance.new("Script")
  55. Script36 = Instance.new("Script")
  56. Script37 = Instance.new("Script")
  57. Tool38 = Instance.new("Tool")
  58. Part39 = Instance.new("Part")
  59. Part40 = Instance.new("Part")
  60. CylinderMesh41 = Instance.new("CylinderMesh")
  61. Smoke42 = Instance.new("Smoke")
  62. Part43 = Instance.new("Part")
  63. Script44 = Instance.new("Script")
  64. ObjectValue45 = Instance.new("ObjectValue")
  65. Animation46 = Instance.new("Animation")
  66. ObjectValue47 = Instance.new("ObjectValue")
  67. LocalScript48 = Instance.new("LocalScript")
  68. ScreenGui49 = Instance.new("ScreenGui")
  69. Frame50 = Instance.new("Frame")
  70. Frame51 = Instance.new("Frame")
  71. TextLabel52 = Instance.new("TextLabel")
  72. NumberValue53 = Instance.new("NumberValue")
  73. Script54 = Instance.new("Script")
  74. Script55 = Instance.new("Script")
  75. Script56 = Instance.new("Script")
  76. Tool57 = Instance.new("Tool")
  77. Script58 = Instance.new("Script")
  78. LocalScript59 = Instance.new("LocalScript")
  79. Part60 = Instance.new("Part")
  80. Part61 = Instance.new("Part")
  81. Sound62 = Instance.new("Sound")
  82. Motor63 = Instance.new("Motor")
  83. LocalScript64 = Instance.new("LocalScript")
  84. LocalScript65 = Instance.new("LocalScript")
  85. Sound66 = Instance.new("Sound")
  86. ParticleEmitter67 = Instance.new("ParticleEmitter")
  87. PointLight68 = Instance.new("PointLight")
  88. BillboardGui69 = Instance.new("BillboardGui")
  89. TextBox70 = Instance.new("TextBox")
  90. LocalScript71 = Instance.new("LocalScript")
  91. ParticleEmitter72 = Instance.new("ParticleEmitter")
  92. PointLight73 = Instance.new("PointLight")
  93. Accessory74 = Instance.new("Accessory")
  94. Part75 = Instance.new("Part")
  95. SpecialMesh76 = Instance.new("SpecialMesh")
  96. Attachment77 = Instance.new("Attachment")
  97. Vector3Value78 = Instance.new("Vector3Value")
  98. Weld79 = Instance.new("Weld")
  99. Accessory80 = Instance.new("Accessory")
  100. Part81 = Instance.new("Part")
  101. SpecialMesh82 = Instance.new("SpecialMesh")
  102. Attachment83 = Instance.new("Attachment")
  103. Weld84 = Instance.new("Weld")
  104. Accessory85 = Instance.new("Accessory")
  105. Part86 = Instance.new("Part")
  106. SpecialMesh87 = Instance.new("SpecialMesh")
  107. Attachment88 = Instance.new("Attachment")
  108. Vector3Value89 = Instance.new("Vector3Value")
  109. Weld90 = Instance.new("Weld")
  110. Weld91 = Instance.new("Weld")
  111. BillboardGui92 = Instance.new("BillboardGui")
  112. TextBox93 = Instance.new("TextBox")
  113. Sound94 = Instance.new("Sound")
  114. LocalScript95 = Instance.new("LocalScript")
  115. ForceField96 = Instance.new("ForceField")
  116. Sound97 = Instance.new("Sound")
  117. LocalScript98 = Instance.new("LocalScript")
  118. ForceField99 = Instance.new("ForceField")
  119. LocalScript100 = Instance.new("LocalScript")
  120. Sound101 = Instance.new("Sound")
  121. ParticleEmitter102 = Instance.new("ParticleEmitter")
  122. PointLight103 = Instance.new("PointLight")
  123. Tool0.Name = "Dig"
  124. Tool0.Parent = mas
  125. Part1.Name = "Shaft"
  126. Part1.Parent = Tool0
  127. Part1.BrickColor = BrickColor.new("Brown")
  128. Part1.Transparency = 1
  129. Part1.Rotation = Vector3.new(90, 0, 180)
  130. Part1.CanCollide = false
  131. Part1.Size = Vector3.new(1, 1.20000005, 1)
  132. Part1.CFrame = CFrame.new(-22.9599991, 0.500039995, -39.1799545, -1, -8.85545069e-06, 2.26416751e-06, -2.26409475e-06, -8.40721441e-06, -1, 8.85547615e-06, -1, 8.40720077e-06)
  133. Part1.BackSurface = Enum.SurfaceType.Weld
  134. Part1.BottomSurface = Enum.SurfaceType.Weld
  135. Part1.FrontSurface = Enum.SurfaceType.Weld
  136. Part1.LeftSurface = Enum.SurfaceType.Weld
  137. Part1.RightSurface = Enum.SurfaceType.Weld
  138. Part1.TopSurface = Enum.SurfaceType.Weld
  139. Part1.Color = Color3.new(0.486275, 0.360784, 0.27451)
  140. Part1.Position = Vector3.new(-22.9599991, 0.500039995, -39.1799545)
  141. Part1.Orientation = Vector3.new(90, -180, 0)
  142. Part1.Color = Color3.new(0.486275, 0.360784, 0.27451)
  143. Part2.Name = "Dirt"
  144. Part2.Parent = Tool0
  145. Part2.BrickColor = BrickColor.new("Dark stone grey")
  146. Part2.Transparency = 1
  147. Part2.Rotation = Vector3.new(0, -0.0199999996, 180)
  148. Part2.CanCollide = false
  149. Part2.Size = Vector3.new(1, 1.20000005, 1)
  150. Part2.CFrame = CFrame.new(-22.9600067, 3.40008903, -39.1799469, -0.99999994, -2.1091405e-06, -0.000354161049, 2.1122255e-06, -1, -8.70979238e-06, -0.000354161049, -8.71053999e-06, 0.99999994)
  151. Part2.BackSurface = Enum.SurfaceType.Weld
  152. Part2.BottomSurface = Enum.SurfaceType.Weld
  153. Part2.FrontSurface = Enum.SurfaceType.Weld
  154. Part2.LeftSurface = Enum.SurfaceType.Weld
  155. Part2.RightSurface = Enum.SurfaceType.Weld
  156. Part2.TopSurface = Enum.SurfaceType.Weld
  157. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  158. Part2.Position = Vector3.new(-22.9600067, 3.40008903, -39.1799469)
  159. Part2.Orientation = Vector3.new(0, -0.0199999996, 180)
  160. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  161. CylinderMesh3.Parent = Part2
  162. CylinderMesh3.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  163. CylinderMesh3.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  164. Smoke4.Parent = Part2
  165. Smoke4.Size = 0.10000000149012
  166. Smoke4.Color = Color3.new(0.372549, 0.211765, 0.121569)
  167. Smoke4.Enabled = false
  168. Smoke4.Opacity = 0.25
  169. Smoke4.RiseVelocity = -0.5
  170. Smoke4.Color = Color3.new(0.372549, 0.211765, 0.121569)
  171. Part5.Name = "Handle"
  172. Part5.Parent = Tool0
  173. Part5.BrickColor = BrickColor.new("Bright green")
  174. Part5.Transparency = 1
  175. Part5.Rotation = Vector3.new(0, 90, 0)
  176. Part5.Size = Vector3.new(1, 1.20000005, 1)
  177. Part5.CFrame = CFrame.new(-22.960001, 1.60004377, -39.179966, -8.85535337e-06, -2.26414318e-06, 1, -8.40711709e-06, 1, 2.26411908e-06, -1, -8.40729808e-06, -8.85557347e-06)
  178. Part5.Color = Color3.new(0.294118, 0.592157, 0.294118)
  179. Part5.Position = Vector3.new(-22.960001, 1.60004377, -39.179966)
  180. Part5.Orientation = Vector3.new(0, 90, 0)
  181. Part5.Color = Color3.new(0.294118, 0.592157, 0.294118)
  182. Script6.Name = "Weld"
  183. Script6.Parent = Tool0
  184. table.insert(cors,sandbox(Script6,function()
  185. function Weld(x,y)
  186. local W = Instance.new("Weld")
  187. W.Part0 = x
  188. W.Part1 = y
  189. local CJ = CFrame.new(x.Position)
  190. local C0 = x.CFrame:inverse()*CJ
  191. local C1 = y.CFrame:inverse()*CJ
  192. W.C0 = C0
  193. W.C1 = C1
  194. W.Parent = x
  195. end
  196. function Get(A)
  197. if A.className == "Part" then
  198. Weld(script.Parent.Handle, A)
  199. A.Anchored = false
  200. else
  201. local C = A:GetChildren()
  202. for i=1, #C do
  203. Get(C[i])
  204. end
  205. end
  206. end
  207. function Finale()
  208. Get(script.Parent)
  209. end
  210. script.Parent.Equipped:connect(Finale)
  211. script.Parent.Unequipped:connect(Finale)
  212. Finale()
  213.  
  214. end))
  215. ObjectValue7.Name = "DiggyDiggyHole"
  216. ObjectValue7.Parent = Tool0
  217. Animation8.Name = "SlashAnim"
  218. Animation8.Parent = Tool0
  219. Animation8.AnimationId = "http://www.roblox.com/Asset?ID=54673790"
  220. ObjectValue9.Name = "guiObject"
  221. ObjectValue9.Parent = Tool0
  222. LocalScript10.Name = "Dig"
  223. LocalScript10.Parent = Tool0
  224. LocalScript10.Disabled = true
  225. table.insert(cors,sandbox(LocalScript10,function()
  226. wait(1)
  227. enabled = true
  228. Tool = script.Parent
  229. down = false -- Mouse isn't down
  230. gui = script.LoadBar:clone() -- Displays your process in digging
  231.  
  232. -- Cyrion's auto-wedge fcn:
  233. --sets cell x, y, z to default material if parameter is provided, if not sets cell x, y, z to be whatever material it previously was
  234. --returns true if made a wedge, false if the cell remains a block
  235. function MakeWedge(x, y, z, defaultmaterial)
  236. local c = game.Workspace.Terrain
  237. --gather info about all the cells around x, y, z
  238. surroundings = {} --surroundings is a 3 x 3 x 3 array of the material of the cells adjacent to x, y, z
  239. for i = x - 1, x + 1 do
  240. surroundings[i] = {"Water"}
  241. for j = y - 1, y + 1 do
  242. surroundings[i][j] = {}
  243. for k = z - 1, z + 1 do
  244. local material, wedge, rotation = c:GetCell(i, j, k)
  245. surroundings[i][j][k] = material.Value
  246. end
  247. end
  248. end
  249. --make some useful arrays and counters
  250. local sides = {} --sides is an array of the material of the 4 adjacent sides
  251. sides[0] = surroundings[x - 1][y][z]
  252. sides[1] = surroundings[x][y][z + 1]
  253. sides[2] = surroundings[x + 1][y][z]
  254. sides[3] = surroundings[x][y][z - 1]
  255. local adjacentSides = 0
  256. for n = 0, 3 do
  257. if sides[n] > 0 then
  258. adjacentSides = adjacentSides + 1
  259. end
  260. end
  261. local sidesAbove = {} --sides is an array of the material of the 4 adjacent sides 1 height above
  262. sidesAbove[0] = surroundings[x - 1][y + 1][z]
  263. sidesAbove[1] = surroundings[x][y + 1][z + 1]
  264. sidesAbove[2] = surroundings[x + 1][y + 1][z]
  265. sidesAbove[3] = surroundings[x][y + 1][z - 1]
  266. local adjacentSidesAbove = 0
  267. for n = 0, 3 do
  268. if sidesAbove[n] > 0 then
  269. adjacentSidesAbove = adjacentSidesAbove + 1
  270. end
  271. end
  272. local corners = {} --corners is an array of the material of the 4 adjacent corners
  273. corners[0] = surroundings[x - 1][y][z - 1]
  274. corners[1] = surroundings[x - 1][y][z + 1]
  275. corners[2] = surroundings[x + 1][y][z + 1]
  276. corners[3] = surroundings[x + 1][y][z - 1]
  277. local adjacentCorners = 0
  278. for n = 0, 3 do
  279. if corners[n] > 0 then
  280. adjacentCorners = adjacentCorners + 1
  281. end
  282. end
  283. local cornersAbove = {} --corners is an array of the material of the 4 adjacent corners 1 height above
  284. cornersAbove[0] = surroundings[x - 1][y + 1][z - 1]
  285. cornersAbove[1] = surroundings[x - 1][y + 1][z + 1]
  286. cornersAbove[2] = surroundings[x + 1][y + 1][z + 1]
  287. cornersAbove[3] = surroundings[x + 1][y + 1][z - 1]
  288. local adjacentCornersAbove = 0
  289. for n = 0, 3 do
  290. if cornersAbove[n] > 0 then
  291. adjacentCornersAbove = adjacentCornersAbove + 1
  292. end
  293. end
  294. --determine what type of wedge to make
  295. local material = "Water"
  296. local wedge = nil
  297. local rotation = nil
  298. if defaultmaterial then
  299. material = defaultmaterial
  300. else
  301. material, wedge, rotation = c:GetCell(x, y, z) --start with the existing material, wedge, and rotation
  302. end
  303. wedge = 0 --default wedge is a block
  304. rotation = 0 --default rotation is 0
  305. --type 1: 45 degree ramp //must not have a block on top and must have a block under, and be surrounded by 1 side; or 3 sides and the 2 corners between them
  306. if surroundings[x][y + 1][z] == 0 and surroundings[x][y - 1][z] > 0 then
  307. if adjacentSides == 1 then
  308. for n = 0, 3 do
  309. if sides[n] > 0 then
  310. wedge = 1
  311. rotation = (n + 1) % 4
  312. c:SetCell(x, y, z, "Water", "Solid", "Z")
  313. return true
  314. end
  315. end
  316. elseif adjacentSides == 3 then
  317. for n = 0, 3 do
  318. if sides[n] > 0 and corners[(n + 1) % 4] > 0 and sides[(n + 1) % 4] > 0 and corners[(n + 2) % 4] > 0 and sides[(n + 2) % 4] > 0 then
  319. wedge = 1
  320. rotation = (n + 2) % 4
  321. c:SetCell(x, y, z, 0,0,0)
  322. return true
  323. end
  324. end
  325. end
  326. end
  327. --type 2: 45 degree corner //must not have a block on top and must have a block under, and be surrounded by 2 sides and the 1 corner between them; or 3 sides and 1 corner between 2 of them (facing towards that corner)
  328. if surroundings[x][y + 1][z] == 0 and surroundings[x][y - 1][z] > 0 then
  329. for n = 0, 3 do
  330. if sides[n] > 0 and corners[(n + 1) % 4] > 0 and sides[(n + 1) % 4] > 0 and (adjacentSides == 2 or (adjacentSides == 3 and (corners[(n + 3) % 4] > 0 or (sides[(n + 2) % 4] > 0 and corners[(n + 2) % 4] > 0) or (sides[(n + 3) % 4] > 0 and corners[n] > 0)))) then
  331. wedge = 2
  332. rotation = (n + 2) % 4
  333. c:SetCell(x, y, z, 0,0,0)
  334. return true
  335. end
  336. end
  337. end
  338. --type 3: 45 degree inverse corner //surrounded by three sides or 4 sides and 3 corners, with nothing above or else a block on top surrounded on 2 sides and the corner between them
  339. if adjacentSides == 3 and surroundings[x][y + 1][z] > 0 then
  340. if adjacentCorners > 1 then
  341. for n = 0, 3 do
  342. if (corners[n] == 0 or cornersAbove[n] == 0) and (sides[(n - 1) % 4] == 0 or sides[n] == 0) and (sidesAbove[n] == 0 and sidesAbove[(n + 1) % 4] > 0 and sidesAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 3) % 4] == 0) then
  343. wedge = 3
  344. rotation = (n + 3) % 4
  345. c:SetCell(x, y, z, 0,0,0)
  346. return true
  347. end
  348. end
  349. end
  350. elseif adjacentSides == 4 and adjacentCorners == 3 then
  351. for n = 0, 3 do
  352. if corners[n] == 0 and (surroundings[x][y + 1][z] == 0 or (sidesAbove[n] == 0 and sidesAbove[(n + 1) % 4] > 0 and cornersAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 3) % 4] == 0)) then
  353. wedge = 3
  354. rotation = (n + 3) % 4
  355. c:SetCell(x, y, z, 0,0,0)
  356. return true
  357. end
  358. end
  359. end
  360. --type 4: half a cube, as if it were cut diagonally from front to back //surrounded by 2 sides
  361. if adjacentSides == 2 and adjacentCorners < 4 then
  362. for n = 0, 3 do
  363. if sides[n] == 0 and sides[(n + 1) % 4] == 0 and (surroundings[x][y + 1][z] == 0 or (sidesAbove[n] == 0 and sidesAbove[(n + 1) % 4] == 0 and sidesAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 3) % 4] > 0)) then
  364. wedge = 4
  365. rotation = n
  366. c:SetCell(x, y, z, 0,0,0)
  367. return true
  368. end
  369. end
  370. end
  371. c:SetCell(x, y, z, 0,0,0)
  372. return false
  373. end
  374.  
  375. function updateMouseRadius(mouse) -- Makes sure that while the player is digging he doesn't go move his mouse somewhere else going outside our magnitude
  376. p = game.Players.LocalPlayer
  377. if (mouse.Hit.p - p.Character.Torso.Position).magnitude > 20 then -- YOU RULE BREAKER!!!
  378. onDeselect() -- Acts as if they stopped holding the mouse down
  379. end
  380. end
  381.  
  382.  
  383.  
  384. function onClick(mouse)
  385. h = game.Players.LocalPlayer.Character.Humanoid
  386. if not enabled or down or h == nil then
  387. return
  388. end
  389. p = game.Players.LocalPlayer
  390. if (p == nil) then return end
  391. if (p.Character == nil) then return end
  392. if (mouse.Hit.p - p.Character.Torso.Position).magnitude > 20 then return end
  393. down = true
  394. enabled = false
  395. c = game.Workspace.Terrain
  396. while down do
  397. Tool.Dirt.Smoke.Enabled = true
  398. if not p.PlayerGui:findFirstChild("LoadBar") then
  399. local l = gui:clone()
  400. l.Parent = p.PlayerGui
  401. script.Parent.guiObject.Value = l
  402. end
  403. local guivalue = p.PlayerGui:findFirstChild("LoadBar").Frame.LoadBarPercentage
  404. updateMouseRadius(mouse) -- Checks radius
  405. guivalue.Value = guivalue.Value + 30
  406. if guivalue.Value >= 100 then
  407. local cellPos = c:WorldToCellPreferSolid(Vector3.new(mouse.Hit.x, mouse.Hit.y, mouse.Hit.z))
  408. local x = cellPos.x
  409. local y = cellPos.y
  410. local z = cellPos.z
  411. c:SetCell(x, y, z, "Water","Solid",0)
  412. for i = x - 1, x + 1 do
  413. for j = y - 1, y + 1 do
  414. for k = z - 1, z + 1 do
  415. MakeWedge(i, j, k)
  416. end
  417. end
  418. end
  419. Tool.Dirt.Smoke.Enabled = false
  420. onDeselect(mouse) -- Kills GUI
  421. enabled = false
  422. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  423. wait(0.5)
  424. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  425. enabled = true
  426. end
  427. wait()
  428. end
  429. end
  430.  
  431. function onClickOff(mouse)
  432. Tool.Dirt.Smoke.Enabled = false
  433. enabled = true
  434. down = false
  435. if script.Parent.guiObject.Value ~= nil then
  436. script.Parent.guiObject.Value:remove()
  437. end
  438. if Tool.DiggyDiggyHole.Value ~= nil then
  439. Tool.DiggyDiggyHole.Value:Stop()
  440. Tool.DiggyDiggyHole.Value:remove()
  441. end
  442. Tool.GripForward = Vector3.new(0,0,-1)
  443. Tool.GripRight = Vector3.new(0,0,0)
  444. Tool.GripUp = Vector3.new(0, 1, 0)
  445. Tool.Animate.Disabled = true -- The script seems to crash after digging due to the animation becoming nil. Just restart it.
  446. Tool.Animate.Disabled = false
  447. end
  448.  
  449. function onDeselect(mouse)
  450. Tool.Dirt.Smoke.Enabled = false
  451. enabled = true
  452. down = false
  453. if script.Parent.guiObject.Value ~= nil then
  454. script.Parent.guiObject.Value:remove()
  455. end
  456. if Tool.DiggyDiggyHole.Value ~= nil then
  457. Tool.DiggyDiggyHole.Value:Stop()
  458. Tool.DiggyDiggyHole.Value:remove()
  459. end
  460. Tool.GripForward = Vector3.new(0,0,-1)
  461. Tool.GripRight = Vector3.new(0,0,0)
  462. Tool.GripUp = Vector3.new(0, 1, 0)
  463. Tool.Animate.Disabled = true -- The script seems to crash after digging due to the animation becoming nil. Just restart it.
  464. Tool.Animate.Disabled = false
  465. end
  466.  
  467. function onSelect(mouse)
  468. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  469. mouse.Button1Down:connect(function () onClick(mouse) end)
  470. mouse.Button1Up:connect(function () onClickOff(mouse) end)
  471. end
  472.  
  473.  
  474.  
  475. script.Parent.Equipped:connect(onSelect)
  476. script.Parent.UnEquipped:connect(onDeselect)
  477. end))
  478. ScreenGui11.Name = "LoadBar"
  479. ScreenGui11.Parent = LocalScript10
  480. Frame12.Parent = ScreenGui11
  481. Frame12.Size = UDim2.new(0.375, 0, 0.125, 0)
  482. Frame12.Style = Enum.FrameStyle.RobloxRound
  483. Frame12.Position = UDim2.new(0.625, 0, 0.75, 0)
  484. Frame12.Visible = false
  485. Frame13.Name = "LoadBar"
  486. Frame13.Parent = Frame12
  487. Frame13.Size = UDim2.new(0, 0, 1, 0)
  488. Frame13.Style = Enum.FrameStyle.ChatGreen
  489. TextLabel14.Parent = Frame13
  490. TextLabel14.Text = ""
  491. TextLabel14.Position = UDim2.new(0.5, 0, 0.5, 0)
  492. TextLabel14.Font = Enum.Font.ArialBold
  493. TextLabel14.FontSize = Enum.FontSize.Size24
  494. TextLabel14.TextColor3 = Color3.new(0.6, 0.2, 0)
  495. NumberValue15.Name = "LoadBarPercentage"
  496. NumberValue15.Parent = Frame12
  497. Script16.Parent = NumberValue15
  498. Script16.Disabled = true
  499. table.insert(cors,sandbox(Script16,function()
  500. function UpdateBar()
  501. script.Parent.Parent.LoadBar.Size = UDim2.new((script.Parent.Parent.LoadBarPercentage.Value*.01),0,1,0)
  502. script.Parent.Parent.LoadBar.TextLabel.Text = script.Parent.Parent.LoadBarPercentage.Value.."%"
  503. end
  504.  
  505. script.Parent.Changed:connect(UpdateBar)
  506. end))
  507. Script17.Name = "Debug"
  508. Script17.Parent = Script16
  509. table.insert(cors,sandbox(Script17,function()
  510. -- Online mode is really screwed up :P
  511. wait(1)
  512. script.Parent.Disabled = false
  513. script:remove()
  514. end))
  515. Script18.Name = "Debug"
  516. Script18.Parent = LocalScript10
  517. table.insert(cors,sandbox(Script18,function()
  518. -- Online mode is really screwed up :P
  519. wait(1)
  520. script.Parent.Disabled = false
  521. script:remove()
  522. end))
  523. Tool19.Name = "Terraform"
  524. Tool19.Parent = mas
  525. Part20.Name = "Shaft"
  526. Part20.Parent = Tool19
  527. Part20.BrickColor = BrickColor.new("Brown")
  528. Part20.Transparency = 1
  529. Part20.Rotation = Vector3.new(90, 0, 180)
  530. Part20.CanCollide = false
  531. Part20.Size = Vector3.new(1, 1.20000005, 1)
  532. Part20.CFrame = CFrame.new(-22.9599991, 0.500039995, -39.1799545, -1, -8.85543432e-06, 2.26416341e-06, -2.26409884e-06, -8.40719804e-06, -1, 8.85549252e-06, -1, 8.40721714e-06)
  533. Part20.BackSurface = Enum.SurfaceType.Weld
  534. Part20.BottomSurface = Enum.SurfaceType.Weld
  535. Part20.FrontSurface = Enum.SurfaceType.Weld
  536. Part20.LeftSurface = Enum.SurfaceType.Weld
  537. Part20.RightSurface = Enum.SurfaceType.Weld
  538. Part20.TopSurface = Enum.SurfaceType.Weld
  539. Part20.Color = Color3.new(0.486275, 0.360784, 0.27451)
  540. Part20.Position = Vector3.new(-22.9599991, 0.500039995, -39.1799545)
  541. Part20.Orientation = Vector3.new(90, -180, 0)
  542. Part20.Color = Color3.new(0.486275, 0.360784, 0.27451)
  543. Part21.Name = "Dirt"
  544. Part21.Parent = Tool19
  545. Part21.BrickColor = BrickColor.new("Dark stone grey")
  546. Part21.Transparency = 1
  547. Part21.Rotation = Vector3.new(0, -0.0199999996, 180)
  548. Part21.CanCollide = false
  549. Part21.Size = Vector3.new(1, 1.20000005, 1)
  550. Part21.CFrame = CFrame.new(-22.9600067, 3.40008903, -39.1799469, -0.99999994, -2.1091405e-06, -0.000354161049, 2.1122255e-06, -1, -8.70979238e-06, -0.000354161049, -8.71053999e-06, 0.99999994)
  551. Part21.BackSurface = Enum.SurfaceType.Weld
  552. Part21.BottomSurface = Enum.SurfaceType.Weld
  553. Part21.FrontSurface = Enum.SurfaceType.Weld
  554. Part21.LeftSurface = Enum.SurfaceType.Weld
  555. Part21.RightSurface = Enum.SurfaceType.Weld
  556. Part21.TopSurface = Enum.SurfaceType.Weld
  557. Part21.Color = Color3.new(0.388235, 0.372549, 0.384314)
  558. Part21.Position = Vector3.new(-22.9600067, 3.40008903, -39.1799469)
  559. Part21.Orientation = Vector3.new(0, -0.0199999996, 180)
  560. Part21.Color = Color3.new(0.388235, 0.372549, 0.384314)
  561. CylinderMesh22.Parent = Part21
  562. CylinderMesh22.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  563. CylinderMesh22.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  564. Smoke23.Parent = Part21
  565. Smoke23.Size = 0.10000000149012
  566. Smoke23.Color = Color3.new(0.372549, 0.211765, 0.121569)
  567. Smoke23.Enabled = false
  568. Smoke23.Opacity = 0.25
  569. Smoke23.RiseVelocity = -0.5
  570. Smoke23.Color = Color3.new(0.372549, 0.211765, 0.121569)
  571. Part24.Name = "Handle"
  572. Part24.Parent = Tool19
  573. Part24.BrickColor = BrickColor.new("Bright green")
  574. Part24.Transparency = 1
  575. Part24.Rotation = Vector3.new(0, 90, 0)
  576. Part24.Size = Vector3.new(1, 1.20000005, 1)
  577. Part24.CFrame = CFrame.new(-22.960001, 1.60004377, -39.179966, -8.85529607e-06, -2.26412885e-06, 1, -8.40705979e-06, 1, 2.2641334e-06, -1, -8.40735538e-06, -8.85563077e-06)
  578. Part24.Color = Color3.new(0.294118, 0.592157, 0.294118)
  579. Part24.Position = Vector3.new(-22.960001, 1.60004377, -39.179966)
  580. Part24.Orientation = Vector3.new(0, 90, 0)
  581. Part24.Color = Color3.new(0.294118, 0.592157, 0.294118)
  582. Script25.Name = "Weld"
  583. Script25.Parent = Tool19
  584. table.insert(cors,sandbox(Script25,function()
  585. function Weld(x,y)
  586. local W = Instance.new("Weld")
  587. W.Part0 = x
  588. W.Part1 = y
  589. local CJ = CFrame.new(x.Position)
  590. local C0 = x.CFrame:inverse()*CJ
  591. local C1 = y.CFrame:inverse()*CJ
  592. W.C0 = C0
  593. W.C1 = C1
  594. W.Parent = x
  595. end
  596. function Get(A)
  597. if A.className == "Part" then
  598. Weld(script.Parent.Handle, A)
  599. A.Anchored = false
  600. else
  601. local C = A:GetChildren()
  602. for i=1, #C do
  603. Get(C[i])
  604. end
  605. end
  606. end
  607. function Finale()
  608. Get(script.Parent)
  609. end
  610. script.Parent.Equipped:connect(Finale)
  611. script.Parent.Unequipped:connect(Finale)
  612. Finale()
  613.  
  614. end))
  615. ObjectValue26.Name = "DiggyDiggyHole"
  616. ObjectValue26.Parent = Tool19
  617. Animation27.Name = "SlashAnim"
  618. Animation27.Parent = Tool19
  619. Animation27.AnimationId = "http://www.roblox.com/Asset?ID=54673790"
  620. ObjectValue28.Name = "guiObject"
  621. ObjectValue28.Parent = Tool19
  622. LocalScript29.Name = "Dig"
  623. LocalScript29.Parent = Tool19
  624. LocalScript29.Disabled = true
  625. table.insert(cors,sandbox(LocalScript29,function()
  626. wait(1)
  627. enabled = true
  628. Tool = script.Parent
  629. down = false -- Mouse isn't down
  630. gui = script.LoadBar:clone() -- Displays your process in digging
  631.  
  632. -- Cyrion's auto-wedge fcn:
  633. --sets cell x, y, z to default material if parameter is provided, if not sets cell x, y, z to be whatever material it previously was
  634. --returns true if made a wedge, false if the cell remains a block
  635. function MakeWedge(x, y, z, defaultmaterial)
  636. local c = game.Workspace.Terrain
  637. --gather info about all the cells around x, y, z
  638. surroundings = {} --surroundings is a 3 x 3 x 3 array of the material of the cells adjacent to x, y, z
  639. for i = x - 1, x + 1 do
  640. surroundings[i] = {"Water"}
  641. for j = y - 1, y + 1 do
  642. surroundings[i][j] = {}
  643. for k = z - 1, z + 1 do
  644. local material, wedge, rotation = c:GetCell(i, j, k)
  645. surroundings[i][j][k] = material.Value
  646. end
  647. end
  648. end
  649. --make some useful arrays and counters
  650. local sides = {} --sides is an array of the material of the 4 adjacent sides
  651. sides[0] = surroundings[x - 1][y][z]
  652. sides[1] = surroundings[x][y][z + 1]
  653. sides[2] = surroundings[x + 1][y][z]
  654. sides[3] = surroundings[x][y][z - 1]
  655. local adjacentSides = 0
  656. for n = 0, 3 do
  657. if sides[n] > 0 then
  658. adjacentSides = adjacentSides + 1
  659. end
  660. end
  661. local sidesAbove = {} --sides is an array of the material of the 4 adjacent sides 1 height above
  662. sidesAbove[0] = surroundings[x - 1][y + 1][z]
  663. sidesAbove[1] = surroundings[x][y + 1][z + 1]
  664. sidesAbove[2] = surroundings[x + 1][y + 1][z]
  665. sidesAbove[3] = surroundings[x][y + 1][z - 1]
  666. local adjacentSidesAbove = 0
  667. for n = 0, 3 do
  668. if sidesAbove[n] > 0 then
  669. adjacentSidesAbove = adjacentSidesAbove + 1
  670. end
  671. end
  672. local corners = {} --corners is an array of the material of the 4 adjacent corners
  673. corners[0] = surroundings[x - 1][y][z - 1]
  674. corners[1] = surroundings[x - 1][y][z + 1]
  675. corners[2] = surroundings[x + 1][y][z + 1]
  676. corners[3] = surroundings[x + 1][y][z - 1]
  677. local adjacentCorners = 0
  678. for n = 0, 3 do
  679. if corners[n] > 0 then
  680. adjacentCorners = adjacentCorners + 1
  681. end
  682. end
  683. local cornersAbove = {} --corners is an array of the material of the 4 adjacent corners 1 height above
  684. cornersAbove[0] = surroundings[x - 1][y + 1][z - 1]
  685. cornersAbove[1] = surroundings[x - 1][y + 1][z + 1]
  686. cornersAbove[2] = surroundings[x + 1][y + 1][z + 1]
  687. cornersAbove[3] = surroundings[x + 1][y + 1][z - 1]
  688. local adjacentCornersAbove = 0
  689. for n = 0, 3 do
  690. if cornersAbove[n] > 0 then
  691. adjacentCornersAbove = adjacentCornersAbove + 1
  692. end
  693. end
  694. --determine what type of wedge to make
  695. local material = "Water"
  696. local wedge = nil
  697. local rotation = nil
  698. if defaultmaterial then
  699. material = defaultmaterial
  700. else
  701. material, wedge, rotation = c:GetCell(x, y, z) --start with the existing material, wedge, and rotation
  702. end
  703. wedge = 0 --default wedge is a block
  704. rotation = 0 --default rotation is 0
  705. --type 1: 45 degree ramp //must not have a block on top and must have a block under, and be surrounded by 1 side; or 3 sides and the 2 corners between them
  706. if surroundings[x][y + 1][z] == 0 and surroundings[x][y - 1][z] > 0 then
  707. if adjacentSides == 1 then
  708. for n = 0, 3 do
  709. if sides[n] > 0 then
  710. wedge = 1
  711. rotation = (n + 1) % 4
  712. c:SetCell(x, y, z, "Water", "Solid", "Z")
  713. return true
  714. end
  715. end
  716. elseif adjacentSides == 3 then
  717. for n = 0, 3 do
  718. if sides[n] > 0 and corners[(n + 1) % 4] > 0 and sides[(n + 1) % 4] > 0 and corners[(n + 2) % 4] > 0 and sides[(n + 2) % 4] > 0 then
  719. wedge = 1
  720. rotation = (n + 2) % 4
  721. c:SetCell(x, y, z, "Water","Solid","Z")
  722. return true
  723. end
  724. end
  725. end
  726. end
  727. --type 2: 45 degree corner //must not have a block on top and must have a block under, and be surrounded by 2 sides and the 1 corner between them; or 3 sides and 1 corner between 2 of them (facing towards that corner)
  728. if surroundings[x][y + 1][z] == 0 and surroundings[x][y - 1][z] > 0 then
  729. for n = 0, 3 do
  730. if sides[n] > 0 and corners[(n + 1) % 4] > 0 and sides[(n + 1) % 4] > 0 and (adjacentSides == 2 or (adjacentSides == 3 and (corners[(n + 3) % 4] > 0 or (sides[(n + 2) % 4] > 0 and corners[(n + 2) % 4] > 0) or (sides[(n + 3) % 4] > 0 and corners[n] > 0)))) then
  731. wedge = 2
  732. rotation = (n + 2) % 4
  733. c:SetCell(x, y, z, "Water","Solid","Z")
  734. return true
  735. end
  736. end
  737. end
  738. --type 3: 45 degree inverse corner //surrounded by three sides or 4 sides and 3 corners, with nothing above or else a block on top surrounded on 2 sides and the corner between them
  739. if adjacentSides == 3 and surroundings[x][y + 1][z] > 0 then
  740. if adjacentCorners > 1 then
  741. for n = 0, 3 do
  742. if (corners[n] == 0 or cornersAbove[n] == 0) and (sides[(n - 1) % 4] == 0 or sides[n] == 0) and (sidesAbove[n] == 0 and sidesAbove[(n + 1) % 4] > 0 and sidesAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 3) % 4] == 0) then
  743. wedge = 3
  744. rotation = (n + 3) % 4
  745. c:SetCell(x, y, z, "Water","Solid","Z")
  746. return true
  747. end
  748. end
  749. end
  750. elseif adjacentSides == 4 and adjacentCorners == 3 then
  751. for n = 0, 3 do
  752. if corners[n] == 0 and (surroundings[x][y + 1][z] == 0 or (sidesAbove[n] == 0 and sidesAbove[(n + 1) % 4] > 0 and cornersAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 3) % 4] == 0)) then
  753. wedge = 3
  754. rotation = (n + 3) % 4
  755. c:SetCell(x, y, z, "Water","Solid","Z")
  756. return true
  757. end
  758. end
  759. end
  760. --type 4: half a cube, as if it were cut diagonally from front to back //surrounded by 2 sides
  761. if adjacentSides == 2 and adjacentCorners < 4 then
  762. for n = 0, 3 do
  763. if sides[n] == 0 and sides[(n + 1) % 4] == 0 and (surroundings[x][y + 1][z] == 0 or (sidesAbove[n] == 0 and sidesAbove[(n + 1) % 4] == 0 and sidesAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 3) % 4] > 0)) then
  764. wedge = 4
  765. rotation = n
  766. c:SetCell(x, y, z, "Water","Solid","Z")
  767. return true
  768. end
  769. end
  770. end
  771. c:SetCell(x, y, z, "Water","Solid","Z")
  772. wait(1)
  773. c:SetCell(x, y, z, 0,0,0)
  774. return false
  775. end
  776.  
  777. function updateMouseRadius(mouse) -- Makes sure that while the player is digging he doesn't go move his mouse somewhere else going outside our magnitude
  778. p = game.Players.LocalPlayer
  779. if (mouse.Hit.p - p.Character.Torso.Position).magnitude > 20 then -- YOU RULE BREAKER!!!
  780. onDeselect() -- Acts as if they stopped holding the mouse down
  781. end
  782. end
  783.  
  784.  
  785.  
  786. function onClick(mouse)
  787. h = game.Players.LocalPlayer.Character.Humanoid
  788. if not enabled or down or h == nil then
  789. return
  790. end
  791. p = game.Players.LocalPlayer
  792. if (p == nil) then return end
  793. if (p.Character == nil) then return end
  794. if (mouse.Hit.p - p.Character.Torso.Position).magnitude > 20 then return end
  795. down = true
  796. enabled = false
  797. c = game.Workspace.Terrain
  798. while down do
  799. Tool.Dirt.Smoke.Enabled = true
  800. if not p.PlayerGui:findFirstChild("LoadBar") then
  801. local l = gui:clone()
  802. l.Parent = p.PlayerGui
  803. script.Parent.guiObject.Value = l
  804. end
  805. local guivalue = p.PlayerGui:findFirstChild("LoadBar").Frame.LoadBarPercentage
  806. updateMouseRadius(mouse) -- Checks radius
  807. guivalue.Value = guivalue.Value + 30
  808. if guivalue.Value >= 100 then
  809. local cellPos = c:WorldToCellPreferSolid(Vector3.new(mouse.Hit.x, mouse.Hit.y, mouse.Hit.z))
  810. local x = cellPos.x
  811. local y = cellPos.y
  812. local z = cellPos.z
  813. c:SetCell(x, y, z, "Water","Solid",0)
  814. for i = x - 1, x + 1 do
  815. for j = y - 1, y + 1 do
  816. for k = z - 1, z + 1 do
  817. MakeWedge(i, j, k)
  818. end
  819. end
  820. end
  821. Tool.Dirt.Smoke.Enabled = false
  822. onDeselect(mouse) -- Kills GUI
  823. enabled = false
  824. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  825. wait(0.5)
  826. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  827. enabled = true
  828. end
  829. wait()
  830. end
  831. end
  832.  
  833. function onClickOff(mouse)
  834. Tool.Dirt.Smoke.Enabled = false
  835. enabled = true
  836. down = false
  837. if script.Parent.guiObject.Value ~= nil then
  838. script.Parent.guiObject.Value:remove()
  839. end
  840. if Tool.DiggyDiggyHole.Value ~= nil then
  841. Tool.DiggyDiggyHole.Value:Stop()
  842. Tool.DiggyDiggyHole.Value:remove()
  843. end
  844. Tool.GripForward = Vector3.new(0,0,-1)
  845. Tool.GripRight = Vector3.new(0,0,0)
  846. Tool.GripUp = Vector3.new(0, 1, 0)
  847. Tool.Animate.Disabled = true -- The script seems to crash after digging due to the animation becoming nil. Just restart it.
  848. Tool.Animate.Disabled = false
  849. end
  850.  
  851. function onDeselect(mouse)
  852. Tool.Dirt.Smoke.Enabled = false
  853. enabled = true
  854. down = false
  855. if script.Parent.guiObject.Value ~= nil then
  856. script.Parent.guiObject.Value:remove()
  857. end
  858. if Tool.DiggyDiggyHole.Value ~= nil then
  859. Tool.DiggyDiggyHole.Value:Stop()
  860. Tool.DiggyDiggyHole.Value:remove()
  861. end
  862. Tool.GripForward = Vector3.new(0,0,-1)
  863. Tool.GripRight = Vector3.new(0,0,0)
  864. Tool.GripUp = Vector3.new(0, 1, 0)
  865. Tool.Animate.Disabled = true -- The script seems to crash after digging due to the animation becoming nil. Just restart it.
  866. Tool.Animate.Disabled = false
  867. end
  868.  
  869. function onSelect(mouse)
  870. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  871. mouse.Button1Down:connect(function () onClick(mouse) end)
  872. mouse.Button1Up:connect(function () onClickOff(mouse) end)
  873. end
  874.  
  875.  
  876.  
  877. script.Parent.Equipped:connect(onSelect)
  878. script.Parent.UnEquipped:connect(onDeselect)
  879. end))
  880. ScreenGui30.Name = "LoadBar"
  881. ScreenGui30.Parent = LocalScript29
  882. Frame31.Parent = ScreenGui30
  883. Frame31.Size = UDim2.new(0.375, 0, 0.125, 0)
  884. Frame31.Style = Enum.FrameStyle.RobloxRound
  885. Frame31.Position = UDim2.new(0.625, 0, 0.75, 0)
  886. Frame31.Visible = false
  887. Frame32.Name = "LoadBar"
  888. Frame32.Parent = Frame31
  889. Frame32.Size = UDim2.new(0, 0, 1, 0)
  890. Frame32.Style = Enum.FrameStyle.ChatGreen
  891. TextLabel33.Parent = Frame32
  892. TextLabel33.Text = ""
  893. TextLabel33.Position = UDim2.new(0.5, 0, 0.5, 0)
  894. TextLabel33.Font = Enum.Font.ArialBold
  895. TextLabel33.FontSize = Enum.FontSize.Size24
  896. TextLabel33.TextColor3 = Color3.new(0.6, 0.2, 0)
  897. NumberValue34.Name = "LoadBarPercentage"
  898. NumberValue34.Parent = Frame31
  899. Script35.Parent = NumberValue34
  900. Script35.Disabled = true
  901. table.insert(cors,sandbox(Script35,function()
  902. function UpdateBar()
  903. script.Parent.Parent.LoadBar.Size = UDim2.new((script.Parent.Parent.LoadBarPercentage.Value*.01),0,1,0)
  904. script.Parent.Parent.LoadBar.TextLabel.Text = script.Parent.Parent.LoadBarPercentage.Value.."%"
  905. end
  906.  
  907. script.Parent.Changed:connect(UpdateBar)
  908. end))
  909. Script36.Name = "Debug"
  910. Script36.Parent = Script35
  911. table.insert(cors,sandbox(Script36,function()
  912. -- Online mode is really screwed up :P
  913. wait(1)
  914. script.Parent.Disabled = false
  915. script:remove()
  916. end))
  917. Script37.Name = "Debug"
  918. Script37.Parent = LocalScript29
  919. table.insert(cors,sandbox(Script37,function()
  920. -- Online mode is really screwed up :P
  921. wait(1)
  922. script.Parent.Disabled = false
  923. script:remove()
  924. end))
  925. Tool38.Name = "Water"
  926. Tool38.Parent = mas
  927. Part39.Name = "Shaft"
  928. Part39.Parent = Tool38
  929. Part39.BrickColor = BrickColor.new("Brown")
  930. Part39.Transparency = 1
  931. Part39.Rotation = Vector3.new(90, 0, 180)
  932. Part39.CanCollide = false
  933. Part39.Size = Vector3.new(1, 1.20000005, 1)
  934. Part39.CFrame = CFrame.new(-22.9599991, 0.500039995, -39.1799545, -1, -8.85535792e-06, 2.26414431e-06, -2.26411794e-06, -8.40712164e-06, -1, 8.85556892e-06, -1, 8.40729354e-06)
  935. Part39.BackSurface = Enum.SurfaceType.Weld
  936. Part39.BottomSurface = Enum.SurfaceType.Weld
  937. Part39.FrontSurface = Enum.SurfaceType.Weld
  938. Part39.LeftSurface = Enum.SurfaceType.Weld
  939. Part39.RightSurface = Enum.SurfaceType.Weld
  940. Part39.TopSurface = Enum.SurfaceType.Weld
  941. Part39.Color = Color3.new(0.486275, 0.360784, 0.27451)
  942. Part39.Position = Vector3.new(-22.9599991, 0.500039995, -39.1799545)
  943. Part39.Orientation = Vector3.new(90, -180, 0)
  944. Part39.Color = Color3.new(0.486275, 0.360784, 0.27451)
  945. Part40.Name = "Dirt"
  946. Part40.Parent = Tool38
  947. Part40.BrickColor = BrickColor.new("Dark stone grey")
  948. Part40.Transparency = 1
  949. Part40.Rotation = Vector3.new(0, -0.0199999996, 180)
  950. Part40.CanCollide = false
  951. Part40.Size = Vector3.new(1, 1.20000005, 1)
  952. Part40.CFrame = CFrame.new(-22.9600067, 3.40008903, -39.1799469, -0.99999994, -2.1091405e-06, -0.000354161049, 2.1122255e-06, -1, -8.70979238e-06, -0.000354161049, -8.71053999e-06, 0.99999994)
  953. Part40.BackSurface = Enum.SurfaceType.Weld
  954. Part40.BottomSurface = Enum.SurfaceType.Weld
  955. Part40.FrontSurface = Enum.SurfaceType.Weld
  956. Part40.LeftSurface = Enum.SurfaceType.Weld
  957. Part40.RightSurface = Enum.SurfaceType.Weld
  958. Part40.TopSurface = Enum.SurfaceType.Weld
  959. Part40.Color = Color3.new(0.388235, 0.372549, 0.384314)
  960. Part40.Position = Vector3.new(-22.9600067, 3.40008903, -39.1799469)
  961. Part40.Orientation = Vector3.new(0, -0.0199999996, 180)
  962. Part40.Color = Color3.new(0.388235, 0.372549, 0.384314)
  963. CylinderMesh41.Parent = Part40
  964. CylinderMesh41.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  965. CylinderMesh41.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  966. Smoke42.Parent = Part40
  967. Smoke42.Size = 0.10000000149012
  968. Smoke42.Color = Color3.new(0.372549, 0.211765, 0.121569)
  969. Smoke42.Enabled = false
  970. Smoke42.Opacity = 0.25
  971. Smoke42.RiseVelocity = -0.5
  972. Smoke42.Color = Color3.new(0.372549, 0.211765, 0.121569)
  973. Part43.Name = "Handle"
  974. Part43.Parent = Tool38
  975. Part43.BrickColor = BrickColor.new("Bright green")
  976. Part43.Transparency = 1
  977. Part43.Rotation = Vector3.new(0, 90, 0)
  978. Part43.Size = Vector3.new(1, 1.20000005, 1)
  979. Part43.CFrame = CFrame.new(-22.960001, 1.60004234, -39.179966, -8.85526242e-06, -2.26412044e-06, 1, -8.40702614e-06, 1, 2.26414181e-06, -1, -8.40738903e-06, -8.85566442e-06)
  980. Part43.Color = Color3.new(0.294118, 0.592157, 0.294118)
  981. Part43.Position = Vector3.new(-22.960001, 1.60004234, -39.179966)
  982. Part43.Orientation = Vector3.new(0, 90, 0)
  983. Part43.Color = Color3.new(0.294118, 0.592157, 0.294118)
  984. Script44.Name = "Weld"
  985. Script44.Parent = Tool38
  986. table.insert(cors,sandbox(Script44,function()
  987. function Weld(x,y)
  988. local W = Instance.new("Weld")
  989. W.Part0 = x
  990. W.Part1 = y
  991. local CJ = CFrame.new(x.Position)
  992. local C0 = x.CFrame:inverse()*CJ
  993. local C1 = y.CFrame:inverse()*CJ
  994. W.C0 = C0
  995. W.C1 = C1
  996. W.Parent = x
  997. end
  998. function Get(A)
  999. if A.className == "Part" then
  1000. Weld(script.Parent.Handle, A)
  1001. A.Anchored = false
  1002. else
  1003. local C = A:GetChildren()
  1004. for i=1, #C do
  1005. Get(C[i])
  1006. end
  1007. end
  1008. end
  1009. function Finale()
  1010. Get(script.Parent)
  1011. end
  1012. script.Parent.Equipped:connect(Finale)
  1013. script.Parent.Unequipped:connect(Finale)
  1014. Finale()
  1015.  
  1016. end))
  1017. ObjectValue45.Name = "DiggyDiggyHole"
  1018. ObjectValue45.Parent = Tool38
  1019. Animation46.Name = "SlashAnim"
  1020. Animation46.Parent = Tool38
  1021. Animation46.AnimationId = "http://www.roblox.com/Asset?ID=54673790"
  1022. ObjectValue47.Name = "guiObject"
  1023. ObjectValue47.Parent = Tool38
  1024. LocalScript48.Name = "Dig"
  1025. LocalScript48.Parent = Tool38
  1026. LocalScript48.Disabled = true
  1027. table.insert(cors,sandbox(LocalScript48,function()
  1028. wait(1)
  1029. enabled = true
  1030. Tool = script.Parent
  1031. down = false -- Mouse isn't down
  1032. gui = script.LoadBar:clone() -- Displays your process in digging
  1033.  
  1034. -- Cyrion's auto-wedge fcn:
  1035. --sets cell x, y, z to default material if parameter is provided, if not sets cell x, y, z to be whatever material it previously was
  1036. --returns true if made a wedge, false if the cell remains a block
  1037. function MakeWedge(x, y, z, defaultmaterial)
  1038. local c = game.Workspace.Terrain
  1039. --gather info about all the cells around x, y, z
  1040. surroundings = {} --surroundings is a 3 x 3 x 3 array of the material of the cells adjacent to x, y, z
  1041. for i = x - 1, x + 1 do
  1042. surroundings[i] = {"Water"}
  1043. for j = y - 1, y + 1 do
  1044. surroundings[i][j] = {}
  1045. for k = z - 1, z + 1 do
  1046. local material, wedge, rotation = c:GetCell(i, j, k)
  1047. surroundings[i][j][k] = material.Value
  1048. end
  1049. end
  1050. end
  1051. --make some useful arrays and counters
  1052. local sides = {} --sides is an array of the material of the 4 adjacent sides
  1053. sides[0] = surroundings[x - 1][y][z]
  1054. sides[1] = surroundings[x][y][z + 1]
  1055. sides[2] = surroundings[x + 1][y][z]
  1056. sides[3] = surroundings[x][y][z - 1]
  1057. local adjacentSides = 0
  1058. for n = 0, 3 do
  1059. if sides[n] > 0 then
  1060. adjacentSides = adjacentSides + 1
  1061. end
  1062. end
  1063. local sidesAbove = {} --sides is an array of the material of the 4 adjacent sides 1 height above
  1064. sidesAbove[0] = surroundings[x - 1][y + 1][z]
  1065. sidesAbove[1] = surroundings[x][y + 1][z + 1]
  1066. sidesAbove[2] = surroundings[x + 1][y + 1][z]
  1067. sidesAbove[3] = surroundings[x][y + 1][z - 1]
  1068. local adjacentSidesAbove = 0
  1069. for n = 0, 3 do
  1070. if sidesAbove[n] > 0 then
  1071. adjacentSidesAbove = adjacentSidesAbove + 1
  1072. end
  1073. end
  1074. local corners = {} --corners is an array of the material of the 4 adjacent corners
  1075. corners[0] = surroundings[x - 1][y][z - 1]
  1076. corners[1] = surroundings[x - 1][y][z + 1]
  1077. corners[2] = surroundings[x + 1][y][z + 1]
  1078. corners[3] = surroundings[x + 1][y][z - 1]
  1079. local adjacentCorners = 0
  1080. for n = 0, 3 do
  1081. if corners[n] > 0 then
  1082. adjacentCorners = adjacentCorners + 1
  1083. end
  1084. end
  1085. local cornersAbove = {} --corners is an array of the material of the 4 adjacent corners 1 height above
  1086. cornersAbove[0] = surroundings[x - 1][y + 1][z - 1]
  1087. cornersAbove[1] = surroundings[x - 1][y + 1][z + 1]
  1088. cornersAbove[2] = surroundings[x + 1][y + 1][z + 1]
  1089. cornersAbove[3] = surroundings[x + 1][y + 1][z - 1]
  1090. local adjacentCornersAbove = 0
  1091. for n = 0, 3 do
  1092. if cornersAbove[n] > 0 then
  1093. adjacentCornersAbove = adjacentCornersAbove + 1
  1094. end
  1095. end
  1096. --determine what type of wedge to make
  1097. local material = "Water"
  1098. local wedge = nil
  1099. local rotation = nil
  1100. if defaultmaterial then
  1101. material = defaultmaterial
  1102. else
  1103. material, wedge, rotation = c:GetCell(x, y, z) --start with the existing material, wedge, and rotation
  1104. end
  1105. wedge = 0 --default wedge is a block
  1106. rotation = 0 --default rotation is 0
  1107. --type 1: 45 degree ramp //must not have a block on top and must have a block under, and be surrounded by 1 side; or 3 sides and the 2 corners between them
  1108. if surroundings[x][y + 1][z] == 0 and surroundings[x][y - 1][z] > 0 then
  1109. if adjacentSides == 1 then
  1110. for n = 0, 3 do
  1111. if sides[n] > 0 then
  1112. wedge = 1
  1113. rotation = (n + 1) % 4
  1114. c:SetCell(x, y, z, "Water", "Solid", "Z")
  1115. return true
  1116. end
  1117. end
  1118. elseif adjacentSides == 3 then
  1119. for n = 0, 3 do
  1120. if sides[n] > 0 and corners[(n + 1) % 4] > 0 and sides[(n + 1) % 4] > 0 and corners[(n + 2) % 4] > 0 and sides[(n + 2) % 4] > 0 then
  1121. wedge = 1
  1122. rotation = (n + 2) % 4
  1123. c:SetCell(x, y, z, "Water","Solid","Z")
  1124. return true
  1125. end
  1126. end
  1127. end
  1128. end
  1129. --type 2: 45 degree corner //must not have a block on top and must have a block under, and be surrounded by 2 sides and the 1 corner between them; or 3 sides and 1 corner between 2 of them (facing towards that corner)
  1130. if surroundings[x][y + 1][z] == 0 and surroundings[x][y - 1][z] > 0 then
  1131. for n = 0, 3 do
  1132. if sides[n] > 0 and corners[(n + 1) % 4] > 0 and sides[(n + 1) % 4] > 0 and (adjacentSides == 2 or (adjacentSides == 3 and (corners[(n + 3) % 4] > 0 or (sides[(n + 2) % 4] > 0 and corners[(n + 2) % 4] > 0) or (sides[(n + 3) % 4] > 0 and corners[n] > 0)))) then
  1133. wedge = 2
  1134. rotation = (n + 2) % 4
  1135. c:SetCell(x, y, z, "Water","Solid","Z")
  1136. return true
  1137. end
  1138. end
  1139. end
  1140. --type 3: 45 degree inverse corner //surrounded by three sides or 4 sides and 3 corners, with nothing above or else a block on top surrounded on 2 sides and the corner between them
  1141. if adjacentSides == 3 and surroundings[x][y + 1][z] > 0 then
  1142. if adjacentCorners > 1 then
  1143. for n = 0, 3 do
  1144. if (corners[n] == 0 or cornersAbove[n] == 0) and (sides[(n - 1) % 4] == 0 or sides[n] == 0) and (sidesAbove[n] == 0 and sidesAbove[(n + 1) % 4] > 0 and sidesAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 3) % 4] == 0) then
  1145. wedge = 3
  1146. rotation = (n + 3) % 4
  1147. c:SetCell(x, y, z, "Water","Solid","Z")
  1148. return true
  1149. end
  1150. end
  1151. end
  1152. elseif adjacentSides == 4 and adjacentCorners == 3 then
  1153. for n = 0, 3 do
  1154. if corners[n] == 0 and (surroundings[x][y + 1][z] == 0 or (sidesAbove[n] == 0 and sidesAbove[(n + 1) % 4] > 0 and cornersAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 3) % 4] == 0)) then
  1155. wedge = 3
  1156. rotation = (n + 3) % 4
  1157. c:SetCell(x, y, z, "Water","Solid","Z")
  1158. return true
  1159. end
  1160. end
  1161. end
  1162. --type 4: half a cube, as if it were cut diagonally from front to back //surrounded by 2 sides
  1163. if adjacentSides == 2 and adjacentCorners < 4 then
  1164. for n = 0, 3 do
  1165. if sides[n] == 0 and sides[(n + 1) % 4] == 0 and (surroundings[x][y + 1][z] == 0 or (sidesAbove[n] == 0 and sidesAbove[(n + 1) % 4] == 0 and sidesAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 3) % 4] > 0)) then
  1166. wedge = 4
  1167. rotation = n
  1168. c:SetCell(x, y, z, "Water","Solid","Z")
  1169. return true
  1170. end
  1171. end
  1172. end
  1173. c:SetCell(x, y, z, "Water","Solid","Z")
  1174. return false
  1175. end
  1176.  
  1177. function updateMouseRadius(mouse) -- Makes sure that while the player is digging he doesn't go move his mouse somewhere else going outside our magnitude
  1178. p = game.Players.LocalPlayer
  1179. if (mouse.Hit.p - p.Character.Torso.Position).magnitude > 20 then -- YOU RULE BREAKER!!!
  1180. onDeselect() -- Acts as if they stopped holding the mouse down
  1181. end
  1182. end
  1183.  
  1184.  
  1185.  
  1186. function onClick(mouse)
  1187. h = game.Players.LocalPlayer.Character.Humanoid
  1188. if not enabled or down or h == nil then
  1189. return
  1190. end
  1191. p = game.Players.LocalPlayer
  1192. if (p == nil) then return end
  1193. if (p.Character == nil) then return end
  1194. if (mouse.Hit.p - p.Character.Torso.Position).magnitude > 20 then return end
  1195. down = true
  1196. enabled = false
  1197. c = game.Workspace.Terrain
  1198. while down do
  1199. Tool.Dirt.Smoke.Enabled = true
  1200. if not p.PlayerGui:findFirstChild("LoadBar") then
  1201. local l = gui:clone()
  1202. l.Parent = p.PlayerGui
  1203. script.Parent.guiObject.Value = l
  1204. end
  1205. local guivalue = p.PlayerGui:findFirstChild("LoadBar").Frame.LoadBarPercentage
  1206. updateMouseRadius(mouse) -- Checks radius
  1207. guivalue.Value = guivalue.Value + 30
  1208. if guivalue.Value >= 100 then
  1209. local cellPos = c:WorldToCellPreferSolid(Vector3.new(mouse.Hit.x, mouse.Hit.y, mouse.Hit.z))
  1210. local x = cellPos.x
  1211. local y = cellPos.y
  1212. local z = cellPos.z
  1213. c:SetCell(x, y, z, "Water","Solid",0)
  1214. for i = x - 1, x + 1 do
  1215. for j = y - 1, y + 1 do
  1216. for k = z - 1, z + 1 do
  1217. MakeWedge(i, j, k)
  1218. end
  1219. end
  1220. end
  1221. Tool.Dirt.Smoke.Enabled = false
  1222. onDeselect(mouse) -- Kills GUI
  1223. enabled = false
  1224. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  1225. wait(0.5)
  1226. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  1227. enabled = true
  1228. end
  1229. wait()
  1230. end
  1231. end
  1232.  
  1233. function onClickOff(mouse)
  1234. Tool.Dirt.Smoke.Enabled = false
  1235. enabled = true
  1236. down = false
  1237. if script.Parent.guiObject.Value ~= nil then
  1238. script.Parent.guiObject.Value:remove()
  1239. end
  1240. if Tool.DiggyDiggyHole.Value ~= nil then
  1241. Tool.DiggyDiggyHole.Value:Stop()
  1242. Tool.DiggyDiggyHole.Value:remove()
  1243. end
  1244. Tool.GripForward = Vector3.new(0,0,-1)
  1245. Tool.GripRight = Vector3.new(0,0,0)
  1246. Tool.GripUp = Vector3.new(0, 1, 0)
  1247. Tool.Animate.Disabled = true -- The script seems to crash after digging due to the animation becoming nil. Just restart it.
  1248. Tool.Animate.Disabled = false
  1249. end
  1250.  
  1251. function onDeselect(mouse)
  1252. Tool.Dirt.Smoke.Enabled = false
  1253. enabled = true
  1254. down = false
  1255. if script.Parent.guiObject.Value ~= nil then
  1256. script.Parent.guiObject.Value:remove()
  1257. end
  1258. if Tool.DiggyDiggyHole.Value ~= nil then
  1259. Tool.DiggyDiggyHole.Value:Stop()
  1260. Tool.DiggyDiggyHole.Value:remove()
  1261. end
  1262. Tool.GripForward = Vector3.new(0,0,-1)
  1263. Tool.GripRight = Vector3.new(0,0,0)
  1264. Tool.GripUp = Vector3.new(0, 1, 0)
  1265. Tool.Animate.Disabled = true -- The script seems to crash after digging due to the animation becoming nil. Just restart it.
  1266. Tool.Animate.Disabled = false
  1267. end
  1268.  
  1269. function onSelect(mouse)
  1270. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  1271. mouse.Button1Down:connect(function () onClick(mouse) end)
  1272. mouse.Button1Up:connect(function () onClickOff(mouse) end)
  1273. end
  1274.  
  1275.  
  1276.  
  1277. script.Parent.Equipped:connect(onSelect)
  1278. script.Parent.UnEquipped:connect(onDeselect)
  1279. end))
  1280. ScreenGui49.Name = "LoadBar"
  1281. ScreenGui49.Parent = LocalScript48
  1282. Frame50.Parent = ScreenGui49
  1283. Frame50.Size = UDim2.new(0.375, 0, 0.125, 0)
  1284. Frame50.Style = Enum.FrameStyle.RobloxRound
  1285. Frame50.Position = UDim2.new(0.625, 0, 0.75, 0)
  1286. Frame50.Visible = false
  1287. Frame51.Name = "LoadBar"
  1288. Frame51.Parent = Frame50
  1289. Frame51.Size = UDim2.new(0, 0, 1, 0)
  1290. Frame51.Style = Enum.FrameStyle.ChatGreen
  1291. TextLabel52.Parent = Frame51
  1292. TextLabel52.Text = ""
  1293. TextLabel52.Position = UDim2.new(0.5, 0, 0.5, 0)
  1294. TextLabel52.Font = Enum.Font.ArialBold
  1295. TextLabel52.FontSize = Enum.FontSize.Size24
  1296. TextLabel52.TextColor3 = Color3.new(0.6, 0.2, 0)
  1297. NumberValue53.Name = "LoadBarPercentage"
  1298. NumberValue53.Parent = Frame50
  1299. Script54.Parent = NumberValue53
  1300. Script54.Disabled = true
  1301. table.insert(cors,sandbox(Script54,function()
  1302. function UpdateBar()
  1303. script.Parent.Parent.LoadBar.Size = UDim2.new((script.Parent.Parent.LoadBarPercentage.Value*.01),0,1,0)
  1304. script.Parent.Parent.LoadBar.TextLabel.Text = script.Parent.Parent.LoadBarPercentage.Value.."%"
  1305. end
  1306.  
  1307. script.Parent.Changed:connect(UpdateBar)
  1308. end))
  1309. Script55.Name = "Debug"
  1310. Script55.Parent = Script54
  1311. table.insert(cors,sandbox(Script55,function()
  1312. -- Online mode is really screwed up :P
  1313. wait(1)
  1314. script.Parent.Disabled = false
  1315. script:remove()
  1316. end))
  1317. Script56.Name = "Debug"
  1318. Script56.Parent = LocalScript48
  1319. table.insert(cors,sandbox(Script56,function()
  1320. -- Online mode is really screwed up :P
  1321. wait(1)
  1322. script.Parent.Disabled = false
  1323. script:remove()
  1324. end))
  1325. Tool57.Name = "inhale"
  1326. Tool57.Parent = mas
  1327. Tool57.TextureId = "http://www.roblox.com/asset/?id=76612433"
  1328. Tool57.GripForward = Vector3.new(-0, -2.18556949e-07, -1)
  1329. Tool57.GripPos = Vector3.new(-1.5, -0.800000012, -2.70000005)
  1330. Tool57.GripRight = Vector3.new(-1, 0, 0)
  1331. Tool57.GripUp = Vector3.new(0, -1, 2.18556949e-07)
  1332. Script58.Name = "SoundScript"
  1333. Script58.Parent = Tool57
  1334. table.insert(cors,sandbox(Script58,function()
  1335. --Stickmasterluke
  1336.  
  1337.  
  1338. sp=script.Parent
  1339. handle=sp.Handle
  1340.  
  1341.  
  1342. script.ChildAdded:connect(function(item)
  1343. if item~=nil then
  1344. local s=handle:FindFirstChild(item.Name)
  1345. if s~=nil then
  1346. s:Play()
  1347. end
  1348. item:remove()
  1349. end
  1350. end)
  1351.  
  1352.  
  1353. end))
  1354. LocalScript59.Parent = Tool57
  1355. table.insert(cors,sandbox(LocalScript59,function()
  1356. --Stickmasterluke
  1357. --Altered by QuantumSama
  1358.  
  1359.  
  1360. local Tool=script.Parent
  1361. local Backpack = Tool.Handle
  1362.  
  1363. rate=1/30
  1364.  
  1365. equipped=false
  1366. check=true
  1367. debris=game:GetService("Debris")
  1368.  
  1369.  
  1370. while Tool.Handle:FindFirstChild("Motor")==nil do
  1371. wait()
  1372. end
  1373. local storeWeld=Tool.Handle.Motor
  1374.  
  1375. local HoseSound
  1376.  
  1377.  
  1378. function playsound(soundname)
  1379. if soundname and Tool:FindFirstChild("SoundScript")~=nil then
  1380. local soundtag=Instance.new("StringValue")
  1381. soundtag.Name=soundname
  1382. soundtag.Parent=Tool.SoundScript
  1383. end
  1384. end
  1385.  
  1386. function setwelds()
  1387. if storeWeld then
  1388. storeWeld.Parent=Tool.Handle
  1389. end
  1390. if equipped then
  1391. local ra=Tool.Parent:FindFirstChild("Right Arm")
  1392. local t=Tool.Parent:FindFirstChild("Torso")
  1393. if ra~=nil and t~=nil then
  1394. local rightgrip=ra:FindFirstChild("RightGrip")
  1395. if rightgrip~=nil then
  1396. rightgrip.Part0=t
  1397. rightgrip.C0=CFrame.new(0,0,1)*CFrame.Angles(0,0,math.pi)
  1398. rightgrip.C1=CFrame.new(0,0,0)
  1399. end
  1400. end
  1401. end
  1402. end
  1403.  
  1404. function doSuck()
  1405. local plr=game.Players.LocalPlayer
  1406. if plr~=nil then
  1407. local radiusVec = Vector3.new(6,6,6)
  1408. local handle = Tool:FindFirstChild("Handle")
  1409. local hose = handle:FindFirstChild("HosePart")
  1410. local hoseCFrame = hose.CFrame*CFrame.Angles(math.pi/2,0,0)
  1411. local hoseTarget = hoseCFrame + hoseCFrame.lookVector*9
  1412. local suckTarget = hoseCFrame + hoseCFrame.lookVector*3
  1413. local suckPart = Instance.new("Part")
  1414. suckPart.CanCollide = false
  1415. suckPart.FormFactor = "Custom"
  1416. --suckPart.Shape = "Ball"
  1417. suckPart.Size = Vector3.new(.2,.2,.2)
  1418. suckPart.CFrame = hoseTarget + Vector3.new((math.random()-.5)*10,(math.random()-.5)*10,(math.random()-.5)*10)
  1419. suckPart2 = suckPart:Clone()
  1420. suckPart2.CFrame = hoseTarget + Vector3.new((math.random()-.5)*10,(math.random()-.5)*10,(math.random()-.5)*10)
  1421. debris:AddItem(suckPart,3)
  1422. debris:AddItem(suckPart2,3)
  1423. suckPart.Parent = game.Workspace
  1424. suckPart2.Parent = game.Workspace
  1425.  
  1426. local suckRegion = Region3.new(hoseTarget.p - radiusVec, hoseTarget.p + radiusVec)
  1427.  
  1428. local suckableParts = game.Workspace:FindPartsInRegion3(suckRegion, Tool.Parent,50)
  1429.  
  1430. local limbChance = .075
  1431. for i,v in pairs(suckableParts) do
  1432. if v and v.Parent and v:IsA("BasePart") and not v:IsA("Terrain") and v:getMass() < 40 and not v:FindFirstChild("bp") then
  1433. local bp = Instance.new("BodyPosition")
  1434. bp.Name = "bp"
  1435. bp.maxForce = Vector3.new(99999,99999,99999)
  1436. bp.D = 3000
  1437. bp.P = 30000
  1438. bp.position = suckTarget.p
  1439. debris:AddItem(bp,.5)
  1440. local hum = v.Parent:FindFirstChild("Humanoid")
  1441. if hum then
  1442. if math.random() < limbChance or hum.Health == 0 then
  1443. local creatorTag = Instance.new("ObjectValue")
  1444. creatorTag.Value = plr
  1445. creatorTag.Name = "creator"
  1446. debris:AddItem(creatorTag,.5)
  1447. creatorTag.Parent = hum
  1448.  
  1449. v:BreakJoints()
  1450. bp.Parent = v
  1451. debris:AddItem(v,.15)
  1452. end
  1453. else
  1454. bp.Parent = v
  1455. if not v.Parent:IsA("Tool") then
  1456. delay(0,function()
  1457. local pos = v.Position
  1458. wait(.15)
  1459. if (pos-v.Position).magnitude > .1 then
  1460. v:Destroy()
  1461. end
  1462. end)
  1463. end
  1464. end
  1465. end
  1466. end
  1467. end
  1468. end
  1469.  
  1470. function onEquipped(mouse)
  1471. if mouse==nil then
  1472. print("Mouse not found")
  1473. return
  1474. end
  1475. equipped=true
  1476. mouse.Icon="rbxasset://textures\\GunCursor.png"
  1477. mouse.Button1Down:connect(function()
  1478. if check and equipped then
  1479. check=false
  1480. mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
  1481. local hum=Tool.Parent:FindFirstChild("Humanoid")
  1482. local torso=Tool.Parent:FindFirstChild("Torso")
  1483. --local rightArm=Tool.Parent:FindFirstChild("Right Arm")
  1484. if torso and hum then
  1485. if hum.Health>0 then
  1486. HoseSound = Backpack:FindFirstChild("HoseSound")
  1487. if HoseSound then HoseSound:Play() end
  1488. --theanim:Play()
  1489. playsound("Spray")
  1490. if storeWeld then
  1491. storeWeld.DesiredAngle=-.5
  1492. end
  1493. local frames = 10
  1494. for i = 1, frames do
  1495. if not equipped then break end
  1496. doSuck()
  1497. wait(.2)
  1498. end
  1499. if storeWeld then
  1500. storeWeld.DesiredAngle=0
  1501. end
  1502. wait(2)
  1503. end
  1504. end
  1505. mouse.Icon="rbxasset://textures\\GunCursor.png"
  1506. check=true
  1507. end
  1508. end)
  1509. setwelds()
  1510. end
  1511.  
  1512. function onUnequipped()
  1513. equipped=false
  1514. if HoseSound then HoseSound:Stop() end
  1515. end
  1516.  
  1517.  
  1518. Tool.Equipped:connect(onEquipped)
  1519. Tool.Unequipped:connect(onUnequipped)
  1520. setwelds()
  1521.  
  1522.  
  1523.  
  1524. end))
  1525. Part60.Name = "Handle"
  1526. Part60.Parent = Tool57
  1527. Part60.BrickColor = BrickColor.new("White")
  1528. Part60.Reflectance = 0.40000000596046
  1529. Part60.Transparency = 1
  1530. Part60.Rotation = Vector3.new(-88.7999954, 3.69999981, -18.3400002)
  1531. Part60.RotVelocity = Vector3.new(0.0107625723, 0.00057148526, 0.0151093593)
  1532. Part60.Velocity = Vector3.new(0.00302244839, 0.000243809744, 0.00234741019)
  1533. Part60.FormFactor = Enum.FormFactor.Custom
  1534. Part60.Size = Vector3.new(1.79999995, 2.5, 1)
  1535. Part60.CFrame = CFrame.new(69.22892, 80.5505142, -33.3096123, 0.947251499, 0.313924134, 0.0645462796, -0.0678553134, -0.000386953354, 0.997695148, 0.313225508, -0.949448049, 0.0209348798)
  1536. Part60.BottomSurface = Enum.SurfaceType.Smooth
  1537. Part60.TopSurface = Enum.SurfaceType.Smooth
  1538. Part60.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1539. Part60.Position = Vector3.new(69.22892, 80.5505142, -33.3096123)
  1540. Part60.Orientation = Vector3.new(-86.1100006, 72.0299988, -90.3299942)
  1541. Part60.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1542. Part61.Name = "HosePart"
  1543. Part61.Parent = Part60
  1544. Part61.BrickColor = BrickColor.new("Pastel Blue")
  1545. Part61.Transparency = 1
  1546. Part61.Rotation = Vector3.new(179.979996, 18.2999992, 3.89999986)
  1547. Part61.RotVelocity = Vector3.new(0.0107625723, 0.00057148526, 0.0151093593)
  1548. Part61.Velocity = Vector3.new(0.0101500256, -0.0359666422, -0.00136004877)
  1549. Part61.Locked = true
  1550. Part61.FormFactor = Enum.FormFactor.Custom
  1551. Part61.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1552. Part61.CFrame = CFrame.new(67.1063538, 80.0933304, -32.9249611, 0.947251022, -0.0645463318, 0.313924044, -0.0678553432, -0.997694671, -0.000387012697, 0.313225359, -0.0209348332, -0.949447751)
  1553. Part61.Color = Color3.new(0.501961, 0.733333, 0.858824)
  1554. Part61.Position = Vector3.new(67.1063538, 80.0933304, -32.9249611)
  1555. Part61.Orientation = Vector3.new(0.0199999996, 161.699997, -176.110001)
  1556. Part61.Color = Color3.new(0.501961, 0.733333, 0.858824)
  1557. Sound62.Name = "HoseSound"
  1558. Sound62.Parent = Part60
  1559. Sound62.SoundId = "http://www.roblox.com/asset/?id=81699764"
  1560. Sound62.Volume = 0.69999998807907
  1561. Motor63.Parent = Part60
  1562. Motor63.C0 = CFrame.new(0, 0, 0, -0.999999881, 0, 0, 0, -0.99999994, 0, 0, 0, 0.999999881)
  1563. Motor63.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)
  1564. Motor63.Part0 = Part60
  1565. Motor63.Part1 = Part61
  1566. Motor63.MaxVelocity = 0.050000000745058
  1567. LocalScript64.Name = "Aqua0"
  1568. LocalScript64.Parent = mas
  1569. table.insert(cors,sandbox(LocalScript64,function()
  1570. --[[ Script By reeces44 ]]--
  1571. --[[ Thanks For Using ]]--
  1572. ------------------------------------
  1573. ----------------------------
  1574. --------------------
  1575.  
  1576. ------------------------------------
  1577. ------------------------------------
  1578. --[[ Instructions ]]--
  1579. ------------------------------------
  1580. --[[
  1581. Press F to start flying
  1582. When Flying holding W will speed up.
  1583. When Flying Holding S will speed down.
  1584.  
  1585. Put in StarterPack for everyone to fly.
  1586. Alternatively, place the script in any players
  1587. backpack to allow them to fly.
  1588.  
  1589. Have Fun,
  1590. reeces44.
  1591. --]]
  1592. -------------------------------------
  1593.  
  1594. local player = game.Players.LocalPlayer
  1595. local mouse = player:GetMouse()
  1596.  
  1597. function GetMassRecursive(p)
  1598. local mass = 0
  1599. for i,v in pairs(p:GetChildren())do
  1600. if #v:GetChildren() > 0 then
  1601. mass = mass + GetMassRecursive(v)
  1602. end
  1603. if v:IsA("Part") then
  1604. print(v.Name)
  1605. mass = mass + v:GetMass()
  1606. end
  1607. end
  1608. return mass
  1609. end
  1610.  
  1611. local wDown = false
  1612. local sDown = false
  1613. local isFlying = false
  1614. local speed = 10
  1615. mouse.KeyDown:connect(function(key)
  1616. if key == "f" then
  1617. if isFlying then
  1618. speed = 0
  1619. wait()
  1620. player.Character.Torso["Anti-Grav"]:Destroy()
  1621. player.Character.Torso["FlyingVelocity"]:Destroy()
  1622. player.Character.Humanoid.PlatformStand = false
  1623. isFlying = false
  1624. else
  1625. speed = 10
  1626. local f = Instance.new("BodyForce")
  1627. f.Name = "Anti-Grav"
  1628. f.Force = Vector3.new(0,196.2,0) * (GetMassRecursive(player.Character))
  1629. f.Parent = player.Character.Torso
  1630. local v = Instance.new("BodyVelocity")
  1631. v.Velocity = (mouse.Hit.p - player.Character.Torso.Position).unit * 10
  1632. v.P = 100
  1633. v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1634. v.Name = "FlyingVelocity"
  1635. v.Parent = player.Character.Torso
  1636. player.Character.Humanoid.PlatformStand = true
  1637. isFlying = true
  1638. end
  1639. end
  1640. if key == "w" then
  1641. wDown = true
  1642. end
  1643. if key == "s" then
  1644. sDown = true
  1645. end
  1646. end)
  1647. mouse.KeyUp:connect(function(key)
  1648. if key == "w" then
  1649. wDown = false
  1650. end
  1651. if key == "s" then
  1652. sDown = false
  1653. end
  1654. end)
  1655. local MAX_SPEED = 200
  1656. local MIN_SPEED = 0
  1657. spawn(function()
  1658. while player.Character.Humanoid.Health > 0 do
  1659. if isFlying then
  1660. local r = 1+(speed/500)
  1661. player.Character:SetPrimaryPartCFrame(CFrame.new(player.Character.PrimaryPart.Position,mouse.Hit.p)*CFrame.Angles(math.pi/r,math.pi,math.pi))
  1662. player.Character.Torso.FlyingVelocity.Velocity = (mouse.Hit.p - player.Character.Torso.Position).unit * speed
  1663. if wDown then
  1664. speed = speed + 5
  1665. if speed > MAX_SPEED then
  1666. speed = MAX_SPEED
  1667. end
  1668. elseif sDown then
  1669. speed = speed - 5
  1670. if speed < MIN_SPEED then
  1671. speed = MIN_SPEED
  1672. end
  1673. end
  1674. end
  1675.  
  1676. game:GetService("RunService").RenderStepped:wait()
  1677. end
  1678. end)
  1679. end))
  1680. LocalScript65.Name = "Aqua1"
  1681. LocalScript65.Parent = mas
  1682. table.insert(cors,sandbox(LocalScript65,function()
  1683. local mouse = game.Players.LocalPlayer:GetMouse()
  1684. local Character = game.Players.LocalPlayer.Character
  1685. local aa = false
  1686. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  1687. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1688. if v:IsA("BasePart") then
  1689. local Sound = script.FatSound:Clone()
  1690. Sound.Parent = game.Players.LocalPlayer.Character.Head
  1691. local AquaLight = script.AquaLight:Clone()
  1692. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  1693. local Particles = script.TestParticles:Clone() -- Name TestParticles to your Particles name.
  1694. Particles.Parent = v
  1695. Sound:Play()
  1696. end
  1697. end
  1698. end
  1699.  
  1700. function ParticlesDestroy() -- To remove the Particles again.
  1701. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1702. if v:FindFirstChild("TestParticles") then -- Name TestParticles to your Particles name.
  1703. v.TestParticles.Enabled = false
  1704. v.TestParticles:Destroy()
  1705. end
  1706. if v:FindFirstChild("AquaLight") then -- Name TestParticles to your Particles name.
  1707. v.TestParticles.Enabled = false
  1708. v.TestParticles:Destroy()
  1709. end
  1710. if game.Players.LocalPlayer.Character.Head:FindFirstChild("FatSound") then -- Name TestParticles to your Particles name.
  1711. game.Players.LocalPlayer.Character.Head.FatSound:Destroy()
  1712. end
  1713. end
  1714. end
  1715.  
  1716. function particles(a,b) -- Key Function, just don't touch this.
  1717. if a == ("p") then
  1718. if aa == true then
  1719. aa = false
  1720. ParticlesDestroy()
  1721. else
  1722.  
  1723. if aa == false then
  1724. aa = true
  1725. Particles()
  1726. local snort = script.BillboardGui:Clone()
  1727. snort.Parent = game.Players.LocalPlayer.Character.Head
  1728. wait(0.2)
  1729. snort:Destroy()
  1730. end
  1731. end
  1732. end
  1733. end
  1734.  
  1735.  
  1736. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  1737.  
  1738. end))
  1739. Sound66.Name = "FatSound"
  1740. Sound66.Parent = LocalScript65
  1741. Sound66.Pitch = 1.2000000476837
  1742. Sound66.SoundId = "rbxassetid://593142105"
  1743. Sound66.Volume = 2
  1744. ParticleEmitter67.Name = "TestParticles"
  1745. ParticleEmitter67.Parent = LocalScript65
  1746. ParticleEmitter67.Transparency = NumberSequence.new(1,0.63749998807907,1)
  1747. ParticleEmitter67.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  1748. ParticleEmitter67.Color = ColorSequence.new(Color3.new(0.384314, 0.65098, 1),Color3.new(0.384314, 0.65098, 1))
  1749. ParticleEmitter67.LightEmission = 2
  1750. ParticleEmitter67.Texture = "rbxassetid://1325850015"
  1751. ParticleEmitter67.Lifetime = NumberRange.new(4, 4)
  1752. ParticleEmitter67.Speed = NumberRange.new(4, 4)
  1753. ParticleEmitter67.Color = ColorSequence.new(Color3.new(0.384314, 0.65098, 1),Color3.new(0.384314, 0.65098, 1))
  1754. PointLight68.Name = "AquaLight"
  1755. PointLight68.Parent = LocalScript65
  1756. PointLight68.Color = Color3.new(0.368627, 0.705882, 1)
  1757. PointLight68.Brightness = 5
  1758. PointLight68.Range = 5
  1759. PointLight68.Color = Color3.new(0.368627, 0.705882, 1)
  1760. BillboardGui69.Parent = LocalScript65
  1761. BillboardGui69.Size = UDim2.new(40, 40, 1, 1)
  1762. BillboardGui69.Active = true
  1763. BillboardGui69.StudsOffset = Vector3.new(0, 5, 0)
  1764. TextBox70.Name = "Text"
  1765. TextBox70.Parent = BillboardGui69
  1766. TextBox70.Transparency = 1
  1767. TextBox70.Size = UDim2.new(1, 1, 1, 1)
  1768. TextBox70.Text = "snort"
  1769. TextBox70.BackgroundColor3 = Color3.new(0, 0, 0)
  1770. TextBox70.BackgroundTransparency = 1
  1771. TextBox70.BorderColor3 = Color3.new(0, 0, 0)
  1772. TextBox70.ClearTextOnFocus = false
  1773. TextBox70.MultiLine = true
  1774. TextBox70.Font = Enum.Font.Fantasy
  1775. TextBox70.FontSize = Enum.FontSize.Size14
  1776. TextBox70.TextColor3 = Color3.new(0.164706, 0.960784, 1)
  1777. TextBox70.TextScaled = true
  1778. TextBox70.TextStrokeColor3 = Color3.new(0.0784314, 0.141176, 0.427451)
  1779. TextBox70.TextStrokeTransparency = 0
  1780. TextBox70.TextWrapped = true
  1781. TextBox70.TextYAlignment = Enum.TextYAlignment.Top
  1782. LocalScript71.Name = "Aqua2"
  1783. LocalScript71.Parent = mas
  1784. table.insert(cors,sandbox(LocalScript71,function()
  1785. local mouse = game.Players.LocalPlayer:GetMouse()
  1786. local Character = game.Players.LocalPlayer.Character
  1787. local aa = false
  1788. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  1789. local AquaLight = script.AquaLight:Clone()
  1790. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  1791. local Particles = script.BillboardGui:Clone() -- Name TestParticles to your Particles name.
  1792. Particles.Parent = game.Players.LocalPlayer.Character.Head
  1793. end
  1794. function ColorHair()
  1795. local fatsound = script.Sound:Clone()
  1796. fatsound.Parent = Character.Torso
  1797. if Character:findFirstChild("BoyAnimeHair_Blue") == nil and Character:findFirstChild("moonWings") == nil then
  1798. local hair = script.BoyAnimeHair_Blue:Clone()
  1799. hair.Parent = Character
  1800. local wings = script.moonWings:Clone()
  1801. wings.Parent = Character
  1802. local gem = script.Gem:Clone()
  1803. gem.Parent = Character
  1804. end
  1805. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1806. if Character:findFirstChild("moonWings") then
  1807. Character.moonWings.Handle.Mesh.TextureId = ""
  1808. Character.moonWings.Handle.Color = Color3.fromRGB(89, 178, 240)
  1809. Character.moonWings.Handle.Mesh.Offset = Vector3.new(0, 0.5, 0.5)
  1810. Character.moonWings.Handle.Mesh.Scale = Vector3.new(7,9,9)
  1811. Character.moonWings.Handle.Transparency = 0.4
  1812. end
  1813. end
  1814. end
  1815. function ParticlesDestroy() -- To remove the Particles again.
  1816. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1817. if game.Players.LocalPlayer.Character.Head:FindFirstChild("BillboardGui") then -- Name TestParticles to your Particles name.
  1818. game.Players.LocalPlayer.Character.Head.BillboardGui:Destroy()
  1819. end
  1820. if game.Players.LocalPlayer.Character.Head:FindFirstChild("AquaLight") then -- Name TestParticles to your Particles name.
  1821. game.Players.LocalPlayer.Character.Head.AquaLight:Destroy()
  1822. end
  1823. end
  1824. end
  1825.  
  1826. function particles(a,b) -- Key Function, just don't touch this.
  1827. if a == ("m") then
  1828. if aa == true then
  1829. aa = false
  1830. ParticlesDestroy()
  1831. else
  1832.  
  1833. if aa == false then
  1834. aa = true
  1835. ColorHair()
  1836. Particles()
  1837. end
  1838. end
  1839. end
  1840. end
  1841.  
  1842.  
  1843. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  1844.  
  1845. end))
  1846. ParticleEmitter72.Name = "TestParticles"
  1847. ParticleEmitter72.Parent = LocalScript71
  1848. ParticleEmitter72.Transparency = NumberSequence.new(1,0.63749998807907,1)
  1849. ParticleEmitter72.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  1850. ParticleEmitter72.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1851. ParticleEmitter72.LightEmission = 2
  1852. ParticleEmitter72.Texture = "rbxassetid://337127439"
  1853. ParticleEmitter72.Lifetime = NumberRange.new(4, 4)
  1854. ParticleEmitter72.Speed = NumberRange.new(4, 4)
  1855. ParticleEmitter72.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  1856. PointLight73.Name = "AquaLight"
  1857. PointLight73.Parent = LocalScript71
  1858. PointLight73.Color = Color3.new(0, 0.984314, 1)
  1859. PointLight73.Brightness = 5
  1860. PointLight73.Range = 5
  1861. PointLight73.Color = Color3.new(0, 0.984314, 1)
  1862. Accessory74.Name = "BoyAnimeHair_Blue"
  1863. Accessory74.Parent = LocalScript71
  1864. Accessory74.AttachmentPos = Vector3.new(-0.0599999987, 0.560000002, -0.100000001)
  1865. Part75.Name = "Handle"
  1866. Part75.Parent = Accessory74
  1867. Part75.CanCollide = false
  1868. Part75.Locked = true
  1869. Part75.FormFactor = Enum.FormFactor.Symmetric
  1870. Part75.Size = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  1871. Part75.CFrame = CFrame.new(0.0599999949, 4.44000006, 0.100272246, 1, -7.87137555e-09, 0, 7.87137555e-09, 1, 4.1444221e-16, -3.26223034e-24, -4.1444221e-16, 1)
  1872. Part75.BottomSurface = Enum.SurfaceType.Smooth
  1873. Part75.TopSurface = Enum.SurfaceType.Smooth
  1874. Part75.Position = Vector3.new(0.0599999949, 4.44000006, 0.100272246)
  1875. SpecialMesh76.Parent = Part75
  1876. SpecialMesh76.MeshId = "http://www.roblox.com/asset/?id=398987591 "
  1877. SpecialMesh76.Scale = Vector3.new(0.819999993, 0.819999993, 0.819999993)
  1878. SpecialMesh76.TextureId = "http://www.roblox.com/asset/?id=398618334"
  1879. SpecialMesh76.MeshType = Enum.MeshType.FileMesh
  1880. SpecialMesh76.Scale = Vector3.new(0.819999993, 0.819999993, 0.819999993)
  1881. Attachment77.Name = "HairAttachment"
  1882. Attachment77.Parent = Part75
  1883. Attachment77.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1884. Attachment77.CFrame = CFrame.new(-0.0599999912, 0.659999847, -0.100272246, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  1885. Attachment77.Position = Vector3.new(-0.0599999912, 0.659999847, -0.100272246)
  1886. Attachment77.Axis = Vector3.new(1, -7.87137555e-09, 0)
  1887. Attachment77.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1888. Vector3Value78.Name = "OriginalSize"
  1889. Vector3Value78.Parent = Part75
  1890. Vector3Value78.Value = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  1891. Weld79.Name = "AccessoryWeld"
  1892. Weld79.Parent = Part75
  1893. Weld79.C0 = CFrame.new(-0.0599999912, 0.659999847, -0.100272246, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  1894. Weld79.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1895. Weld79.Part0 = Part75
  1896. Accessory80.Name = "moonWings"
  1897. Accessory80.Parent = LocalScript71
  1898. Accessory80.AttachmentPos = Vector3.new(0, 1.29999995, -1.10000002)
  1899. Part81.Name = "Handle"
  1900. Part81.Parent = Accessory80
  1901. Part81.CanCollide = false
  1902. Part81.Locked = true
  1903. Part81.FormFactor = Enum.FormFactor.Custom
  1904. Part81.Size = Vector3.new(3.80002809, 2.99999952, 1.60000014)
  1905. Part81.CFrame = CFrame.new(4.78408427e-31, 3.70000029, 1.10027242, 1, 6.83440315e-31, 0, -6.83440315e-31, 1, 0, 0, 0, 1)
  1906. Part81.BottomSurface = Enum.SurfaceType.Smooth
  1907. Part81.TopSurface = Enum.SurfaceType.Smooth
  1908. Part81.Position = Vector3.new(4.78408427e-31, 3.70000029, 1.10027242)
  1909. SpecialMesh82.Parent = Part81
  1910. SpecialMesh82.MeshId = "rbxassetid://147982651"
  1911. SpecialMesh82.Scale = Vector3.new(4, 4, 4)
  1912. SpecialMesh82.TextureId = "rbxassetid://845817136"
  1913. SpecialMesh82.MeshType = Enum.MeshType.FileMesh
  1914. SpecialMesh82.Scale = Vector3.new(4, 4, 4)
  1915. Attachment83.Name = "BodyBackAttachment"
  1916. Attachment83.Parent = Part81
  1917. Attachment83.Rotation = Vector3.new(0, 0, 3.91582454e-29)
  1918. Attachment83.CFrame = CFrame.new(0, -0.700000286, -0.600272417, 1, -6.83440315e-31, 0, 6.83440315e-31, 1, -0, 0, 0, 1)
  1919. Attachment83.Position = Vector3.new(0, -0.700000286, -0.600272417)
  1920. Attachment83.Axis = Vector3.new(1, 6.83440315e-31, 0)
  1921. Attachment83.Orientation = Vector3.new(0, 0, 3.91582454e-29)
  1922. Weld84.Name = "AccessoryWeld"
  1923. Weld84.Parent = Part81
  1924. Weld84.C0 = CFrame.new(0, -0.700000286, -0.600272417, 1, -6.83440315e-31, 0, 6.83440315e-31, 1, -0, 0, 0, 1)
  1925. Weld84.C1 = CFrame.new(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1926. Weld84.Part0 = Part81
  1927. Accessory85.Name = "Gem"
  1928. Accessory85.Parent = LocalScript71
  1929. Accessory85.AttachmentPos = Vector3.new(-0.0599999987, 0.560000002, -0.100000001)
  1930. Part86.Name = "Handle"
  1931. Part86.Parent = Accessory85
  1932. Part86.BrickColor = BrickColor.new("Tr. Lg blue")
  1933. Part86.Rotation = Vector3.new(-179.709991, 46.3799973, 179.789993)
  1934. Part86.CanCollide = false
  1935. Part86.Locked = true
  1936. Part86.FormFactor = Enum.FormFactor.Symmetric
  1937. Part86.Size = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  1938. Part86.CFrame = CFrame.new(-99.2781677, 3.28853726, -22.2383442, -0.689900041, -0.00251038512, 0.723899245, -1.19641973e-05, 0.99999404, 0.00345644192, -0.723903596, 0.00237593846, -0.689895928)
  1939. Part86.BottomSurface = Enum.SurfaceType.Smooth
  1940. Part86.TopSurface = Enum.SurfaceType.Smooth
  1941. Part86.Color = Color3.new(0.737255, 0.913726, 0.941177)
  1942. Part86.Position = Vector3.new(-99.2781677, 3.28853726, -22.2383442)
  1943. Part86.Orientation = Vector3.new(-0.199999988, 133.619995, 0)
  1944. Part86.Color = Color3.new(0.737255, 0.913726, 0.941177)
  1945. SpecialMesh87.Parent = Part86
  1946. SpecialMesh87.MeshId = "rbxassetid://432748939"
  1947. SpecialMesh87.Offset = Vector3.new(-0.200000003, 0.0799999982, -0.5)
  1948. SpecialMesh87.Scale = Vector3.new(0.00100000005, 0.00200000009, 0.00100000005)
  1949. SpecialMesh87.MeshType = Enum.MeshType.FileMesh
  1950. SpecialMesh87.Scale = Vector3.new(0.00100000005, 0.00200000009, 0.00100000005)
  1951. Attachment88.Name = "BackAttachment"
  1952. Attachment88.Parent = Part86
  1953. Attachment88.Rotation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1954. Attachment88.CFrame = CFrame.new(-0.0599999912, 0.659999847, -0.100272246, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  1955. Attachment88.Position = Vector3.new(-0.0599999912, 0.659999847, -0.100272246)
  1956. Attachment88.Axis = Vector3.new(1, -7.87137555e-09, 0)
  1957. Attachment88.Orientation = Vector3.new(2.37457894e-14, -1.86912034e-22, -4.50996595e-07)
  1958. Vector3Value89.Name = "OriginalSize"
  1959. Vector3Value89.Parent = Part86
  1960. Vector3Value89.Value = Vector3.new(1.4200002, 0.870000005, 1.40999985)
  1961. Weld90.Name = "AccessoryWeld"
  1962. Weld90.Parent = Part86
  1963. Weld90.C0 = CFrame.new(-0.0599999912, 0.659999847, -0.100272246, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  1964. Weld90.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1965. Weld90.Part0 = Part86
  1966. Weld91.Name = "AccessoryWeld"
  1967. Weld91.Parent = Part86
  1968. Weld91.C0 = CFrame.new(-0.0599999912, 0.659999847, -0.100272246, 1, 7.87137555e-09, -3.26223034e-24, -7.87137555e-09, 1, -4.1444221e-16, 0, 4.1444221e-16, 1)
  1969. Weld91.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1970. Weld91.Part0 = Part86
  1971. BillboardGui92.Parent = LocalScript71
  1972. BillboardGui92.Size = UDim2.new(40, 40, 1, 1)
  1973. BillboardGui92.Active = true
  1974. BillboardGui92.StudsOffset = Vector3.new(0, 3, 0)
  1975. TextBox93.Name = "Text"
  1976. TextBox93.Parent = BillboardGui92
  1977. TextBox93.Transparency = 1
  1978. TextBox93.Size = UDim2.new(1, 1, 1, 1)
  1979. TextBox93.Text = "Lapis Lazuli"
  1980. TextBox93.BackgroundColor3 = Color3.new(0, 0, 0)
  1981. TextBox93.BackgroundTransparency = 1
  1982. TextBox93.BorderColor3 = Color3.new(0, 0, 0)
  1983. TextBox93.ClearTextOnFocus = false
  1984. TextBox93.MultiLine = true
  1985. TextBox93.Font = Enum.Font.Fantasy
  1986. TextBox93.FontSize = Enum.FontSize.Size14
  1987. TextBox93.TextColor3 = Color3.new(0.164706, 0.960784, 1)
  1988. TextBox93.TextScaled = true
  1989. TextBox93.TextStrokeColor3 = Color3.new(0.0784314, 0.141176, 0.427451)
  1990. TextBox93.TextStrokeTransparency = 0
  1991. TextBox93.TextWrapped = true
  1992. TextBox93.TextYAlignment = Enum.TextYAlignment.Top
  1993. Sound94.Parent = LocalScript71
  1994. Sound94.Pitch = 1.5
  1995. Sound94.SoundId = "rbxassetid://137304720"
  1996. Sound94.Volume = 2
  1997. LocalScript95.Name = "Aqua3"
  1998. LocalScript95.Parent = mas
  1999. table.insert(cors,sandbox(LocalScript95,function()
  2000. local mouse = game.Players.LocalPlayer:GetMouse()
  2001. local Character = game.Players.LocalPlayer.Character
  2002. local aa = false
  2003. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  2004. local AquaLight = script.ForceField:Clone()
  2005. AquaLight.Parent = game.Players.LocalPlayer.Character
  2006. local hum = Character:findFirstChild("Humanoid")
  2007. hum.MaxHealth = 99999999999999999999999999999999999999999999999*math.huge
  2008. hum.Health = 99999999999999999999999999999999999999999999999*math.huge
  2009. local Sound = script.AquaSound:Clone()
  2010. Sound.Parent = game.Workspace
  2011. Sound:Play()
  2012. end
  2013.  
  2014. function ParticlesDestroy() -- To remove the Particles again.
  2015. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  2016. if game.Players.LocalPlayer.Character:findFirstChild("ForceField") then -- Name TestParticles to your Particles name.
  2017. game.Players.LocalPlayer.Character.ForceField:Destroy()
  2018. end
  2019. if game.Players.LocalPlayer.Character.Head:FindFirstChild("AquaSound") then -- Name TestParticles to your Particles name.
  2020. game.Players.LocalPlayer.Character.Head.AquaSound:Destroy()
  2021. end
  2022. end
  2023. end
  2024.  
  2025. function particles(a,b) -- Key Function, just don't touch this.
  2026. if a == ("k") then
  2027. if aa == true then
  2028. aa = false
  2029. ParticlesDestroy()
  2030. else
  2031.  
  2032. if aa == false then
  2033. aa = true
  2034. Particles()
  2035. end
  2036. end
  2037. end
  2038. end
  2039.  
  2040.  
  2041. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  2042.  
  2043. end))
  2044. ForceField96.Parent = LocalScript95
  2045. Sound97.Name = "AquaSound"
  2046. Sound97.Parent = LocalScript95
  2047. Sound97.SoundId = "rbxassetid://305699541"
  2048. LocalScript98.Name = "Aqua4"
  2049. LocalScript98.Parent = mas
  2050. table.insert(cors,sandbox(LocalScript98,function()
  2051. local mouse = game.Players.LocalPlayer:GetMouse()
  2052. local Character = game.Players.LocalPlayer.Character
  2053. local aa = false
  2054. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  2055. local AquaLight = Instance.new("Explosion")
  2056. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  2057. AquaLight.BlastRadius = 30
  2058. AquaLight.DestroyJointRadiusPercent = 99999999999999
  2059. AquaLight.Position = Character.Torso.Position
  2060. local hum = Character:findFirstChild("Humanoid")
  2061. hum.MaxHealth = 99999999999999999999999999999999999999999999999*math.huge
  2062. hum.Health = 99999999999999999999999999999999999999999999999*math.huge
  2063. end
  2064.  
  2065. function ParticlesDestroy() -- To remove the Particles again.
  2066. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  2067. if game.Players.LocalPlayer.Character:findFirstChild("ForceField") then -- Name TestParticles to your Particles name.
  2068. game.Players.LocalPlayer.Character.ForceField:Destroy()
  2069. end
  2070. end
  2071. end
  2072.  
  2073. function particles(a,b) -- Key Function, just don't touch this.
  2074. if a == ("x") then
  2075. if aa == true then
  2076. aa = false
  2077. --ParticlesDestroy()
  2078. else
  2079.  
  2080. if aa == false then
  2081. aa = true
  2082. Particles()
  2083. end
  2084. end
  2085. end
  2086. end
  2087.  
  2088.  
  2089. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  2090.  
  2091. end))
  2092. ForceField99.Parent = LocalScript98
  2093. LocalScript100.Name = "Aqua7"
  2094. LocalScript100.Parent = mas
  2095. table.insert(cors,sandbox(LocalScript100,function()
  2096. local mouse = game.Players.LocalPlayer:GetMouse()
  2097. local Character = game.Players.LocalPlayer.Character
  2098. local aa = false
  2099. function Particles() -- Main Function (Clones the Particle find the Player and put's the Particles into them)
  2100. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  2101. if v:IsA("BasePart") then
  2102. local Sound = script.StomachSound:Clone()
  2103. Sound.Parent = game.Workspace
  2104. local AquaLight = script.AquaLight:Clone()
  2105. AquaLight.Parent = game.Players.LocalPlayer.Character.Head
  2106. local Particles = script.TestParticles:Clone() -- Name TestParticles to your Particles name.
  2107. Particles.Parent = v
  2108. Sound:Play()
  2109. end
  2110. end
  2111. end
  2112.  
  2113. function ParticlesDestroy() -- To remove the Particles again.
  2114. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  2115. if v:FindFirstChild("TestParticles") then -- Name TestParticles to your Particles name.
  2116. v.TestParticles.Enabled = false
  2117. v.TestParticles:Destroy()
  2118. end
  2119. if game.Workspace:FindFirstChild("StomachSound") then -- Name TestParticles to your Particles name.
  2120. game.Workspace.StomachSound:Destroy()
  2121. end
  2122. end
  2123. end
  2124.  
  2125. function particles(a,b) -- Key Function, just don't touch this.
  2126. if a == ("u") then
  2127. if aa == true then
  2128. aa = false
  2129. ParticlesDestroy()
  2130. else
  2131.  
  2132. if aa == false then
  2133. aa = true
  2134. Particles()
  2135. end
  2136. end
  2137. end
  2138. end
  2139.  
  2140.  
  2141. mouse.KeyDown:Connect(particles) -- Connects both Functions.
  2142.  
  2143. end))
  2144. Sound101.Name = "StomachSound"
  2145. Sound101.Parent = LocalScript100
  2146. Sound101.SoundId = "rbxassetid://504688948"
  2147. Sound101.Volume = 2
  2148. ParticleEmitter102.Name = "TestParticles"
  2149. ParticleEmitter102.Parent = LocalScript100
  2150. ParticleEmitter102.Transparency = NumberSequence.new(1,0.63749998807907,1)
  2151. ParticleEmitter102.Size = NumberSequence.new(0.24999976158142,0.625,0.3125,0.68749964237213,0.43749988079071)
  2152. ParticleEmitter102.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  2153. ParticleEmitter102.LightEmission = 2
  2154. ParticleEmitter102.Texture = "rbxassetid://337127439"
  2155. ParticleEmitter102.Lifetime = NumberRange.new(4, 4)
  2156. ParticleEmitter102.Speed = NumberRange.new(4, 4)
  2157. ParticleEmitter102.Color = ColorSequence.new(Color3.new(0.172549, 0.960784, 1),Color3.new(0.172549, 0.960784, 1))
  2158. PointLight103.Name = "AquaLight"
  2159. PointLight103.Parent = LocalScript100
  2160. PointLight103.Color = Color3.new(0, 0.984314, 1)
  2161. PointLight103.Brightness = 5
  2162. PointLight103.Range = 5
  2163. PointLight103.Color = Color3.new(0, 0.984314, 1)
  2164. for i,v in pairs(mas:GetChildren()) do
  2165. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  2166. pcall(function() v:MakeJoints() end)
  2167. end
  2168. mas:Destroy()
  2169. for i,v in pairs(cors) do
  2170. spawn(function()
  2171. pcall(v)
  2172. end)
  2173. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement