Advertisement
ajcooper2003

Untitled

Feb 14th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.17 KB | None | 0 0
  1. i = 1
  2. Sheathed = true
  3. keys = {}
  4. Me = game:service("Players").LocalPlayer
  5. Mouse = Me:GetMouse()
  6. char = Me.Character
  7. la = char['Left Arm']
  8. ra = char['Right Arm']
  9. trs = char.Torso
  10. anim = false
  11. ninja = false
  12. if ninja then
  13. game.Players.LocalPlayer.Character.Head.face.Texture = 'rbxassetid://24478301'
  14. for i,x in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  15. if x.ClassName == 'Part' then x.BrickColor = BrickColor.new('Persimmon')
  16. end
  17. end
  18. end
  19. eClrs = {BrickColor.new('Persimmon'), BrickColor.new('Bright red')}
  20. local welds = Instance.new('Folder',game.Players.LocalPlayer.Character.Head)
  21.  
  22. function weld(p1,p2)
  23. local w = Instance.new('Weld',welds)
  24. w.Part0=p1
  25. w.Part1=p2
  26. w.C0=p1.CFrame:inverse()
  27. w.C1=p2.CFrame:inverse()
  28. p1.Anchored = false
  29. p2.Anchored = false
  30. end
  31. rs = trs['Right Shoulder']
  32. ls = trs['Left Shoulder']
  33. local a = Instance.new('Part',game.Players.LocalPlayer.Character)
  34. a.Material = 'Neon'
  35. a.BrickColor = eClrs[1]
  36. a.Size = Vector3.new(1,.2,.9)
  37. a.Anchored = true
  38. a.CanCollide = false
  39. a.CFrame = game.Players.LocalPlayer.Character['Right Arm'].CFrame * CFrame.new(0,.91,0) * CFrame.Angles(math.rad(180),math.rad(180),0)
  40. weld(a,game.Players.LocalPlayer.Character['Right Arm'])
  41. a.TopSurface = 'Smooth'
  42. a.BottomSurface = 'Smooth'
  43. local b = Instance.new('Part',game.Players.LocalPlayer.Character)
  44. b.Material = 'Neon'
  45. b.BrickColor = eClrs[1]
  46. b.Size = Vector3.new(.2,2,1.2)
  47. b.Anchored = true
  48. b.CanCollide = false
  49. b.CFrame = a.CFrame * CFrame.new(-.49,.9,0)
  50. weld(b,a)
  51. local c = Instance.new('WedgePart',game.Players.LocalPlayer.Character)
  52. c.Material = 'Neon'
  53. c.BrickColor = eClrs[1]
  54. c.Size = Vector3.new(.2,2,1)
  55. c.Anchored = true
  56. c.CanCollide = false
  57. c.CFrame = a.CFrame * CFrame.new(0,.9,.49) * CFrame.Angles(0,math.rad(-90),0)
  58. weld(c,a)
  59. local d = Instance.new('WedgePart',game.Players.LocalPlayer.Character)
  60. d.Material = 'Neon'
  61. d.BrickColor = eClrs[1]
  62. d.Size = Vector3.new(.2,2,1)
  63. d.Anchored = true
  64. d.CanCollide = false
  65. d.CFrame = a.CFrame * CFrame.new(0,.9,-.49) * CFrame.Angles(0,math.rad(-90),0)
  66. weld(d,a)
  67. local e = Instance.new('Part',game.Players.LocalPlayer.Character)
  68. e.Material = 'Neon'
  69. e.BrickColor = eClrs[2]
  70. e.Size = Vector3.new(1,1,1.2)
  71. e.Anchored = true
  72. e.CanCollide = false
  73. e.CFrame = game.Players.LocalPlayer.Character['Right Arm'].CFrame * CFrame.new(0,.545,0)
  74. weld(e,a)
  75. local m = Instance.new('SpecialMesh',e)
  76. m.MeshType = 'Brick'
  77. m.Scale = Vector3.new(.08,1,1)
  78. local f = Instance.new('Part',game.Players.LocalPlayer.Character)
  79. f.Material = 'Neon'
  80. f.BrickColor = eClrs[2]
  81. f.Size = Vector3.new(.5,1.25,1.2)
  82. f.Anchored = true
  83. f.CanCollide = false
  84. f.CFrame = game.Players.LocalPlayer.Character['Right Arm'].CFrame * CFrame.new(.25,.4,0)
  85. weld(f,a)
  86. local m = Instance.new('SpecialMesh',f)
  87. m.MeshType = 'Brick'
  88. m.Scale = Vector3.new(.16,1,1)
  89. local g = Instance.new('Part',game.Players.LocalPlayer.Character)
  90. g.Material = 'Neon'
  91. g.BrickColor = eClrs[2]
  92. g.Shape = 'Cylinder'
  93. g.Size = Vector3.new(.2,.5,.5)
  94. g.Anchored = true
  95. g.CanCollide = false
  96. g.CFrame = a.CFrame * CFrame.new(-.59,.6,0) * CFrame.Angles(0,math.rad(90),0)
  97. local m = Instance.new('SpecialMesh',g)
  98. m.MeshId = 'rbxassetid://47260990'
  99. m.Scale = Vector3.new(.8,.8,.8)
  100. weld(g,a)
  101.  
  102. Char = Me.Character
  103. Mode={"BloodLust","Normal"}
  104. DTable={}
  105. Combo = 0
  106. Name=" "
  107. PrimaryColor = eClrs[1]
  108. SecondaryColor= eClrs[2]
  109. pcall(function() Char:FindFirstChild("WepModel"):Destroy() Me.Backpack:FindFirstChild(Name):Destroy() end)
  110. Activated = false
  111. Sheathed = true
  112. Dashing = false
  113. Selected = false
  114. ADB=false
  115. DiffColor = false
  116. Camera=game:service("Workspace").CurrentCamera
  117. LeftArm = Char["Left Arm"]
  118. RightArm = Char["Right Arm"]
  119. HRP = Char.HumanoidRootPart["RootJoint"]
  120. SavedRoot = HRP.C0
  121. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  122. if script.Parent.className ~= "HopperBin" then
  123. h = Instance.new("HopperBin", Me.Backpack)
  124. h.TextureId = 'rbxassetid://11561285'
  125. h.Name = Name
  126. script.Name = "''"
  127. script.Parent = h
  128. end
  129. bin = script.Parent
  130. local WepModel = Instance.new("Model", Char)
  131. WepModel.Name = "WepModel"
  132. local Debz = game:service("Debris")
  133. ------[[ Create Function ]]------
  134. Create = {}
  135. function Create:Part(parent, x,y,z, color, transparency, cancollide, anchored, shape)
  136. c = Instance.new("Part",parent)
  137. c.Material = "Neon"
  138. if shape ~= nil then
  139. c.Shape = shape
  140. end
  141. c.TopSurface,c.BottomSurface = 0,0
  142. c.Locked = true
  143. c.formFactor = "Custom"
  144. c.Size = Vector3.new(x,y,z)
  145. if color ~= "random" then
  146. c.BrickColor = color
  147. else c.BrickColor = BrickColor:Random() end
  148. c.Transparency = transparency
  149. c.CanCollide = cancollide
  150. if anchored ~= nil then c.Anchored = anchored end
  151. if parent ~= nil then c.Parent = parent end
  152. return c
  153. end;
  154. function Create:BG(parent)
  155. local c = Instance.new("BodyGyro",parent)
  156. c.P = 20e+003
  157. c.cframe = parent.CFrame
  158. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  159. return c
  160. end;
  161. function Create:BP(parent, pos)
  162. local bp = Instance.new("BodyPosition",parent)
  163. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  164. bp.position = pos
  165. return bp
  166. end;
  167. function Create:F(parent, size, heat, color, secondarycolor, enabled)
  168. f = Instance.new("Fire",parent)
  169. f.Size = size
  170. f.Heat = heat
  171. if enabled ~= nil then f.Enabled = enabled end
  172. if eClrs[1] ~= nil then f.Color = eClrs[1].Color end
  173. if eClrs[2] ~= nil then f.SecondaryColor = eClrs[2].Color end
  174. return f
  175. end;
  176. function Create:FM(parent, meshid, x,y,z, meshtexture)
  177. if meshid == "cylinder" then
  178. mesh = Instance.new("CylinderMesh",parent)
  179. mesh.Scale = Vector3.new(x,y,z)
  180. return mesh
  181. else
  182. mesh = Instance.new("SpecialMesh",parent)
  183. if meshid ~= "sphere" then
  184. if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
  185. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  186. end
  187. else mesh.MeshType = 3 end
  188. mesh.Scale = Vector3.new(x,y,z)
  189. if meshtexture ~= nil then
  190. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  191. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  192. end
  193. return mesh
  194. end
  195. end
  196. function Create:Weld(parent,P0,P1,nam,c0,c1)
  197. Weld = Instance.new("Weld",parent)
  198. if P0 then Weld.Part0 = P0 else error("Invalid Part0",2) end
  199. if P1 then Weld.Part1 = P1 else print("Invalid Part1") end
  200. if name then Weld.Name = nam else Weld.Name = "Weld" end
  201. if c0 then Weld.C0 = c0 else print("Invalid C0") end
  202. if c1 then Weld.C1 = c1 else Weld.C1 = CFrame.new(0,0.5,0) end
  203. return Weld
  204. end
  205. M = {["Cos"] = function(a) return math.cos(a) end;
  206. ["Sin"] = function(a) return math.sin(a) end;
  207. ["Rad"] = function(a) return math.rad(a) end}
  208. L0L=Create:Part(WepModel,1,1,1,eClrs[1],1,false,false)
  209. L0LWeld=Create:Weld(L0L,Char.Torso,L0L,"L0LWeld",CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,math.rad(-90),math.rad(90)),CFrame.new(0,-0.951,0))
  210. coroutine.wrap(function()
  211. for i = 0,1,1/50 do wait()
  212. angle = math.rad(360*i)
  213. end
  214. end)()
  215. local Delete = function(parent,time)
  216. if time then
  217. Debz:AddItem(parent,time)
  218. else
  219. parent:Destroy()
  220. end end
  221.  
  222. Handle = Create:Part(WepModel,1,1,1,eClrs[1],0,false,false)
  223. Instance.new("BlockMesh",Handle).Scale = Vector3.new(0.2,1.15,0.275)
  224. HandleWeld=Create:Weld(Handle,Char.Torso,Handle,"HandleWeld",CFrame.new(1.5,1.8,0.65)*CFrame.fromEulerAnglesXYZ(0,0,math.pi/-4.75))
  225. Hitbox = Create:Part(WepModel,1,6,0.5,eClrs[1],1,false,false)
  226. Hitbox.Name = "Hitbox"
  227. Instance.new("BlockMesh", Hitbox)
  228. BoxWeld=Create:Weld(Hitbox,Handle,Hitbox,"Boxweld",CFrame.new(0,-2.5,0),CFrame.new(0,-0.25,0))
  229. Sheath = Create:Part(WepModel,1,1,1,eClrs[1],0,false,false)
  230. Instance.new("BlockMesh",Sheath).Scale = Vector3.new(0.3,3,0.3)
  231. SheathWeld=Create:Weld(Char.Torso,Char.Torso,Sheath,"SheathWeld",CFrame.new(0.25,-0.1,0.65)*CFrame.fromEulerAnglesXYZ(0,0,math.pi/-4.75),CFrame.new(0.2,0.5,0))
  232. for i = 1,6 do
  233. Boxes = Create:Part(WepModel,1,1,1,eClrs[2],0,false,false)
  234. Instance.new("BlockMesh",Boxes).Scale = Vector3.new(0.225,0.2,0.31)
  235. BoxesWeld=Create:Weld(Boxes,Char.Torso,Boxes,"BoxesWeld",CFrame.new(1.95,0,0.65)*CFrame.fromEulerAnglesXYZ(0,0,math.pi/-4.75),CFrame.new(1.55,i*0.5,0))
  236. end
  237. SheathTip = Create:Part(WepModel,1,1,1,eClrs[1],0,false,false)
  238. SheathMesh = Instance.new("SpecialMesh", SheathTip)
  239. SheathMesh.MeshType = "Wedge"
  240. SheathMesh.Scale = Vector3.new(0.3,0.75,0.3)
  241. SheathTipWeld=Create:Weld(Char.Torso,Sheath,SheathTip,"SheathTipWeld",CFrame.new(0.25,-2,0.65)*CFrame.fromEulerAnglesXYZ(0,math.pi/2,3.15),CFrame.new(0.65,0.14,0.25))
  242. print(SheathTip.Position,SheathTip.Transparency)
  243. HandleBase = Create:Part(WepModel,1,1,1,eClrs[1],0,false,false)
  244. Instance.new("BlockMesh",HandleBase).Scale = Vector3.new(0.45,0.25,0.45)
  245. HandleBaseWeld=Create:Weld(HandleBase,Handle,HandleBase,"HandleBaseWeld",CFrame.new(0,-0.175,0))
  246. Blade = Create:Part(WepModel,1,1,1,eClrs[2],0,false,false)
  247. Instance.new("BlockMesh",Blade).Scale = Vector3.new(0.2,3,0.155)
  248. BladeWeld=Create:Weld(Blade,Handle,Blade,"BladeWeld",CFrame.new(0,-1.75,0))
  249. Blade2 = Create:Part(WepModel,1,1,1,eClrs[1],0,false,false)
  250. Instance.new("BlockMesh",Blade2).Scale = Vector3.new(0.1,3,0.156)
  251. Blade2Weld=Create:Weld(Blade2,Handle,Blade2,"Blade2Weld",CFrame.new(0,-1.75,0))
  252. Tip = Create:Part(WepModel,1,1,1,eClrs[2],0,false,false)
  253. TipMesh = Instance.new("SpecialMesh", Tip)
  254. TipMesh.MeshType = "Wedge"
  255. TipMesh.Scale = Vector3.new(0.155,0.5,0.2)
  256. TipWeld=Create:Weld(Tip,Handle,Tip,"TipWeld",CFrame.new(0,-4.5,0)*CFrame.fromEulerAnglesXYZ(0,math.pi/2,3.15),CFrame.new(0.01,0.5,0))
  257. Tip2 = Create:Part(WepModel,1,1,1,eClrs[1],0,false,false)
  258. Tip2Mesh = Instance.new("SpecialMesh", Tip2)
  259. Tip2Mesh.MeshType = "Wedge"
  260. Tip2Mesh.Scale = Vector3.new(0.16,0.3,0.1)
  261. Tip2Weld=Create:Weld(Tip2,Handle,Tip2,"Tip2Weld",CFrame.new(0,-4.4,0)*CFrame.fromEulerAnglesXYZ(0,math.pi/2,3.15),CFrame.new(0.01,0.5,0))
  262. function Dash()
  263. repeat
  264. repeat wait() until not Dashing
  265. Dashing = true
  266. DBounce=true
  267. playSound(153092348,Hitbox,1,1)
  268. local vel = Instance.new("BodyVelocity", Char.Torso)
  269. vel.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  270. coroutine.resume(coroutine.create(function()
  271. while Dashing == true do wait()
  272. vel.velocity = Char.Head.CFrame.lookVector * 70
  273. Effect(Char.Torso, 1,0.5,1, 0,0,1, 0,0,0,eClrs[1],true, 20329976,Char.Torso.CFrame*CFrame.new(0,-2.75,0).p)
  274. end
  275. end))
  276. wait(2)
  277. vel:remove()
  278. Dashing = false
  279. DBounce=false
  280. until not keys['x']
  281. end
  282. --Sound Func
  283. function playSound(id,parent,volume,pitch)
  284. local sound = Instance.new("Sound",parent or workspace)
  285. sound.SoundId = "http://www.roblox.com/asset?id="..id
  286. sound.Volume = volume or 1
  287. sound.Pitch = pitch or 1
  288. coroutine.wrap(function()
  289. wait()
  290. sound:Play()
  291. wait(10)
  292. sound:Stop()
  293. sound:Destroy()
  294. end)()
  295. return sound
  296. end
  297. --Play Sound
  298. function Shoot()
  299. Activated = true
  300. Charging = true
  301. Idle()
  302. StartTrail(Tip)
  303. for i = 0,1,0.1 do wait()
  304. RW.C0 = CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.5,0,0)
  305. RW.C1 = CFrame.new(0.1,0.4,0)*CFrame.fromEulerAnglesXYZ(0,-i*1.575,i*0.15)
  306. end
  307. coroutine.wrap(function()
  308. while Charging == true do wait()
  309. Effect2(Tip,0.4,0.4,0.4,0,0,0,eClrs[2])
  310. end
  311. end)()
  312. end
  313. function FirstSlash()
  314. playSound(10209645,Hitbox,1,1)
  315. Activated = true
  316. Combo = 1
  317. StartTrail(Tip)
  318. pcall(function() Hitdmg=Hitbox.Touched:connect(function(hit) Damage(hit, math.random(25,49), hit.CFrame.p) end) end)
  319. Walk()
  320. for i = 0,1,0.175 do wait()
  321. LW.C1 = CFrame.new(0,0.5,0)*CFrame.fromEulerAnglesXYZ(0,0,i*0.3)
  322. RW.C1 = CFrame.new(0.1,0.4,0)*CFrame.fromEulerAnglesXYZ(i*2.15,i*-0.75,i*-1.5)
  323. HRP.C0 = SavedRoot*CFrame.fromEulerAnglesXYZ(0,0,i*2)
  324. Char.Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,-1.45*i)
  325. end
  326. EndTrail()
  327. Hitdmg:disconnect(wait(0.1))
  328. Activated = false
  329. end
  330. function SecondSlash()
  331. playSound(10209645,Hitbox,1,1.2)
  332. Activated = true
  333. Combo = 2
  334. StartTrail(Tip)
  335. pcall(function() Hitdmg=Hitbox.Touched:connect(function(hit) Damage(hit, math.random(25,49), hit.CFrame.p) end) end)
  336. for i = 0,1,0.2 do wait()
  337. RW.C0 = CFrame.new(1.45,0.4,0)*CFrame.fromEulerAnglesXYZ(1.5,0,0)
  338. RW.C1 = CFrame.new(0.1,0.4,0)*CFrame.fromEulerAnglesXYZ(0,-i*1.5,0)
  339. end
  340. for i = 0,1,0.2 do wait()
  341. Char.Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0.725*i)
  342. RW.C1 = CFrame.new(0,0.4,0)*CFrame.fromEulerAnglesXYZ(0,-1.5,i*-1.5)
  343. HRP.C0 = HRP.C1*CFrame.fromEulerAnglesXYZ(0,0,i*-0.875)
  344. end
  345. EndTrail()
  346. Hitdmg:disconnect(wait(0.1))
  347. Activated = false
  348. end
  349. function ThirdSlash()
  350. playSound(10209645,Hitbox,1,1.3)
  351. Activated=true
  352. Combo=3
  353. StartTrail(Tip)
  354. for i = 0,1,0.2 do wait()
  355. HRP.C1 = HRP.C1*CFrame.fromEulerAnglesXYZ(0,0,i*-0.25)
  356. RW.C0 = CFrame.new(1.45,0.4,0)*CFrame.fromEulerAnglesXYZ(1.5,0,0)
  357. RW.C1 = CFrame.new(0,i,-0.15)*CFrame.fromEulerAnglesXYZ(i*-1.05,0,i*0.85)
  358. LW.C0 = CFrame.new(-1.45,0.4,0)*CFrame.fromEulerAnglesXYZ(1.5,0,0)
  359. LW.C1 = CFrame.new(0,i,-0.15)*CFrame.fromEulerAnglesXYZ(i*-1.05,0,i*-0.85)
  360. Char.Torso.Neck.C0=necko
  361. HandleWeld.C0 = CFrame.new(0,-1.075,0.6)*CFrame.fromEulerAnglesXYZ(math.rad(45/2),math.rad(90),math.rad(69))
  362. HandleWeld.C1 = CFrame.new(0,0.3,0.25)*CFrame.Angles(math.rad(-40),math.rad(-12),math.rad(-10))
  363. end
  364. pcall(function() Hitdmg=Hitbox.Touched:connect(function(hit) Damage(hit, math.random(20,35), hit.CFrame.p,0)
  365. if hit:IsA("Part") then
  366. local evel = Instance.new("BodyVelocity", hit)
  367. evel.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  368. evel.velocity = Char.Torso.CFrame.lookVector * 100
  369. Delete(evel,0.025)
  370. end end) end)
  371. for i = 0,1,0.2 do wait()
  372. RW.C1 = RW.C1*CFrame.new(0,-0.05,0)*CFrame.fromEulerAnglesXYZ(i*0.75,0,0)
  373. LW.C1 = LW.C1*CFrame.new(0,-0.05,0)*CFrame.fromEulerAnglesXYZ(i*0.75,0,0)
  374. end
  375. Hitdmg:disconnect(wait(0.1))
  376. EndTrail()
  377. Activated=false
  378. end
  379. function BDown()
  380. if Activated then return end
  381. if Combo == 0 then
  382. FirstSlash()
  383. coroutine.wrap(function()
  384. wait(0.2)
  385. if Activated == false then
  386. Combo = 0
  387. end
  388. end)()
  389. elseif Combo == 1 then
  390. SecondSlash()
  391. coroutine.wrap(function()
  392. wait(0.2)
  393. if Activated == false then
  394. Combo = 0
  395. end
  396. end)()
  397. elseif Combo == 2 then
  398. ThirdSlash()
  399. coroutine.wrap(function()
  400. wait(0.2)
  401. if Activated == false then
  402. Combo = 0
  403. end
  404. end)()
  405. end
  406. end
  407. function key(key)
  408. keys[key] = true
  409. if Activated then return end
  410. if key == "x" and not DBounce then
  411. Dash()
  412. end
  413. end
  414. function Walk()
  415. Camera.CameraSubject=Char.Humanoid
  416. Char.Humanoid.WalkSpeed = 25
  417. RW.C0 = CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(3.45,0,-0.2)
  418. RW.C1 = CFrame.new(0,0.35,0)*CFrame.fromEulerAnglesXYZ(3.5,0.5,0.9)
  419. LW.C0 = CFrame.new(-1.4,0.45,0)*CFrame.fromEulerAnglesXYZ(0.4,0.25,-0.5)
  420. LW.C1 = CFrame.new(0,0.5,0)
  421. HRP.C0 = SavedRoot*CFrame.fromEulerAnglesXYZ(0,0,-1.5)
  422. HRP.C1=CFrame.new(0,0,0,-1,-0,-0,0,0,1,0,1,0)
  423. Char.Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,1.5)
  424. HandleWeld.Part0 = RightArm
  425. HandleWeld.C0 = CFrame.new(0,-1.075,0.5)*CFrame.fromEulerAnglesXYZ(math.pi/2,math.pi/2,0)
  426. HandleWeld.C1 = CFrame.new(0,0.5,0)
  427. HandleWeld.Part1 = Handle
  428. end
  429.  
  430. function Idle()
  431. if RW and LW then
  432. RW.Part0 = Char.Torso
  433. RW.C0 = CFrame.new(1.5, 0.5, -0)*CFrame.fromEulerAnglesXYZ(0,0,0.2)
  434. RW.C1 = CFrame.new(0, 0.5, 0)
  435. RW.Part1 = RightArm
  436. LW.Part0 = Char.Torso
  437. LW.C0 = CFrame.new(-1.5, 0.5, 0)*CFrame.fromEulerAnglesXYZ(0,0,-0.2)
  438. LW.C1 = CFrame.new(0, 0.5, 0)
  439. LW.Part1 = LeftArm
  440. Char.Torso.Neck.C0=necko
  441. Camera.CameraSubject=Char.Humanoid
  442. HRP.C0=SavedRoot
  443. HRP.C1=CFrame.new(0,0,0,-1,-0,-0,0,0,1,0,1,0)
  444. Char.Humanoid.WalkSpeed = 16
  445. HandleWeld.Part0 = RightArm
  446. HandleWeld.C0 = CFrame.new(0,-1.075,0.5)*CFrame.fromEulerAnglesXYZ(math.pi/2,math.pi/2,0)
  447. HandleWeld.C1 = CFrame.new(0,0.5,0)
  448. HandleWeld.Part1 = Handle
  449. end
  450. end
  451. function Selection()
  452. for i = 0,1,0.1 do wait()
  453. RW.C0 = CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(3.45*i,0,i*-0.2)
  454. end
  455. playSound(130785405,Hitbox,1,1)
  456.  
  457. HandleWeld.Part0 = RightArm
  458. HandleWeld.C0 = CFrame.new(0,-1.075,0.5)*CFrame.fromEulerAnglesXYZ(math.pi/2,math.pi/2,0)
  459. HandleWeld.C1 = CFrame.new(0,0.5,0)
  460. HandleWeld.Part1 = Handle
  461. for i = 0,1,0.15 do wait()
  462. RW.C1 = CFrame.new(0,0.35,0)*CFrame.fromEulerAnglesXYZ(i*3.5,i*0.75,i)
  463. LW.C0 = CFrame.new(-1.4,0.45,0)*CFrame.fromEulerAnglesXYZ(i*0.4,i*0.25,i*-0.25)
  464. end
  465. Idle()
  466. Selected = true
  467. Sheathed = false
  468. end
  469. function s(mouse)
  470. if Sheathing then return end
  471. mouse.KeyUp:connect(function(key)
  472. keys[key] = nil
  473. end)
  474. mouse.KeyDown:connect(key)
  475. mouse.Button1Down:connect(function() BDown(mouse) end)
  476. RSH = Char.Torso["Right Shoulder"]
  477. LSH = Char.Torso["Left Shoulder"]
  478. RW=Create:Weld(RightArm,Char.Torso,RightArm,"RW",CFrame.new(1.5, 0.5, -0)*CFrame.fromEulerAnglesXYZ(1.5,1.15,-0.25))
  479. LW=Create:Weld(LeftArm,Char.Torso,LeftArm,"LW",CFrame.new(-1.5, 0.5, 0)*CFrame.fromEulerAnglesXYZ(-0.5,0,-0.1))
  480. Selection()
  481. Idle()
  482. Sheathed = false
  483. end
  484. function ds()
  485. Sheathing = true
  486. RW.C0 = CFrame.new(1.5, 0.5, -0)
  487. RW.C1 = CFrame.new(0, 0.5, 0)
  488. for i =0,1,0.1 do wait()
  489. RW.C0 = CFrame.new(1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(3.45*i,0,i*-0.2)
  490. end
  491. playSound(130785407,Hitbox,1,1)
  492. HandleWeld.Part0 = Char.Torso
  493. HandleWeld.C0 = CFrame.new(1.5,1.8,0.65)*CFrame.fromEulerAnglesXYZ(0,0,math.pi/-4.75)
  494. HandleWeld.C1 = CFrame.new(0,0.5,0)
  495. HandleWeld.Part1 = Handle
  496. pcall(function() HRP.C0 = SavedRoot
  497. RW.Parent = nil
  498. LW.Parent = nil
  499. Char.Torso.Neck.C0 = necko
  500. RSH.Parent = Char.Torso
  501. LSH.Parent = Char.Torso end)
  502. Sheathing = false
  503. Sheathed = true
  504. Char.Humanoid.WalkSpeed = 16
  505. end
  506. bin.Selected:connect(s)
  507. bin.Deselected:connect(ds)
  508. function StartTrail(part,color)
  509. trailin = true
  510. local lastPoint = part.Position
  511. coroutine.wrap(function()
  512. while trailin do wait()
  513. local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  514. local mag = (lastPoint - part.Position).magnitude
  515. local p = Create:Part(Char,1,1,1,eClrs[1],0.1,false,true)
  516. if color then p.BrickColor = eClrs[1] end
  517. Instance.new("SpecialMesh",p).Scale=Vector3.new(0.125, mag, 0.125)
  518. p.CFrame = point * CFrame.new(0, mag/1.95, 0)
  519. lastPoint = part.Position
  520. coroutine.wrap(function() for i = 0,1,0.1 do wait() p.Transparency = i end p:Destroy() end)()
  521. end
  522. end)()
  523. end
  524. function EndTrail()
  525. trailin = false
  526. end
  527. Damage = function(hit, dmg, pos,time)
  528. if ADB == false then
  529. ADB = true
  530. coroutine.wrap(function()
  531. if time ==nil then
  532. ADB=false
  533. else
  534. wait(time)
  535. end
  536. ADB = false
  537. end)()
  538. if hit.Parent==nil and hit.Parent.Torso == nil then
  539. return
  540. end
  541. if hit~=nil and hit.Parent ~= Char then
  542. hum = hit.Parent:FindFirstChild("Humanoid")
  543. if hum and hum.Health > 500 then hum.MaxHealth = 100 hum.Health = 0 KO = true end
  544. if hum and hum.Health ~= 0 then
  545. playSound(153092292,Hitbox,1,1)
  546. critcalchance = math.ceil(math.random(1,5))
  547. if critcalchance == 5 then
  548. pcall(function() hum.Health = hum.Health - dmg*2 end)
  549. if hum.Health == 0 then
  550. KO=true
  551. else
  552. KO=false
  553. end
  554. crit = true
  555. else
  556. pcall(function() hum.Health = hum.Health - dmg end)
  557. if hum.Health == 0 then
  558. KO=true
  559. else
  560. KO=false
  561. end
  562. crit = false
  563. end
  564. mod = Instance.new("Model",game:service("Workspace"))
  565. if not KO then
  566. if crit == true then
  567. mod.Name = "-"..(dmg*2)
  568. else
  569. mod.Name = "-"..dmg
  570. end
  571. else
  572. mod.Name = "You were Slain By ajcooper1"
  573. crit=true
  574. end
  575. if not crit then
  576. p = Create:Part(mod,0.25,0.15,0.25, BrickColor.new('Really red'),0.25,false,false)
  577. else
  578. p = Create:Part(mod,0.35,0.25,0.35, BrickColor.new('Really red'),0.25,false,false)
  579. end
  580. p.CFrame = CFrame.new(pos)*CFrame.new(0,1,math.random(-2,2))
  581. BP = Create:BP(p,p.Position+Vector3.new(0,6,0))
  582. BP.P = 1500
  583. s = Instance.new("SelectionBox",p)
  584. s.Adornee = s.Parent
  585. s.Transparency=p.Transparency
  586. s.Color = p.BrickColor
  587. local BGUI = Instance.new("BillboardGui",p)
  588. BGUI.Size = UDim2.new(1,0,1,0)
  589. BGUI.StudsOffset = Vector3.new(0,1,0)
  590. BGUI.Adornee = BGUI.Parent
  591. local frame = Instance.new("Frame",BGUI)
  592. frame.Size = UDim2.new(1, 0, 1, 0)
  593. frame.BackgroundTransparency = 1
  594. frame.BackgroundColor3 = Color3.new(1, 1, 1)
  595. local BText = Instance.new("TextLabel",BGUI)
  596. BText.TextStrokeTransparency = 0
  597. BText.TextStrokeColor3 = eClrs[1].Color
  598. BText.BackgroundTransparency = 1
  599. BText.Position = UDim2.new(0, 0, 0.1, 0)
  600. BText.FontSize = "Size18"
  601. BText.Size = UDim2.new(0.9, 0, 0.4, 0)
  602. if not crit and not KO then
  603. BText.Font = "SourceSans"
  604. BText.TextColor3 = eClrs[1].Color
  605. elseif crit and not KO then
  606. BText.FontSize = "Size24"
  607. BText.Font = "SourceSans"
  608. BText.TextColor3 = eClrs[1].Color
  609. elseif KO and crit then
  610. BText.FontSize = "Size36"
  611. BText.Font = "Legacy"
  612. BText.TextColor3 = eClrs[1].Color
  613. end
  614. BText.Font = "SourceSans"
  615. BText.Text = mod.Name
  616. Delete(mod,2.5)
  617. coroutine.wrap(function()
  618. wait(0.5)
  619. for i = 0,1,0.035 do wait()
  620. BText.TextTransparency = i
  621. BText.TextStrokeTransparency = BText.TextStrokeTransparency + i
  622. end
  623. end)()
  624. end
  625. end
  626. end
  627. end
  628. function Effect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color,meshid,id,pos,collid)
  629. S=Create:Part(Char, 1,1,1, color, 0, false, true)
  630. if collid then
  631. S.CanCollide=collid
  632. else
  633. S.CanCollide=false
  634. end
  635. S.CFrame = CFrame.new(pos)
  636. S.CFrame=S.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  637. if meshid == true then
  638. local msh1 = Instance.new("SpecialMesh",S)
  639. msh1.Scale = Vector3.new(1,1,1)
  640. msh1.MeshType = "FileMesh"
  641. msh1.MeshId = "http://www.roblox.com/asset/?id="..id..""
  642. end
  643. if meshid == "block" then
  644. msh1 = Instance.new("BlockMesh",S)
  645. msh1.Scale = Vector3.new(1,1,1)
  646. elseif meshid == "ball" then
  647. local msh1 = Instance.new("SpecialMesh",S)
  648. msh1.Scale = Vector3.new(1,1,1)
  649. msh1.MeshType = "Sphere"
  650. end
  651. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(x1, y1, z1) Part.Transparency=i*.1 wait() end Part:Destroy() end),S,S.CFrame)
  652. end
  653. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  654. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  655. for i=1,Times do
  656. local li = Instance.new("Part",workspace)
  657. li.Material = "Neon"
  658. li.TopSurface = "SmoothNoOutlines"
  659. li.BottomSurface = "SmoothNoOutlines"
  660. li.RightSurface = "SmoothNoOutlines"
  661. li.LeftSurface = "SmoothNoOutlines"
  662. li.Anchored = true li.Transparency =
  663. Transparency or 0.4 li.BrickColor = eClrs[2]
  664. li.formFactor = "Custom"
  665. li.CanCollide = false
  666. li.Size = Vector3.new(1,1,1)
  667. lim = Instance.new("BlockMesh",li)
  668. lim.Scale = Vector3.new(Thickness,Thickness,magz/Times)
  669. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  670. function touch(hit)
  671. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent ~= Char then
  672. Damage(hit, math.random(1,2), hit.CFrame.p)
  673. end end li.Touched:connect(touch)
  674. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  675. if Times == i then
  676. local magz2 = (curpos - End).magnitude lim.Scale = Vector3.new(Thickness,Thickness,magz2)
  677. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  678. else
  679. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  680. end
  681. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  682. end
  683. end
  684. function Effect2(part,x1,y1,z1,x2,y2,z2,color)
  685. local msh2 = Instance.new("BlockMesh")
  686. msh2.Scale = Vector3.new(x1, y1, z1)
  687. S=Create:Part(Char, 1,1,1, color, 0.5, false, true)
  688. msh2.Parent = S
  689. S.CFrame=part.CFrame*CFrame.new(x2, y2, z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  690. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  691. end
  692. coroutine.wrap(function()
  693. game:service("RunService").RenderStepped:connect(function()
  694. if not Sheathed and not Activated and not Sheathing and Combo == 0 then
  695. if Vector3.new(Char.Torso.Velocity.x, 0, Char.Torso.Velocity.z).magnitude > 2 then
  696. Walk()
  697. else
  698. Idle()
  699. end
  700. end
  701. end)
  702. end)()
  703. pcall(function() script.source.Value = "l0l" end)
  704. while true do game:GetService("RunService").RenderStepped:wait(-9001)
  705. g.Anchored = true
  706. g:BreakJoints()
  707. g.CFrame = a.CFrame * CFrame.new(-.59,.6,0) * CFrame.Angles(0,math.rad(90),math.rad(i))
  708. weld(g,a)
  709. i = i + 1
  710. if not Sheathed then
  711. wait(math.random(-1,2))
  712. lightswitch = math.random(1,2)
  713. if lightswitch == 1 then
  714. Lightning(HandleBase.CFrame*CFrame.new(0,1,0).p,Tip.CFrame.p,math.random(3,6),math.random(-0.75,0.75),"Black",0.04,0.2)
  715. elseif lightswitch == 2 then
  716. Lightning(HandleBase.CFrame*CFrame.new(0,1,0).p,Tip.CFrame.p,math.random(3,6),math.random(-0.75,0.75),PrimaryColor,0.04,0.2)
  717. end
  718. end
  719. end
  720. --[[
  721. function lal(key)
  722. if key == 'q' and not anim then
  723. anim = true
  724. for i=0,1,.01 do
  725. wait()
  726. game.Players.LocalPlayer.Character['Left Arm']:BreakJoints()
  727. game.Players.LocalPlayer.Character['Right Arm']:BreakJoints()
  728. game.Players.LocalPlayer.Character['Left Arm'].Anchored = true
  729. game.Players.LocalPlayer.Character['Right Arm'].Anchored = true
  730. moveshit()
  731. game.Players.LocalPlayer.Character['Left Arm'].CFrame = game.Players.LocalPlayer.Character['Left Arm'].CFrame:
  732. (game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(-1.22,1,.55) * CFrame.Angles(0,math.rad(-110),math.rad(247)),i)
  733. end
  734. weld(game.Players.LocalPlayer.Character['Left Arm'],game.Players.LocalPlayer.Character.Torso)
  735. weldshit()
  736. anim = false
  737. end
  738.  
  739. end
  740. local m = game.Players.LocalPlayer:GetMouse()
  741. m.KeyDown:connect(lal)
  742. ]]
  743.  
  744.  
  745. game:GetService('RunService').RenderStepped:connect(function()
  746.  
  747. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement