Advertisement
memberhero

Gun Lance

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