Advertisement
yamanohera155233

Untitled

Jun 18th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.88 KB | None | 0 0
  1. --Instructions: Put your name in "Yamanohera15523"
  2. --click "sand" in starter pack once you run the script and press z to change the mode
  3.  
  4. --Script is not local
  5.  
  6. -------------------------------------------------------------------------------------------------------------
  7. local Name="Yamanohera15523"
  8. local workspace=Workspace
  9. local player=game.Players[Name]
  10. local char=player.Character
  11. local Color=BrickColor.new("Pastel brown")
  12. if script.Parent.className~="HopperBin" then
  13. pcall(function() char.Gourd:remove() end)
  14. Staff=Instance.new("HopperBin")
  15. Staff.Name="Sand"
  16. Staff.Parent=player.Backpack
  17. m=Instance.new("Model")
  18. m.Parent=char
  19. m.Name="Gourd"
  20. p=Instance.new("Part")
  21. p.BrickColor=BrickColor:Red()
  22. p.Material="Concrete"
  23. p.Size=Vector3.new(1,1,1)
  24. Cent=p
  25. me=Instance.new("CylinderMesh")
  26. me.Scale=Vector3.new(1.2,0.4,1.2)
  27. me.Parent=p
  28. p.Parent=m
  29. w=Instance.new("Weld")
  30. w.Part1=char.Torso
  31. w.Part0=p
  32. w.Parent=p
  33. w.C0=CFrame.new(0,0.25,-1)*CFrame.Angles(0,0,math.rad(35))
  34. p=Instance.new("Part")
  35. p.BrickColor=Color
  36. p.Material="Concrete"
  37. p.Size=Vector3.new(2,2,2)
  38. p.Shape="Ball"
  39. p.Parent=m
  40. w=Instance.new("Weld")
  41. w.Part1=Cent
  42. w.Part0=p
  43. w.Parent=p
  44. w.C0=CFrame.new(0,1,0)
  45. p=Instance.new("Part")
  46. p.BrickColor=Color
  47. p.Material="Concrete"
  48. p.Size=Vector3.new(2,2,2)
  49. p.Shape="Ball"
  50. p.Parent=m
  51. w=Instance.new("Weld")
  52. w.Part1=Cent
  53. w.Part0=p
  54. w.Parent=p
  55. w.C0=CFrame.new(0,-1,0)
  56. Top=p
  57. p=Instance.new("Part")
  58. p.BrickColor=Color
  59. p.Material="Concrete"
  60. p.Size=Vector3.new(1,1,1)
  61. p.Parent=m
  62. me=Instance.new("CylinderMesh")
  63. me.Scale=Vector3.new(0.5,0.15,0.5)
  64. me.Parent=p
  65. w=Instance.new("Weld")
  66. w.Part1=Top
  67. w.Part0=p
  68. w.Parent=p
  69. w.C0=CFrame.new(0,-1,0)
  70. p=Instance.new("Part")
  71. p.BrickColor=BrickColor.new("Black")
  72. p.Material="Concrete"
  73. p.Size=Vector3.new(1,1,1)
  74. p.Parent=m
  75. me=Instance.new("CylinderMesh")
  76. me.Scale=Vector3.new(0.4,0.16,0.4)
  77. me.Parent=p
  78. w=Instance.new("Weld")
  79. w.Part1=Top
  80. w.Part0=p
  81. w.Parent=p
  82. w.C0=CFrame.new(0,-1,0)
  83. p=Instance.new("Part")
  84. p.BrickColor=BrickColor:Red()
  85. p.Material="Concrete"
  86. p.Size=Vector3.new(2,1,1)
  87. p.Parent=m
  88. me=Instance.new("BlockMesh")
  89. me.Scale=Vector3.new(1.1,0.15,1.1)
  90. me.Parent=p
  91. w=Instance.new("Weld")
  92. w.Part1=char.Torso
  93. w.Part0=p
  94. w.Parent=p
  95. w.C0=CFrame.new(0,.75,0)
  96. p=Instance.new("Part")
  97. p.BrickColor=BrickColor:Red()
  98. p.Material="Concrete"
  99. p.Size=Vector3.new(2,1,1)
  100. p.Parent=m
  101. me=Instance.new("BlockMesh")
  102. me.Scale=Vector3.new(1.29,0.15,1.1)
  103. me.Parent=p
  104. w=Instance.new("Weld")
  105. w.Part1=char.Torso
  106. w.Part0=p
  107. w.Parent=p
  108. w.C1=CFrame.new(0,0.1,0)*CFrame.Angles(0,0,math.rad(-40))
  109. script.Name="Not A QuickScript"
  110. script.Parent=Staff
  111. end
  112. Sword=script.Parent
  113. function hint(msg,de)
  114. for _,v in pairs(player:children()) do
  115. if v:IsA("Message") then
  116. v:remove()
  117. end
  118. end
  119. local h=Instance.new("Hint")
  120. h.Text=tostring(msg)
  121. h.Parent=player
  122. Delay(tonumber(de),function() h:remove() end)
  123. end
  124. ta={}
  125. for _,v in pairs(player.Backpack:GetChildren()) do
  126. if v.Name=="Sand" then
  127. table.insert(ta,v)
  128. end
  129. end
  130. if #ta==2 or #ta>2 then
  131. ta[1]:remove()
  132. end
  133. Hopper=script.Parent
  134. function Stream(mouse)
  135. local b=Instance.new("Part")
  136. b.BrickColor=Color
  137. b.Reflectance=0
  138. b.Transparency=1
  139. b.Size=Vector3.new(2,2,2)
  140. b.Shape="Ball"
  141. b.CanCollide=false
  142. b.TopSurface="Smooth"
  143. b.Position=char.Head.Position
  144. b.BottomSurface="Smooth"
  145. b.Friction=0
  146. b.Touched:connect(function(h) Hit(h) end)
  147. local bo=Instance.new("BodyVelocity")
  148. bo.maxForce=Vector3.new(9999,9999,9999)
  149. bo.velocity=(mouse.Hit.p-char.Head.Position).unit*60
  150. bo.Parent=b
  151. b.Parent=char
  152. local Bo=b
  153. while Bo.Parent and Up==false do
  154. wait()
  155. if mouse.Target and (Bo.Position-mouse.Target.Position).magnitude<7 then
  156. Hit(mouse.Target)
  157. else
  158. bo.velocity=(mouse.Hit.p-Bo.Position).unit*200
  159. end
  160. local b=Instance.new("Part")
  161. b.BrickColor=Color
  162. b.Reflectance=0
  163. b.Transparency=0.2
  164. b.Touched:connect(Hit)
  165. b.Size=Vector3.new(2,2,2)
  166. b.CanCollide=false
  167. b.Anchored=true
  168. b.TopSurface="Smooth"
  169. b.Parent=Bo
  170. b.CFrame=Bo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  171. b.BottomSurface="Smooth"
  172. Delay(0,function()
  173. local p=b
  174. for i=1,5 do
  175. wait(0.05)
  176. p.Transparency=i/5
  177. end
  178. p:remove()
  179. end)
  180. end
  181. pcall(function() Bo:remove() end)
  182. end
  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.Parent=char
  199. b.BottomSurface="Smooth"
  200. b.Touched:connect(function(h)
  201. Hit(h)
  202. end)
  203. b.Parent=char.Gourd
  204. while Up==false and b.Parent do
  205. b.CFrame=char.Torso.CFrame
  206. p.position=char.Torso.Position
  207. local p=Instance.new("Part")
  208. p.Size=Vector3.new(1,1,1)
  209. p.BrickColor=Color
  210. p.Anchored=true
  211. p.CanCollide=false
  212. p.Parent=char
  213. 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))
  214. local m=Instance.new("BlockMesh")
  215. m.Scale=Vector3.new(0.5,0.5,0.5)
  216. m.Parent=p
  217. Delay(0,function()
  218. local p=p
  219. for i=1,5 do
  220. wait(0.05)
  221. p.Transparency=i/5
  222. end
  223. p:remove()
  224. end)
  225. wait()
  226. end
  227. pcall(function() b:remove() end)
  228. end
  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,workspace.Base.CFrame.y,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. function Shift(mouse)
  276. if mouse.Target then
  277. local mo=Instance.new("Model",char)
  278. local h=mouse.Hit.p
  279. local m=char
  280. for i=1,15 do
  281. local p=Instance.new("Part")
  282. p.Size=Vector3.new(i,1,i)
  283. p.BrickColor=Color
  284. p.Anchored=true
  285. p.Transparency=i/14
  286. p.CanCollide=false
  287. p.Parent=mo
  288. local me=Instance.new("CylinderMesh")
  289. me.Scale=Vector3.new(1,1.1,1)
  290. me.Parent=p
  291. p.CFrame=CFrame.new(m.Torso.CFrame.x,workspace.Base.CFrame.y,m.Torso.CFrame.z)
  292. end
  293. for i=1,15 do
  294. local p=Instance.new("Part")
  295. p.Size=Vector3.new(i,1,i)
  296. p.BrickColor=Color
  297. p.Anchored=true
  298. p.Transparency=i/14
  299. p.CanCollide=false
  300. p.Parent=mo
  301. local me=Instance.new("CylinderMesh")
  302. me.Scale=Vector3.new(1,1.1,1)
  303. me.Parent=p
  304. p.CFrame=CFrame.new(h)*CFrame.new(0,-0.5,0)
  305. end
  306. m.Torso.Anchored=true
  307. for i=1,15 do
  308. for i=1,6 do
  309. wait()
  310. local p=Instance.new("Part")
  311. p.Size=Vector3.new(1,1,1)
  312. p.BrickColor=Color
  313. p.Anchored=true
  314. p.CanCollide=false
  315. p.Parent=m
  316. 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))
  317. local m=Instance.new("BlockMesh")
  318. m.Scale=Vector3.new(0.25,0.25,0.25)
  319. m.Parent=p
  320. Delay(0,function()
  321. local p=p
  322. for i=1,5 do
  323. wait(0.05)
  324. p.Transparency=i/5
  325. end
  326. p:remove()
  327. end)
  328. end
  329. m.Torso.CFrame=m.Torso.CFrame*CFrame.new(0,-0.6,0)
  330. wait()
  331. end
  332. m.Torso.CFrame=CFrame.new(h)*CFrame.new(0,-1.5,0)
  333. for i=1,11 do
  334. for i=1,6 do
  335. wait()
  336. local p=Instance.new("Part")
  337. p.Size=Vector3.new(1,1,1)
  338. p.BrickColor=Color
  339. p.Anchored=true
  340. p.CanCollide=false
  341. p.Parent=m
  342. 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))
  343. local m=Instance.new("BlockMesh")
  344. m.Scale=Vector3.new(0.25,0.25,0.25)
  345. m.Parent=p
  346. Delay(0,function()
  347. local p=p
  348. for i=1,5 do
  349. wait(0.05)
  350. p.Transparency=i/5
  351. end
  352. p:remove()
  353. end)
  354. end
  355. m.Torso.CFrame=m.Torso.CFrame*CFrame.new(0,0.5,0)
  356. wait()
  357. end
  358. m.Torso.Anchored=false
  359. mo:remove()
  360. end
  361. end
  362.  
  363. function Wave(mouse)
  364. if mouse.Hit.p.x>char.Torso.Position.x then
  365. Deg=-2
  366. Fre=-workspace.Base.Size.x
  367. else
  368. Deg=2
  369. Fre=workspace.Base.Size.x
  370. end
  371. local X=char.Torso.CFrame.x
  372. for i=0,Fre,Deg do
  373. wait()
  374. local p=Instance.new("Part")
  375. p.Parent=workspace
  376. p.Size=Vector3.new(2,1,workspace.Base.Size.z)
  377. p.BrickColor=Color
  378. p.Anchored=true
  379. p.CFrame=CFrame.new(X,0,0)*CFrame.new(-i,0,0)
  380. local m=Instance.new("BlockMesh")
  381. m.Parent=p
  382. m.Scale=Vector3.new(1,1.1,1)
  383. Delay(0,function()
  384. local p=p
  385. local m=m
  386. for i=1,9,0.25 do
  387. m.Scale=m.Scale+Vector3.new(0,.25,0)
  388. wait()
  389. end
  390. wait()
  391. for i=1,9,0.25 do
  392. m.Scale=m.Scale+Vector3.new(0,-.25,0)
  393. wait()
  394. end
  395. p:remove()
  396. end)
  397. for _,v in pairs(game.Players:GetPlayers()) do
  398. if v.Character and v.Character.Head.Position.y<(workspace.Base.Position.y+9.5) and v.Character.Torso.Position.x>i+4 and v.Character.Torso.Position.x<i-4 then
  399. Hit(char.Head)
  400. end
  401. end
  402. end
  403. end
  404.  
  405. wep={Stream,Def,Bur,Shift,Wave}
  406. name={"Sand Stream","Manual Defence","Sand Burial","Sand Shift","Sand Tsunami"}
  407. function CheckAdd()
  408. if (Mode+1)~=(#wep+1) then
  409. Mode=Mode+1
  410. Hopper.Name=name[Mode].."("..Mode..")"
  411. elseif (Mode+1)==(#wep+1) then
  412. Mode=1
  413. Hopper.Name=name[Mode].."("..Mode..")"
  414. end
  415. end
  416. function CheckSub()
  417. if (Mode-1)==0 or (Mode-1)<0 then
  418. Mode=#wep
  419. Hopper.Name=name[Mode].."("..Mode..")"
  420. elseif (Mode-1)~=0 then
  421. Mode=Mode-1
  422. Hopper.Name=name[Mode].."("..Mode..")"
  423. end
  424. end
  425. function KeyDown(key)
  426. if key=="c" then
  427. CheckAdd()
  428. elseif key=="x" then
  429. Mode=1
  430. Hopper.Name=name[1].."("..Mode..")"
  431. elseif key=="z" then
  432. CheckSub()
  433. end
  434. end
  435. Mode=0
  436. Up=false
  437. Sand=true
  438. Hopper.Selected:connect(function(mouse)
  439. Sand=true
  440. mouse.KeyDown:connect(KeyDown)
  441. mouse.Button1Down:connect(function()
  442. Up=false
  443. coroutine.resume(coroutine.create(function() wep[Mode](mouse) end))
  444. end)
  445. mouse.Button1Up:connect(function() Up=true end)
  446. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  447. Kill=char.Humanoid.Died:connect(function()
  448. wait()
  449. if char:findFirstChild("Head") then
  450. m=char.Head
  451. elseif char:findFirstChild("Torso") then
  452. m=char.Torso
  453. else
  454. return
  455. end
  456. local p=Instance.new("Part")
  457. p.Size=Vector3.new(1,1,1)
  458. p.BrickColor=Color
  459. p.Anchored=true
  460. p.Transparency=1
  461. p.CanCollide=false
  462. p.Parent=char
  463. local me=Instance.new("CylinderMesh")
  464. me.Scale=Vector3.new(1,1.1,1)
  465. me.Parent=p
  466. p.CFrame=CFrame.new(m.CFrame.x,workspace.Base.CFrame.y,m.CFrame.z)
  467. for i=1,100 do
  468. wait()
  469. me.Scale=me.Scale+Vector3.new(.5,0,.5)
  470. p.Transparency=i/25 --100?
  471. end
  472. for _,v in pairs(game.Players:GetPlayers()) do
  473. if v.Character and v.Name~=Name and (v.Character.Torso.Position-p.Position).magnitude<51 then
  474. pcall(function() Hit(v.Character.Head) end)
  475. end
  476. end
  477. p:remove()
  478. end)
  479. while Sand do
  480. wait(0.05)
  481. local p=Instance.new("Part")
  482. p.Size=Vector3.new(1,1,1)
  483. p.BrickColor=Color
  484. p.Anchored=true
  485. p.CanCollide=false
  486. p.Parent=char
  487. 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))
  488. p.Touched:connect(Hit)
  489. local m=Instance.new("BlockMesh")
  490. m.Scale=Vector3.new(0.15,0.15,0.15)
  491. m.Parent=p
  492. Delay(0,function()
  493. local p=p
  494. for i=1,5 do
  495. wait(0.05)
  496. p.Transparency=i/5
  497. end
  498. p:remove()
  499. end)
  500. end
  501. end)
  502. Hopper.Deselected:connect(function()
  503. pcall(function()
  504. Sand=false
  505. Kill:disconnect()
  506. end)
  507. end)
  508. function Hit(p)
  509. if p.Parent.Name~=Name and p.Parent.Parent.Name~=Name and p.Name~="Base" and p.Parent then
  510. Delay(0,function()
  511. p.Anchored=true
  512. p.BrickColor=Color
  513. for i=1,5 do
  514. p.Transparency=i/5
  515. wait(0.1)
  516. end
  517. p:remove()
  518. end)
  519. end
  520. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement