Advertisement
Axtem

Fire Water Bending

Oct 12th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.59 KB | None | 0 0
  1.  
  2. local player=game.Players.LocalPlayer
  3. local character=player.Character
  4. local head=character["Head"]
  5. local torso=character["Torso"]
  6. local humanoid=character["Humanoid"]
  7. local arm={left=character["Left Arm"], right=character["Right Arm"]}
  8. local add={
  9. part=function(parent,anchored,cancollide,color,shape,t,size,cframe)
  10. local p=Instance.new("Part")
  11. p.Parent=parent
  12. p.TopSurface="Smooth"
  13. p.BottomSurface="Smooth"
  14. p.FormFactor="Custom"
  15. p.Anchored=anchored
  16. p.CanCollide=cancollide
  17. p.BrickColor=BrickColor.new(color)
  18. p.Shape=shape
  19. p.Transparency=t
  20. p.Size=size
  21. p.CFrame=cframe
  22. return p
  23. end,
  24. weld=function(parent,part1,cframe)
  25. local w=Instance.new("Weld")
  26. w.Parent=parent
  27. w.Part0=parent
  28. w.Part1=part1
  29. w.C1=cframe
  30. return w
  31. end,
  32. mesh=function(ins,parent,scale)
  33. local m=Instance.new(ins)
  34. m.Parent=parent
  35. m.Scale=scale
  36. return m
  37. end,
  38. sound=function(parent,volume,id)
  39. local s=Instance.new("Sound")
  40. s.Parent=parent
  41. s.Volume=volume
  42. s.SoundId=id
  43. return s
  44. end,
  45. model=function(parent,name)
  46. local m=Instance.new("Model")
  47. m.Parent=parent
  48. m.Name=name
  49. return m
  50. end,
  51. bg=function(parent,cframe)
  52. local g=Instance.new("BodyGyro")
  53. g.Parent=parent
  54. g.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  55. g.cframe=cframe
  56. return g
  57. end,
  58. bav=function(parent,angular)
  59. local av=Instance.new("BodyAngularVelocity")
  60. av.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  61. av.Parent=parent
  62. av.angularvelocity=angular
  63. return av
  64. end,
  65. bp=function(parent,pos)
  66. local p=Instance.new("BodyPosition")
  67. p.Parent=parent
  68. p.maxForce=Vector3.new(0,math.huge,0)
  69. p.position=pos
  70. return p
  71. end,
  72. bf=function(parent,force)
  73. local f=Instance.new("BodyForce")
  74. f.Parent=parent
  75. f.force=force
  76. return f
  77. end,
  78. humanoid=function(parent,maxhealth)
  79. local h=Instance.new("Humanoid")
  80. h.Parent=parent
  81. h.MaxHealth=maxhealth
  82. return h
  83. end
  84. }
  85. local c=function(f)coroutine.resume(coroutine.create(f))end
  86. local trailDeb=false
  87. local things=add.model(character,"Water Bending and fire")
  88.  
  89. function computePos(pos1,pos2)
  90. local pos3=Vector3.new(pos2.x,pos1.y,pos2.z)
  91. return CFrame.new(pos1,pos3)
  92. end
  93.  
  94. local touchDeb=false
  95. function touch(hit)
  96. local human=hit.Parent:findFirstChild("Humanoid")
  97. local torso=hit.Parent:findFirstChild("Torso")
  98. if human and torso and human~=humanoid then
  99. local damage=math.random(99999,99999)
  100. c(function()
  101. human:TakeDamage(damage)
  102. human.PlatformStand=true
  103. torso.Velocity=torso.CFrame.lookVector*-150
  104. torso.RotVelocity=Vector3.new(math.random(-25,25),math.random(-25,25),math.random(-25,25))
  105. wait(1)
  106. human.PlatformStand=false
  107. torso.Velocity=Vector3.new(0,0,0)
  108. torso.RotVelocity=Vector3.new(0,0,0)
  109. end)
  110. end
  111. end
  112.  
  113. function trail(pos)
  114. trailDeb=true
  115. old=pos.Position
  116. c(function()
  117. while trailDeb==true do
  118. wait()
  119. new=pos.Position
  120. local magnitude=(old-new).magnitude
  121. local line=add.part(things,true,false,"Bright red","Block",0,Vector3.new(8,8,8) ,CFrame.new(old,new)*CFrame.Angles(0,0,-magnitude/2))
  122. old=new
  123. c(function()
  124. for i=.2,1,.2 do
  125. wait()
  126. line.Transparency=i
  127. end
  128. line:remove()
  129. end)
  130. line.Touched:connect(touch)
  131. end
  132. end)
  133. end
  134.  
  135. local pathDeb=false
  136. local pathPart=nil
  137. local bPosition=10
  138. function path()
  139. pathDeb=true
  140. pathPart=add.part(things,true,true,"Bright blue","Ball",0,Vector3.new(4,1.4),CFrame.new())
  141. local bp=add.bp(torso,torso.Position+Vector3.new(0,bPosition,0))
  142. while pathDeb==true do
  143. wait()
  144. pathPart.CFrame=torso.CFrame*CFrame.new(0,-3,0)
  145. end
  146. end
  147.  
  148. --Armz
  149. local fakeArm={left=add.part(things,false,false,"White","Block",1,Vector3.new(1,1,1),CFrame.new()), right=add.part(things,false,false,"White","Block",1,Vector3.new(1,1,1),CFrame.new())}
  150. local water={left=add.part(things,false,false,"Bright red","Ball",1,Vector3.new(1,1,1),CFrame.new()), right=add.part(things,false,false,"Bright blue","Ball",1,Vector3.new(1,1,1),CFrame.new())}
  151. --Weldz
  152. local connectArmWeld={left=add.weld(torso,fakeArm.left,CFrame.new(1.5,-.5,0)), right=add.weld(torso,fakeArm.right,CFrame.new(-1.5,-.5,0))}
  153. local armWeld={left=add.weld(fakeArm.left,arm.left,CFrame.new(0,0.5,0)), right=add.weld(fakeArm.right,arm.right,CFrame.new(0,0.5,0))}
  154. local waterWeld={left=add.weld(water.left,arm.left,CFrame.new(0,-2,0)), right=add.weld(water.right,arm.right,CFrame.new(0,-2,0))}
  155.  
  156. local anim={
  157. equip=function()
  158. for i=.2,1,.2 do
  159. wait()
  160. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(45)*i)
  161. armWeld.right.C0=CFrame.Angles(math.rad(135)*i,0,0)
  162. end
  163. end,
  164. watershoot=function(mouse)
  165. torso.CFrame=computePos(torso.CFrame.p,mouse.Hit.p)
  166. trail(water.left)
  167. trail(water.right)
  168. local waterbull=add.part(things,false,false,"Bright red","Ball",0,Vector3.new(6,6,6),CFrame.new((torso.CFrame+torso.CFrame.lookVector*5).p,mouse.hit.p))
  169. waterbull.Touched:connect(touch)
  170. waterbull.Velocity=waterbull.CFrame.lookVector*150
  171. trail(waterbull)
  172. local bf=add.bf(waterbull,Vector3.new(0,waterbull:GetMass()*196.2,0))
  173. for i=.2,1,.2 do
  174. wait()
  175. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(45)*i)
  176. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(45)*i)
  177. waterWeld.left.C1=CFrame.new(0,-2+(-10*i),0)
  178. waterWeld.right.C1=CFrame.new(0,-2+(-10*i),0)
  179. end
  180. wait(.2)
  181. for i=1,0,-.2 do
  182. wait()
  183. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(45)*i)
  184. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(45)*i)
  185. waterWeld.left.C1=CFrame.new(0,-2+(-10*i),0)
  186. waterWeld.right.C1=CFrame.new(0,-2+(-10*i),0)
  187. end
  188. game.Debris:AddItem(waterbull,5)
  189. trailDeb=false
  190. end,
  191. waterRaise=function(mouse)
  192. torso.CFrame=computePos(torso.CFrame.p,mouse.Hit.p)
  193. trail(water.left)
  194. trail(water.right)
  195. for i=.2,1,.2 do
  196. wait()
  197. armWeld.left.C0=CFrame.Angles(math.rad(135)*i,0,-math.rad(5)*i)
  198. armWeld.right.C0=CFrame.Angles(math.rad(135)*i,0,math.rad(5)*i)
  199. waterWeld.left.C1=CFrame.new(0,-2+(-10*i),0)
  200. waterWeld.right.C1=CFrame.new(0,-2+(-10*i),0)
  201. end
  202. wait(.2)
  203. for i=1,0,-.2 do
  204. wait()
  205. armWeld.left.C0=CFrame.Angles(math.rad(135)*i,0,-math.rad(5)*i)
  206. armWeld.right.C0=CFrame.Angles(math.rad(135)*i,0,math.rad(5)*i)
  207. waterWeld.left.C1=CFrame.new(0,-2+(-math.random(10,12)*i),0)
  208. waterWeld.right.C1=CFrame.new(0,-2+(-math.random(10,12)*i),0)
  209. end
  210. trailDeb=false
  211. end,
  212. waterRaise1=function(mouse)
  213. torso.CFrame=computePos(torso.CFrame.p,mouse.Hit.p)
  214. trail(water.left)
  215. trail(water.right)
  216. for i=.5,1,.5 do
  217. wait()
  218. armWeld.left.C0=CFrame.Angles(math.rad(135)*i,0,-math.rad(5)*i)
  219. armWeld.right.C0=CFrame.Angles(math.rad(135)*i,0,math.rad(5)*i)
  220. waterWeld.left.C1=CFrame.new(0,-2+(-10*i),0)
  221. waterWeld.right.C1=CFrame.new(0,-2+(-10*i),0)
  222. end
  223. wait(.2)
  224. for i=1,0,-.5 do
  225. wait()
  226. armWeld.left.C0=CFrame.Angles(math.rad(135)*i,0,-math.rad(5)*i)
  227. armWeld.right.C0=CFrame.Angles(math.rad(135)*i,0,math.rad(5)*i)
  228. waterWeld.left.C1=CFrame.new(0,-2+(-math.random(10,12)*i),0)
  229. waterWeld.right.C1=CFrame.new(0,-2+(-math.random(10,12)*i),0)
  230. end
  231. wait(.2)
  232. for i=.2,1,.2 do
  233. wait()
  234. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,0)
  235. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,0)
  236. waterWeld.left.C1=CFrame.new(0,-2+(-20*i),0)
  237. waterWeld.right.C1=CFrame.new(0,-2+(-20*i),0)
  238. end
  239. wait(.2)
  240. for i=1,0,-.2 do
  241. wait()
  242. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,0)
  243. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,0)
  244. waterWeld.left.C1=CFrame.new(0,-2+(-20*i),0)
  245. waterWeld.right.C1=CFrame.new(0,-2+(-20*i),0)
  246. end
  247. trailDeb=false
  248. wait(.2)
  249. for i=.2,1,.2 do
  250. wait()
  251. armWeld.left.C0=CFrame.Angles(math.rad(135)*i,0,-math.rad(5)*i)
  252. armWeld.right.C0=CFrame.Angles(math.rad(135)*i,0,math.rad(5)*i)
  253. end
  254. for i=1,20 do
  255. wait()
  256. local waterblock=add.part(things,false,false,"Bright red","Block",0,Vector3.new(4,4,4),torso.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(45),0,0)+torso.CFrame.lookVector*2*i)
  257. trail(waterblock)
  258. game.Debris:AddItem(waterblock,1)
  259. waterblock.Touched:connect(touch)
  260. end
  261. wait(.2)
  262. torso.Anchored=false
  263. for i=1,0,-.2 do
  264. wait()
  265. armWeld.left.C0=CFrame.Angles(math.rad(135)*i,0,-math.rad(5)*i)
  266. armWeld.right.C0=CFrame.Angles(math.rad(135)*i,0,math.rad(5)*i)
  267. end
  268. trailDeb=false
  269. wait(.2)
  270. trail(water.left)
  271. trail(water.right)
  272. for i=.2,1,.2 do
  273. wait()
  274. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(90)*i)
  275. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(90)*i)
  276. waterWeld.left.C1=CFrame.new(0,-2+(-10*i),0)
  277. waterWeld.right.C1=CFrame.new(0,-2+(-10*i),0)
  278. end
  279. wait(.2)
  280. for i=1,0,-.2 do
  281. wait()
  282. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(45)*i)
  283. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(45)*i)
  284. waterWeld.left.C1=CFrame.new(0,-2+(-15*i),0)
  285. waterWeld.right.C1=CFrame.new(0,-2+(-15*i),0)
  286. end
  287. trailDeb=false
  288.  
  289. end;
  290. waterSpin=function()
  291. trail(water.left)
  292. trail(water.right)
  293. local bg=add.bg(torso,torso.CFrame)
  294. for i=.2,1,.2 do
  295. wait()
  296. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(90)*i)
  297. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(90)*i)
  298. waterWeld.left.C1=CFrame.new(0,-2+(-math.random(5,8)*i),0)
  299. waterWeld.right.C1=CFrame.new(0,-2+(-math.random(5,8)*i),0)
  300. end
  301. local bav=add.bav(torso,Vector3.new(0,75,0))
  302. wait(3)
  303. for i=1,0,-.2 do
  304. wait()
  305. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(90)*i)
  306. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(90)*i)
  307. waterWeld.left.C1=CFrame.new(0,-2+(-5*i),0)
  308. waterWeld.right.C1=CFrame.new(0,-2+(-5*i),0)
  309. end
  310. bg:remove()
  311. bav:remove()
  312. trailDeb=false
  313. end,
  314. bend=function(mouse)
  315. torso.CFrame=computePos(torso.CFrame.p,mouse.Hit.p)
  316. trail(water.left)
  317. trail(water.right)
  318. for i=.2,1,.2 do
  319. wait()
  320. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(90)*i)
  321. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(90)*i)
  322. waterWeld.left.C1=CFrame.new(0,-2+(-10*i),0)
  323. waterWeld.right.C1=CFrame.new(0,-2+(-10*i),0)
  324. end
  325. wait(.2)
  326. for i=1,0,-.2 do
  327. wait()
  328. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(45)*i)
  329. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(45)*i)
  330. waterWeld.left.C1=CFrame.new(0,-2+(-15*i),0)
  331. waterWeld.right.C1=CFrame.new(0,-2+(-15*i),0)
  332. end
  333. trailDeb=false
  334.  
  335. end;
  336. bend1=function(mouse)
  337. torso.CFrame=computePos(torso.CFrame.p,mouse.Hit.p)
  338. trail(water.left)
  339. trail(water.right)
  340. for i=.2,1,.2 do
  341. wait()
  342. armWeld.left.C0=CFrame.Angles(math.rad(190)*i,0,math.rad(140)*i)
  343. armWeld.right.C0=CFrame.Angles(math.rad(190)*i,0,-math.rad(150)*i)
  344. waterWeld.left.C1=CFrame.new(0,-2+(-10*i),0)
  345. waterWeld.right.C1=CFrame.new(0,-2+(-10*i),0)
  346. end
  347. wait(.2)
  348. for i=1,0,-.2 do
  349. wait()
  350. armWeld.left.C0=CFrame.Angles(math.rad(190)*i,0,math.rad(45)*i)
  351. armWeld.right.C0=CFrame.Angles(math.rad(190)*i,0,-math.rad(45)*i)
  352. waterWeld.left.C1=CFrame.new(0,-2+(-15*i),0)
  353. waterWeld.right.C1=CFrame.new(0,-2+(-15*i),0)
  354. end
  355. trailDeb=false
  356. wait(.2)
  357. trail(water.left)
  358. trail(water.right)
  359. local bg=add.bg(torso,torso.CFrame)
  360. for i=.2,1,.2 do
  361. wait()
  362. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(90)*i)
  363. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(90)*i)
  364. waterWeld.left.C1=CFrame.new(0,-2+(-math.random(5,8)*i),0)
  365. waterWeld.right.C1=CFrame.new(0,-2+(-math.random(5,8)*i),0)
  366. end
  367. local bav=add.bav(torso,Vector3.new(0,75,0))
  368. wait(3)
  369. for i=1,0,-.2 do
  370. wait()
  371. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(90)*i)
  372. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(90)*i)
  373. waterWeld.left.C1=CFrame.new(0,-2+(-5*i),0)
  374. waterWeld.right.C1=CFrame.new(0,-2+(-5*i),0)
  375. end
  376. bg:remove()
  377. bav:remove()
  378. trailDeb=false
  379. wait(.2)
  380. torso.CFrame=computePos(torso.CFrame.p,mouse.Hit.p)
  381. trail(water.left)
  382. trail(water.right)
  383. for i=.2,1,.2 do
  384. wait()
  385. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,0)
  386. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,0)
  387. waterWeld.left.C1=CFrame.new(0,-2+(-20*i),0)
  388. waterWeld.right.C1=CFrame.new(0,-2+(-20*i),0)
  389. end
  390. wait(.2)
  391. for i=1,0,-.2 do
  392. wait()
  393. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,0)
  394. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,0)
  395. waterWeld.left.C1=CFrame.new(0,-2+(-20*i),0)
  396. waterWeld.right.C1=CFrame.new(0,-2+(-20*i),0)
  397. end
  398. trailDeb=false
  399.  
  400. end,
  401. watershoot2=function(mouse)
  402. torso.CFrame=computePos(torso.CFrame.p,mouse.Hit.p)
  403. trail(water.left)
  404. trail(water.right)
  405. for i=1,40 do
  406. local waterbull=add.part(things,false,false,"Bright blue","Ball",0,Vector3.new(8,8,8),torso.CFrame*CFrame.Angles(0,math.rad(9)*i,0))
  407. waterbull.Velocity=waterbull.CFrame.lookVector*100
  408. trail(waterbull)
  409. local bf=add.bf(waterbull,Vector3.new(0,waterbull:GetMass()*196.2,0))
  410. game.Debris:AddItem(waterbull,5)
  411. waterbull.Touched:connect(touch)
  412. end
  413. for i=.2,1,.2 do
  414. wait()
  415. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(90)*i)
  416. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(90)*i)
  417. waterWeld.left.C1=CFrame.new(0,-2+(-10*i),0)
  418. waterWeld.right.C1=CFrame.new(0,-2+(-10*i),0)
  419. end
  420. wait(.2)
  421. for i=1,0,-.2 do
  422. wait()
  423. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(90)*i)
  424. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(90)*i)
  425. waterWeld.left.C1=CFrame.new(0,-2+(-10*i),0)
  426. waterWeld.right.C1=CFrame.new(0,-2+(-10*i),0)
  427. end
  428. trailDeb=false
  429. end,
  430. lol=function(mouse)
  431. torso.CFrame=computePos(torso.CFrame.p,mouse.Hit.p)
  432. trail(water.left)
  433. trail(water.right)
  434. for i=1,40 do
  435. local waterbull=add.part(things,false,false,"Bright blue","Block",0,Vector3.new(10,10,10),torso.CFrame*CFrame.Angles(0,math.rad(9)*i,0))
  436. waterbull.Velocity=waterbull.CFrame.lookVector*100
  437. trail(waterbull)
  438. local bf=add.bf(waterbull,Vector3.new(0,waterbull:GetMass()*196.2,0))
  439. game.Debris:AddItem(waterbull,5)
  440. waterbull.Touched:connect(touch)
  441. end
  442. for i=.2,1,.2 do
  443. wait()
  444. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(90)*i)
  445. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(90)*i)
  446. waterWeld.left.C1=CFrame.new(0,-2+(-10*i),0)
  447. waterWeld.right.C1=CFrame.new(0,-2+(-10*i),0)
  448. end
  449. wait(.2)
  450. for i=1,0,-.2 do
  451. wait()
  452. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,math.rad(90)*i)
  453. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,-math.rad(90)*i)
  454. waterWeld.left.C1=CFrame.new(0,-2+(-10*i),0)
  455. waterWeld.right.C1=CFrame.new(0,-2+(-10*i),0)
  456. end
  457. trailDeb=false
  458. end,
  459. waterBack=function(mouse)
  460. torso.CFrame=computePos(torso.CFrame.p,mouse.Hit.p)
  461. trail(water.left)
  462. trail(water.right)
  463. for i=.2,1,.2 do
  464. wait()
  465. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,0)
  466. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,0)
  467. waterWeld.left.C1=CFrame.new(0,-2+(-20*i),0)
  468. waterWeld.right.C1=CFrame.new(0,-2+(-20*i),0)
  469. end
  470. wait(.2)
  471. for i=1,0,-.2 do
  472. wait()
  473. armWeld.left.C0=CFrame.Angles(math.rad(90)*i,0,0)
  474. armWeld.right.C0=CFrame.Angles(math.rad(90)*i,0,0)
  475. waterWeld.left.C1=CFrame.new(0,-2+(-20*i),0)
  476. waterWeld.right.C1=CFrame.new(0,-2+(-20*i),0)
  477. end
  478. trailDeb=false
  479. end,
  480.  
  481. ultimatemove=function(mouse)
  482. torso.CFrame=computePos(torso.CFrame.p,mouse.Hit.p)
  483. torso.Anchored=true
  484. for i=.2,1,.2 do
  485. wait()
  486. armWeld.left.C0=CFrame.Angles(math.rad(135)*i,0,-math.rad(5)*i)
  487. armWeld.right.C0=CFrame.Angles(math.rad(135)*i,0,math.rad(5)*i)
  488. end
  489. for i=1,20 do
  490. wait()
  491. local waterblock=add.part(things,false,false,"Bright blue","Ball",0,Vector3.new(12,12,12),torso.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(45),0,0)+torso.CFrame.lookVector*2*i)
  492. trail(waterblock)
  493. game.Debris:AddItem(waterblock,1)
  494. waterblock.Touched:connect(touch)
  495. end
  496. wait(.2)
  497. torso.Anchored=false
  498. for i=1,0,-.2 do
  499. wait()
  500. armWeld.left.C0=CFrame.Angles(math.rad(135)*i,0,-math.rad(5)*i)
  501. armWeld.right.C0=CFrame.Angles(math.rad(135)*i,0,math.rad(5)*i)
  502. end
  503. trailDeb=false
  504. wait(.2)
  505. torso.CFrame=computePos(torso.CFrame.p,mouse.Hit.p)
  506. trail(water.left)
  507. trail(water.right)
  508. for i=.2,1,.2 do
  509. wait()
  510. armWeld.left.C0=CFrame.Angles(math.rad(190)*i,0,-math.rad(5)*i)
  511. armWeld.right.C0=CFrame.Angles(math.rad(190)*i,0,math.rad(5)*i)
  512. waterWeld.left.C1=CFrame.new(0,-2+(-10*i),0)
  513. waterWeld.right.C1=CFrame.new(0,-2+(-10*i),0)
  514. end
  515. wait(.2)
  516. for i=1,0,-.2 do
  517. wait()
  518. armWeld.left.C0=CFrame.Angles(math.rad(190)*i,0,-math.rad(5)*i)
  519. armWeld.right.C0=CFrame.Angles(math.rad(190)*i,0,math.rad(5)*i)
  520. waterWeld.left.C1=CFrame.new(0,-2+(-math.random(10,12)*i),0)
  521. waterWeld.right.C1=CFrame.new(0,-2+(-math.random(10,12)*i),0)
  522. end
  523. trailDeb=false
  524.  
  525. end;
  526. waterForward=function(mouse)
  527. torso.CFrame=computePos(torso.CFrame.p,mouse.Hit.p)
  528. torso.Anchored=true
  529. for i=.2,1,.2 do
  530. wait()
  531. armWeld.left.C0=CFrame.Angles(math.rad(135)*i,0,-math.rad(5)*i)
  532. armWeld.right.C0=CFrame.Angles(math.rad(135)*i,0,math.rad(5)*i)
  533. end
  534. for i=1,20 do
  535. wait()
  536. local waterblock=add.part(things,false,false,"Bright red","Block",0,Vector3.new(4,4,4),torso.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.rad(45),0,0)+torso.CFrame.lookVector*2*i)
  537. trail(waterblock)
  538. game.Debris:AddItem(waterblock,1)
  539. waterblock.Touched:connect(touch)
  540. end
  541. wait(.2)
  542. torso.Anchored=false
  543. for i=1,0,-.2 do
  544. wait()
  545. armWeld.left.C0=CFrame.Angles(math.rad(135)*i,0,-math.rad(5)*i)
  546. armWeld.right.C0=CFrame.Angles(math.rad(135)*i,0,math.rad(5)*i)
  547. end
  548. trailDeb=false
  549. end
  550. }
  551.  
  552. function getTouched()
  553. for i,v in pairs(things:GetChildren()) do
  554. v.Touched:connect(touch)
  555. end
  556. end
  557.  
  558. local deb=false
  559. local buttonDeb=false
  560. local bin=Instance.new("HopperBin")
  561. bin.Parent=player.Backpack
  562. bin.Name="Water Bending"
  563. bin.Selected:connect(function(mouse)
  564. bin:remove()
  565. anim.equip()
  566. mouse.Button1Down:connect(function()
  567. if deb==false then
  568. deb=true
  569. getTouched()
  570. anim.watershoot(mouse)
  571. anim.equip()
  572. deb=false
  573. end
  574. end)
  575. mouse.KeyDown:connect(function(key)
  576. if key=="q" and deb==false then
  577. deb=true
  578. getTouched()
  579. anim.waterRaise(mouse)
  580. anim.equip()
  581. deb=false
  582. end
  583. if key=="p" and deb==false then
  584. deb=true
  585. getTouched()
  586. anim.waterRaise1(mouse)
  587. anim.equip()
  588. deb=false
  589. end
  590. if key=="e" and deb==false then
  591. deb=true
  592. getTouched()
  593. anim.waterSpin()
  594. anim.equip()
  595. deb=false
  596. end
  597. if key=="r" and deb==false then
  598. deb=true
  599. getTouched()
  600. anim.bend(mouse)
  601. anim.equip()
  602. deb=false
  603. end
  604. if key=="m" and deb==false then
  605. deb=true
  606. getTouched()
  607. anim.bend1(mouse)
  608. anim.equip()
  609. deb=false
  610. end
  611. if key=="f" and deb==false then
  612. deb=true
  613. getTouched()
  614. anim.watershoot2(mouse)
  615. anim.equip()
  616. deb=false
  617. end
  618. if key=="t" and deb==false then
  619. deb=true
  620. getTouched()
  621. anim.lol(mouse)
  622. anim.equip()
  623. deb=false
  624. end
  625. if key=="g" and deb==false then
  626. deb=true
  627. getTouched()
  628. anim.waterBack(mouse)
  629. anim.equip()
  630. deb=false
  631. end
  632. if key=="h" and deb==false then
  633. deb=true
  634. getTouched()
  635. anim.waterForward(mouse)
  636. anim.equip()
  637. deb=false
  638. end
  639. if key=="n" and deb==false then
  640. deb=true
  641. getTouched()
  642. anim.ultimatemove(mouse)
  643. anim.equip()
  644. deb=false
  645. end
  646. if key=="z" and buttonDeb==false then
  647. buttonDeb=true
  648. getTouched()
  649. path()
  650. end
  651. if key=="z" and buttonDeb==true then
  652. buttonDeb=false
  653. pathPart:remove() torso["BodyPosition"]:remove()
  654. end
  655. end)
  656. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement