Advertisement
SonicrixLP

Untitled

Aug 30th, 2016
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.61 KB | None | 0 0
  1. local Name="sonicrixlp"
  2. local workspace=Workspace
  3. local player=game.Players.ImTheCop
  4. local char=player.Character
  5. local Color=BrickColor.new("Pastel brown")
  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:Red()
  16. p.Material="Concrete"
  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="Concrete"
  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="Concrete"
  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="Concrete"
  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="Concrete"
  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="Concrete"
  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="Concrete"
  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. function hint(msg,de)
  108. for _,v in pairs(player:children()) do
  109. if v:IsA("Message") then
  110. v:remove()
  111. end
  112. end
  113. local h=Instance.new("Hint")
  114. h.Text=tostring(msg)
  115. h.Parent=player
  116. Delay(tonumber(de),function() h:remove() end)
  117. end
  118. ta={}
  119. for _,v in pairs(player.Backpack:GetChildren()) do
  120. if v.Name=="Sand" then
  121. table.insert(ta,v)
  122. end
  123. end
  124. if #ta==2 or #ta>2 then
  125. ta[1]:remove()
  126. end
  127. Hopper=script.Parent
  128. function Stream(mouse)
  129. local b=Instance.new("Part")
  130. b.BrickColor=Color
  131. b.Reflectance=0
  132. b.Transparency=1
  133. b.Size=Vector3.new(2,2,2)
  134. b.Shape="Ball"
  135. b.CanCollide=false
  136. b.TopSurface="Smooth"
  137. b.Position=char.Head.Position
  138. b.BottomSurface="Smooth"
  139. b.Friction=0
  140. b.Touched:connect(function(h) Hit(h) end)
  141. local bo=Instance.new("BodyVelocity")
  142. bo.maxForce=Vector3.new(9999,9999,9999)
  143. bo.velocity=(mouse.Hit.p-char.Head.Position).unit*60
  144. bo.Parent=b
  145. b.Parent=char
  146. local Bo=b
  147. while Bo.Parent and Up==false do
  148. wait()
  149. if mouse.Target and (Bo.Position-mouse.Target.Position).magnitude<7 then
  150. Hit(mouse.Target)
  151. else
  152. bo.velocity=(mouse.Hit.p-Bo.Position).unit*200
  153. end
  154. local b=Instance.new("Part")
  155. b.BrickColor=Color
  156. b.Reflectance=0
  157. b.Transparency=0.2
  158. b.Touched:connect(Hit)
  159. b.Size=Vector3.new(2,2,2)
  160. b.CanCollide=false
  161. b.Anchored=true
  162. b.TopSurface="Smooth"
  163. b.Parent=Bo
  164. b.CFrame=Bo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  165. b.BottomSurface="Smooth"
  166. Delay(0,function()
  167. local p=b
  168. for i=1,5 do
  169. wait(0.05)
  170. p.Transparency=i/5
  171. end
  172. p:remove()
  173. end)
  174. end
  175. pcall(function() Bo:remove() end)
  176. end
  177. function Def(mouse)
  178. local b=Instance.new("Part")
  179. b.BrickColor=Color
  180. b.Reflectance=0
  181. b.Transparency=0.6
  182. b.Size=Vector3.new(15,15,15)
  183. b.Anchored=false
  184. b.Shape="Ball"
  185. b.CanCollide=false
  186. p=Instance.new("BodyPosition")
  187. p.Parent=b
  188. p.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  189. p.position=char.Torso.Position
  190. b.TopSurface="Smooth"
  191. b.Position=char.Torso.Position
  192. b.Parent=char
  193. b.BottomSurface="Smooth"
  194. b.Touched:connect(function(h)
  195. Hit(h)
  196. end)
  197. b.Parent=char.Gourd
  198. while Up==false and b.Parent do
  199. b.CFrame=char.Torso.CFrame
  200. p.position=char.Torso.Position
  201. local p=Instance.new("Part")
  202. p.Size=Vector3.new(1,1,1)
  203. p.BrickColor=Color
  204. p.Anchored=true
  205. p.CanCollide=false
  206. p.Parent=char
  207. 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))
  208. local m=Instance.new("BlockMesh")
  209. m.Scale=Vector3.new(0.5,0.5,0.5)
  210. m.Parent=p
  211. Delay(0,function()
  212. local p=p
  213. for i=1,5 do
  214. wait(0.05)
  215. p.Transparency=i/5
  216. end
  217. p:remove()
  218. end)
  219. wait()
  220. end
  221. pcall(function() b:remove() end)
  222. end
  223. function Bur(mouse)
  224. if mouse.Target and game.Players:getPlayerFromCharacter(mouse.Target.Parent) then
  225. local m=mouse.Target.Parent
  226. m.Torso.Anchored=true
  227. for i=1,15 do
  228. local p=Instance.new("Part")
  229. p.Size=Vector3.new(i,1,i)
  230. p.BrickColor=Color
  231. p.Anchored=true
  232. p.Transparency=i/14
  233. p.CanCollide=false
  234. p.Parent=m
  235. local me=Instance.new("CylinderMesh")
  236. me.Scale=Vector3.new(1,1.1,1)
  237. me.Parent=p
  238. p.CFrame=CFrame.new(m.Torso.CFrame.x,workspace.Base.CFrame.y,m.Torso.CFrame.z)
  239. end
  240. for i=1,10 do
  241. for i=1,6 do
  242. wait()
  243. local p=Instance.new("Part")
  244. p.Size=Vector3.new(1,1,1)
  245. p.BrickColor=Color
  246. p.Anchored=true
  247. p.CanCollide=false
  248. p.Parent=m
  249. 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))
  250. local m=Instance.new("BlockMesh")
  251. m.Scale=Vector3.new(0.25,0.25,0.25)
  252. m.Parent=p
  253. Delay(0,function()
  254. local p=p
  255. for i=1,5 do
  256. wait(0.05)
  257. p.Transparency=i/5
  258. end
  259. p:remove()
  260. end)
  261. end
  262. m.Torso.CFrame=CFrame.new(m.Torso.Position)*CFrame.new(0,-0.5,0)
  263. wait()
  264. end
  265. Hit(m.Torso)
  266. Hit(m.Head)
  267. end
  268. end
  269. function Shift(mouse)
  270. if mouse.Target then
  271. local mo=Instance.new("Model",char)
  272. local h=mouse.Hit.p
  273. local m=char
  274. for i=1,15 do
  275. local p=Instance.new("Part")
  276. p.Size=Vector3.new(i,1,i)
  277. p.BrickColor=Color
  278. p.Anchored=true
  279. p.Transparency=i/14
  280. p.CanCollide=false
  281. p.Parent=mo
  282. local me=Instance.new("CylinderMesh")
  283. me.Scale=Vector3.new(1,1.1,1)
  284. me.Parent=p
  285. p.CFrame=CFrame.new(m.Torso.CFrame.x,workspace.Base.CFrame.y,m.Torso.CFrame.z)
  286. end
  287. for i=1,15 do
  288. local p=Instance.new("Part")
  289. p.Size=Vector3.new(i,1,i)
  290. p.BrickColor=Color
  291. p.Anchored=true
  292. p.Transparency=i/14
  293. p.CanCollide=false
  294. p.Parent=mo
  295. local me=Instance.new("CylinderMesh")
  296. me.Scale=Vector3.new(1,1.1,1)
  297. me.Parent=p
  298. p.CFrame=CFrame.new(h)*CFrame.new(0,-0.5,0)
  299. end
  300. m.Torso.Anchored=true
  301. for i=1,15 do
  302. for i=1,6 do
  303. wait()
  304. local p=Instance.new("Part")
  305. p.Size=Vector3.new(1,1,1)
  306. p.BrickColor=Color
  307. p.Anchored=true
  308. p.CanCollide=false
  309. p.Parent=m
  310. 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))
  311. local m=Instance.new("BlockMesh")
  312. m.Scale=Vector3.new(0.25,0.25,0.25)
  313. m.Parent=p
  314. Delay(0,function()
  315. local p=p
  316. for i=1,5 do
  317. wait(0.05)
  318. p.Transparency=i/5
  319. end
  320. p:remove()
  321. end)
  322. end
  323. m.Torso.CFrame=m.Torso.CFrame*CFrame.new(0,-0.6,0)
  324. wait()
  325. end
  326. m.Torso.CFrame=CFrame.new(h)*CFrame.new(0,-1.5,0)
  327. for i=1,11 do
  328. for i=1,6 do
  329. wait()
  330. local p=Instance.new("Part")
  331. p.Size=Vector3.new(1,1,1)
  332. p.BrickColor=Color
  333. p.Anchored=true
  334. p.CanCollide=false
  335. p.Parent=m
  336. 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))
  337. local m=Instance.new("BlockMesh")
  338. m.Scale=Vector3.new(0.25,0.25,0.25)
  339. m.Parent=p
  340. Delay(0,function()
  341. local p=p
  342. for i=1,5 do
  343. wait(0.05)
  344. p.Transparency=i/5
  345. end
  346. p:remove()
  347. end)
  348. end
  349. m.Torso.CFrame=m.Torso.CFrame*CFrame.new(0,0.5,0)
  350. wait()
  351. end
  352. m.Torso.Anchored=false
  353. mo:remove()
  354. end
  355. end
  356.  
  357. function Wave(mouse)
  358. if mouse.Hit.p.x>char.Torso.Position.x then
  359. Deg=-2
  360. Fre=-workspace.Base.Size.x
  361. else
  362. Deg=2
  363. Fre=workspace.Base.Size.x
  364. end
  365. local X=char.Torso.CFrame.x
  366. for i=0,Fre,Deg do
  367. wait()
  368. local p=Instance.new("Part")
  369. p.Parent=workspace
  370. p.Size=Vector3.new(2,1,workspace.Base.Size.z)
  371. p.BrickColor=Color
  372. p.Anchored=true
  373. p.CFrame=CFrame.new(X,0,0)*CFrame.new(-i,0,0)
  374. local m=Instance.new("BlockMesh")
  375. m.Parent=p
  376. m.Scale=Vector3.new(1,1.1,1)
  377. Delay(0,function()
  378. local p=p
  379. local m=m
  380. for i=1,9,0.25 do
  381. m.Scale=m.Scale+Vector3.new(0,.25,0)
  382. wait()
  383. end
  384. wait()
  385. for i=1,9,0.25 do
  386. m.Scale=m.Scale+Vector3.new(0,-.25,0)
  387. wait()
  388. end
  389. p:remove()
  390. end)
  391. for _,v in pairs(game.Players:GetPlayers()) do
  392. 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
  393. Hit(char.Head)
  394. end
  395. end
  396. end
  397. end
  398.  
  399. wep={Stream,Def,Bur,Shift,Wave}
  400. name={"Sand Stream","Manual Defence","Sand Burial","Sand Shift","Sand Tsunami"}
  401. function CheckAdd()
  402. if (Mode+1)~=(#wep+1) then
  403. Mode=Mode+1
  404. Hopper.Name=name[Mode].."("..Mode..")"
  405. elseif (Mode+1)==(#wep+1) then
  406. Mode=1
  407. Hopper.Name=name[Mode].."("..Mode..")"
  408. end
  409. end
  410. function CheckSub()
  411. if (Mode-1)==0 or (Mode-1)<0 then
  412. Mode=#wep
  413. Hopper.Name=name[Mode].."("..Mode..")"
  414. elseif (Mode-1)~=0 then
  415. Mode=Mode-1
  416. Hopper.Name=name[Mode].."("..Mode..")"
  417. end
  418. end
  419. function KeyDown(key)
  420. if key=="c" then
  421. CheckAdd()
  422. elseif key=="x" then
  423. Mode=1
  424. Hopper.Name=name[1].."("..Mode..")"
  425. elseif key=="z" then
  426. CheckSub()
  427. end
  428. end
  429. Mode=0
  430. Up=false
  431. Sand=true
  432. Hopper.Selected:connect(function(mouse)
  433. Sand=true
  434. mouse.KeyDown:connect(KeyDown)
  435. mouse.Button1Down:connect(function()
  436. Up=false
  437. coroutine.resume(coroutine.create(function() wep[Mode](mouse) end))
  438. end)
  439. mouse.Button1Up:connect(function() Up=true end)
  440. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  441. Kill=char.Humanoid.Died:connect(function()
  442. wait()
  443. if char:findFirstChild("Head") then
  444. m=char.Head
  445. elseif char:findFirstChild("Torso") then
  446. m=char.Torso
  447. else
  448. return
  449. end
  450. local p=Instance.new("Part")
  451. p.Size=Vector3.new(1,1,1)
  452. p.BrickColor=Color
  453. p.Anchored=true
  454. p.Transparency=1
  455. p.CanCollide=false
  456. p.Parent=char
  457. local me=Instance.new("CylinderMesh")
  458. me.Scale=Vector3.new(1,1.1,1)
  459. me.Parent=p
  460. p.CFrame=CFrame.new(m.CFrame.x,workspace.Base.CFrame.y,m.CFrame.z)
  461. for i=1,100 do
  462. wait()
  463. me.Scale=me.Scale+Vector3.new(.5,0,.5)
  464. p.Transparency=i/25 --100?
  465. end
  466. for _,v in pairs(game.Players:GetPlayers()) do
  467. if v.Character and v.Name~=Name and (v.Character.Torso.Position-p.Position).magnitude<51 then
  468. pcall(function() Hit(v.Character.Head) end)
  469. end
  470. end
  471. p:remove()
  472. end)
  473. while Sand do
  474. wait(0.05)
  475. local p=Instance.new("Part")
  476. p.Size=Vector3.new(1,1,1)
  477. p.BrickColor=Color
  478. p.Anchored=true
  479. p.CanCollide=false
  480. p.Parent=char
  481. 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))
  482. p.Touched:connect(Hit)
  483. local m=Instance.new("BlockMesh")
  484. m.Scale=Vector3.new(0.15,0.15,0.15)
  485. m.Parent=p
  486. Delay(0,function()
  487. local p=p
  488. for i=1,5 do
  489. wait(0.05)
  490. p.Transparency=i/5
  491. end
  492. p:remove()
  493. end)
  494. end
  495. end)
  496. Hopper.Deselected:connect(function()
  497. pcall(function()
  498. Sand=false
  499. Kill:disconnect()
  500. end)
  501. end)
  502. function Hit(p)
  503. if p.Parent.Name~=Name and p.Parent.Parent.Name~=Name and p.Name~="Base" and p.Parent then
  504. Delay(0,function()
  505. p.Anchored=true
  506. p.BrickColor=Color
  507. for i=1,5 do
  508. p.Transparency=i/5
  509. wait(0.1)
  510. end
  511. p:remove()
  512. end)
  513. end
  514. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement