Advertisement
Lukas17

Untitled

Feb 23rd, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.88 KB | None | 0 0
  1.  
  2. --EDIT BY LUKASLUN17--
  3.  
  4. for i,v in pairs(game.Players.Lukaslun17.Character:GetChildren()) do
  5. if v.ClassName == 'Accessory' then
  6. v:Destroy()
  7. end
  8. end
  9.  
  10. for i,v in pairs(game.Players.Lukaslun17.Character:GetChildren()) do
  11. if v.ClassName == 'Shirt' then
  12. v:Destroy()
  13. end
  14. end
  15.  
  16. for i,v in pairs(game.Players.Lukaslun17.Character:GetChildren()) do
  17. if v.ClassName == 'Pants' then
  18. v:Destroy()
  19. end
  20. end
  21.  
  22.  
  23. wait()
  24. shirt = Instance.new('Shirt')
  25. shirt.Parent = game.Players.Lukaslun17.Character
  26. shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id=138688150'
  27.  
  28. shirt = Instance.new('Pants')
  29. shirt.Parent = game.Players.Lukaslun17.Character
  30. shirt.PantsTemplate = 'http://www.roblox.com/asset/?id=138745243'
  31.  
  32. hat1 = Instance.new('Hat')
  33. hat1.Parent = game.Players.Lukaslun17.Character
  34. hat1.AttachmentForward = Vector3.new(0, 0, 11)
  35. hat1.AttachmentPos = Vector3.new(0, 0.2, 0)
  36. hat1.AttachmentRight = Vector3.new(1, 0, 0)
  37. hat1.AttachmentUp = Vector3.new(0, 1, 0)
  38.  
  39. handle = Instance.new('Part')
  40. handle.Name = 'Handle'
  41. handle.Parent = hat1
  42. handle.Size = Vector3.new(1, 2.3, 1)
  43.  
  44. handlemesh = Instance.new('SpecialMesh')
  45. handlemesh.MeshType = 'FileMesh'
  46. handlemesh.MeshId = 'http://www.roblox.com/asset/?id=306063581'
  47. handlemesh.TextureId = 'rbxassetid://306062884'
  48. handlemesh.Parent = handle
  49.  
  50. Theme = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  51. Theme.SoundId = "rbxassetid://970521468"
  52. Theme.Looped = true
  53. Theme.Volume = 10
  54. Theme:Play()
  55.  
  56. Theme2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  57. Theme2.SoundId = "rbxassetid://89355818"
  58. Theme2.Looped = false
  59. Theme2.Volume = 5
  60. Theme2:Play()
  61.  
  62.  
  63. Theme3 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  64. Theme3.SoundId = "rbxassetid://796971402"
  65. Theme3.Looped = false
  66. Theme3.Volume = 15
  67. Theme3:Play()
  68.  
  69. game.Players.Lukaslun17.Character["Body Colors"].HeadColor = BrickColor.new("Really black")
  70.  
  71. local health = 5000
  72. local speed = 20
  73. local damage = 35
  74. local runDummyScript = function(f,scri)
  75. local oldenv = getfenv(f)
  76. local newenv = setmetatable({}, {
  77. __index = function(_, k)
  78. if k:lower() == 'script' then
  79. return scri
  80. else
  81. return oldenv[k]
  82. end
  83. end
  84. })
  85. setfenv(f, newenv)
  86. ypcall(function() f() end)
  87. end
  88. cors = {}
  89. mas = Instance.new("Model",game:GetService("Lighting"))
  90. mas.Name = "CompiledModel"
  91. o1 = Instance.new("Model")
  92. o2 = Instance.new("Part")
  93. o3 = Instance.new("Part")
  94. o4 = Instance.new("Part")
  95. o5 = Instance.new("Part")
  96. o6 = Instance.new("Part")
  97. o7 = Instance.new("Part")
  98. o8 = Instance.new("Part")
  99. o9 = Instance.new("Part")
  100. o10 = Instance.new("Part")
  101. o11 = Instance.new("Part")
  102. o12 = Instance.new("Part")
  103. o13 = Instance.new("Part")
  104. o1.Name = "Saber"
  105. o1.Parent = mas
  106. o2.Name = "Handle"
  107. o2.Parent = o1
  108. o2.Material = Enum.Material.SmoothPlastic
  109. o2.BrickColor = BrickColor.new("Dark stone grey")
  110. o2.Position = Vector3.new(56, 5.11798573, 33.7409973)
  111. o2.Rotation = Vector3.new(90.0000076, -90, 0)
  112. o2.Anchored = true
  113. o2.CanCollide = false
  114. o2.Shape = Enum.PartType.Cylinder
  115. o2.Size = Vector3.new(2, 0.5, 0.5)
  116. o2.CFrame = CFrame.new(56, 5.11798573, 33.7409973, 1.50995831e-007, -1.50995774e-007, -1, -1, -1.50995817e-007, -1.50995803e-007, -1.50995788e-007, 1, -1.50995803e-007)
  117. o2.BottomSurface = Enum.SurfaceType.Smooth
  118. o2.TopSurface = Enum.SurfaceType.Smooth
  119. o2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  120. o2.Position = Vector3.new(56, 5.11798573, 33.7409973)
  121. o3.Parent = o1
  122. o3.Material = Enum.Material.SmoothPlastic
  123. o3.BrickColor = BrickColor.new("Smoky grey")
  124. o3.Position = Vector3.new(56, 4.11000824, 33.7409973)
  125. o3.Rotation = Vector3.new(90.0000076, -90, 0)
  126. o3.Anchored = true
  127. o3.CanCollide = false
  128. o3.Shape = Enum.PartType.Cylinder
  129. o3.Size = Vector3.new(0.200000003, 0.600000024, 0.600000024)
  130. o3.CFrame = CFrame.new(56, 4.11000824, 33.7409973, 1.50995831e-007, -1.50995774e-007, -1, -1, -1.50995817e-007, -1.50995803e-007, -1.50995788e-007, 1, -1.50995803e-007)
  131. o3.BottomSurface = Enum.SurfaceType.Smooth
  132. o3.TopSurface = Enum.SurfaceType.Smooth
  133. o3.Color = Color3.new(0.356863, 0.364706, 0.411765)
  134. o3.Position = Vector3.new(56, 4.11000824, 33.7409973)
  135. o4.Parent = o1
  136. o4.Material = Enum.Material.SmoothPlastic
  137. o4.BrickColor = BrickColor.new("Smoky grey")
  138. o4.Position = Vector3.new(56, 6.01100636, 33.7409973)
  139. o4.Rotation = Vector3.new(90.0000076, -90, 0)
  140. o4.Anchored = true
  141. o4.CanCollide = false
  142. o4.Shape = Enum.PartType.Cylinder
  143. o4.Size = Vector3.new(0.200000003, 0.600000024, 0.600000024)
  144. o4.CFrame = CFrame.new(56, 6.01100636, 33.7409973, 1.50995831e-007, -1.50995774e-007, -1, -1, -1.50995817e-007, -1.50995803e-007, -1.50995788e-007, 1, -1.50995803e-007)
  145. o4.BottomSurface = Enum.SurfaceType.Smooth
  146. o4.TopSurface = Enum.SurfaceType.Smooth
  147. o4.Color = Color3.new(0.356863, 0.364706, 0.411765)
  148. o4.Position = Vector3.new(56, 6.01100636, 33.7409973)
  149. o5.Parent = o1
  150. o5.Material = Enum.Material.SmoothPlastic
  151. o5.BrickColor = BrickColor.new("Really black")
  152. o5.Position = Vector3.new(55.9981995, 6.02698612, 33.7367439)
  153. o5.Rotation = Vector3.new(90, 90, 0)
  154. o5.Anchored = true
  155. o5.CanCollide = false
  156. o5.Shape = Enum.PartType.Cylinder
  157. o5.Size = Vector3.new(0.200000003, 0.400000006, 0.5)
  158. o5.CFrame = CFrame.new(55.9981995, 6.02698612, 33.7367439, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  159. o5.BottomSurface = Enum.SurfaceType.Smooth
  160. o5.TopSurface = Enum.SurfaceType.Smooth
  161. o5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  162. o5.Position = Vector3.new(55.9981995, 6.02698612, 33.7367439)
  163. o6.Name = "Blade"
  164. o6.Parent = o1
  165. o6.Material = Enum.Material.Neon
  166. o6.BrickColor = BrickColor.new("Really red")
  167. o6.Transparency = 1
  168. o6.Position = Vector3.new(55.9981995, 7.85400581, 33.7367439)
  169. o6.Rotation = Vector3.new(90, 90, 0)
  170. o6.Anchored = true
  171. o6.CanCollide = false
  172. o6.Shape = Enum.PartType.Cylinder
  173. o6.Size = Vector3.new(3.5, 0.400000006, 0.5)
  174. o6.CFrame = CFrame.new(55.9981995, 7.85400581, 33.7367439, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  175. o6.BottomSurface = Enum.SurfaceType.Smooth
  176. o6.TopSurface = Enum.SurfaceType.Smooth
  177. o6.Position = Vector3.new(55.9981995, 7.85400581, 33.7367439)
  178. o7.Parent = o1
  179. o7.Material = Enum.Material.SmoothPlastic
  180. o7.BrickColor = BrickColor.new("Black")
  181. o7.Position = Vector3.new(56, 4.34401417, 33.7409973)
  182. o7.Rotation = Vector3.new(90.0000076, -90, 0)
  183. o7.Anchored = true
  184. o7.CanCollide = false
  185. o7.Shape = Enum.PartType.Cylinder
  186. o7.Size = Vector3.new(0.200000003, 0.550000012, 0.600000024)
  187. o7.CFrame = CFrame.new(56, 4.34401417, 33.7409973, -4.37113883e-008, 0, -1, -1, -1.62920685e-007, 4.37113883e-008, -1.62920685e-007, 1, 7.12148964e-015)
  188. o7.BottomSurface = Enum.SurfaceType.Smooth
  189. o7.TopSurface = Enum.SurfaceType.Smooth
  190. o7.Color = Color3.new(0.105882, 0.164706, 0.207843)
  191. o7.Position = Vector3.new(56, 4.34401417, 33.7409973)
  192. o8.Parent = o1
  193. o8.Material = Enum.Material.SmoothPlastic
  194. o8.BrickColor = BrickColor.new("Black")
  195. o8.Position = Vector3.new(56, 4.74401188, 33.7409973)
  196. o8.Rotation = Vector3.new(90.0000076, -90, 0)
  197. o8.Anchored = true
  198. o8.CanCollide = false
  199. o8.Shape = Enum.PartType.Cylinder
  200. o8.Size = Vector3.new(0.200000003, 0.550000012, 0.600000024)
  201. o8.CFrame = CFrame.new(56, 4.74401188, 33.7409973, -4.37113883e-008, 0, -1, -1, -1.62920685e-007, 4.37113883e-008, -1.62920685e-007, 1, 7.12148964e-015)
  202. o8.BottomSurface = Enum.SurfaceType.Smooth
  203. o8.TopSurface = Enum.SurfaceType.Smooth
  204. o8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  205. o8.Position = Vector3.new(56, 4.74401188, 33.7409973)
  206. o9.Parent = o1
  207. o9.Material = Enum.Material.SmoothPlastic
  208. o9.BrickColor = BrickColor.new("Black")
  209. o9.Position = Vector3.new(56, 5.08402443, 33.7409973)
  210. o9.Rotation = Vector3.new(90.0000076, -90, 0)
  211. o9.Anchored = true
  212. o9.CanCollide = false
  213. o9.Shape = Enum.PartType.Cylinder
  214. o9.Size = Vector3.new(0.200000003, 0.550000012, 0.600000024)
  215. o9.CFrame = CFrame.new(56, 5.08402443, 33.7409973, -4.37113883e-008, 0, -1, -1, -1.62920685e-007, 4.37113883e-008, -1.62920685e-007, 1, 7.12148964e-015)
  216. o9.BottomSurface = Enum.SurfaceType.Smooth
  217. o9.TopSurface = Enum.SurfaceType.Smooth
  218. o9.Color = Color3.new(0.105882, 0.164706, 0.207843)
  219. o9.Position = Vector3.new(56, 5.08402443, 33.7409973)
  220. o10.Parent = o1
  221. o10.Material = Enum.Material.SmoothPlastic
  222. o10.BrickColor = BrickColor.new("Black")
  223. o10.Position = Vector3.new(56, 5.41400814, 33.7409973)
  224. o10.Rotation = Vector3.new(90.0000076, -90, 0)
  225. o10.Anchored = true
  226. o10.CanCollide = false
  227. o10.Shape = Enum.PartType.Cylinder
  228. o10.Size = Vector3.new(0.200000003, 0.550000012, 0.600000024)
  229. o10.CFrame = CFrame.new(56, 5.41400814, 33.7409973, -4.37113883e-008, 0, -1, -1, -1.62920685e-007, 4.37113883e-008, -1.62920685e-007, 1, 7.12148964e-015)
  230. o10.BottomSurface = Enum.SurfaceType.Smooth
  231. o10.TopSurface = Enum.SurfaceType.Smooth
  232. o10.Color = Color3.new(0.105882, 0.164706, 0.207843)
  233. o10.Position = Vector3.new(56, 5.41400814, 33.7409973)
  234. o11.Parent = o1
  235. o11.Material = Enum.Material.SmoothPlastic
  236. o11.BrickColor = BrickColor.new("Smoky grey")
  237. o11.Position = Vector3.new(56.0248947, 5.70129061, 33.5617981)
  238. o11.Anchored = true
  239. o11.CanCollide = false
  240. o11.Size = Vector3.new(0.300000012, 0.300000012, 0.200000003)
  241. o11.CFrame = CFrame.new(56.0248947, 5.70129061, 33.5617981, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  242. o11.BottomSurface = Enum.SurfaceType.Smooth
  243. o11.TopSurface = Enum.SurfaceType.Smooth
  244. o11.Color = Color3.new(0.356863, 0.364706, 0.411765)
  245. o11.Position = Vector3.new(56.0248947, 5.70129061, 33.5617981)
  246. o12.Parent = o1
  247. o12.Material = Enum.Material.SmoothPlastic
  248. o12.BrickColor = BrickColor.new("Smoky grey")
  249. o12.Position = Vector3.new(56, 5.70401382, 33.7409973)
  250. o12.Rotation = Vector3.new(90.0000076, -90, 0)
  251. o12.Anchored = true
  252. o12.CanCollide = false
  253. o12.Shape = Enum.PartType.Cylinder
  254. o12.Size = Vector3.new(0.200000003, 0.550000012, 0.600000024)
  255. o12.CFrame = CFrame.new(56, 5.70401382, 33.7409973, -4.37113883e-008, 0, -1, -1, -1.62920685e-007, 4.37113883e-008, -1.62920685e-007, 1, 7.12148964e-015)
  256. o12.BottomSurface = Enum.SurfaceType.Smooth
  257. o12.TopSurface = Enum.SurfaceType.Smooth
  258. o12.Color = Color3.new(0.356863, 0.364706, 0.411765)
  259. o12.Position = Vector3.new(56, 5.70401382, 33.7409973)
  260. o13.Name = "Button"
  261. o13.Parent = o1
  262. o13.Material = Enum.Material.SmoothPlastic
  263. o13.BrickColor = BrickColor.new("Really red")
  264. o13.Position = Vector3.new(56.0299988, 5.69999981, 33.5109978)
  265. o13.Rotation = Vector3.new(2.04905682e-005, -90, 0)
  266. o13.Anchored = true
  267. o13.CanCollide = false
  268. o13.Shape = Enum.PartType.Cylinder
  269. o13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  270. o13.CFrame = CFrame.new(56.0299988, 5.69999981, 33.5109978, -4.37113883e-008, 0, -1, -3.57627869e-007, 1, 1.56324098e-014, 1, 3.57627869e-007, -4.37113883e-008)
  271. o13.BottomSurface = Enum.SurfaceType.Smooth
  272. o13.TopSurface = Enum.SurfaceType.Smooth
  273. o13.Color = Color3.new(1, 0, 0)
  274. o13.Position = Vector3.new(56.0299988, 5.69999981, 33.5109978)
  275. mas.Parent = workspace
  276. mas:MakeJoints()
  277. local mas1 = mas:GetChildren()
  278. for i=1,#mas1 do
  279. mas1[i].Parent = workspace
  280. ypcall(function() mas1[i]:MakeJoints() end)
  281. end
  282. mas:Destroy()
  283. for i=1,#cors do
  284. coroutine.resume(cors[i])
  285. end
  286.  
  287.  
  288. function indicate(part,damagevar)
  289. local clonepart = Instance.new("Part", workspace)
  290. clonepart.Size = Vector3.new(1,1,1)
  291. clonepart.CanCollide = false
  292. clonepart.Anchored = true
  293. clonepart.CFrame = part.CFrame
  294. clonepart.Transparency = 1
  295. local base1 = Instance.new("BillboardGui", clonepart)
  296. base1.Name = "damage"
  297. base1.ExtentsOffset = Vector3.new(-0.1,2,0)
  298. base1.Size = UDim2.new(1,0,1,0)
  299. base1.Adornee = clonepart
  300. local indicator = Instance.new("TextLabel", base1)
  301. indicator.Text = "-"..math.floor(damagevar)
  302. indicator.TextScaled = false
  303. indicator.TextWrapped = false
  304. indicator.TextColor3 = Color3.new(1,0,0)
  305. indicator.TextScaled = true
  306. indicator.FontSize = 7
  307. indicator.Size = UDim2.new(1,0,1,0)
  308. indicator.BackgroundTransparency = 1
  309. local change = coroutine.wrap(function(thing,thing2)
  310. for i=1, 20 do
  311. thing.TextTransparency = thing.TextTransparency + 0.05
  312. thing2.ExtentsOffset = thing2.ExtentsOffset + Vector3.new(0,0.1,0)
  313. wait(0.0001)
  314. end
  315. indicator.Parent.Parent:Remove()
  316. end)
  317. change(indicator,base1)
  318. end
  319.  
  320. ---------------------------------------------------------------------------------------------------
  321.  
  322.  
  323.  
  324. local saber = o1
  325. local handle = o1:FindFirstChild("Handle")
  326. local blade = o1:FindFirstChild("Blade")
  327. local button = o1:FindFirstChild("Button")
  328. local Player = game.Players.LocalPlayer
  329. o1.Parent = Player.Character
  330. local Mouse = Player:GetMouse()
  331. local hitter = false
  332. local animstate = -1
  333. local equipped = false
  334. local keyframe = 0
  335. local cooled = true
  336. local cooled2 = true
  337. local cooled3 = true
  338. local cooled4 = true
  339. local attacking = false
  340. local hits = {}
  341. local combo = 0
  342. local qtarget = nil
  343. local animating = false
  344. local indexer = 0
  345. local ready = true
  346. local ready1 = true
  347. local ready2 = true
  348.  
  349. Player.Character.Humanoid.MaxHealth = health
  350. wait()
  351. Player.Character.Humanoid.Health = Player.Character.Humanoid.MaxHealth
  352. Player.Character.Humanoid.WalkSpeed = speed
  353.  
  354. if script.Parent ~= Player.Backpack then
  355. script.Parent = Player.Backpack
  356. end
  357. local Character = Player.Character
  358. Character.Animate:remove()
  359. Character.Humanoid.Animator:remove()
  360.  
  361. for _,v in pairs (saber:GetChildren()) do
  362. if v.Name ~= "Handle" then
  363. local NewWeld = Instance.new("Weld")
  364. NewWeld.Part0 = handle
  365. NewWeld.Part1 = v
  366. NewWeld.C0 = CFrame.new()
  367. NewWeld.C1 = v.CFrame:toObjectSpace(handle.CFrame)
  368. if v.Name == "Blade" then
  369. NewWeld.Name = "BladeWeld"
  370. end
  371. NewWeld.Parent = handle
  372. end
  373. wait()
  374. end
  375. for _,v in pairs (saber:GetChildren()) do
  376. v.Anchored = false
  377. wait()
  378. end
  379.  
  380. handle.CFrame = Character:FindFirstChild("Right Arm").CFrame*CFrame.new(0,-1.2,-3)*CFrame.Angles(0,math.rad(270),math.rad(180))
  381.  
  382. local HandleWeld = Instance.new("Weld")
  383. HandleWeld.Name = "HandleWeld"
  384. HandleWeld.Part0 = Character:FindFirstChild("Right Arm")
  385. HandleWeld.Part1 = handle
  386. HandleWeld.C0 = CFrame.new(0,0,0)
  387. HandleWeld.C1 = handle.CFrame:toObjectSpace(Character:FindFirstChild("Right Arm").CFrame)
  388. HandleWeld.Parent = handle
  389.  
  390. numLerp=function(start,goal,alpha)
  391. return(((goal-start)*alpha)+start);
  392. end;
  393. CFrameZero=function()
  394. return CFrame.new(Vector3.new());
  395. end;
  396. local function a()
  397. local t=tick();
  398. local l=t%1*3;
  399. local t=.5*math.pi*(l%1);
  400. if l<1 then
  401. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  402. elseif l<2 then
  403. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  404. else
  405. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  406. end;
  407. end;
  408. rad=function(value)
  409. return math.rad(value);
  410. end;
  411. CFAngles=function(Vector)
  412. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
  413. end;
  414. AnimStat={
  415. lerpSpeed=.2;
  416. lerpSpeed2=.35;
  417. lerpTween=0;
  418. }
  419. Joints={
  420. Character.HumanoidRootPart.RootJoint;
  421. Character.Torso.Neck;
  422. Character.Torso['Left Shoulder'];
  423. Character.Torso['Right Shoulder'];
  424. Character.Torso['Left Hip'];
  425. Character.Torso['Right Hip'];
  426. handle:FindFirstChild("HandleWeld")
  427. }
  428. local orig1 = Joints[1].C0
  429. local orig2 = Joints[2].C0
  430. local orig3 = Joints[3].C0
  431. local orig4 = Joints[4].C0
  432. local orig5 = Joints[5].C0
  433. local orig6 = Joints[6].C0
  434. local orig7 = Joints[7].C0
  435. JointTargets={
  436. Character.HumanoidRootPart.RootJoint.C0;
  437. Character.Torso.Neck.C0;
  438. Character.Torso['Left Shoulder'].C0;
  439. Character.Torso['Right Shoulder'].C0;
  440. Character.Torso['Left Hip'].C0;
  441. Character.Torso['Right Hip'].C0;
  442. handle:FindFirstChild("HandleWeld").C0;
  443. }
  444. setJointCFrames=function(table)
  445. for i=1,#table do
  446. JointTargets[i]=table[i];
  447. end
  448. end
  449. triWave=function(x)
  450. local pi2=math.pi/2;
  451. return math.abs((x/pi2)%4-2)-1;
  452. end
  453. setLerp=function(speed)
  454. AnimStat.lerpSpeed=speed;
  455. end;
  456. setTween=function(tween)
  457. AnimStat.lerpTween=tween;
  458. end
  459. local FPSLerp=AnimStat.lerpSpeed
  460.  
  461. local animator = coroutine.wrap(function()
  462. while Player.Character do
  463.  
  464. if Player.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) and not attacking and animstate ~= 0 then
  465. ready = true
  466. animstate = 0
  467. keyframe = 0
  468. elseif Player.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) and not attacking and animstate ~= 1 then
  469. ready = true
  470. animstate = 1
  471. keyframe = 0
  472. end
  473.  
  474. if animstate == 0 and ready then
  475.  
  476. if keyframe == 0 then
  477. ready = false
  478. JointTargets={
  479. orig1*CFrame.Angles(0,0,math.rad(15));
  480. orig2*CFrame.Angles(0,0,math.rad(-15));
  481. orig3*CFrame.Angles(math.rad(40),math.rad(65),0);
  482. orig4*CFrame.Angles(math.rad(40),math.rad(85),math.rad(20));
  483. orig5*CFrame.Angles(math.rad(-15),0,0);
  484. orig6*CFrame.Angles(math.rad(-5),math.rad(-15),0);
  485. Joints[7].C0;
  486. }
  487. local lerper = coroutine.wrap(function(rate)
  488. for i=1, 10 do
  489. for p=1,#Joints do
  490. if animstate == 0 then
  491. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
  492. end
  493. end
  494. wait(rate)
  495. end
  496. if animstate == 0 then
  497. keyframe = 1
  498. ready = true
  499. end
  500. end)
  501. lerper(0.001)
  502. elseif keyframe == 1 then
  503. ready = false
  504. JointTargets={
  505. orig1*CFrame.new(0,0,0.05)*CFrame.Angles(0,0,math.rad(15));
  506. orig2*CFrame.Angles(math.rad(3),0,math.rad(-15));
  507. orig3*CFrame.Angles(math.rad(35),math.rad(60),0);
  508. orig4*CFrame.Angles(math.rad(38),math.rad(83),math.rad(18));
  509. orig5*CFrame.new(0,-0.05,-0.025)*CFrame.Angles(math.rad(-15),0,0);
  510. orig6*CFrame.new(0,-0.05,-0.025)*CFrame.Angles(math.rad(-5),math.rad(-15),0);
  511. Joints[7].C0;
  512. }
  513.  
  514. if indexer + 1 <= 22 then
  515. indexer = indexer + 1
  516. for p=1,#Joints do
  517. if animstate == 0 then
  518. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],indexer/50)
  519. end
  520. end
  521.  
  522. ready = true
  523. else
  524. indexer = 0
  525. keyframe = 2
  526. ready = true
  527. end
  528. elseif keyframe == 2 then
  529. ready = false
  530. JointTargets={
  531. orig1*CFrame.Angles(0,0,math.rad(15));
  532. orig2*CFrame.Angles(0,0,math.rad(-15));
  533. orig3*CFrame.Angles(math.rad(40),math.rad(65),0);
  534. orig4*CFrame.Angles(math.rad(40),math.rad(85),math.rad(20));
  535. orig5*CFrame.Angles(math.rad(-15),0,0);
  536. orig6*CFrame.Angles(math.rad(-5),math.rad(-15),0);
  537. Joints[7].C0;
  538. }
  539.  
  540. if indexer + 1 <= 22 then
  541. indexer = indexer + 1
  542. for p=1,#Joints do
  543. if animstate == 0 then
  544. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],indexer/50)
  545. end
  546. end
  547.  
  548. ready = true
  549. else
  550. indexer = 0
  551. keyframe = 1
  552. ready = true
  553. end
  554. end
  555.  
  556. elseif animstate == 1 and ready then
  557.  
  558. if keyframe == 0 then
  559. ready = false
  560. JointTargets={
  561. orig1;
  562. orig2*CFrame.Angles(math.rad(15),0,0);
  563. orig3*CFrame.Angles(math.rad(40),math.rad(65),0);
  564. orig4*CFrame.Angles(math.rad(40),math.rad(-65),math.rad(90));
  565. orig5*CFrame.Angles(0,0,math.rad(35));
  566. orig6*CFrame.Angles(0,0,math.rad(35));
  567. Joints[7].C0;
  568. }
  569. local lerper = coroutine.wrap(function(rate)
  570. for i=1, 10 do
  571. for p=1,#Joints do
  572. if animstate == 1 then
  573. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
  574. end
  575. end
  576. wait(rate)
  577. end
  578. if animstate == 1 then
  579. keyframe = 1
  580. ready = true
  581. end
  582. end)
  583. lerper(0.001)
  584. elseif keyframe == 1 then
  585. ready = false
  586. JointTargets={
  587. orig1;
  588. orig2*CFrame.Angles(math.rad(15),0,0);
  589. orig3*CFrame.Angles(math.rad(40),math.rad(65),0);
  590. orig4*CFrame.Angles(math.rad(40),math.rad(-65),math.rad(90));
  591. orig5*CFrame.Angles(0,0,math.rad(-35));
  592. orig6*CFrame.Angles(0,0,math.rad(-35));
  593. Joints[7].C0;
  594. }
  595. local lerper = coroutine.wrap(function(rate)
  596. for i=1, 10 do
  597. for p=1,#Joints do
  598. if animstate == 1 then
  599. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
  600. end
  601. end
  602. wait(rate)
  603. end
  604. if animstate == 1 then
  605. keyframe = 0
  606. ready = true
  607. end
  608. end)
  609. lerper(0.001)
  610. end
  611.  
  612. elseif animstate == 2 and ready then
  613.  
  614. if combo == 1 then
  615. if keyframe == 0 then
  616. ready = false
  617. cooled = false
  618. animating = true
  619. JointTargets={
  620. orig1*CFrame.Angles(0,0,math.rad(45));
  621. orig2*CFrame.Angles(0,0,math.rad(-25));
  622. orig3*CFrame.Angles(math.rad(-35),0,0);
  623. orig4*CFrame.Angles(math.rad(65),0,math.rad(155));
  624. Joints[5].C0;
  625. Joints[6].C0;
  626. Joints[7].C0;
  627. }
  628. local lerper = coroutine.wrap(function(rate)
  629. for i=1, 5 do
  630. for p=1,#Joints do
  631. if animstate == 2 then
  632. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.2*i)
  633. end
  634. end
  635. wait(rate)
  636. end
  637. ready = true
  638. keyframe = 1
  639. end)
  640. lerper(0)
  641. elseif keyframe == 1 then
  642. ready = false
  643. hitter = true
  644. JointTargets={
  645. orig1*CFrame.Angles(0,0,math.rad(85));
  646. orig2*CFrame.Angles(0,0,math.rad(-65));
  647. orig3*CFrame.Angles(math.rad(-35),0,0);
  648. orig4*CFrame.Angles(math.rad(65),0,math.rad(65));
  649. Joints[5].C0;
  650. Joints[6].C0;
  651. Joints[7].C0;
  652. }
  653. local lerper = coroutine.wrap(function(rate)
  654. for i=1, 10 do
  655. for p=1,#Joints do
  656. if animstate == 2 then
  657. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
  658. end
  659. end
  660. print(i)
  661. wait(rate)
  662. end
  663. ready = true
  664. hitter = false
  665. attacking = false
  666. animating = false
  667. hits = {}
  668. keyframe = 0
  669. animstate = -1
  670. local comboer = coroutine.wrap(function(limit)
  671. cooled = true
  672. wait(limit)
  673. if animstate ~= 2 then
  674. cooled = false
  675. combo = 0
  676. wait(0.35)
  677. cooled = true
  678. end
  679. end)
  680. comboer(0.3)
  681. end)
  682. lerper(0.0001)
  683. end
  684.  
  685. elseif combo == 2 then
  686. if keyframe == 0 then
  687. ready = false
  688. cooled = false
  689. animating = true
  690. JointTargets={
  691. orig1*CFrame.Angles(0,0,math.rad(85));
  692. orig2*CFrame.Angles(0,0,math.rad(-65));
  693. orig3*CFrame.Angles(math.rad(-45),0,0);
  694. orig4*CFrame.Angles(math.rad(-50),0,math.rad(55));
  695. Joints[5].C0;
  696. Joints[6].C0;
  697. Joints[7].C0;
  698. }
  699. local lerper = coroutine.wrap(function(rate)
  700. for i=1, 5 do
  701. for p=1,#Joints do
  702. if animstate == 2 then
  703. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.2*i)
  704. end
  705. end
  706. wait(rate)
  707. end
  708. ready = true
  709. keyframe = 1
  710. end)
  711. lerper(0)
  712. elseif keyframe == 1 then
  713. ready = false
  714. hitter = true
  715. JointTargets={
  716. orig1*CFrame.Angles(0,0,math.rad(15));
  717. orig2*CFrame.Angles(0,0,math.rad(-5));
  718. orig3*CFrame.Angles(math.rad(-35),0,0);
  719. orig4*CFrame.Angles(math.rad(-65),0,math.rad(-55));
  720. Joints[5].C0;
  721. Joints[6].C0;
  722. Joints[7].C0;
  723. }
  724. local lerper = coroutine.wrap(function(rate)
  725. for i=1, 10 do
  726. for p=1,#Joints do
  727. if animstate == 2 then
  728. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
  729. end
  730. end
  731. wait(rate)
  732. end
  733. ready = true
  734. hitter = false
  735. attacking = false
  736. animating = false
  737. hits = {}
  738. keyframe = 0
  739. animstate = -1
  740. local comboer = coroutine.wrap(function(limit)
  741. cooled = true
  742. wait(limit)
  743. if animstate ~= 2 then
  744. cooled = false
  745. combo = 0
  746. wait(0.35)
  747. cooled = true
  748. end
  749. end)
  750. comboer(0.3)
  751. end)
  752. lerper(0.001)
  753. end
  754.  
  755. elseif combo == 3 then
  756. if keyframe == 0 then
  757. ready = false
  758. cooled = false
  759. animating = true
  760. JointTargets={
  761. orig1*CFrame.Angles(0,0,math.rad(125));
  762. orig2*CFrame.Angles(0,0,math.rad(-105));
  763. orig3*CFrame.Angles(math.rad(-35),0,0);
  764. orig4*CFrame.Angles(math.rad(-50),0,math.rad(55));
  765. Joints[5].C0;
  766. Joints[6].C0;
  767. Joints[7].C0;
  768. }
  769. local lerper = coroutine.wrap(function(rate)
  770. for i=1, 5 do
  771. for p=1,#Joints do
  772. if animstate == 2 then
  773. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.2*i)
  774. end
  775. end
  776. wait(rate)
  777. end
  778. ready = true
  779. keyframe = 1
  780. end)
  781. lerper(0)
  782. elseif keyframe == 1 then
  783. ready = false
  784. hitter = true
  785. JointTargets={
  786. orig1*CFrame.Angles(0,0,math.rad(-35));
  787. orig2*CFrame.Angles(0,0,math.rad(-15));
  788. orig3*CFrame.Angles(math.rad(-15),0,0);
  789. orig4*CFrame.Angles(math.rad(65),0,math.rad(65));
  790. Joints[5].C0;
  791. Joints[6].C0;
  792. Joints[7].C0;
  793. }
  794. local lerper = coroutine.wrap(function(rate)
  795. for i=1, 10 do
  796. for p=1,#Joints do
  797. if animstate == 2 then
  798. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
  799. end
  800. end
  801. print(i)
  802. wait(rate)
  803. end
  804. JointTargets={
  805. orig1*CFrame.Angles(0,0,math.rad(125));
  806. orig2*CFrame.Angles(0,0,math.rad(-105));
  807. orig3*CFrame.Angles(math.rad(-45),0,0);
  808. orig4*CFrame.Angles(math.rad(65),0,math.rad(65));
  809. Joints[5].C0;
  810. Joints[6].C0;
  811. Joints[7].C0;
  812. }
  813. local lerper2 = coroutine.wrap(function(rate2)
  814. for o=1, 10 do
  815. for y=1,#Joints do
  816. Joints[y].C0=Joints[y].C0:lerp(JointTargets[y],0.1*o)
  817. end
  818. print(o)
  819. wait(rate2)
  820. end
  821. ready = true
  822. hitter = false
  823. attacking = false
  824. animating = false
  825. hits = {}
  826. keyframe = 0
  827. animstate = -1
  828. local comboer = coroutine.wrap(function()
  829. combo = 0
  830. wait(0.35)
  831. cooled = true
  832. end)
  833. comboer()
  834. end)
  835. hits = {}
  836. lerper2(0.00001)
  837. end)
  838. lerper(0.001)
  839. end
  840.  
  841. end
  842.  
  843. elseif animstate == 3 and ready then
  844.  
  845. if keyframe == 0 then
  846. Player.Character.Humanoid.WalkSpeed = 0
  847. ready = false
  848. cooled2 = false
  849. animating = true
  850. JointTargets={
  851. orig1*CFrame.Angles(0,0,math.rad(-85));
  852. orig2*CFrame.Angles(0,0,math.rad(85));
  853. orig3*CFrame.Angles(math.rad(-90),math.rad(90),0);
  854. orig4*CFrame.Angles(math.rad(-35),0,0);
  855. Joints[5].C0;
  856. Joints[6].C0;
  857. Joints[7].C0;
  858. }
  859. local lerper = coroutine.wrap(function(rate)
  860. for i=1, 10 do
  861. for p=1,#Joints do
  862. if animstate == 3 then
  863. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
  864. end
  865. end
  866. wait(rate)
  867. end
  868. keyframe = 1
  869. ready = true
  870. end)
  871. lerper(0.001)
  872. elseif keyframe == 1 then
  873. ready = false
  874. local velocity = Instance.new("BodyVelocity",qtarget:FindFirstChild("Torso"))
  875. velocity.Velocity = Vector3.new(0,1.5,0)
  876. local lerper = coroutine.wrap(function(rate)
  877. for i=1, 20 do
  878. if animstate == 3 then
  879. qtarget:FindFirstChild("Humanoid"):TakeDamage(damage*0.06)
  880. indicate(qtarget:FindFirstChild("Head"),damage*0.06)
  881. if i%2 == 0 then
  882. local wave = Instance.new("Part", game.Workspace)
  883. wave.FormFactor = 0
  884. wave.Size = Vector3.new(5,5,1)
  885. wave.Transparency = 0.6
  886. wave.Anchored = true
  887. wave.CanCollide = false
  888. wave.CFrame = Player.Character.Torso.CFrame * CFrame.new(0,-2.75,0) * CFrame.Angles(0, -(3), 0)
  889. wave.BrickColor = BrickColor.new("Institutional white")
  890. local mesh = Instance.new("SpecialMesh", wave)
  891. mesh.MeshType = 5
  892. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  893. mesh.Scale = Vector3.new(1,0.5,1)
  894. local grow = coroutine.wrap(function(part)
  895. game:GetService("Debris"):AddItem(part, 2)
  896. for x = 1, 25 do
  897. part.Mesh.Scale = part.Mesh.Scale + Vector3.new(0.5,0.25,0.5)
  898. part.Transparency = part.Transparency + 0.02
  899. wait()
  900. end
  901. part:Destroy()
  902. end)
  903. grow(wave)
  904. end
  905. end
  906. wait(rate)
  907. end
  908. keyframe = 2
  909. ready = true
  910. velocity:remove()
  911. end)
  912. lerper(0.1)
  913. elseif keyframe == 2 then
  914. ready = false
  915. attacking = false
  916. animating = false
  917. keyframe = 0
  918. animstate = -1
  919. local cooler = coroutine.wrap(function(limit)
  920. wait(limit)
  921. cooled2 = true
  922. end)
  923. cooler(8)
  924. ready = true
  925. Player.Character.Humanoid.WalkSpeed = speed
  926. end
  927.  
  928. elseif animstate == 4 and ready then
  929.  
  930. if keyframe == 0 then
  931. ready = false
  932. cooled3 = false
  933. animating = true
  934. JointTargets={
  935. orig1*CFrame.Angles(math.rad(15),0,0);
  936. orig2*CFrame.Angles(math.rad(-15),0,0);
  937. orig3*CFrame.Angles(math.rad(-10),0,math.rad(20));
  938. orig4*CFrame.Angles(math.rad(-10),0,math.rad(-20));
  939. orig5*CFrame.Angles(math.rad(-5),0,0);
  940. orig6*CFrame.Angles(math.rad(-5),0,0);
  941. Joints[7].C0
  942. }
  943. local lerper = coroutine.wrap(function(rate)
  944. for i=1, 10 do
  945. for p=1,#Joints do
  946. if animstate == 4 then
  947. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
  948. end
  949. end
  950. wait(rate)
  951. end
  952. keyframe = 1
  953. ready = true
  954. end)
  955. lerper(0)
  956. local wave = Instance.new("Part", game.Workspace)
  957. wave.FormFactor = 0
  958. wave.Size = Vector3.new(5,5,1)
  959. wave.Transparency = 0.6
  960. wave.Anchored = true
  961. wave.CanCollide = false
  962. wave.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,1) * CFrame.Angles(math.rad(90), -(3), 0)
  963. wave.BrickColor = BrickColor.new("Institutional white")
  964. local mesh = Instance.new("SpecialMesh", wave)
  965. mesh.MeshType = 5
  966. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  967. mesh.Scale = Vector3.new(1,0.5,1)
  968. local grow = coroutine.wrap(function(part)
  969. game:GetService("Debris"):AddItem(part, 2)
  970. for x = 1, 25 do
  971. part.Mesh.Scale = part.Mesh.Scale + Vector3.new(0.25,0.125,0.25)
  972. part.Transparency = part.Transparency + 0.02
  973. wait()
  974. end
  975. part:Destroy()
  976. end)
  977. grow(wave)
  978.  
  979. Player.Character.HumanoidRootPart.Velocity = Player.Character.HumanoidRootPart.CFrame.lookVector*200
  980.  
  981. elseif keyframe == 1 then
  982. ready = false
  983. local cooler = coroutine.wrap(function()
  984. wait(2)
  985. cooled3 = true
  986. end)
  987. cooler()
  988. wait(0.01)
  989. ready = true
  990. attacking = false
  991. animating = false
  992. keyframe = 0
  993. animstate = -1
  994. end
  995.  
  996. elseif animstate == 5 and ready then
  997.  
  998. if keyframe == 0 then
  999. Player.Character.Humanoid.WalkSpeed = 0
  1000. ready = false
  1001. cooled4 = false
  1002. animating = true
  1003. JointTargets={
  1004. orig1*CFrame.Angles(0,0,math.rad(-45));
  1005. orig2*CFrame.Angles(0,0,math.rad(45));
  1006. orig3*CFrame.Angles(math.rad(-45),math.rad(40),0);
  1007. orig4*CFrame.new(0,-0.5,0.5)*CFrame.Angles(math.rad(-90),0,0);
  1008. Joints[5].C0;
  1009. Joints[6].C0;
  1010. Joints[7].C0;
  1011. }
  1012.  
  1013. local lerper = coroutine.wrap(function(rate)
  1014. for i=1, 10 do
  1015. for p=1,#Joints do
  1016. if animstate == 5 then
  1017. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
  1018. end
  1019. end
  1020. wait(rate)
  1021. end
  1022. keyframe = 1
  1023. ready = true
  1024. end)
  1025. lerper(0.00001)
  1026. elseif keyframe == 1 then
  1027. ready = false
  1028. JointTargets={
  1029. orig1*CFrame.Angles(0,0,math.rad(90));
  1030. orig2*CFrame.Angles(0,0,math.rad(-90));
  1031. orig3*CFrame.Angles(math.rad(-25),0,0);
  1032. orig4*CFrame.new(0,-0.25,0.5)*CFrame.Angles(math.rad(-90),0,0);
  1033. Joints[5].C0;
  1034. Joints[6].C0;
  1035. Joints[7].C0;
  1036. }
  1037.  
  1038. local lerper = coroutine.wrap(function(rate)
  1039. for i=1, 10 do
  1040. for p=1,#Joints do
  1041. if animstate == 5 then
  1042. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
  1043. end
  1044. end
  1045. wait(rate)
  1046. end
  1047. keyframe = 2
  1048. ready = true
  1049. end)
  1050. lerper(0)
  1051. elseif keyframe == 2 then
  1052. ready = false
  1053. local hitter2 = true
  1054. local hits2 = {}
  1055. local throwbox = Instance.new("Part",workspace)
  1056. throwbox.Size = Vector3.new(1,9,1)
  1057. throwbox.CanCollide = false
  1058. throwbox.Anchored = false
  1059. throwbox.Transparency = 1
  1060. throwbox.CFrame = handle.CFrame*CFrame.Angles(0,0,math.rad(90))
  1061. throwbox.Name = "hitbox"
  1062.  
  1063. throwbox.Touched:connect(function(hit)
  1064. if hitter2 and hit ~= nil and hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1065. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1066. if humanoid ~= nil and humanoid ~= Character.Humanoid and Character.Humanoid ~= nil then
  1067. local donthit = false
  1068. for _,v in pairs (hits2) do
  1069. if v == hit.Parent.Name then
  1070. donthit = true
  1071. end
  1072. end
  1073. if not donthit then
  1074. local sound = Instance.new("Sound", hit.Parent:FindFirstChild("Torso"))
  1075. sound.SoundId = "rbxassetid://526719128"
  1076. sound.Volume = 5
  1077. sound.PlayOnRemove = true
  1078. sound:Remove()
  1079. humanoid:TakeDamage(damage)
  1080. indicate(hit.Parent:FindFirstChild("Head"),damage)
  1081. table.insert(hits2,hit.Parent.Name)
  1082. end
  1083. end
  1084. end
  1085. end)
  1086.  
  1087. JointTargets={
  1088. Joints[1].C0;
  1089. Joints[2].C0;
  1090. Joints[3].C0;
  1091. Joints[4].C0;
  1092. Joints[5].C0;
  1093. Joints[6].C0;
  1094. orig7*CFrame.new(0,-35,0)*CFrame.Angles(math.rad(180),0,0);
  1095. }
  1096.  
  1097. local lerper = coroutine.wrap(function(rate)
  1098. for i=1, 20 do
  1099. for p=1,#Joints do
  1100. if animstate == 5 then
  1101. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.05*i)
  1102. throwbox.CFrame = handle.CFrame*CFrame.Angles(0,0,math.rad(90))
  1103. end
  1104. end
  1105. wait(rate)
  1106. end
  1107. hits2 = {}
  1108.  
  1109. JointTargets={
  1110. Joints[1].C0;
  1111. Joints[2].C0;
  1112. Joints[3].C0;
  1113. Joints[4].C0;
  1114. Joints[5].C0;
  1115. Joints[6].C0;
  1116. orig7;
  1117. }
  1118.  
  1119. local lerper2 = coroutine.wrap(function(rate2)
  1120. for y=1, 20 do
  1121. for o=1,#Joints do
  1122. if animstate == 5 then
  1123. Joints[o].C0=Joints[o].C0:lerp(JointTargets[o],0.05*y)
  1124. throwbox.CFrame = handle.CFrame*CFrame.Angles(0,0,math.rad(90))
  1125. end
  1126. end
  1127. wait(rate2)
  1128. end
  1129. ready = true
  1130. hitter2 = false
  1131. attacking = false
  1132. animating = false
  1133. hits2 = {}
  1134. keyframe = 0
  1135. animstate = -1
  1136. throwbox:Remove()
  1137. Player.Character.Humanoid.WalkSpeed = speed
  1138. local cooler = coroutine.wrap(function()
  1139. wait(10)
  1140. cooled4 = true
  1141. end)
  1142. cooler()
  1143. end)
  1144. lerper2(0.001)
  1145. end)
  1146. lerper(0.001)
  1147. end
  1148.  
  1149. elseif animstate == 6 and ready then
  1150.  
  1151. if keyframe == 0 then
  1152. Player.Character.Humanoid.WalkSpeed = 0
  1153. ready = false
  1154. JointTargets={
  1155. orig1*CFrame.Angles(0,0,math.rad(90));
  1156. orig2*CFrame.Angles(0,0,math.rad(-90));
  1157. orig3*CFrame.Angles(math.rad(-25),math.rad(-10),0);
  1158. orig4*CFrame.new(0,-0.5,0.5)*CFrame.Angles(math.rad(-90),0,0);
  1159. Joints[5].C0;
  1160. Joints[6].C0;
  1161. orig7*CFrame.Angles(0,math.rad(-90),0);
  1162. }
  1163.  
  1164. local lerper = coroutine.wrap(function(rate)
  1165. for i=1, 10 do
  1166. for p=1,#Joints do
  1167. if animstate == 6 then
  1168. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],0.1*i)
  1169. end
  1170. end
  1171. wait(rate)
  1172. end
  1173. keyframe = 1
  1174. ready = true
  1175. end)
  1176. lerper(0)
  1177. elseif keyframe == 1 then
  1178. ready = false
  1179. local bladeweld = handle:FindFirstChild("BladeWeld")
  1180. if not equipped then
  1181. bladeweld.C0 = bladeweld.C0*CFrame.new(Vector3.new(3.5,0,0))
  1182. end
  1183. local grower = coroutine.wrap(function()
  1184. for i=1, 20 do
  1185. if not equipped then
  1186. if i == 10 then
  1187. blade.Transparency = blade.Transparency - 0.5
  1188. end
  1189. if i > 10 then
  1190. blade.Transparency = blade.Transparency - 0.05
  1191. end
  1192. bladeweld.C0 = bladeweld.C0*CFrame.new(Vector3.new(-(0.35/2),0,0))
  1193. else
  1194. blade.Transparency = blade.Transparency + 0.05
  1195. end
  1196. wait(0.001)
  1197. end
  1198. if not equipped then
  1199. equipped = true
  1200. else
  1201. equipped = false
  1202. end
  1203. JointTargets={
  1204. Joints[1].C0;
  1205. Joints[2].C0;
  1206. Joints[3].C0;
  1207. Joints[4].C0;
  1208. Joints[5].C0;
  1209. Joints[6].C0;
  1210. orig7;
  1211. }
  1212.  
  1213. local lerper = coroutine.wrap(function(rate)
  1214. for p=1,#Joints do
  1215. Joints[p].C0=Joints[p].C0:lerp(JointTargets[p],1)
  1216. end
  1217. Player.Character.Humanoid.WalkSpeed = speed
  1218. ready = true
  1219. attacking = false
  1220. animating = false
  1221. animstate = -1
  1222. keyframe = 0
  1223. end)
  1224. lerper()
  1225. end)
  1226. grower()
  1227. end
  1228.  
  1229. end
  1230. wait()
  1231. end
  1232. end)
  1233. animator()
  1234.  
  1235. Mouse.KeyDown:connect(function(key)
  1236. if key == 'f' and not attacking and not animating then
  1237. if not equipped then
  1238. animating = true
  1239. attacking = true
  1240. button.BrickColor = BrickColor.new("Black")
  1241. ready = true
  1242. keyframe = 0
  1243. animstate = 6
  1244. elseif equipped then
  1245. animating = true
  1246. attacking = true
  1247. button.BrickColor = BrickColor.new("Really red")
  1248. ready = true
  1249. keyframe = 0
  1250. animstate = 6
  1251. end
  1252. elseif key=='e' and equipped and not animating and cooled and combo < 3 then
  1253. print("epress")
  1254. attacking = true
  1255. ready = true
  1256. animstate = 2
  1257. keyframe = 0
  1258. combo = combo + 1
  1259. print(combo)
  1260. elseif key=='q' and not animating and not attacking and cooled2 and Mouse.Target and Mouse.Target.Parent and Mouse.Target.Parent:FindFirstChild("Humanoid") and Mouse.Target.Parent ~= Player.Character and (Player.Character.Torso.Position-Mouse.Target.Parent:FindFirstChild("Torso").Position).magnitude <= 45 then
  1261. print("qpress")
  1262. attacking = true
  1263. qtarget = Mouse.Target.Parent
  1264. ready = true
  1265. animstate = 3
  1266. keyframe = 0
  1267. elseif key=='r' and not animating and cooled3 then
  1268. print("rpress")
  1269. attacking = true
  1270. ready = true
  1271. animstate = 4
  1272. keyframe = 0
  1273. elseif key=='t' and not animating and cooled4 and equipped and not attacking then
  1274. print("tpress")
  1275. attacking = true
  1276. ready = true
  1277. animstate = 5
  1278. keyframe = 0
  1279. end
  1280. end)
  1281.  
  1282. blade.Touched:connect(function(hit)
  1283. if hitter and hit ~= nil and hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1284. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1285. if humanoid ~= nil and humanoid ~= Character.Humanoid and Character.Humanoid ~= nil then
  1286. local donthit = false
  1287. for _,v in pairs (hits) do
  1288. if v == hit.Parent.Name then
  1289. donthit = true
  1290. end
  1291. end
  1292. if not donthit then
  1293. local sound = Instance.new("Sound", hit.Parent:FindFirstChild("Torso"))
  1294. sound.SoundId = "rbxassetid://526719128"
  1295. sound.Volume = 5
  1296. sound.PlayOnRemove = true
  1297. sound:Remove()
  1298. humanoid:TakeDamage(damage)
  1299. indicate(hit.Parent:FindFirstChild("Head"),damage)
  1300. table.insert(hits,hit.Parent.Name)
  1301. end
  1302. end
  1303. end
  1304. end)
  1305.  
  1306. local plr = game.Players.LocalPlayer
  1307. local good = true
  1308. local R15 = false
  1309. while plr.Character == nil or plr.Character:FindFirstChildOfClass('Humanoid') == nil do
  1310. wait()
  1311. end
  1312. if plr.Character:FindFirstChildOfClass('Humanoid').RigType == Enum.HumanoidRigType.R15 then
  1313. R15 = true
  1314. end
  1315.  
  1316. function makegui()
  1317. -- Objects
  1318.  
  1319. local ScreenGui = Instance.new("ScreenGui")
  1320. local Frame = Instance.new("Frame")
  1321. local TextBox = Instance.new("TextLabel")
  1322.  
  1323. -- Properties
  1324.  
  1325. ScreenGui.Parent = plr.PlayerGui
  1326.  
  1327. Frame.Parent = ScreenGui
  1328. Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  1329. Frame.BackgroundTransparency = 0.5
  1330. Frame.BorderSizePixel = 0
  1331. Frame.Size = UDim2.new(1, 0, 0, 0)
  1332.  
  1333. TextBox.Parent = Frame
  1334. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  1335. TextBox.BackgroundTransparency = 1
  1336. TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
  1337. TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  1338. TextBox.Font = Enum.Font.Code
  1339. TextBox.FontSize = Enum.FontSize.Size14
  1340. TextBox.Text = ""
  1341. TextBox.TextColor3 = Color3.new(1, 1, 1)
  1342. TextBox.TextScaled = true
  1343. TextBox.TextSize = 14
  1344. TextBox.TextWrapped = true
  1345. Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  1346. wait(1.5)
  1347. local text = "This script doesn't work in R15, sorry!"
  1348. for i=1,string.len(text) do
  1349. TextBox.Text = string.sub(text,1,i)
  1350. wait()
  1351. end
  1352. wait(2)
  1353. TextBox.Text = ""
  1354. Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  1355. end
  1356. function makegui2()
  1357. -- Objects
  1358.  
  1359. local ScreenGui = Instance.new("ScreenGui")
  1360. local Frame = Instance.new("Frame")
  1361. local TextBox = Instance.new("TextLabel")
  1362.  
  1363. -- Properties
  1364.  
  1365. ScreenGui.Parent = plr.PlayerGui
  1366.  
  1367. Frame.Parent = ScreenGui
  1368. Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  1369. Frame.BackgroundTransparency = 0.5
  1370. Frame.BorderSizePixel = 0
  1371. Frame.Size = UDim2.new(1, 0, 0, 0)
  1372.  
  1373. TextBox.Parent = Frame
  1374. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  1375. TextBox.BackgroundTransparency = 1
  1376. TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
  1377. TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  1378. TextBox.Font = Enum.Font.Code
  1379. TextBox.FontSize = Enum.FontSize.Size14
  1380. TextBox.Text = ""
  1381. TextBox.TextColor3 = Color3.new(1, 1, 1)
  1382. TextBox.TextScaled = true
  1383. TextBox.TextSize = 14
  1384. TextBox.TextWrapped = true
  1385. Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  1386. wait(1.5)
  1387. local text = "This script doesn't work in Filtering Enabled, sorry!"
  1388. for i=1,string.len(text) do
  1389. TextBox.Text = string.sub(text,1,i)
  1390. wait()
  1391. end
  1392. wait(2)
  1393. TextBox.Text = ""
  1394. Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  1395. end
  1396. function makegui3()
  1397. -- Objects
  1398.  
  1399. local ScreenGui = Instance.new("ScreenGui")
  1400. local Frame = Instance.new("Frame")
  1401. local TextBox = Instance.new("TextLabel")
  1402.  
  1403. -- Properties
  1404.  
  1405. ScreenGui.Parent = plr.PlayerGui
  1406.  
  1407. Frame.Parent = ScreenGui
  1408. Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  1409. Frame.BackgroundTransparency = 0.5
  1410. Frame.BorderSizePixel = 0
  1411. Frame.Size = UDim2.new(1, 0, 0, 0)
  1412.  
  1413. TextBox.Parent = Frame
  1414. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  1415. TextBox.BackgroundTransparency = 1
  1416. TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
  1417. TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  1418. TextBox.Font = Enum.Font.Code
  1419. TextBox.FontSize = Enum.FontSize.Size14
  1420. TextBox.Text = ""
  1421. TextBox.TextColor3 = Color3.new(1, 1, 1)
  1422. TextBox.TextScaled = true
  1423. TextBox.TextSize = 14
  1424. TextBox.TextWrapped = true
  1425. Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  1426. wait(1.5)
  1427. local text = "Press F on a player to force choke them, and hold G to use force lightning."
  1428. for i=1,string.len(text) do
  1429. TextBox.Text = string.sub(text,1,i)
  1430. wait()
  1431. end
  1432. wait(2)
  1433. TextBox.Text = ""
  1434. Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  1435. end
  1436.  
  1437.  
  1438. local coru = coroutine.wrap(function()
  1439. if R15 then
  1440. good = false
  1441. makegui()
  1442. elseif workspace.FilteringEnabled then
  1443. good = false
  1444. makegui2()
  1445. else
  1446. makegui3()
  1447. end
  1448. end)
  1449. coru()
  1450.  
  1451.  
  1452. if good then
  1453. local mou = plr:GetMouse()
  1454. local choking = false
  1455. local zapping = false
  1456. local target = nil
  1457. local lastzap = nil
  1458. local oldHit = nil
  1459. local startpos = CFrame.new(0,0,0)
  1460. local beforehealth = 100
  1461. local timez = 0
  1462.  
  1463. Gibs = workspace
  1464.  
  1465. function Kill(Character,yee,oh)
  1466. if Character:FindFirstChildOfClass('Humanoid') then
  1467. Character:FindFirstChildOfClass('Humanoid').Health = 0
  1468. local svch = Character
  1469. local hum = Character:findFirstChild("Humanoid")
  1470. Character.Archivable = true
  1471. local chrclone = Character:clone()
  1472. Character.Archivable = false
  1473.  
  1474. local ch = chrclone:GetChildren()
  1475. local i
  1476. for i = 1,#ch do
  1477. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  1478. ch[i]:remove()
  1479. end
  1480. end
  1481. local function Scan(ch)
  1482. local e
  1483. for e = 1,#ch do
  1484. Scan(ch[e]:GetChildren())
  1485. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1486. ch[e]:remove()
  1487. end
  1488. end
  1489. end
  1490. Scan(chrclone:GetChildren())
  1491.  
  1492. local hum2 = chrclone:findFirstChild("Humanoid")
  1493.  
  1494.  
  1495. if hum2 ~= nil then
  1496. hum2.Name = "Humanoid2"
  1497. hum2.PlatformStand = true
  1498. hum2.Sit = true
  1499. hum2.MaxHealth = 0
  1500. hum2.Health = 0
  1501. end
  1502.  
  1503. local ch = Character:GetChildren()
  1504. local i
  1505. for i = 1,#ch do
  1506. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1507. ch[i]:remove()
  1508. end
  1509. end
  1510.  
  1511. wait(0.2)
  1512.  
  1513. local ch = Character:GetChildren()
  1514. local i
  1515. for i = 1,#ch do
  1516. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1517. ch[i]:remove()
  1518. end
  1519. end
  1520. Character = chrclone
  1521. local Torso = Character.Torso
  1522. local movevector = Vector3.new()
  1523. if Character.Torso ~= nil then
  1524. local killtors = Character:findFirstChild("Torso")
  1525. if killtors ~= nil then
  1526. movevector = CFrame.new(plr.Character["Right Arm"].Position,Torso.Position).lookVector
  1527. end
  1528. end
  1529. if Torso then
  1530. local Head = Character:FindFirstChild("Head")
  1531. if Head and yee == false then
  1532. local Neck = Instance.new("Weld")
  1533. Neck.Name = "Neck"
  1534. Neck.Part0 = Torso
  1535. Neck.Part1 = Head
  1536. Neck.C0 = CFrame.new(0, 1.5, 0)
  1537. Neck.C1 = CFrame.new()
  1538. Neck.Parent = Torso
  1539. end
  1540. local Limb = Character:FindFirstChild("Right Arm")
  1541. if Limb then
  1542. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  1543. local Joint = Instance.new("Glue")
  1544. Joint.Name = "RightShoulder"
  1545. Joint.Part0 = Torso
  1546. Joint.Part1 = Limb
  1547. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1548. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1549. Joint.Parent = Torso
  1550. local B = Instance.new("Part")
  1551. B.TopSurface = 0
  1552. B.BottomSurface = 0
  1553. B.formFactor = "Symmetric"
  1554. B.Size = Vector3.new(1, 1, 1)
  1555. B.Transparency = 1
  1556. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1557. B.Parent = Character
  1558. local W = Instance.new("Weld")
  1559. W.Part0 = Limb
  1560. W.Part1 = B
  1561. W.C0 = CFrame.new(0, -0.5, 0)
  1562. W.Parent = Limb
  1563. end
  1564. local Limb = Character:FindFirstChild("Left Arm")
  1565. if Limb then
  1566. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  1567. local Joint = Instance.new("Glue")
  1568. Joint.Name = "LeftShoulder"
  1569. Joint.Part0 = Torso
  1570. Joint.Part1 = Limb
  1571. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1572. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1573. Joint.Parent = Torso
  1574.  
  1575. local B = Instance.new("Part")
  1576. B.TopSurface = 0
  1577. B.BottomSurface = 0
  1578. B.formFactor = "Symmetric"
  1579. B.Size = Vector3.new(1, 1, 1)
  1580. B.Transparency = 1
  1581. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1582. B.Parent = Character
  1583. local W = Instance.new("Weld")
  1584. W.Part0 = Limb
  1585. W.Part1 = B
  1586. W.C0 = CFrame.new(0, -0.5, 0)
  1587. W.Parent = Limb
  1588. end
  1589. local Limb = Character:FindFirstChild("Right Leg")
  1590. if Limb then
  1591.  
  1592. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  1593. local Joint = Instance.new("Glue")
  1594. Joint.Name = "RightHip"
  1595. Joint.Part0 = Torso
  1596. Joint.Part1 = Limb
  1597. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1598. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1599. Joint.Parent = Torso
  1600.  
  1601. local B = Instance.new("Part")
  1602. B.TopSurface = 0
  1603. B.BottomSurface = 0
  1604. B.formFactor = "Symmetric"
  1605. B.Size = Vector3.new(1, 1, 1)
  1606. B.Transparency = 1
  1607. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1608. B.Parent = Character
  1609. local W = Instance.new("Weld")
  1610. W.Part0 = Limb
  1611. W.Part1 = B
  1612. W.C0 = CFrame.new(0, -0.5, 0)
  1613. W.Parent = Limb
  1614.  
  1615. end
  1616. local Limb = Character:FindFirstChild("Left Leg")
  1617. if Limb then
  1618.  
  1619. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  1620. local Joint = Instance.new("Glue")
  1621. Joint.Name = "LeftHip"
  1622. Joint.Part0 = Torso
  1623. Joint.Part1 = Limb
  1624. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1625. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1626. Joint.Parent = Torso
  1627.  
  1628. local B = Instance.new("Part")
  1629. B.TopSurface = 0
  1630. B.BottomSurface = 0
  1631. B.formFactor = "Symmetric"
  1632. B.Size = Vector3.new(1, 1, 1)
  1633. B.Transparency = 1
  1634. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1635. B.Parent = Character
  1636. local W = Instance.new("Weld")
  1637. W.Part0 = Limb
  1638. W.Part1 = B
  1639. W.C0 = CFrame.new(0, -0.5, 0)
  1640. W.Parent = Limb
  1641.  
  1642. end
  1643. --[
  1644. local Bar = Instance.new("Part")
  1645. Bar.TopSurface = 0
  1646. Bar.BottomSurface = 0
  1647. Bar.formFactor = "Symmetric"
  1648. Bar.Size = Vector3.new(1, 1, 1)
  1649. Bar.Transparency = 1
  1650. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  1651. Bar.Parent = Character
  1652. local Weld = Instance.new("Weld")
  1653. Weld.Part0 = Torso
  1654. Weld.Part1 = Bar
  1655. Weld.C0 = CFrame.new(0, 0.5, 0)
  1656. Weld.Parent = Torso
  1657. --]]
  1658. end
  1659. Character.Parent = Gibs
  1660. game.Debris:AddItem(Character, 12)
  1661. Character.Torso.Velocity = plr.Character.Torso.CFrame.lookVector*10
  1662. Character.Head.Velocity = plr.Character.Torso.CFrame.lookVector*10
  1663. if oh then
  1664. local repulse = Instance.new('BodyForce',Torso)
  1665. repulse.Force = movevector*10000 + Vector3.new(0,1000,0)
  1666. game.Debris:AddItem(repulse,0.05)
  1667. for i,v in pairs(chrclone:GetChildren()) do
  1668. if v:IsA('BasePart') then
  1669. v.BrickColor = BrickColor.Black()
  1670. end
  1671. end
  1672. local sound = Instance.new('Sound',Torso)
  1673. sound.EmitterSize = 50
  1674. sound.MaxDistance = 100
  1675. sound.Volume = 6
  1676. sound.SoundId = 'rbxassetid://157325701'
  1677. sound:Play()
  1678. sound.Ended:connect(function()
  1679. sound:Destroy()
  1680. end)
  1681. end
  1682. local duh = Torso
  1683. if yee == true then
  1684. ee = Instance.new("Part")
  1685. ee.Anchored = false
  1686. ee.CanCollide = false
  1687. ee.Parent = duh
  1688. ee.Transparency =1
  1689. ee.Size = Vector3.new(0.15, 0.15, 0.15)
  1690. wee = Instance.new("Weld")
  1691. wee.Parent = duh
  1692. wee.Part0 = duh
  1693. wee.Part1 = ee
  1694. wee.C0 = CFrame.new(0, 1, 0)
  1695. ge = Instance.new('ParticleEmitter')
  1696. ge.Parent = ee
  1697. ge.Texture = "rbxassetid://29712167"
  1698. ge.Size = NumberSequence.new(0.2,0.05)
  1699. ge.Acceleration = Vector3.new(0, -20, 0)
  1700. ge.Rate = 100000
  1701. ge.Speed = NumberRange.new(7,8)
  1702. ge.Lifetime = NumberRange.new(3,4)
  1703. ge.VelocitySpread = 10
  1704. ge.VelocityInheritance = 0.3
  1705. ea = Instance.new("Part")
  1706. ea.Anchored = false
  1707. ea.CanCollide = false
  1708. ea.Parent = Character.Head
  1709. ea.Transparency =1
  1710. ea.Size = Vector3.new(0.15, 0.15, 0.15)
  1711. wea = Instance.new("Weld")
  1712. wea.Parent = Character.Head
  1713. wea.Part0 = Character.Head
  1714. wea.Part1 = ea
  1715. wea.C0 = CFrame.new(0, -0.7, 0)
  1716. ga = Instance.new('ParticleEmitter')
  1717. ga.Parent = ea
  1718. ga.Texture = "rbxassetid://29712167"
  1719. ga.Size = NumberSequence.new(0.2,0.05)
  1720. ga.Acceleration = Vector3.new(0, -20, 0)
  1721. ga.Rate = 100000
  1722. ga.Speed = NumberRange.new(7,8)
  1723. ga.Lifetime = NumberRange.new(3,4)
  1724. ga.VelocitySpread = 10
  1725. ga.VelocityInheritance = 0.3
  1726. ga.EmissionDirection = Enum.NormalId.Bottom
  1727. end
  1728. end
  1729. end
  1730.  
  1731. function gettouching(startpos,endpos,dont)
  1732. local ray = Ray.new(startpos,(endpos-startpos).unit*300)
  1733. local ignore = {}
  1734. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  1735. if v.Character and v ~= plr then
  1736. table.insert(ignore,v.Character)
  1737. end
  1738. end
  1739. local part,pos = workspace:FindPartOnRayWithWhitelist(ray,ignore,false)
  1740. if part then
  1741. if part.Parent:FindFirstChildOfClass('Humanoid') and part.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
  1742. local coru = coroutine.wrap(function()
  1743. Kill(part.Parent,false,true)
  1744. end)
  1745. coru()
  1746. end
  1747. end
  1748. table.insert(ignore,dont)
  1749. local part2,pos2 = workspace:FindPartOnRayWithIgnoreList(ray,ignore,false,true)
  1750. if part2 and part2.Parent and part2.Parent ~= plr.Character and part2.Parent:FindFirstChildOfClass('Humanoid') and part2.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
  1751. local coru = coroutine.wrap(function()
  1752. Kill(part2.Parent,false,true)
  1753. end)
  1754. coru()
  1755. end
  1756. end
  1757.  
  1758. function makelaser(parent)
  1759. local part = Instance.new('Part',parent)
  1760. part.Size = Vector3.new(0.2,0.2,0.2)
  1761. part.Transparency = 1
  1762. part.CanCollide = false
  1763. local weld = Instance.new('Weld',part)
  1764. weld.Part0 = part
  1765. weld.Part1 = plr.Character["Right Arm"]
  1766. weld.C0 = CFrame.new(0,1.25,0)
  1767. for i=1,5 do
  1768. local mouse = mou
  1769. targ = mouse.Target
  1770. if targ then
  1771. hum = targ.Parent:findFirstChild("Humanoid")
  1772. Hit = mouse.hit
  1773. local P = Instance.new("Part")
  1774. P.Name = "Guideline"
  1775. P.Material = Enum.Material.Neon
  1776. local Place0 = part.CFrame
  1777. P.formFactor = 0
  1778. P.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  1779. if plr.Character:FindFirstChild('Right Arm') then
  1780. for i,v in pairs(plr.Character:FindFirstChild('Right Arm'):GetChildren()) do
  1781. if v:IsA('Sound') and v.Name == "Electricity" then
  1782. if Place0 and Hit and (Place0.p - Hit.p).magnitude >= 20 then
  1783. v.MaxDistance = (Place0.p - Hit.p).magnitude
  1784. v.EmitterSize = (Place0.p - Hit.p).magnitude
  1785. elseif Place0 and Hit then
  1786. v.MaxDistance = 20
  1787. v.EmitterSize = 20
  1788. end
  1789. end
  1790. end
  1791. end
  1792. P.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  1793. P.Parent = parent
  1794. P.BrickColor = BrickColor.Yellow()
  1795. P.Anchored = true
  1796. P.CanCollide = false
  1797. P.Transparency = 1
  1798. local m = Instance.new("BlockMesh")
  1799. m.Scale = Vector3.new(0.1,0.1,1)
  1800. m.Parent = P
  1801. local mh = mouse.Hit
  1802. for c1 = 1, 1 do
  1803. oldHit = part.CFrame
  1804. for count = 1, 9 do
  1805. local val1 = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  1806. local val2 = P.Size.z / 10
  1807. local val3 = P.CFrame.lookVector * -1
  1808. local val4 = count * val2
  1809. local val5 = val4 * val3
  1810. local val6 = part.CFrame.p
  1811. local Hit = CFrame.new(val5 + val1 + val6)
  1812. local s = Instance.new("Part")
  1813. s.Name = "Spark"
  1814. s.Material = Enum.Material.Neon
  1815. local Place0 = oldHit
  1816. s.formFactor = 0
  1817. s.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  1818. s.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  1819. s.Parent = parent
  1820. s.BrickColor = BrickColor.new('Instatutional white')
  1821. s.Anchored = true
  1822. s.CanCollide = false
  1823. m = Instance.new("BlockMesh")
  1824. m.Scale = Vector3.new(0.1,0.1,1)
  1825. m.Parent = s
  1826. local clone = s:clone()
  1827. clone.Mesh.Scale = Vector3.new(0.3,0.3,1.1)
  1828. clone.BrickColor = BrickColor.new('Electric blue')
  1829. clone.Transparency = 0.8
  1830. clone.Parent = s.Parent
  1831. oldHit = Hit
  1832. end
  1833. Hit = oldHit
  1834. local s = Instance.new("Part")
  1835. s.Name = "Spark"
  1836. s.Material = Enum.Material.Neon
  1837. local Place0 = mh
  1838. s.formFactor = 0
  1839. s.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  1840. s.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  1841. s.Parent = parent
  1842. s.BrickColor = BrickColor.new('Instatutional white')
  1843. s.Anchored = true
  1844. s.CanCollide = false
  1845. m = Instance.new("BlockMesh")
  1846. m.Scale = Vector3.new(0.1,0.1,1)
  1847. m.Parent = s
  1848. local clone = s:clone()
  1849. clone.Mesh.Scale = Vector3.new(0.3,0.3,1.1)
  1850. clone.BrickColor = BrickColor.new('Electric blue')
  1851. clone.Transparency = 0.8
  1852. clone.Parent = s.Parent
  1853. gettouching(part.Position,mou.Hit.p,parent)
  1854. end
  1855. P:remove()
  1856. end
  1857. end
  1858. end
  1859.  
  1860. function chokearms(chr)
  1861. if chr:FindFirstChild('Torso') then
  1862. if chr:FindFirstChild('Right Arm') then
  1863. if chr.Torso:FindFirstChild('Right Shoulder') then
  1864. chr.Torso["Right Shoulder"]:Destroy()
  1865. end
  1866. local thing = Instance.new('Weld',chr.Torso)
  1867. thing.Name = "Right Shoulder"
  1868. thing.Part0 = chr.Torso
  1869. thing.Part1 = chr["Right Arm"]
  1870. thing.C0 = CFrame.new(0.811074257, 0.835914135, -0.381313324, 0.27563563, 0.961260796, 2.0569455e-06, 0.488285512, -0.140010983, -0.861379266, -0.828009903, 0.237427771, -0.50796169)
  1871. end
  1872. if chr:FindFirstChild('Left Arm') then
  1873. if chr.Torso:FindFirstChild('Left Shoulder') then
  1874. chr.Torso["Left Shoulder"]:Destroy()
  1875. end
  1876. local thing = Instance.new('Weld',chr.Torso)
  1877. thing.Name = "Left Shoulder"
  1878. thing.Part0 = chr["Left Arm"]
  1879. thing.Part1 = chr.Torso
  1880. thing.C0 = CFrame.new(0.962814331, -0.457080841, 0.306755066, 0.309041202, -0.579310298, 0.754249752, -0.951046288, -0.188228443, 0.245104745, -2.09111568e-05, -0.793076754, -0.609121859)
  1881. end
  1882. end
  1883. end
  1884.  
  1885. function fixarms(chr)
  1886. if chr:FindFirstChild('Torso') then
  1887. for i,v in pairs(chr.Torso:GetChildren()) do
  1888. if v.Name == "Right Shoulder" or v.Name == "Left Shoulder" then
  1889. v:Destroy()
  1890. end
  1891. end
  1892. if chr:FindFirstChild('Right Arm') then
  1893. local rs = Instance.new('Motor6D',chr.Torso)
  1894. rs.Name = "Right Shoulder"
  1895. rs.Part0 = chr.Torso
  1896. rs.Part1 = chr:FindFirstChild('Right Arm')
  1897. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1898. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1899. end
  1900. if chr:FindFirstChild('Left Arm') then
  1901. local ls = Instance.new('Motor6D',chr.Torso)
  1902. ls.Name = "Left Shoulder"
  1903. ls.Part0 = chr.Torso
  1904. ls.Part1 = chr:FindFirstChild('Left Arm')
  1905. ls.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1906. ls.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1907. end
  1908. end
  1909. end
  1910.  
  1911. mou.KeyDown:connect(function(key)
  1912. if key == "f" and mou.Target and zapping == false then
  1913. if choking == false then
  1914. local hum = mou.Target.Parent:FindFirstChildOfClass('Humanoid')
  1915.  
  1916. if hum == nil then
  1917. hum = mou.Target.Parent.Parent:FindFirstChildOfClass('Humanoid')
  1918. end
  1919.  
  1920. if hum and hum.Parent:FindFirstChild('Torso') and hum.Health > 0 then
  1921. beforehealth = hum.Health
  1922. choking = true
  1923. target = hum.Parent.Torso
  1924. local sound = Instance.new('Sound',target)
  1925. sound.Volume = 5
  1926. sound.EmitterSize = 50
  1927. sound.MaxDistance = 100
  1928. sound.SoundId = 'rbxassetid://418658161'
  1929. sound.Looped = false
  1930. sound.PlaybackSpeed = 0.75
  1931. sound.Name = "Choking"
  1932. sound:Play()
  1933. startpos = target.CFrame
  1934. chokearms(target.Parent)
  1935. local bod = Instance.new('BodyPosition',hum.Parent.Torso)
  1936. bod.Position = target.Position+Vector3.new(0,12,0)
  1937. bod.MaxForce = Vector3.new(100000,100000,100000)
  1938. bod.P = 1000
  1939. bod.D = 500
  1940. end
  1941. if target and target:FindFirstChild('Breathing') then
  1942. target.Breathing:Destroy()
  1943. end
  1944. local coru = coroutine.wrap(function()
  1945. while timez < 5 and choking do
  1946. timez = timez + 0.1
  1947. if target.Parent:FindFirstChildOfClass('Humanoid') then
  1948. if target.Parent:FindFirstChildOfClass('Humanoid').Health - (beforehealth/49) > 0 then
  1949. target.Parent:FindFirstChildOfClass('Humanoid').Health = target.Parent:FindFirstChildOfClass('Humanoid').Health - (beforehealth/49)
  1950. end
  1951. end
  1952. wait(0.1)
  1953. end
  1954. if timez >= 5 then
  1955. if target and target.Parent and target.Parent:FindFirstChildOfClass('Humanoid') and target.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
  1956. if target and target:FindFirstChild('Choking') then
  1957. target.Choking:Stop()
  1958. target.Choking:Destroy()
  1959. end
  1960. if target then
  1961. for i,v in pairs(target:GetChildren()) do
  1962. if v:IsA("BodyPosition") then
  1963. v:Destroy()
  1964. end
  1965. end
  1966. end
  1967. Kill(target.Parent,false,false)
  1968. end
  1969. end
  1970. target = nil
  1971. choking = false
  1972. startpos = CFrame.new(0,0,0)
  1973. timez = 0
  1974. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  1975. if v.Name == "Right Shoulder" and v:IsA('Weld') then
  1976. v:Destroy()
  1977. end
  1978. end
  1979. if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
  1980. local rs = Instance.new('Motor6D',plr.Character.Torso)
  1981. rs.Name = "Right Shoulder"
  1982. rs.Part0 = plr.Character.Torso
  1983. rs.Part1 = plr.Character:FindFirstChild('Right Arm')
  1984. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1985. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1986. end
  1987. end)
  1988. coru()
  1989. else
  1990. if target and target:FindFirstChild('Choking') then
  1991. fixarms(target.Parent)
  1992. target.Choking:Stop()
  1993. target.Choking:Destroy()
  1994. local sound = Instance.new('Sound',target)
  1995. sound.Volume = 5
  1996. sound.EmitterSize = 50
  1997. sound.MaxDistance = 100
  1998. sound.SoundId = 'rbxassetid://304511128'
  1999. sound.Looped = true
  2000. sound.PlaybackSpeed = 1
  2001. sound.Name = "Breathing"
  2002. sound:Play()
  2003. game:GetService('Debris'):AddItem(sound,timez)
  2004. for i,v in pairs(target:GetChildren()) do
  2005. if v:IsA("BodyPosition") then
  2006. v:Destroy()
  2007. end
  2008. end
  2009. end
  2010. if target.Parent:FindFirstChildOfClass('Humanoid') then
  2011. target.Parent:FindFirstChildOfClass('Humanoid').Health = beforehealth
  2012. end
  2013. target = nil
  2014. choking = false
  2015. startpos = CFrame.new(0,0,0)
  2016. timez = 0
  2017. end
  2018. elseif key == "g" and choking == false then
  2019. zapping = true
  2020. local electricity = Instance.new("Sound",plr.Character:FindFirstChild('Right Arm'))
  2021. electricity.Name = "Electricity"
  2022. electricity.SoundId = "rbxassetid://379557765"
  2023. electricity.Volume = 5
  2024. electricity.EmitterSize = 100
  2025. electricity.MaxDistance = 100
  2026. electricity.Looped = true
  2027. electricity:Play()
  2028. end
  2029. end)
  2030.  
  2031. mou.KeyUp:connect(function(key)
  2032. if key == "g" then
  2033. zapping = false
  2034. if plr.Character:FindFirstChild('Right Arm') then
  2035. for i,v in pairs(plr.Character:FindFirstChild('Right Arm'):GetChildren()) do
  2036. if v:IsA('Sound') and v.Name == "Electricity" then
  2037. v:Destroy()
  2038. end
  2039. end
  2040. end
  2041. end
  2042. end)
  2043.  
  2044.  
  2045. while true do
  2046. if choking and plr.Character and target and target.Parent and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') then
  2047. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  2048. if v.Name == "Right Shoulder" then
  2049. v:Destroy()
  2050. end
  2051. end
  2052. local Head = plr.Character.Head
  2053. local RightArm = plr.Character["Right Arm"]
  2054. local RightShoulder = Instance.new('Weld',plr.Character.Torso)
  2055. RightShoulder.Name = "Right Shoulder"
  2056. RightShoulder.Part0 = plr.Character.Torso
  2057. RightShoulder.Part1 = RightArm
  2058. RightShoulder.C0 = CFrame.new(1,1,-0.75)
  2059. local MousePosition = target.Position+(target.Size/2)
  2060. local ToMouse = (MousePosition - Head.Position).unit
  2061. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  2062. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
  2063. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  2064. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  2065. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  2066. if tostring(LateralAngle) == "-1.#IND" then
  2067. LateralAngle = 0
  2068. end
  2069. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  2070. local change = false
  2071. if LateralAngle > (math.pi / 2) then
  2072. LateralAngle = (math.pi / 2)
  2073. change = true
  2074. end
  2075. if Cross.Y < 0 then
  2076. LateralAngle = -LateralAngle
  2077. end
  2078. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
  2079. for i,v in pairs(target.Parent:GetChildren()) do
  2080. if v:IsA('Tool') then
  2081. v.ManualActivationOnly = true
  2082. end
  2083. end
  2084. elseif zapping == false and plr and plr.Character and plr.Character:FindFirstChild("Torso") and plr.Character:FindFirstChild('Right Arm') then
  2085. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  2086. if v.Name == "Right Shoulder" and v:IsA('Weld') then
  2087. v:Destroy()
  2088. end
  2089. end
  2090. if target then
  2091. for i,v in pairs(target:GetChildren()) do
  2092. if v:IsA("BodyPosition") then
  2093. v:Destroy()
  2094. end
  2095. end
  2096. if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
  2097. local rs = Instance.new('Motor6D',plr.Character.Torso)
  2098. rs.Name = "Right Shoulder"
  2099. rs.Part0 = plr.Character.Torso
  2100. rs.Part1 = plr.Character:FindFirstChild('Right Arm')
  2101. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2102. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2103. end
  2104. if target.Parent then
  2105. for i,v in pairs(target.Parent:GetChildren()) do
  2106. if v:IsA('Tool') then
  2107. v.ManualActivationOnly = false
  2108. end
  2109. end
  2110. end
  2111. end
  2112. target = nil
  2113. choking = false
  2114. startpos = CFrame.new(0,0,0)
  2115. timez = 0
  2116. end
  2117. if zapping and plr.Character and mou.Hit and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') then
  2118. if lastzap then
  2119. lastzap:Destroy()
  2120. lastzap = nil
  2121. end
  2122. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  2123. if v.Name == "Right Shoulder" then
  2124. v:Destroy()
  2125. end
  2126. end
  2127. local Head = plr.Character.Head
  2128. local RightArm = plr.Character["Right Arm"]
  2129. local RightShoulder = Instance.new('Weld',plr.Character.Torso)
  2130. RightShoulder.Name = "Right Shoulder"
  2131. RightShoulder.Part0 = plr.Character.Torso
  2132. RightShoulder.Part1 = RightArm
  2133. RightShoulder.C0 = CFrame.new(1,1,-0.75)
  2134. local MousePosition = mou.Hit.p
  2135. local ToMouse = (MousePosition - Head.Position).unit
  2136. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  2137. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
  2138. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  2139. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  2140. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  2141. if tostring(LateralAngle) == "-1.#IND" then
  2142. LateralAngle = 0
  2143. end
  2144. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  2145. local change = false
  2146. if LateralAngle > (math.pi / 2) then
  2147. LateralAngle = (math.pi / 2)
  2148. change = true
  2149. end
  2150. if Cross.Y < 0 then
  2151. LateralAngle = -LateralAngle
  2152. end
  2153. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
  2154. local thing = Instance.new('Model',workspace)
  2155. thing.Name = "Zap"
  2156. lastzap = thing
  2157. makelaser(thing)
  2158. elseif choking == false and zapping == false then
  2159. if lastzap then
  2160. lastzap:Destroy()
  2161. lastzap = nil
  2162. end
  2163. if plr.Character:FindFirstChild('Torso') then
  2164. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  2165. if v.Name == "Right Shoulder" and v:IsA('Weld') then
  2166. v:Destroy()
  2167. end
  2168. end
  2169. if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
  2170. local rs = Instance.new('Motor6D',plr.Character.Torso)
  2171. rs.Name = "Right Shoulder"
  2172. rs.Part0 = plr.Character.Torso
  2173. rs.Part1 = plr.Character:FindFirstChild('Right Arm')
  2174. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2175. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2176. end
  2177. end
  2178. end
  2179. wait()
  2180. end
  2181. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement