Advertisement
RyanDaCoder

idk this script

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