Advertisement
memberhero

Untitled

Jul 3rd, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(1/60)
  2. --[[
  3. Fenrier's Gunlance Script created by:
  4. A bunch of people.
  5. ]]
  6. Player = game:GetService("Players").LocalPlayer
  7. Character = Player.Character
  8. PlayerGui = Player.PlayerGui
  9. Backpack = Player.Backpack
  10. Torso = Character.Torso
  11. Head = Character.Head
  12. LeftArm = Character["Left Arm"]
  13. LeftLeg = Character["Left Leg"]
  14. RightArm = Character["Right Arm"]
  15. RightLeg = Character["Right Leg"]
  16. LS = Torso["Left Shoulder"]
  17. LH = Torso["Left Hip"]
  18. RS = Torso["Right Shoulder"]
  19. RH = Torso["Right Hip"]
  20. bladecolor = BrickColor.new("New Yeller")
  21. attack = false
  22. attacktype = 1
  23. damage = math.random(1,2)
  24. oridamage = math.random(1,2)
  25. --player
  26. player = nil
  27. --save shoulders
  28. RSH, LSH = nil, nil
  29. --welds
  30. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  31. --what anim
  32. anim = "none"
  33. demondance = false
  34. demonmode = false
  35. mana = 400
  36. skill = false
  37. mode = 0
  38. guardy = false
  39. unsheathed = false
  40. walking = false
  41. ammo = 4
  42.  
  43. if Character:findFirstChild("GunSword",true) ~= nil then
  44. Character:findFirstChild("GunSword",true).Parent = nil
  45. end
  46.  
  47.  
  48.  
  49. local modelzorz = Instance.new("Model")
  50. modelzorz.Name = "GunSword"
  51. modelzorz.Parent = Character
  52. local freakinghandle = Instance.new("Part")
  53. freakinghandle.formFactor = 1
  54. freakinghandle.Parent = modelzorz
  55. freakinghandle.CanCollide = false
  56. freakinghandle.BrickColor = BrickColor.new("New Yeller")
  57. freakinghandle.Name = "TheFreakingHandle"
  58. freakinghandle.Size = Vector3.new(1,1,1)
  59. freakinghandle.Position = Torso.Position
  60. local prt1 = Instance.new("Part")
  61. prt1.formFactor = 1
  62. prt1.Parent = modelzorz
  63. prt1.CanCollide = false
  64. prt1.BrickColor = BrickColor.new("Dark stone grey")
  65. prt1.Name = "Part1"
  66. prt1.Size = Vector3.new(1,1,1)
  67. prt1.Position = Torso.Position
  68. local prt2 = Instance.new("Part")
  69. prt2.formFactor = 1
  70. prt2.Parent = modelzorz
  71. prt2.CanCollide = false
  72. prt2.BrickColor = BrickColor.new("Bright blue")
  73. prt2.Name = "Part2"
  74. prt2.Size = Vector3.new(1,1,1)
  75. prt2.Position = Torso.Position
  76. local prt3 = Instance.new("Part")
  77. prt3.formFactor = 1
  78. prt3.Parent = modelzorz
  79. prt3.CanCollide = false
  80. prt3.BrickColor = BrickColor.new("Dark stone grey")
  81. prt3.Name = "Part3"
  82. prt3.Size = Vector3.new(1,1,1)
  83. prt3.Position = Torso.Position
  84. local prt4 = Instance.new("Part")
  85. prt4.formFactor = 1
  86. prt4.Parent = modelzorz
  87. prt4.CanCollide = false
  88. prt4.BrickColor = BrickColor.new("Medium stone grey")
  89. prt4.Name = "Part4"
  90. prt4.Size = Vector3.new(1,1,1)
  91. prt4.Position = Torso.Position
  92. local prt5 = Instance.new("Part")
  93. prt5.formFactor = 1
  94. prt5.Reflectance = 0.1
  95. prt5.Parent = modelzorz
  96. prt5.CanCollide = false
  97. prt5.BrickColor = BrickColor.new("Neon orange")
  98. prt5.Name = "Blade1"
  99. prt5.Size = Vector3.new(1,3,1)
  100. prt5.Position = Torso.Position
  101. local prt6 = Instance.new("Part")
  102. prt6.formFactor = 1
  103. prt6.Reflectance = 0.1
  104. prt6.Parent = modelzorz
  105. prt6.CanCollide = false
  106. prt6.BrickColor = BrickColor.new("Neon orange")
  107. prt6.Name = "Blade2"
  108. prt6.Size = Vector3.new(1,3,1)
  109. prt6.Position = Torso.Position
  110. local shell1 = Instance.new("Part")
  111. shell1.formFactor = 1
  112. shell1.Reflectance = 0.1
  113. shell1.Parent = modelzorz
  114. shell1.CanCollide = false
  115. shell1.BrickColor = BrickColor.new("New Yeller")
  116. shell1.Name = "Shell1"
  117. shell1.Size = Vector3.new(1,1,1)
  118. shell1.Position = Torso.Position
  119. local shell2 = Instance.new("Part")
  120. shell2.formFactor = 1
  121. shell2.Reflectance = 0.1
  122. shell2.Parent = modelzorz
  123. shell2.CanCollide = false
  124. shell2.BrickColor = BrickColor.new("New Yeller")
  125. shell2.Name = "Shell2"
  126. shell2.Size = Vector3.new(1,1,1)
  127. shell2.Position = Torso.Position
  128. local shell3 = Instance.new("Part")
  129. shell3.formFactor = 1
  130. shell3.Reflectance = 0.1
  131. shell3.Parent = modelzorz
  132. shell3.CanCollide = false
  133. shell3.BrickColor = BrickColor.new("New Yeller")
  134. shell3.Name = "Shell3"
  135. shell3.Size = Vector3.new(1,1,1)
  136. shell3.Position = Torso.Position
  137. local shell4 = Instance.new("Part")
  138. shell4.formFactor = 1
  139. shell4.Reflectance = 0.1
  140. shell4.Parent = modelzorz
  141. shell4.CanCollide = false
  142. shell4.BrickColor = BrickColor.new("New Yeller")
  143. shell4.Name = "Shell4"
  144. shell4.Size = Vector3.new(1,1,1)
  145. shell4.Position = Torso.Position
  146.  
  147. local hndlmsh = Instance.new("CylinderMesh")
  148. hndlmsh.Parent = freakinghandle
  149. hndlmsh.Scale = Vector3.new(0.4,0.6,0.4)
  150. local msh1 = Instance.new("CylinderMesh")
  151. msh1.Parent = prt1
  152. msh1.Scale = Vector3.new(0.35,1.6,0.35)
  153. local msh2 = Instance.new("BlockMesh")
  154. msh2.Parent = prt2
  155. msh2.Scale = Vector3.new(1.2,0.6,1.2)
  156. local msh3 = Instance.new("CylinderMesh")
  157. msh3.Parent = prt3
  158. msh3.Scale = Vector3.new(1,2,1)
  159. local msh4 = Instance.new("CylinderMesh")
  160. msh4.Parent = prt4
  161. msh4.Scale = Vector3.new(1.4,1,1.4)
  162. local msh5 = Instance.new("BlockMesh")
  163. msh5.Parent = prt5
  164. msh5.Scale = Vector3.new(0.5,1,0.2)
  165. local msh6 = Instance.new("SpecialMesh")
  166. msh6.Parent = prt6
  167. msh6.Scale = Vector3.new(0.5,2,0.2)
  168. msh6.MeshType = "FileMesh"
  169. msh6.MeshId = "http://www.roblox.com/asset/?id=1778999"
  170. local shlmsh1 = Instance.new("CylinderMesh")
  171. shlmsh1.Parent = shell1
  172. shlmsh1.Scale = Vector3.new(0.4,1.1,0.4)
  173. local shlmsh2 = Instance.new("CylinderMesh")
  174. shlmsh2.Parent = shell2
  175. shlmsh2.Scale = Vector3.new(0.4,1.1,0.4)
  176. local shlmsh3 = Instance.new("CylinderMesh")
  177. shlmsh3.Parent = shell3
  178. shlmsh3.Scale = Vector3.new(0.4,1.1,0.4)
  179. local shlmsh4 = Instance.new("CylinderMesh")
  180. shlmsh4.Parent = shell4
  181. shlmsh4.Scale = Vector3.new(0.4,1.1,0.4)
  182.  
  183. local wld1 = Instance.new("Weld")
  184. wld1.Parent = freakinghandle
  185. wld1.Part0 = freakinghandle
  186. wld1.Part1 = Torso
  187. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.8) * CFrame.new(1,-1.7,-0.75)
  188. local wld = Instance.new("Weld")
  189. wld.Parent = prt1
  190. wld.Part0 = prt1
  191. wld.Part1 = freakinghandle
  192. wld.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  193. local wld2 = Instance.new("Weld")
  194. wld2.Parent = prt2
  195. wld2.Part0 = prt2
  196. wld2.Part1 = prt1
  197. wld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.2,0)
  198. local wld3 = Instance.new("Weld")
  199. wld3.Parent = prt3
  200. wld3.Part0 = prt3
  201. wld3.Part1 = prt2
  202. wld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.5,0)
  203. local wld4 = Instance.new("Weld")
  204. wld4.Parent = prt4
  205. wld4.Part0 = prt4
  206. wld4.Part1 = prt3
  207. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.3,0,0)
  208. local wld5 = Instance.new("Weld")
  209. wld5.Parent = prt5
  210. wld5.Part0 = prt3
  211. wld5.Part1 = prt5
  212. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.7,-0.5,0)
  213. local wld6 = Instance.new("Weld")
  214. wld6.Parent = prt6
  215. wld6.Part0 = prt6
  216. wld6.Part1 = prt5
  217. wld6.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180),0,0) * CFrame.new(0.3,0.7,0)
  218. local wld7 = Instance.new("Weld")
  219. wld7.Parent = shell1
  220. wld7.Part0 = shell1
  221. wld7.Part1 = prt4
  222. wld7.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.4,0,0)
  223. local wld8 = Instance.new("Weld")
  224. wld8.Parent = shell2
  225. wld8.Part0 = shell2
  226. wld8.Part1 = prt4
  227. wld8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0.4)
  228. local wld9 = Instance.new("Weld")
  229. wld9.Parent = shell3
  230. wld9.Part0 = shell3
  231. wld9.Part1 = prt4
  232. wld9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.4,0,0)
  233. local wld10 = Instance.new("Weld")
  234. wld10.Parent = shell4
  235. wld10.Part0 = shell4
  236. wld10.Part1 = prt4
  237. wld10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,-0.4)
  238.  
  239. if (script.Parent.className ~= "HopperBin") then
  240. Tool = Instance.new("HopperBin")
  241. Tool.Parent = Backpack
  242. Tool.Name = "GunSword"
  243. script.Parent = Tool
  244. end
  245. Bin = script.Parent
  246.  
  247. function unequipweld()
  248. wld1.Part1 = Torso
  249. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,-0.8) * CFrame.new(1,-1.7,-0.75)
  250. end
  251.  
  252. function equipweld()
  253. wld1.Part1 = LeftArm
  254. wld1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  255. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  256. end
  257.  
  258. function hideanim()
  259. for i = 0 , 1 , 0.07 do
  260. wait(0)
  261. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i+1,-1,0)
  262. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  263. end
  264. wait(0.1)
  265. unequipweld()
  266. wait(0.1)
  267. end
  268.  
  269. function equipanim()
  270. for i = 0 , 1 , 0.07 do
  271. wait(0)
  272. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(4*i,-1*i,0)
  273. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  274. end
  275. equipweld()
  276. wait(0.1)
  277. for i = 0 , 1 , 0.075 do
  278. wait(0)
  279. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-3*i+4,-1,0)
  280. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  281. end
  282. end
  283.  
  284. function oneslash()
  285. attack = true
  286. skill = true
  287. for i = 0 , 1 , 0.08 do
  288. wait(0)
  289. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2*i+1,1*i-1,0)
  290. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  291. end
  292. wait(0.2)
  293. ss(prt1,1)
  294. local con = prt5.Touched:connect(OT)
  295. local con2 = prt6.Touched:connect(OT)
  296. for i = 0 , 1 , 0.1 do
  297. wait(0)
  298. effect()
  299. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3.5*i-1,0,0)
  300. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  301. end
  302. con:disconnect()
  303. con2:disconnect()
  304. attack = false
  305. skill = false
  306. end
  307.  
  308. function twoslash()
  309. attack = true
  310. skill = true
  311. wait(0.2)
  312. ss(prt1,1)
  313. local con = prt5.Touched:connect(OT)
  314. local con2 = prt6.Touched:connect(OT)
  315. for i = 0 , 1 , 0.1 do
  316. wait(0)
  317. effect()
  318. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-3.5*i+3.5-1,0,0)
  319. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  320. end
  321. con:disconnect()
  322. con2:disconnect()
  323. attack = false
  324. skill = false
  325. end
  326.  
  327. function threeslash()
  328. attack = true
  329. skill = true
  330. for i = 0 , 1 , 0.08 do
  331. wait(0)
  332. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3.57*i-1,-math.rad(90)*i,0)
  333. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,-1*i)
  334. end
  335. wait(0.2)
  336. ss(prt1,1)
  337. local con = prt5.Touched:connect(OT)
  338. local con2 = prt6.Touched:connect(OT)
  339. for i = 0 , 1 , 0.1 do
  340. wait(0)
  341. effect()
  342. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3.57-1,-math.rad(90),0)
  343. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(180)*i,0,-1)
  344. end
  345. con:disconnect()
  346. con2:disconnect()
  347. attack = false
  348. skill = false
  349. end
  350.  
  351. function fourslash()
  352. attack = true
  353. skill = true
  354. for i = 0 , 1 , 0.08 do
  355. wait(0)
  356. LW.C0 = CFrame.new(-1.5, 0.5, 0.7*i) * CFrame.fromEulerAnglesXYZ(-1*i+2.57,math.rad(80)-math.rad(90),0)
  357. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(180)*i+math.rad(180),0,1*i-1)
  358. wld1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  359. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -1.3*i, -1.57) * CFrame.new(0, 1, 0)
  360. end
  361. ss(prt1,0.7)
  362. wait(0.2)
  363. local vel = Instance.new("BodyVelocity")
  364. vel.Parent = Torso
  365. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  366. vel.velocity = Player.Character.Torso.CFrame.lookVector * 70
  367. local con = prt5.Touched:connect(OT2)
  368. local con2 = prt6.Touched:connect(OT2)
  369. for i = 0 , 1 , 0.1 do
  370. wait(0)
  371. effect()
  372. LW.C0 = CFrame.new(-1.5, 0.5, -1.4*i+0.7) * CFrame.fromEulerAnglesXYZ(-1+2.57,math.rad(80)-math.rad(90),0)
  373. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(180)+math.rad(180),0,1-1)
  374. end
  375. vel:Remove()
  376. con:disconnect()
  377. con2:disconnect()
  378. attack = false
  379. skill = false
  380. end
  381.  
  382. function stab()
  383. attack = true
  384. skill = true
  385. for i = 0 , 1 , 0.1 do
  386. wait(0)
  387. LW.C0 = CFrame.new(1*i-1.5, 0.5, -1*i) * CFrame.fromEulerAnglesXYZ(1,1*i-0.5,0)
  388. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1*i,0,0)
  389. RW.C0 = CFrame.new(1.5, -0.3*i+0.5, -0.3*i) * CFrame.fromEulerAnglesXYZ(1*i,0,-1*i)
  390. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  391. end
  392. wait(0.2)
  393. ss(prt1,1)
  394. local con = prt5.Touched:connect(OT)
  395. local con2 = prt6.Touched:connect(OT)
  396. for i = 0 , 1 , 0.15 do
  397. wait(0)
  398. effect()
  399. LW.C0 = CFrame.new(1-1.5, 0.5, -2*i-1) * CFrame.fromEulerAnglesXYZ(1,1-0.5,0)
  400. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  401. RW.C0 = CFrame.new(1.5, -0.3+0.5, -0.3) * CFrame.fromEulerAnglesXYZ(1,-0.5*i,-1)
  402. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  403. end
  404. con:disconnect()
  405. con2:disconnect()
  406. for i = 0 , 1 , 0.15 do
  407. wait(0)
  408. effect()
  409. LW.C0 = CFrame.new(1-1.5, 0.5, 2*i-2-1) * CFrame.fromEulerAnglesXYZ(1,1-0.5,0)
  410. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  411. RW.C0 = CFrame.new(1.5, -0.3+0.5, -0.3) * CFrame.fromEulerAnglesXYZ(1,0.5*i-0.5,-1)
  412. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  413. end
  414. for i = 0 , 1 , 0.1 do
  415. wait(0)
  416. LW.C0 = CFrame.new(-1*i+1-1.5, 0.5, 1*i-1) * CFrame.fromEulerAnglesXYZ(1,-1*i+1-0.5,0)
  417. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1*i+1,0,0)
  418. RW.C0 = CFrame.new(1.5, 0.3*i-0.3+0.5, 0.3*i-0.3) * CFrame.fromEulerAnglesXYZ(-1*i+1,0,1*i-1)
  419. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  420. end
  421. attack = false
  422. skill = false
  423. end
  424.  
  425. function slashy()
  426. attack = true
  427. skill = true
  428. for i = 0 , 1 , 0.1 do
  429. wait(0)
  430. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,-1,0)
  431. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1*i,0,0)
  432. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  433. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  434. end
  435. ss(prt1,1)
  436. local con = prt5.Touched:connect(OT)
  437. local con2 = prt6.Touched:connect(OT)
  438. for i = 0 , 1 , 0.2 do
  439. wait(0)
  440. effect()
  441. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,-1,0)
  442. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(3*i-1,0,0)
  443. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  444. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  445. end
  446. con:disconnect()
  447. con2:disconnect()
  448. for i = 0 , 1 , 0.15 do
  449. wait(0)
  450. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2*i+1,1*i-1,0)
  451. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2*i+2,0,0)
  452. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  453. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  454. end
  455. ss(prt1,1)
  456. local con = prt5.Touched:connect(OT2)
  457. local con2 = prt6.Touched:connect(OT2)
  458. for i = 0 , 1 , 0.2 do
  459. wait(0)
  460. effect()
  461. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(4*i-1,0,0)
  462. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  463. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  464. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  465. end
  466. con:disconnect()
  467. con2:disconnect()
  468. for i = 0 , 1 , 0.1 do
  469. wait()
  470. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -math.rad(180)*i, -1.57) * CFrame.new(0, 1, 0)
  471. end
  472. ss(prt1,1)
  473. local con = prt5.Touched:connect(OT2)
  474. local con2 = prt6.Touched:connect(OT2)
  475. for i = 0 , 1 , 0.2 do
  476. wait(0)
  477. effect()
  478. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57*i+4-1,0,0)
  479. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  480. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  481. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  482. end
  483. con:disconnect()
  484. con2:disconnect()
  485. wait(0.3)
  486. for i = 0 , 1 , 0.1 do
  487. wait(0)
  488. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.57*i-1.57+4-1,0,0)
  489. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  490. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  491. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  492. end
  493. for i = 0 , 1 , 0.1 do
  494. wait()
  495. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -math.rad(180)*i-math.rad(180), -1.57) * CFrame.new(0, 1, 0)
  496. end
  497. for i = 0 , 1 , 0.1 do
  498. wait(0)
  499. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2*i+4-1,-1*i,0)
  500. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  501. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  502. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  503. end
  504. attack = false
  505. skill = false
  506. end
  507.  
  508. function jumplol()
  509. attack = true
  510. skill = true
  511. for i = 0 , 1 , 0.1 do
  512. wait(0)
  513. LW.C0 = CFrame.new(1*i-1.5, 0.5, -1*i) * CFrame.fromEulerAnglesXYZ(1,1*i-0.5,0)
  514. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1*i,0,0)
  515. RW.C0 = CFrame.new(1.5, -0.3*i+0.5, -0.3*i) * CFrame.fromEulerAnglesXYZ(1*i,0,-1*i)
  516. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  517. end
  518. ss(prt1,0.7)
  519. wait(0.2)
  520. local con = prt5.Touched:connect(OT2)
  521. local con2 = prt6.Touched:connect(OT2)
  522. local vel = Instance.new("BodyVelocity")
  523. vel.Parent = Torso
  524. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  525. vel.velocity = Player.Character.Torso.CFrame.lookVector * 70
  526. for i = 0 , 1 , 0.08 do
  527. wait(0)
  528. effect()
  529. LW.C0 = CFrame.new(1-1.5, 0.5, -2*i-1) * CFrame.fromEulerAnglesXYZ(1,1-0.5,0)
  530. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  531. RW.C0 = CFrame.new(1.5, -0.3+0.5, -0.3) * CFrame.fromEulerAnglesXYZ(1,-0.5*i,-1)
  532. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  533. end
  534. con:disconnect()
  535. con2:disconnect()
  536. vel:Remove()
  537. for i = 0 , 1 , 0.15 do
  538. wait(0)
  539. effect()
  540. LW.C0 = CFrame.new(1-1.5, 0.5, 2*i-2-1) * CFrame.fromEulerAnglesXYZ(1,1-0.5,0)
  541. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  542. RW.C0 = CFrame.new(1.5, -0.3+0.5, -0.3) * CFrame.fromEulerAnglesXYZ(1,0.5*i-0.5,-1)
  543. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  544. end
  545. for i = 0 , 1 , 0.1 do
  546. wait(0)
  547. LW.C0 = CFrame.new(-1*i+1-1.5, 0.5, 1*i-1) * CFrame.fromEulerAnglesXYZ(1,-1*i+1-0.5,0)
  548. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1*i+1,0,0)
  549. RW.C0 = CFrame.new(1.5, 0.3*i-0.3+0.5, 0.3*i-0.3) * CFrame.fromEulerAnglesXYZ(-1*i+1,0,1*i-1)
  550. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  551. end
  552. attack = false
  553. skill = false
  554. end
  555.  
  556. function lazershoot()
  557. attack = true
  558. skill = true
  559. if ammo > 0 then
  560. for i = 0 , 1 , 0.1 do
  561. wait(0)
  562. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-1*i+1,1*i-1,0)
  563. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  564. end
  565. uss(prt1,0.6)
  566. for i = 0 , 1 , 0.15 do
  567. wait(0)
  568. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,-3.3*i) * CFrame.new(1.4*i-0.7,-0.5,0)
  569. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2*i+1,0,0)
  570. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  571. end
  572. for i = 0 , 1 , 0.08 do
  573. wait(0)
  574. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(90)*i+3,0,0)
  575. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  576. wld1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  577. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -math.rad(90)*i, -1.57) * CFrame.new(0, 1, 0)
  578. end
  579. local blast = Instance.new("Part")
  580. blast.formFactor = 1
  581. blast.Reflectance = 0.1
  582. blast.Parent = modelzorz
  583. blast.CanCollide = false
  584. blast.BrickColor = BrickColor.new("Medium stone grey")
  585. blast.Name = "Blast"
  586. blast.Size = Vector3.new(1,1,1)
  587. blast.Position = Torso.Position
  588. local blstmsh = Instance.new("CylinderMesh")
  589. blstmsh.Parent = blast
  590. blstmsh.Scale = Vector3.new(0.4,1.1,0.4)
  591. local blstwld = Instance.new("Weld")
  592. blstwld.Parent = blast
  593. blstwld.Part0 = blast
  594. blstwld.Part1 = prt3
  595. for i = 0 , 1 , 0.08 do
  596. wait()
  597. blstwld.C0 = CFrame.new(0, 1*i, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  598. end
  599. bss(prt1,1)
  600. sss(prt1,1)
  601. local mesh = Instance.new("SpecialMesh")
  602. mesh.MeshType = "Sphere"
  603. local shell = Instance.new("Part")
  604. mesh.Parent = shell
  605. local smoke = Instance.new("Smoke")
  606. smoke.Color = Color3.new(0.1,0.1,0.1)
  607. smoke.Parent = shell
  608. shell.Anchored = true
  609. shell.formFactor = 1
  610. shell.Size = Vector3.new(1,1,1)
  611. shell.CFrame = blast.CFrame
  612. shell.Parent = modelzorz
  613. shell.Transparency = 0
  614. shell.Name = "ShellBlast"
  615. local wave = Instance.new("Part")
  616. wave.Anchored = true
  617. wave.formFactor = 1
  618. wave.Size = Vector3.new(1,1,1)
  619. wave.CFrame = blast.CFrame
  620. wave.Parent = modelzorz
  621. wave.Transparency = 0
  622. wave.Name = "WaveEffect"
  623. wave.BrickColor = BrickColor.new("White")
  624. local mesheh = Instance.new("SpecialMesh")
  625. mesheh.Parent = wave
  626. mesheh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  627. mesheh.Scale = Vector3.new(1,1,1)
  628. smoke.RiseVelocity = -10
  629. smoke.Size = 0.25
  630. shell.BrickColor = BrickColor.new("Bright yellow")
  631. local c = game.Workspace:GetChildren();
  632. for i = 1, #c do
  633. local hum = c[i]:findFirstChild("Humanoid")
  634. if hum ~= nil and hum.Health ~= 0 then
  635. local head = c[i]:findFirstChild("Head");
  636. if head ~= nil then
  637. local targ = head.Position - blast.Position;
  638. local mag = targ.magnitude;
  639. if mag <= 7.5 and c[i].Name ~= Player.Name then
  640. hum:TakeDamage(50)
  641. local torso = head.Parent:findFirstChild("Torso")
  642. if torso.Parent ~= nil then
  643. if (torso.Position-blast.Position).magnitude<=25 then
  644. local angle = (torso.Position-(blast.Position+Vector3.new(0,-3,0))).unit
  645. torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  646. local Gyro=Instance.new("BodyGyro")
  647. Gyro.P=1000
  648. Gyro.D=Gyro.D/2
  649. Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000
  650. Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  651. Gyro.Parent=torso
  652. local bodyVelocity=Instance.new("BodyVelocity")
  653. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  654. bodyVelocity.P=500
  655. bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003)
  656. bodyVelocity.Parent=torso
  657. coroutine.resume(coroutine.create(function()
  658. wait(0.3)
  659. bodyVelocity:Remove()
  660. end))
  661. coroutine.resume(coroutine.create(function()
  662. wait(0.8)
  663. Gyro:Remove()
  664. end))
  665. end
  666. end
  667. end
  668. end
  669. end
  670. end
  671. coroutine.resume(coroutine.create(function()
  672. for i = 0 , 1 , 0.09 do
  673. wait()
  674. mesh.Scale = Vector3.new(10*i,8*i,10*i)
  675. shell.Transparency = 1*i
  676. mesheh.Scale = Vector3.new(15*i,1,15*i)
  677. wave.Transparency = 1*i
  678. end
  679. shell.Transparency = 1
  680. wave.Transparency = 1
  681. wait(0.5)
  682. smoke.Enabled = false
  683. blast.Parent = nil
  684. wait(6)
  685. shell:Remove()
  686. wave:Remove()
  687. end))
  688. local vel = Instance.new("BodyVelocity")
  689. vel.Parent = Torso
  690. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  691. vel.velocity = Player.Character.Torso.CFrame.lookVector * -16
  692. for i = 0 , 1 , 0.08 do
  693. wait(0)
  694. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-math.rad(120)*i+math.rad(90),0,0)
  695. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  696. wld1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  697. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -math.rad(90), -1.57) * CFrame.new(0, 1, 0)
  698. end
  699. wait(0.5)
  700. vel:Remove()
  701. ammo = ammo - 1
  702. uss(prt1,0.6)
  703. for i = 0 , 1 , 0.15 do
  704. wait(0)
  705. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,3.3*i-3.3) * CFrame.new(-1.4*i+1.4-0.7,-0.5,0)
  706. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2*i+1,0,0)
  707. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  708. end
  709. for i = 0 , 1 , 0.15 do
  710. wait(0)
  711. wld1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  712. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), -math.rad(90)*i+math.rad(90), -1.57) * CFrame.new(0, 1, 0)
  713. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-2*i+3,-1*i,0)
  714. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  715. end
  716. wld5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-0.7,-0.5,0)
  717. if ammo == 3 then
  718. for i = 0 , 1 , 0.08 do
  719. wait()
  720. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(90)*i,0) * CFrame.new(-0.3,0,0)
  721. shell1.BrickColor = BrickColor.new("Black")
  722. end
  723. elseif ammo == 2 then
  724. for i = 0 , 1 , 0.08 do
  725. wait()
  726. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(90)*i+math.rad(90),0) * CFrame.new(-0.3,0,0)
  727. shell4.BrickColor = BrickColor.new("Black")
  728. end
  729. elseif ammo == 1 then
  730. for i = 0 , 1 , 0.08 do
  731. wait()
  732. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(90)*i+math.rad(180),0) * CFrame.new(-0.3,0,0)
  733. shell3.BrickColor = BrickColor.new("Black")
  734. end
  735. elseif ammo == 0 then
  736. for i = 0 , 1 , 0.08 do
  737. wait()
  738. wld4.C0 = CFrame.fromEulerAnglesXYZ(0,math.rad(90)*i+math.rad(270),0) * CFrame.new(-0.3,0,0)
  739. shell2.BrickColor = BrickColor.new("Black")
  740. end
  741. end
  742. elseif ammo == 0 then
  743. --[[for i = 0 , 1 , 0.15 do
  744. wait(0)
  745. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,-1,0)
  746. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  747. end]]
  748. rss(prt1,1)
  749. shell1.BrickColor = BrickColor.new("New Yeller")
  750. shell2.BrickColor = BrickColor.new("New Yeller")
  751. shell3.BrickColor = BrickColor.new("New Yeller")
  752. shell4.BrickColor = BrickColor.new("New Yeller")
  753. ammo = 4
  754. end
  755. attack = false
  756. skill = false
  757. end
  758.  
  759. function OT(hit)
  760. if hit.Parent == nil then return end
  761. local hum = hit.Parent:findFirstChild("Humanoid")
  762. if hum ~= nil and hum ~= Character.Humanoid then
  763. hum:TakeDamage(damage)
  764. end
  765.  
  766. end
  767.  
  768. function OT2(hit)
  769. if hit.Parent == nil then return end
  770. local hum = hit.Parent:findFirstChild("Humanoid")
  771. if hum ~= nil and hum ~= Character.Humanoid then
  772. hum:TakeDamage(damage - 2)
  773. local torso = hit.Parent:findFirstChild("Torso")
  774. if torso.Parent ~= nil then
  775. if (torso.Position-RightArm.Position).magnitude<=25 then
  776. local angle = (torso.Position-(RightArm.Position+Vector3.new(0,-3,0))).unit
  777. torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  778. local Gyro=Instance.new("BodyGyro")
  779. Gyro.P=1000
  780. Gyro.D=Gyro.D/2
  781. Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000
  782. Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  783. Gyro.Parent=torso
  784. local bodyVelocity=Instance.new("BodyVelocity")
  785. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  786. bodyVelocity.P=500
  787. bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003)
  788. bodyVelocity.Parent=torso
  789. coroutine.resume(coroutine.create(function()
  790. wait(0.3)
  791. bodyVelocity:Remove()
  792. end))
  793. coroutine.resume(coroutine.create(function()
  794. wait(0.8)
  795. Gyro:Remove()
  796. end))
  797. end
  798. end
  799. end
  800. end
  801.  
  802. function OTeh(hit)
  803. if hit.Parent == nil then return end
  804. local hum = hit.Parent:findFirstChild("Humanoid")
  805. if hum ~= nil and hum ~= Character.Humanoid then
  806. hum:TakeDamage(damage)
  807. local torso = hit.Parent:findFirstChild("Head")
  808. local hedz = hit.Parent:findFirstChild("Torso")
  809. if torso.Parent ~= nil then
  810. --if (torso.Position-hedz.Position).magnitude<=25 then
  811. local angle = (torso.Position-(hedz.Position+Vector3.new(0,-3,0))).unit
  812. torso.CFrame=CFrame.new(torso.Position,Vector3.new(angle.x,torso.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  813. local Gyro=Instance.new("BodyGyro")
  814. Gyro.P=1000
  815. Gyro.D=Gyro.D/2
  816. Gyro.maxTorque=Vector3.new(30000,30000,30000)*300000
  817. Gyro.cframe=torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  818. Gyro.Parent=torso
  819. local bodyVelocity=Instance.new("BodyVelocity")
  820. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  821. bodyVelocity.P=500
  822. bodyVelocity.maxForce=Vector3.new(4e+003, 4e+003, 4e+003)
  823. bodyVelocity.Parent=torso
  824. coroutine.resume(coroutine.create(function()
  825. wait(0.3)
  826. bodyVelocity:Remove()
  827. end))
  828. coroutine.resume(coroutine.create(function()
  829. wait(0.8)
  830. Gyro:Remove()
  831. end))
  832. --end
  833. end
  834. end
  835. end
  836.  
  837.  
  838. function ss(parent,pitch)
  839.  
  840. local SlashSound = Instance.new("Sound")
  841. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  842. SlashSound.Parent = parent
  843. SlashSound.Volume = .7
  844. SlashSound.Pitch = pitch
  845. SlashSound:play()
  846. coroutine.resume(coroutine.create(function()
  847. wait(1)
  848. SlashSound.Parent = nil
  849. end))
  850. end
  851. function rss(parent,pitch)
  852.  
  853. local SlashSound = Instance.new("Sound")
  854. SlashSound.SoundId = "http://roblox.com/asset/?id=10209902"
  855. SlashSound.Parent = parent
  856. SlashSound.Volume = 1
  857. SlashSound.Pitch = pitch
  858. SlashSound:play()
  859. coroutine.resume(coroutine.create(function()
  860. wait(1)
  861. SlashSound.Parent = nil
  862. end))
  863. end
  864. function sss(parent,pitch)
  865.  
  866. local SlashSound = Instance.new("Sound")
  867. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  868. SlashSound.Parent = parent
  869. SlashSound.Volume = .7
  870. SlashSound.Pitch = pitch
  871. SlashSound:play()
  872. coroutine.resume(coroutine.create(function()
  873. wait(1)
  874. SlashSound.Parent = nil
  875. end))
  876. end
  877. function bss(parent,pitch)
  878.  
  879. local boomSound = Instance.new("Sound")
  880. boomSound.SoundId = "http://www.roblox.com/asset/?id=2974000"
  881. boomSound.Parent = parent
  882. boomSound.Volume = 1
  883. boomSound.Pitch = 1
  884. boomSound:play()
  885. local boomSound2 = Instance.new("Sound")
  886. boomSound2.SoundId = "http://www.roblox.com/asset/?id=2691586"
  887. boomSound2.Parent = parent
  888. boomSound2.Volume = 0.7
  889. boomSound2.Pitch = pitch
  890. boomSound2:play()
  891. coroutine.resume(coroutine.create(function()
  892. wait(5)
  893. boomSound.Parent = nil
  894. end))
  895. coroutine.resume(coroutine.create(function()
  896. wait(5)
  897. boomSound2.Parent = nil
  898. end))
  899. end
  900. function uss(parent,pitch)
  901.  
  902. local SlashSound = Instance.new("Sound")
  903. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  904. SlashSound.Parent = parent
  905. SlashSound.Volume = .7
  906. SlashSound.Pitch = pitch
  907. SlashSound:play()
  908. coroutine.resume(coroutine.create(function()
  909. wait(1)
  910. SlashSound.Parent = nil
  911. end))
  912. end
  913. function tss(parent,pitch)
  914.  
  915. so=Instance.new("Sound")
  916. so.Name="ZAP"
  917. so.Parent = parent
  918. so.Volume = 1
  919. so.Pitch = pitch
  920. so.SoundId="http://www.roblox.com/asset/?id=2974000"
  921. so:play()
  922. coroutine.resume(coroutine.create(function()
  923. wait(1)
  924. so.Parent = nil
  925. end))
  926. end
  927. function fss(parent,pitch)
  928.  
  929. local SlashSound = Instance.new("Sound")
  930. SlashSound.SoundId = "http://roblox.com/asset/?id=10209908"
  931. SlashSound.Parent = parent
  932. SlashSound.Volume = .7
  933. SlashSound.Pitch = pitch
  934. SlashSound:play()
  935. coroutine.resume(coroutine.create(function()
  936. wait(1)
  937. SlashSound.Parent = nil
  938. end))
  939. end
  940.  
  941.  
  942. function effect()
  943. local clone = prt5:clone()
  944. clone.Parent = workspace
  945. clone.Anchored = true
  946. clone.Weld:remove()
  947. clone.CanCollide = false
  948. clone.Transparency = 0.5
  949. clone.Reflectance = 0
  950. clone.Mesh.Scale = clone.Mesh.Scale + Vector3.new(0.1,0.1,0.1)
  951. clone.BrickColor = BrickColor.new("New Yeller")
  952. coroutine.resume(coroutine.create(function()
  953. wait(0.25)
  954. clone.Parent = nil
  955. end))
  956. local clone = prt6:clone()
  957. clone.Parent = workspace
  958. clone.Anchored = true
  959. clone.Weld:remove()
  960. clone.Transparency = 0.5
  961. clone.Reflectance = 0
  962. clone.Mesh.Scale = clone.Mesh.Scale + Vector3.new(0.1,0.1,0.1)
  963. clone.BrickColor = BrickColor.new("New Yeller")
  964. coroutine.resume(coroutine.create(function()
  965. wait(0.25)
  966. clone.Parent = nil
  967. end))
  968. end
  969.  
  970. hold = false
  971.  
  972. function ob1d(mouse)
  973. hold = true
  974. oneslash()
  975. if hold == true then
  976. twoslash()
  977. end
  978. if hold == true then
  979. threeslash()
  980. end
  981. if hold == true then
  982. fourslash()
  983. end
  984. wait(0.5)
  985. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1,-1,0)
  986. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  987. wld1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  988. wld1.C0 = CFrame.fromEulerAnglesXYZ(-math.rad(90), 0, -1.57) * CFrame.new(0, 1, 0)
  989. end
  990.  
  991. function ob1u(mouse)
  992. hold = false
  993. end
  994.  
  995. buttonhold = false
  996.  
  997. function key(key)
  998. if attack == true then return end
  999. if key == "q" then
  1000. stab()
  1001. end
  1002. if key == "e" then
  1003. slashy()
  1004. end
  1005. if key == "r" then
  1006. jumplol()
  1007. end
  1008. if key == "t" then
  1009.  
  1010. end
  1011. if key == "f" then
  1012. lazershoot()
  1013. end
  1014. if key == "g" then
  1015.  
  1016. end
  1017. if key == "z" then
  1018.  
  1019. end
  1020. if key == "x" then
  1021.  
  1022. end
  1023. if key == "c" then
  1024.  
  1025. end
  1026. if key == "h" then
  1027.  
  1028. end
  1029. if key == "j" then
  1030.  
  1031. end
  1032. if key == "k" then
  1033.  
  1034. end
  1035. end
  1036.  
  1037. function key2(key)
  1038. charging2 = false
  1039. end
  1040.  
  1041. function s(mouse)
  1042. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1043. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1044. mouse.KeyDown:connect(key)
  1045. mouse.KeyUp:connect(key2)
  1046. unsheathed = true
  1047. player = Player
  1048. ch = Character
  1049. RSH = ch.Torso["Right Shoulder"]
  1050. LSH = ch.Torso["Left Shoulder"]
  1051. --
  1052. RSH.Parent = nil
  1053. LSH.Parent = nil
  1054. --
  1055. RW.Part0 = ch.Torso
  1056. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1057. RW.C1 = CFrame.new(0, 0.5, 0)
  1058. RW.Part1 = ch["Right Arm"]
  1059. RW.Parent = ch.Torso
  1060. --_G.R = RW
  1061. --
  1062. LW.Part0 = ch.Torso
  1063. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1064. LW.C1 = CFrame.new(0, 0.5, 0)
  1065. LW.Part1 = ch["Left Arm"]
  1066. LW.Parent = ch.Torso
  1067. --_G.L = LW
  1068. --
  1069. equipanim()
  1070. end
  1071.  
  1072. function ds(mouse)
  1073. unsheathed = false
  1074. guardy = false
  1075. hideanim()
  1076. RW.Parent = nil
  1077. LW.Parent = nil
  1078. RSH.Parent = player.Character.Torso
  1079. LSH.Parent = player.Character.Torso
  1080. end
  1081.  
  1082. Bin.Selected:connect(s)
  1083. Bin.Deselected:connect(ds)
  1084.  
  1085. function onRunning(speed)
  1086. wait()
  1087. end
  1088. Character.Humanoid.Running:connect(onRunning)
  1089. local target = Instance.new("Part")
  1090. wait(1)
  1091. -- lego This acts as a chat filter. Don't ask why I do it. I just do >.>
  1092. --[[
  1093. Copyrighted (C) Fenrier 2011
  1094. This script is copyrighted for Fenrier. Any use of this script is breaking
  1095. this copyright.
  1096. All Rights Reserved.
  1097. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement