Liampdoherty

Untitled

Jun 3rd, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Name="liampdoherty"
  2. local workspace=Workspace
  3. local player=game.Players[Name]
  4. local char=player.Character
  5. local Color=BrickColor.new("Really red")
  6. if script.Parent.className~="HopperBin" then
  7. pcall(function() char.Gourd:remove() end)
  8. Staff=Instance.new("HopperBin")
  9. Staff.Name="Sand"
  10. Staff.Parent=player.Backpack
  11. m=Instance.new("Model")
  12. m.Parent=char
  13. m.Name="Gourd"
  14. p=Instance.new("Part")
  15. p.BrickColor=BrickColor:Black()
  16. p.Material="Neon"
  17. p.Size=Vector3.new(1,1,1)
  18. Cent=p
  19. me=Instance.new("CylinderMesh")
  20. me.Scale=Vector3.new(1.2,0.4,1.2)
  21. me.Parent=p
  22. p.Parent=m
  23. w=Instance.new("Weld")
  24. w.Part1=char.Torso
  25. w.Part0=p
  26. w.Parent=p
  27. w.C0=CFrame.new(0,0.25,-1)*CFrame.Angles(0,0,math.rad(35))
  28. p=Instance.new("Part")
  29. p.BrickColor=Color
  30. p.Material="Neon"
  31. p.Size=Vector3.new(2,2,2)
  32. p.Shape="Ball"
  33. p.Parent=m
  34. w=Instance.new("Weld")
  35. w.Part1=Cent
  36. w.Part0=p
  37. w.Parent=p
  38. w.C0=CFrame.new(0,1,0)
  39. p=Instance.new("Part")
  40. p.BrickColor=Color
  41. p.Material="Neon"
  42. p.Size=Vector3.new(2,2,2)
  43. p.Shape="Ball"
  44. p.Parent=m
  45. w=Instance.new("Weld")
  46. w.Part1=Cent
  47. w.Part0=p
  48. w.Parent=p
  49. w.C0=CFrame.new(0,-1,0)
  50. Top=p
  51. p=Instance.new("Part")
  52. p.BrickColor=Color
  53. p.Material="Neon"
  54. p.Size=Vector3.new(1,1,1)
  55. p.Parent=m
  56. me=Instance.new("CylinderMesh")
  57. me.Scale=Vector3.new(0.5,0.15,0.5)
  58. me.Parent=p
  59. w=Instance.new("Weld")
  60. w.Part1=Top
  61. w.Part0=p
  62. w.Parent=p
  63. w.C0=CFrame.new(0,-1,0)
  64. p=Instance.new("Part")
  65. p.BrickColor=BrickColor.new("Black")
  66. p.Material="Neon"
  67. p.Size=Vector3.new(1,1,1)
  68. p.Parent=m
  69. me=Instance.new("CylinderMesh")
  70. me.Scale=Vector3.new(0.4,0.16,0.4)
  71. me.Parent=p
  72. w=Instance.new("Weld")
  73. w.Part1=Top
  74. w.Part0=p
  75. w.Parent=p
  76. w.C0=CFrame.new(0,-1,0)
  77. p=Instance.new("Part")
  78. p.BrickColor=BrickColor:Red()
  79. p.Material="Neon"
  80. p.Size=Vector3.new(2,1,1)
  81. p.Parent=m
  82. me=Instance.new("BlockMesh")
  83. me.Scale=Vector3.new(1.1,0.15,1.1)
  84. me.Parent=p
  85. w=Instance.new("Weld")
  86. w.Part1=char.Torso
  87. w.Part0=p
  88. w.Parent=p
  89. w.C0=CFrame.new(0,.75,0)
  90. p=Instance.new("Part")
  91. p.BrickColor=BrickColor:Red()
  92. p.Material="Neon"
  93. p.Size=Vector3.new(2,1,1)
  94. p.Parent=m
  95. me=Instance.new("BlockMesh")
  96. me.Scale=Vector3.new(1.29,0.15,1.1)
  97. me.Parent=p
  98. w=Instance.new("Weld")
  99. w.Part1=char.Torso
  100. w.Part0=p
  101. w.Parent=p
  102. w.C1=CFrame.new(0,0.1,0)*CFrame.Angles(0,0,math.rad(-40))
  103. script.Name="Not A QuickScript"
  104. script.Parent=Staff
  105. end
  106. Sword=script.Parent
  107.  
  108. function hint(msg,de)
  109. for _,v in pairs(player:children()) do
  110. if v:IsA("Message") then
  111. v:remove()
  112. end
  113. end
  114. local h=Instance.new("Hint")
  115. h.Text=tostring(msg)
  116. h.Parent=player
  117. Delay(tonumber(de),function() h:remove() end)
  118. end
  119.  
  120. ta={}
  121. for _,v in pairs(player.Backpack:GetChildren()) do
  122. if v.Name=="Sand" then
  123. table.insert(ta,v)
  124. end
  125. end
  126. if #ta==2 or #ta>2 then
  127. ta[1]:remove()
  128. end
  129.  
  130. Hopper=script.Parent
  131.  
  132. function Stream(mouse)
  133. local b=Instance.new("Part")
  134. b.BrickColor=Color
  135. b.Reflectance=0
  136. b.Transparency=1
  137. b.Size=Vector3.new(2,2,2)
  138. b.Shape="Ball"
  139. b.CanCollide=false
  140. b.TopSurface="Smooth"
  141. b.Position=char.Head.Position
  142. b.BottomSurface="Smooth"
  143. b.Friction=0
  144. b.Touched:connect(function(h) Hit(h) end)
  145. local bo=Instance.new("BodyVelocity")
  146. bo.maxForce=Vector3.new(9999,9999,9999)
  147. bo.velocity=(mouse.Hit.p-char.Head.Position).unit*60
  148. bo.Parent=b
  149. b.Parent=Gourd
  150. local Bo=b
  151. while Bo.Parent and Up==false do
  152. wait()
  153. if mouse.Target and (Bo.Position-mouse.Target.Position).magnitude<7 then
  154. Hit(mouse.Target)
  155. else
  156. Bo.CFrame=b.CFrame --BodyPosition anti-hax
  157. bo.velocity=(mouse.Hit.p-Bo.Position).unit*150
  158. end
  159. local b=Instance.new("Part")
  160. b.BrickColor=Color
  161. b.Reflectance=0
  162. b.Transparency=0.2
  163. b.Touched:connect(Hit)
  164. b.Size=Vector3.new(2,2,2)
  165. b.CanCollide=false
  166. b.Anchored=true
  167. b.TopSurface="Smooth"
  168. b.Parent=Gourd
  169. b.CFrame=Bo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  170. b.BottomSurface="Smooth"
  171. Delay(0,function()
  172. local p=b
  173. for i=1,5 do
  174. wait(0.05)
  175. p.Transparency=i/5
  176. end
  177. p:remove()
  178. end)
  179. end
  180. pcall(function() Bo:remove() end)
  181. end
  182.  
  183. function Def(mouse)
  184. local b=Instance.new("Part")
  185. b.BrickColor=Color
  186. b.Reflectance=0
  187. b.Transparency=0.6
  188. b.Size=Vector3.new(15,15,15)
  189. b.Anchored=false
  190. b.Shape="Ball"
  191. b.CanCollide=false
  192. p=Instance.new("BodyPosition")
  193. p.Parent=b
  194. p.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  195. p.position=char.Torso.Position
  196. b.TopSurface="Smooth"
  197. b.Position=char.Torso.Position
  198. b.BottomSurface="Smooth"
  199. b.Touched:connect(function(h)
  200. Hit(h)
  201. end)
  202. b.Parent=Gourd
  203. while Up==false and b.Parent do
  204. b.CFrame=char.Torso.CFrame
  205. p.position=char.Torso.Position
  206. local p=Instance.new("Part")
  207. p.Size=Vector3.new(1,1,1)
  208. p.BrickColor=Color
  209. p.Anchored=true
  210. p.CanCollide=false
  211. p.Parent=Gourd
  212. p.CFrame=char.Torso.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  213. local m=Instance.new("BlockMesh")
  214. m.Scale=Vector3.new(0.5,0.5,0.5)
  215. m.Parent=p
  216. Delay(0,function()
  217. local p=p
  218. for i=1,5 do
  219. wait(0.05)
  220. p.Transparency=i/5
  221. end
  222. p:remove()
  223. end)
  224. wait()
  225. end
  226. pcall(function() b:remove() end)
  227. end
  228.  
  229. function Bur(mouse)
  230. if mouse.Target and game.Players:getPlayerFromCharacter(mouse.Target.Parent) then
  231. local m=mouse.Target.Parent
  232. m.Torso.Anchored=true
  233. for i=1,15 do
  234. local p=Instance.new("Part")
  235. p.Size=Vector3.new(i,1,i)
  236. p.BrickColor=Color
  237. p.Anchored=true
  238. p.Transparency=i/14
  239. p.CanCollide=false
  240. p.Parent=m
  241. local me=Instance.new("CylinderMesh")
  242. me.Scale=Vector3.new(1,1.1,1)
  243. me.Parent=p
  244. p.CFrame=CFrame.new(m.Torso.CFrame.x,m.Torso.CFrame.y-3.5,m.Torso.CFrame.z)
  245. end
  246. for i=1,10 do
  247. for i=1,6 do
  248. wait()
  249. local p=Instance.new("Part")
  250. p.Size=Vector3.new(1,1,1)
  251. p.BrickColor=Color
  252. p.Anchored=true
  253. p.CanCollide=false
  254. p.Parent=m
  255. p.CFrame=m.Torso.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  256. local m=Instance.new("BlockMesh")
  257. m.Scale=Vector3.new(0.25,0.25,0.25)
  258. m.Parent=p
  259. Delay(0,function()
  260. local p=p
  261. for i=1,5 do
  262. wait(0.05)
  263. p.Transparency=i/5
  264. end
  265. p:remove()
  266. end)
  267. end
  268. m.Torso.CFrame=CFrame.new(m.Torso.Position)*CFrame.new(0,-0.5,0)
  269. wait()
  270. end
  271. Hit(m.Torso)
  272. Hit(m.Head)
  273. end
  274. end
  275.  
  276. function Shift(mouse)
  277. if mouse.Target then
  278. local mo=Instance.new("Model",char)
  279. local h=mouse.Hit.p
  280. local m=char
  281. for i=1,15 do
  282. local p=Instance.new("Part")
  283. p.Size=Vector3.new(i,1,i)
  284. p.BrickColor=Color
  285. p.Anchored=true
  286. p.Transparency=i/14
  287. p.CanCollide=false
  288. p.Parent=mo
  289. local me=Instance.new("CylinderMesh")
  290. me.Scale=Vector3.new(1,1.1,1)
  291. me.Parent=p
  292. p.CFrame=CFrame.new(m.Torso.CFrame.x,m.Torso.CFrame.y-3.5,m.Torso.CFrame.z)
  293. end
  294. for i=1,15 do
  295. local p=Instance.new("Part")
  296. p.Size=Vector3.new(i,1,i)
  297. p.BrickColor=Color
  298. p.Anchored=true
  299. p.Transparency=i/14
  300. p.CanCollide=false
  301. p.Parent=mo
  302. local me=Instance.new("CylinderMesh")
  303. me.Scale=Vector3.new(1,1.1,1)
  304. me.Parent=p
  305. p.CFrame=CFrame.new(h)*CFrame.new(0,-0.5,0)
  306. end
  307. m.Torso.Anchored=true
  308. for i=1,15 do
  309. for i=1,6 do
  310. wait()
  311. local p=Instance.new("Part")
  312. p.Size=Vector3.new(1,1,1)
  313. p.BrickColor=Color
  314. p.Anchored=true
  315. p.CanCollide=false
  316. p.Parent=mo
  317. p.CFrame=m.Torso.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  318. local m=Instance.new("BlockMesh")
  319. m.Scale=Vector3.new(0.25,0.25,0.25)
  320. m.Parent=p
  321. Delay(0,function()
  322. local p=p
  323. for i=1,5 do
  324. wait(0.05)
  325. p.Transparency=i/5
  326. end
  327. p:remove()
  328. end)
  329. end
  330. m.Torso.CFrame=m.Torso.CFrame*CFrame.new(0,-0.6,0)
  331. wait()
  332. end
  333. m.Torso.CFrame=CFrame.new(h)*CFrame.new(0,-1.5,0)
  334. for i=1,11 do
  335. for i=1,6 do
  336. wait()
  337. local p=Instance.new("Part")
  338. p.Size=Vector3.new(1,1,1)
  339. p.BrickColor=Color
  340. p.Anchored=true
  341. p.CanCollide=false
  342. p.Parent=mo
  343. p.CFrame=m.Torso.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  344. local m=Instance.new("BlockMesh")
  345. m.Scale=Vector3.new(0.25,0.25,0.25)
  346. m.Parent=p
  347. Delay(0,function()
  348. local p=p
  349. for i=1,5 do
  350. wait(0.05)
  351. p.Transparency=i/5
  352. end
  353. p:remove()
  354. end)
  355. end
  356. m.Torso.CFrame=m.Torso.CFrame*CFrame.new(0,0.5,0)
  357. wait()
  358. end
  359. m.Torso.Anchored=false
  360. mo:remove()
  361. end
  362. end
  363.  
  364.  
  365. function Wave(mouse)
  366. if mouse.Hit.p.x>char.Torso.Position.x then
  367. Deg=-2
  368. Fre=-60
  369. else
  370. Deg=2
  371. Fre=60
  372. end
  373. local X=char.Torso.CFrame.x
  374. for i=0,Fre,Deg do
  375. wait()
  376. local p=Instance.new("Part")
  377. p.Parent=Gourd
  378. p.Size=Vector3.new(2,1,workspace.Base.Size.z)
  379. p.BrickColor=Color
  380. p.Anchored=true
  381. p.CFrame=CFrame.new(X,0,workspace.Base.Position.z)*CFrame.new(-i,0,0)
  382. local m=Instance.new("BlockMesh")
  383. m.Parent=p
  384. m.Scale=Vector3.new(1,1.2,1.005)
  385. Delay(0,function()
  386. local p=p
  387. local m=m
  388. for i=1,9,0.25 do
  389. m.Scale=m.Scale+Vector3.new(0,.25,0)
  390. wait()
  391. end
  392. wait()
  393. for i=1,9,0.25 do
  394. m.Scale=m.Scale+Vector3.new(0,-.25,0)
  395. wait()
  396. end
  397. p:remove()
  398. end)
  399. for _,v in pairs(game.Players:GetPlayers()) do
  400. if v.Character and v.Character:findFirstChild("Head") then
  401. if v.Character.Head.Position.y<(workspace.Base.Position.y+9.5) then
  402. if v.Character.Torso.Position.x<p.Position.x+p.Size.x/2 and v.Character.Torso.Position.x>p.Position.x-p.Size.x/2 then
  403. Hit(v.Character.Head)
  404. end
  405. end
  406. end
  407. end
  408. end
  409. end
  410.  
  411. function Spike(mouse)
  412. local Pos=char.Torso.Position
  413. for ii=8,25,3 do
  414. wait()
  415. for i=0,360,360/12 do
  416. local x = (ii) * math.sin(i) + Pos.x
  417. local y = Pos.y-4
  418. local z = (ii)* math.cos (i) + Pos.z
  419. local brick = Instance.new("Part")
  420. brick.Size=Vector3.new(1,1,1)
  421. brick.Anchored=true
  422. brick.BrickColor=Color
  423. brick.Parent=Gourd
  424. brick.CFrame = CFrame.new(x,y,z)
  425. brick.Touched:connect(Hit)
  426. local mesh=Instance.new("CylinderMesh")
  427. mesh.Parent=brick
  428. Delay(0,function()
  429. local p=brick
  430. local m=mesh
  431. for i=1,8 do
  432. m.Scale=m.Scale+Vector3.new(0,.25,0)
  433. p.CFrame=p.CFrame*CFrame.new(0,0.25,0)
  434. wait()
  435. end
  436. for i=1,10 do
  437. p.Transparency=i/10
  438. wait(0.05)
  439. end
  440. p:remove()
  441. end)
  442. end
  443. for _,v in pairs(game.Players:GetPlayers()) do
  444. if v.Character and v.Character:findFirstChild("Torso") and (v.Character.Torso.Position-Pos).magnitude<ii then
  445. Hit(v.Character.Torso)
  446. end
  447. end
  448. wait(0.08)
  449. end
  450. end
  451.  
  452. function Coffin(mouse)
  453. if mouse.Target and game.Players:getPlayerFromCharacter(mouse.Target.Parent) then
  454. me=mouse.Target.Parent
  455. Delay(0,function()
  456. while me:findFirstChild("Torso") do
  457. wait()
  458. local p=Instance.new("Part")
  459. p.Size=Vector3.new(1,1,1)
  460. p.BrickColor=Color
  461. p.Anchored=true
  462. p.CanCollide=false
  463. p.Parent=me
  464. p.CFrame=me.Torso.CFrame*CFrame.new(math.random(-8,8),math.random(-2,5),math.random(-8,8))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  465. local m=Instance.new("BlockMesh")
  466. m.Scale=Vector3.new(0.35,0.35,0.35)
  467. m.Parent=p
  468. Delay(0,function()
  469. local p=p
  470. for i=1,5 do
  471. wait(0.05)
  472. p.Transparency=i/5
  473. end
  474. p:remove()
  475. end)
  476. end
  477. end)
  478. BP=Instance.new("BodyPosition")
  479. BP.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  480. BP.position=me.Torso.Position
  481. BP.Parent=me.Torso
  482. b=Instance.new("Part")
  483. b.Size=Vector3.new(8,1,8)
  484. b.BrickColor=Color
  485. b.CanCollide=false
  486. m=Instance.new("BlockMesh")
  487. m.Parent=b
  488. m.Scale=Vector3.new(1,0.5,1)
  489. b.Parent=me
  490. w=Instance.new("Weld")
  491. w.Parent=b
  492. w.Part0=me.Torso
  493. w.Part1=b
  494. w.C0=CFrame.new(0,-3.5,0)
  495. for i=1,7,0.25 do
  496. wait(0.075)
  497. m.Scale=m.Scale+Vector3.new(0,0.25,0)
  498. w.C0=w.C0*CFrame.new(0,0.25/2,0)
  499. BP.position=BP.position+Vector3.new(0,.75,0)
  500. end
  501. for i=1,2-(0.5/5),0.25/5 do
  502. m.Scale=m.Scale+Vector3.new(-.25/8,0,-.25/8)
  503. wait(0.05)
  504. end
  505. Hit(me.Head)
  506. Hit(me.Torso)
  507. end
  508. end
  509.  
  510. wep={Stream,Def,Bur,Shift,Wave,Spike,Coffin}
  511. name={"Sand Stream","Manual Defence","Sand Burial","Sand Shift","Sand Tsunami","Sand Spikes","Sand Coffin"}
  512. function CheckAdd()
  513. if (Mode+1)~=(#wep+1) then
  514. Mode=Mode+1
  515. Hopper.Name=name[Mode].."("..Mode..")"
  516. elseif (Mode+1)==(#wep+1) then
  517. Mode=1
  518. Hopper.Name=name[Mode].."("..Mode..")"
  519. end
  520. end
  521. function CheckSub()
  522. if (Mode-1)==0 or (Mode-1)<0 then
  523. Mode=#wep
  524. Hopper.Name=name[Mode].."("..Mode..")"
  525. elseif (Mode-1)~=0 then
  526. Mode=Mode-1
  527. Hopper.Name=name[Mode].."("..Mode..")"
  528. end
  529. end
  530. function KeyDown(key)
  531. if key=="c" then
  532. CheckAdd()
  533. elseif key=="x" then
  534. Mode=1
  535. Hopper.Name=name[1].."("..Mode..")"
  536. elseif key=="z" then
  537. CheckSub()
  538. end
  539. end
  540.  
  541. Mode=0
  542. Up=false
  543. Sand=true
  544.  
  545. Hopper.Selected:connect(function(mouse)
  546. Sand=true
  547. Gourd=char.Gourd
  548. mouse.KeyDown:connect(KeyDown)
  549. mouse.Button1Down:connect(function()
  550. Up=false
  551. coroutine.resume(coroutine.create(function() wep[Mode](mouse) end))
  552. end)
  553. mouse.Button1Up:connect(function() Up=true end)
  554. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  555. Kill=char.Humanoid.Died:connect(function()
  556. wait()
  557. if char:findFirstChild("Head") then
  558. m=char.Head
  559. elseif char:findFirstChild("Torso") then
  560. m=char.Torso
  561. else
  562. return
  563. end
  564. local p=Instance.new("Part")
  565. p.Size=Vector3.new(1,1,1)
  566. p.BrickColor=Color
  567. p.Anchored=true
  568. p.Transparency=1
  569. p.CanCollide=false
  570. p.Parent=char
  571. local me=Instance.new("CylinderMesh")
  572. me.Scale=Vector3.new(1,1.1,1)
  573. me.Parent=p
  574. p.CFrame=CFrame.new(m.CFrame.x,workspace.Base.CFrame.y,m.CFrame.z)
  575. for i=1,100 do
  576. wait()
  577. me.Scale=me.Scale+Vector3.new(.5,0,.5)
  578. p.Transparency=i/200 --100?
  579. end
  580. for _,v in pairs(game.Players:GetPlayers()) do
  581. if v.Character and v.Name~=Name and (v.Character.Torso.Position-p.Position).magnitude<51 then
  582. pcall(function() Hit(v.Character.Head) end)
  583. end
  584. end
  585. p:remove()
  586. end)
  587. while Sand do
  588. wait(0.05)
  589. local p=Instance.new("Part")
  590. p.Size=Vector3.new(1,1,1)
  591. p.BrickColor=Color
  592. p.Anchored=true
  593. p.CanCollide=false
  594. p.Parent=char
  595. p.CFrame=char.Torso.CFrame*CFrame.new(math.random(-7,7),math.random(-2,5),math.random(-7,7))*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
  596. p.Touched:connect(Hit)
  597. local m=Instance.new("BlockMesh")
  598. m.Scale=Vector3.new(0.15,0.15,0.15)
  599. m.Parent=p
  600. Delay(0,function()
  601. local p=p
  602. for i=1,5 do
  603. wait(0.05)
  604. p.Transparency=i/5
  605. end
  606. p:remove()
  607. end)
  608. end
  609. end)
  610.  
  611. Hopper.Deselected:connect(function()
  612. pcall(function()
  613. Sand=false
  614. Kill:disconnect()
  615. end)
  616. end)
  617.  
  618. function Hit(p)
  619. if p.Parent.Name~=Name and p.Parent.Parent.Name~=Name and p.Name~="Base" and p.Name~="Sand" and p.Parent then
  620. Delay(0,function()
  621. p.Anchored=true
  622. p.Name="Sand"
  623. p.BrickColor=Color
  624. for i=1,5 do
  625. p.Transparency=i/5
  626. wait(0.1)
  627. end
  628. p:remove()
  629. end)
  630. end
  631. end
Add Comment
Please, Sign In to add comment