Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.90 KB | None | 0 0
  1. local plrs = game:GetService("Players")
  2. local plr = plrs.LocalPlayer
  3. local Mouse = plr:GetMouse()
  4. local char = plr.Character
  5. local tweenserv = game:GetService("TweenService")
  6. local lighting = game:GetService("Lighting")
  7. local hum = char:FindFirstChildOfClass("Humanoid")
  8. local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  9. local root = char:FindFirstChild("HumanoidRootPart")
  10. local head = char:FindFirstChild("Head")
  11. local face = head:FindFirstChildOfClass("Decal")
  12. local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
  13. local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
  14. local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
  15. local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
  16. local neck = tor:FindFirstChild("Neck")
  17. local rootj = root:FindFirstChild("RootJoint")
  18. local LS = tor:FindFirstChild("Left Shoulder")
  19. local RS = tor:FindFirstChild("Right Shoulder")
  20. local LH = tor:FindFirstChild("Left Hip")
  21. local RH = tor:FindFirstChild("Right Hip")
  22. local bp = plr:FindFirstChild("Backpack")
  23. local cam = workspace.CurrentCamera
  24.  
  25. hum:ClearAllChildren()
  26. char.Animate:remove()
  27.  
  28.  
  29. --Converted with ttyyuu12345's model to script plugin v4
  30. function sandbox(var,func)
  31. local env = getfenv(func)
  32. local newenv = setmetatable({},{
  33. __index = function(self,k)
  34. if k=="script" then
  35. return var
  36. else
  37. return env[k]
  38. end
  39. end,
  40. })
  41. setfenv(func,newenv)
  42. return func
  43. end
  44. cors = {}
  45. mas = Instance.new("Model",game:GetService("Lighting"))
  46. Model0 = Instance.new("Model")
  47. Part1 = Instance.new("Part")
  48. ManualWeld2 = Instance.new("ManualWeld")
  49. Part3 = Instance.new("Part")
  50. Part4 = Instance.new("Part")
  51. ManualWeld5 = Instance.new("ManualWeld")
  52. Part6 = Instance.new("Part")
  53. ManualWeld7 = Instance.new("ManualWeld")
  54. Part8 = Instance.new("Part")
  55. ParticleEmitter9 = Instance.new("ParticleEmitter")
  56. ManualWeld10 = Instance.new("ManualWeld")
  57. Part11 = Instance.new("Part")
  58. ManualWeld12 = Instance.new("ManualWeld")
  59. Part19 = Instance.new("Part")
  60. ManualWeld20 = Instance.new("ManualWeld")
  61. Part21 = Instance.new("Part")
  62. ManualWeld22 = Instance.new("ManualWeld")
  63. Model0.Name = "saber"
  64. Model0.Parent = mas
  65. Part1.Name = "hand"
  66. Part1.Parent = Model0
  67. Part1.Material = Enum.Material.SmoothPlastic
  68. Part1.BrickColor = BrickColor.new("Really black")
  69. Part1.Rotation = Vector3.new(0, -90, 0)
  70. Part1.CanCollide = false
  71. Part1.Shape = Enum.PartType.Cylinder
  72. Part1.Size = Vector3.new(1.29999995, 0.299999952, 0.299999952)
  73. Part1.CFrame = CFrame.new(-1741.76343, 117.599991, -204.231796, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
  74. Part1.BottomSurface = Enum.SurfaceType.Smooth
  75. Part1.TopSurface = Enum.SurfaceType.Smooth
  76. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  77. Part1.Position = Vector3.new(-1741.76343, 117.599991, -204.231796)
  78. Part1.Orientation = Vector3.new(0, -90, 0)
  79. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  80. ManualWeld2.Name = "Weld"
  81. ManualWeld2.Parent = Part1
  82. ManualWeld2.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
  83. ManualWeld2.C1 = CFrame.new(0.0347900391, 0, 0.0680541992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  84. ManualWeld2.Part0 = Part1
  85. ManualWeld2.Part1 = Part3
  86. Part3.Name = "main"
  87. Part3.Parent = Model0
  88. Part3.Transparency = 1
  89. Part3.CanCollide = false
  90. Part3.Size = Vector3.new(1, 1, 1)
  91. Part3.CFrame = CFrame.new(-1741.79822, 117.599991, -204.29985, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  92. Part3.BottomSurface = Enum.SurfaceType.Smooth
  93. Part3.TopSurface = Enum.SurfaceType.Smooth
  94. Part3.Position = Vector3.new(-1741.79822, 117.599991, -204.29985)
  95. Part4.Name = "cap2"
  96. Part4.Parent = Model0
  97. Part4.Material = Enum.Material.SmoothPlastic
  98. Part4.BrickColor = BrickColor.new("Really black")
  99. Part4.Rotation = Vector3.new(0, -90, 0)
  100. Part4.CanCollide = false
  101. Part4.Shape = Enum.PartType.Cylinder
  102. Part4.Size = Vector3.new(0.0999999046, 0.349999994, 0.349999994)
  103. Part4.CFrame = CFrame.new(-1741.76343, 117.599991, -203.531723, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
  104. Part4.BottomSurface = Enum.SurfaceType.Smooth
  105. Part4.TopSurface = Enum.SurfaceType.Smooth
  106. Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  107. Part4.Position = Vector3.new(-1741.76343, 117.599991, -203.531723)
  108. Part4.Orientation = Vector3.new(0, -90, 0)
  109. Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  110. ManualWeld5.Name = "Weld"
  111. ManualWeld5.Parent = Part4
  112. ManualWeld5.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
  113. ManualWeld5.C1 = CFrame.new(0.0347900391, 0, 0.768127441, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  114. ManualWeld5.Part0 = Part4
  115. ManualWeld5.Part1 = Part3
  116. Part6.Name = "bot1"
  117. Part6.Parent = Model0
  118. Part6.Material = Enum.Material.SmoothPlastic
  119. Part6.BrickColor = BrickColor.new("Really black")
  120. Part6.Rotation = Vector3.new(0, -90, 0)
  121. Part6.CanCollide = false
  122. Part6.Shape = Enum.PartType.Cylinder
  123. Part6.Size = Vector3.new(0.0999999046, 0.349999994, 0.349999994)
  124. Part6.CFrame = CFrame.new(-1741.76343, 117.599991, -204.931747, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
  125. Part6.BottomSurface = Enum.SurfaceType.Smooth
  126. Part6.TopSurface = Enum.SurfaceType.Smooth
  127. Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  128. Part6.Position = Vector3.new(-1741.76343, 117.599991, -204.931747)
  129. Part6.Orientation = Vector3.new(0, -90, 0)
  130. Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  131. ManualWeld7.Name = "Weld"
  132. ManualWeld7.Parent = Part6
  133. ManualWeld7.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
  134. ManualWeld7.C1 = CFrame.new(0.0347900391, 0, -0.631896973, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  135. ManualWeld7.Part0 = Part6
  136. ManualWeld7.Part1 = Part3
  137. Part8.Name = "cap"
  138. Part8.Parent = Model0
  139. Part8.Material = Enum.Material.SmoothPlastic
  140. Part8.BrickColor = BrickColor.new("Gold")
  141. Part8.Rotation = Vector3.new(0, -90, 0)
  142. Part8.CanCollide = false
  143. Part8.Shape = Enum.PartType.Cylinder
  144. Part8.Size = Vector3.new(0.0999999046, 0.300000012, 0.300000012)
  145. Part8.CFrame = CFrame.new(-1741.76343, 117.599991, -203.431747, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
  146. Part8.BottomSurface = Enum.SurfaceType.Smooth
  147. Part8.TopSurface = Enum.SurfaceType.Smooth
  148. Part8.Color = Color3.new(0.937255, 0.721569, 0.219608)
  149. Part8.Position = Vector3.new(-1741.76343, 117.599991, -203.431747)
  150. Part8.Orientation = Vector3.new(0, -90, 0)
  151. Part8.Color = Color3.new(0.937255, 0.721569, 0.219608)
  152. ParticleEmitter9.Parent = Part8
  153. ParticleEmitter9.LockedToPart = true
  154. ParticleEmitter9.Transparency = NumberSequence.new(0,0.1)
  155. ParticleEmitter9.Size = NumberSequence.new(0.5,0.5)
  156. ParticleEmitter9.Color = ColorSequence.new(Color3.new(0.333333, 0, 0),Color3.new(0.666667, 0, 0))
  157. ParticleEmitter9.EmissionDirection = "Right"
  158. ParticleEmitter9.LightEmission = 0.44999998807907
  159. ParticleEmitter9.Texture = "rbxassetid://147313514"
  160. ParticleEmitter9.Lifetime = NumberRange.new(0.5, 0.5)
  161. ParticleEmitter9.Rate = 200
  162. ParticleEmitter9.RotSpeed = NumberRange.new(360, 360)
  163. ParticleEmitter9.Speed = NumberRange.new(10, 10)
  164. ParticleEmitter9.VelocitySpread = 2
  165. ParticleEmitter9.Color = ColorSequence.new(Color3.new(0.333333, 0, 0),Color3.new(0.666667, 0, 0))
  166. ManualWeld10.Name = "Weld"
  167. ManualWeld10.Parent = Part8
  168. ManualWeld10.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
  169. ManualWeld10.C1 = CFrame.new(0.0347900391, 0, 0.868103027, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  170. ManualWeld10.Part0 = Part8
  171. ManualWeld10.Part1 = Part3
  172. Part11.Name = "bot2"
  173. Part11.Parent = Model0
  174. Part11.Material = Enum.Material.SmoothPlastic
  175. Part11.BrickColor = BrickColor.new("Really black")
  176. Part11.Rotation = Vector3.new(0, -90, 0)
  177. Part11.CanCollide = false
  178. Part11.Shape = Enum.PartType.Cylinder
  179. Part11.Size = Vector3.new(0.0999999046, 0.300000012, 0.300000012)
  180. Part11.CFrame = CFrame.new(-1741.76343, 117.599991, -205.031723, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
  181. Part11.BottomSurface = Enum.SurfaceType.Smooth
  182. Part11.TopSurface = Enum.SurfaceType.Smooth
  183. Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  184. Part11.Position = Vector3.new(-1741.76343, 117.599991, -205.031723)
  185. Part11.Orientation = Vector3.new(0, -90, 0)
  186. Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  187. ManualWeld12.Name = "Weld"
  188. ManualWeld12.Parent = Part11
  189. ManualWeld12.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
  190. ManualWeld12.C1 = CFrame.new(0.0347900391, 0, -0.731872559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  191. ManualWeld12.Part0 = Part11
  192. ManualWeld12.Part1 = Part3
  193. Part19.Name = "outblade"
  194. Part19.Parent = Model0
  195. Part19.Material = Enum.Material.Neon
  196. Part19.BrickColor = BrickColor.new("Maroon")
  197. Part19.Rotation = Vector3.new(0, -90, 0)
  198. Part19.CanCollide = false
  199. Part19.Shape = Enum.PartType.Cylinder
  200. Part19.Size = Vector3.new(4.39999962, 0.2500000012, 0.2500000012)
  201. Part19.CFrame = CFrame.new(-1741.76343, 117.599991, -201.181747, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
  202. Part19.BottomSurface = Enum.SurfaceType.Smooth
  203. Part19.TopSurface = Enum.SurfaceType.Smooth
  204. Part19.Color = Color3.new(0.458824, 0, 0)
  205. Part19.Position = Vector3.new(-1741.76343, 117.599991, -201.181747)
  206. Part19.Orientation = Vector3.new(0, -90, 0)
  207. Part19.Color = Color3.new(0.458824, 0, 0)
  208. ManualWeld20.Name = "Weld"
  209. ManualWeld20.Parent = Part19
  210. ManualWeld20.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
  211. ManualWeld20.C1 = CFrame.new(0.0347900391, 0, 3.11810303, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  212. ManualWeld20.Part0 = Part19
  213. ManualWeld20.Part1 = Part3
  214. Part21.Name = "outball"
  215. Part21.Parent = Model0
  216. Part21.Material = Enum.Material.Neon
  217. Part21.BrickColor = BrickColor.new("Maroon")
  218. Part21.Rotation = Vector3.new(0, -90, 0)
  219. Part21.CanCollide = false
  220. Part21.Shape = Enum.PartType.Ball
  221. Part21.Size = Vector3.new(0.25, 0.25, 0.25)
  222. Part21.CFrame = CFrame.new(-1741.76343, 117.599991, -198.981674, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
  223. Part21.BottomSurface = Enum.SurfaceType.Smooth
  224. Part21.TopSurface = Enum.SurfaceType.Smooth
  225. Part21.Color = Color3.new(0.458824, 0, 0)
  226. Part21.Position = Vector3.new(-1741.76343, 117.599991, -198.981674)
  227. Part21.Orientation = Vector3.new(0, -90, 0)
  228. Part21.Color = Color3.new(0.458824, 0, 0)
  229. ManualWeld22.Name = "Weld"
  230. ManualWeld22.Parent = Part21
  231. ManualWeld22.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
  232. ManualWeld22.C1 = CFrame.new(0.0347900391, 0, 5.31817627, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  233. ManualWeld22.Part0 = Part21
  234. ManualWeld22.Part1 = Part3
  235. for i,v in pairs(mas:GetChildren()) do
  236. v.Parent = char
  237. saber = v
  238. outblade = Part19
  239. outball = Part21
  240. particle = ParticleEmitter9
  241. main = Part3
  242. cap = Part8
  243. pcall(function() v:MakeJoints() end)
  244. end
  245. mas:Destroy()
  246. for i,v in pairs(cors) do
  247. spawn(function()
  248. pcall(v)
  249. end)
  250. end
  251.  
  252. local ws = hum.WalkSpeed
  253. local jp = hum.JumpPower
  254. local nws = ws
  255. local njp = jp
  256.  
  257. local rootj0 = rootj.C0
  258. local neck0 = neck.C0
  259. local LS0 = LS.C0
  260. local RS0 = RS.C0
  261. local LH0 = LH.C0
  262. local RH0 = RH.C0
  263. local rootj1 = rootj.C1
  264. local neck1 = neck.C1
  265. local LS1 = LS.C1
  266. local RS1 = RS.C1
  267. local LH1 = LH.C1
  268. local RH1 = RH.C1
  269.  
  270. local pshew = Instance.new("Sound", cap)
  271. pshew.SoundId = "rbxassetid://605604103"
  272. pshew.Volume = 2
  273. pshew.Name = "PSHEW"
  274.  
  275. local sheww = Instance.new("Sound", cap)
  276. sheww.SoundId = "rbxassetid://605607641"
  277. sheww.Volume = 2
  278. sheww.Name = "SHEWW"
  279.  
  280. local wanwan = Instance.new("Sound", outblade)
  281. wanwan.SoundId = "rbxassetid://1460966017"
  282. wanwan.Volume = 1
  283. wanwan.Name = "WANWAN"
  284. wanwan.Looped = true
  285.  
  286. local chwan = Instance.new("Sound", outblade)
  287. chwan.SoundId = "rbxassetid://1647165403"
  288. chwan.Volume = 1
  289. chwan.Name = "CHWAN"
  290.  
  291. local pssps = Instance.new("Sound", outblade)
  292. pssps.SoundId = "rbxassetid://1335649595"
  293. pssps.Volume = 1
  294. pssps.Name = "PSSPS"
  295.  
  296. local vomb = Instance.new("Sound", outblade)
  297. vomb.SoundId = "rbxassetid://2088308141"
  298. vomb.Volume = 2
  299. vomb.Name = "VOMB"
  300.  
  301. local ooowa = Instance.new("Sound", larm)
  302. ooowa.SoundId = "rbxassetid://1386781853"
  303. ooowa.Volume = 2.5
  304. ooowa.Name = "OOOWA"
  305.  
  306. local koohaa = Instance.new("Sound", head)
  307. koohaa.SoundId = "rbxassetid://149840174"
  308. koohaa.Volume = 2
  309. koohaa.Name = "KOOOHAAA"
  310. koohaa.Looped = true
  311. koohaa:Play()
  312. local thepos = koohaa.TimePosition
  313.  
  314. -----------------------------------------------------------------------------
  315.  
  316. local CFn = CFrame.new
  317. local CFa = CFrame.Angles
  318. local Rad = math.rad
  319. local Cos = math.cos
  320. local Sin = math.sin
  321. local sine = 1
  322. local attacking = false
  323. local equipped = false
  324. local Changing = false
  325. local Swinging = false
  326. local kill = false
  327. local attackstate = 1
  328. local Choking = false
  329. local buttonC = false
  330.  
  331. -----------------------------------------------------------------------------
  332.  
  333. for i,v in pairs(char:GetChildren()) do
  334. if v:IsA("Shirt") then
  335. v:Destroy()
  336. end
  337. if v:IsA("Pants") then
  338. v:Destroy()
  339. end
  340. if v:IsA("Accessory") then
  341. v:Destroy()
  342. end
  343. end
  344.  
  345. local ff = Instance.new("ForceField", char)
  346. ff.Visible = false
  347. hum.MaxHealth = math.huge
  348. hum.Health = math.huge
  349.  
  350. local shirt = Instance.new("Shirt", char)
  351. shirt.ShirtTemplate = "rbxassetid://1724954890"
  352. local pants = Instance.new("Pants", char)
  353. pants.PantsTemplate = "rbxassetid://1057571121"
  354.  
  355. head.Transparency = 1
  356.  
  357. local hair = Instance.new("Part", char)
  358. hair.Size = Vector3.new(1, 1, 1)
  359. hair.CanCollide = false
  360. local hairm = Instance.new("SpecialMesh", hair)
  361. hairm.MeshId = "rbxassetid://306063581"
  362. hairm.TextureId = "rbxassetid://306062884"
  363.  
  364. local hairw = Instance.new("Weld", hair)
  365. hairw.Part0 = head
  366. hairw.Part1 = hair
  367. hairw.C1 = CFn(0, -0.1, 0)
  368.  
  369. local AT0 = Instance.new("Attachment", outblade)
  370. AT0.Position = Vector3.new(-2.2, 0, 0)
  371.  
  372. local AT1 = Instance.new("Attachment", outblade)
  373. AT1.Position = Vector3.new(2.4, 0, 0)
  374.  
  375. local trail = Instance.new("Trail", outblade)
  376. trail.Attachment0 = AT0
  377. trail.Attachment1 = AT1
  378. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(1, 0.9, 0)})
  379. trail.LightEmission = 0.7
  380. trail.Lifetime = 0.5
  381. trail.MaxLength = 2
  382. trail.MinLength = 0.05
  383. trail.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(1, 0.2, 0)})
  384. trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(85, 0, 0), 0), ColorSequenceKeypoint.new(1, Color3.fromRGB(170, 0, 0), 0)})
  385.  
  386. local mainw = Instance.new("Weld", main)
  387. mainw.Part0 = tor
  388. mainw.Part1 = main
  389. mainw.C1 = CFn(1, 1, 0)
  390.  
  391. local bld = Instance.new("Part", saber)
  392. bld.Size = Vector3.new(4.7, 1, 1)
  393. bld.CanCollide = false
  394. bld.Transparency = 1
  395.  
  396. local bldw = Instance.new("Weld", bld)
  397. bldw.Part0 = outblade
  398. bldw.Part1 = bld
  399.  
  400. local cape = Instance.new("Part", char)
  401. cape.Size = Vector3.new(2, 3.6, 1)
  402. cape.Material = "SmoothPlastic"
  403. cape.BrickColor = BrickColor.new("Really black")
  404. local capem = Instance.new("SpecialMesh", cape)
  405. capem.MeshType = "FileMesh"
  406. capem.MeshId = "rbxassetid://114046169"
  407. capem.Scale = Vector3.new(1.2, 1.8, 1.1)
  408.  
  409. local capew = Instance.new("Weld", cape)
  410. capew.Part0 = tor
  411. capew.Part1 = cape
  412. capew.C1 = CFn(0, 0.7, -0.35)
  413.  
  414. outblade.Transparency = 1
  415. outball.Transparency = 1
  416. trail.Enabled = false
  417. particle.Transparency = NumberSequence.new(0, 1)
  418. particle.LockedToPart = false
  419. particle.Enabled = false
  420.  
  421. -----------------------------------------------------------------------------
  422.  
  423. ArtificialHB = Instance.new("BindableEvent", script)
  424. ArtificialHB.Name = "Heartbeat"
  425. script:WaitForChild("Heartbeat")
  426.  
  427. frame = 1 / 60
  428. tf = 0
  429. allowframeloss = false
  430. tossremainder = false
  431.  
  432.  
  433. lastframe = tick()
  434. script.Heartbeat:Fire()
  435.  
  436.  
  437. game:GetService("RunService").Heartbeat:connect(function(s, p)
  438. tf = tf + s
  439. if tf >= frame then
  440. if allowframeloss then
  441. script.Heartbeat:Fire()
  442. lastframe = tick()
  443. else
  444. for i = 1, math.floor(tf / frame) do
  445. script.Heartbeat:Fire()
  446. end
  447. lastframe = tick()
  448. end
  449. if tossremainder then
  450. tf = 0
  451. else
  452. tf = tf - frame * math.floor(tf / frame)
  453. end
  454. end
  455. end)
  456.  
  457. function swait(num)
  458. if num == 0 or num == nil then
  459. game:service("RunService").Stepped:wait(0)
  460. else
  461. for i = 0, num do
  462. game:service("RunService").Stepped:wait(0)
  463. end
  464. end
  465. end
  466.  
  467. function clerp(a, b, t)
  468. return a:lerp(b, t)
  469. end
  470.  
  471. function Sound(id, vol, par, name, looped)
  472. if not par:FindFirstChild(name) then
  473. local sound = Instance.new("Sound", par)
  474. sound.SoundId = id
  475. sound.Volume = vol
  476. if looped == true then
  477. sound.Looped = true
  478. end
  479. sound.Name = name
  480. sound:Play()
  481. return sound
  482. else
  483. local sound = par:FindFirstChild(name)
  484. sound:Play()
  485. return sound
  486. end
  487. end
  488.  
  489. function StopSound(id, vol, par, name, looped)
  490. if not par:FindFirstChild(name) then
  491. local sound = Instance.new("Sound", par)
  492. sound.SoundId = id
  493. sound.Volume = vol
  494. if looped == true then
  495. sound.Looped = true
  496. end
  497. sound.Name = name
  498. sound:Stop()
  499. return sound
  500. else
  501. local sound = par:FindFirstChild(name)
  502. sound:Stop()
  503. return sound
  504. end
  505. end
  506.  
  507. function Force(part, pos, part2, pos2, par2)
  508. local parp = Instance.new("Part", char)
  509. parp.Size = Vector3.new(1, 1, 1)
  510. parp.Transparency = 1
  511. parp.CanCollide = false
  512. local parpw = Instance.new("Weld", parp)
  513. parpw.Part0 = part
  514. parpw.Part1 = parp
  515. parpw.C1 = pos
  516. local pare = Instance.new("ParticleEmitter", parp)
  517. pare.LockedToPart = true
  518. pare.Transparency = NumberSequence.new(0.4, 1)
  519. pare.Size = NumberSequence.new(1.25, 0)
  520. pare.Lifetime = NumberRange.new(1)
  521. pare.Rotation = NumberRange.new(0, 360)
  522. pare.Rate = 200
  523. pare.RotSpeed = NumberRange.new(360, 360)
  524. pare.Speed = NumberRange.new(4)
  525. pare.Color = ColorSequence.new(Color3.fromRGB(170, 0, 0),Color3.fromRGB(255, 255, 255))
  526. pare.SpreadAngle = Vector2.new(360, 360)
  527. pare.Texture = "rbxassetid://122356023"
  528. local parp2 = parp:Clone()
  529. parp2.Parent = par2
  530. local parp2w = parp2:FindFirstChild("Weld")
  531. parp2w.Part0 = part2
  532. parp2w.Part1 = parp2
  533. parp2w.C1 = pos2
  534. return parp, parp2
  535. end
  536.  
  537. function equipunequip()
  538. if attacking == false and equipped == false and Changing == false then
  539. attacking = true
  540. Changing = true
  541. hum.WalkSpeed = 0
  542. hum.JumpPower = 0
  543. for i = 0,1,.1 do
  544. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-20), 0, Rad(-60)), i)
  545. rootj.C1 = clerp(rootj.C1, rootj1, i)
  546. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  547. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-30), Rad(-3)), i)
  548. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  549. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  550. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  551. rootj.C0 = clerp(rootj.C0, rootj0, i)
  552. LS.C0 = clerp(LS.C0, LS0, i)
  553. RS.C0 = clerp(RS.C0, RS0 * CFn(0, 0, -0.5) * CFa(0, Rad(90), 0), i)
  554. LH.C0 = clerp(LH.C0, LH0, i)
  555. RH.C0 = clerp(RH.C0, RH0, i)
  556. swait()
  557. end
  558. StopSound("rbxassetid://605607641", 2, cap, "SHEWW", false)
  559. Sound("rbxassetid://605604103", 2, cap, "PSHEW", false)
  560. Sound("rbxassetid://1460966017", 1, cap, "WANWAN", true)
  561. equipped = true
  562. mainw.Part0 = rarm
  563. mainw.C1 = CFn(0, 1, 0) * CFa(0, Rad(180), 0)
  564. outblade.Transparency = 0
  565. outball.Transparency = 0
  566. trail.Enabled = true
  567. particle.Transparency = NumberSequence.new(0, 0.1)
  568. particle.LockedToPart = true
  569. particle.Enabled = true
  570. for i = 0,1,.1 do
  571. neck.C1 = clerp(neck.C1, neck1, i)
  572. rootj.C1 = clerp(rootj.C1, rootj1, i)
  573. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  574. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(50), 0, 0), i)
  575. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  576. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  577. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  578. rootj.C0 = clerp(rootj.C0, rootj0, i)
  579. LS.C0 = clerp(LS.C0, LS0, i)
  580. RS.C0 = clerp(RS.C0, RS0, i)
  581. LH.C0 = clerp(LH.C0, LH0, i)
  582. RH.C0 = clerp(RH.C0, RH0, i)
  583. swait()
  584. end
  585. hum.WalkSpeed = nws
  586. hum.JumpPower = njp
  587. Changing = false
  588. attacking = false
  589. elseif attacking == false and equipped == true and Changing == false then
  590. attacking = true
  591. Changing = true
  592. hum.WalkSpeed = 0
  593. hum.JumpPower = 0
  594. StopSound("rbxassetid://605604103", 2, cap, "PSHEW", false)
  595. Sound("rbxassetid://605607641", 2, cap, "SHEWW", false)
  596. StopSound("rbxassetid://1460966017", 1, cap, "WANWAN", true)
  597. outblade.Transparency = 1
  598. outball.Transparency = 1
  599. trail.Enabled = false
  600. particle.Transparency = NumberSequence.new(0, 1)
  601. particle.LockedToPart = false
  602. particle.Enabled = false
  603. for i = 0,1,.1 do
  604. neck.C1 = clerp(neck.C1, neck1, i)
  605. rootj.C1 = clerp(rootj.C1, rootj1, i)
  606. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  607. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(50), 0, 0), i)
  608. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  609. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  610. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  611. rootj.C0 = clerp(rootj.C0, rootj0, i)
  612. LS.C0 = clerp(LS.C0, LS0, i)
  613. RS.C0 = clerp(RS.C0, RS0, i)
  614. LH.C0 = clerp(LH.C0, LH0, i)
  615. RH.C0 = clerp(RH.C0, RH0, i)
  616. swait()
  617. end
  618. for i = 0,1,.1 do
  619. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-20), 0, Rad(-60)), i)
  620. rootj.C1 = clerp(rootj.C1, rootj1, i)
  621. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  622. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-30), Rad(-3)), i)
  623. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  624. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  625. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  626. rootj.C0 = clerp(rootj.C0, rootj0, i)
  627. LS.C0 = clerp(LS.C0, LS0, i)
  628. RS.C0 = clerp(RS.C0, RS0 * CFn(0, 0, -0.5) * CFa(0, Rad(90), 0), i)
  629. LH.C0 = clerp(LH.C0, LH0, i)
  630. RH.C0 = clerp(RH.C0, RH0, i)
  631. swait()
  632. end
  633. mainw.Part0 = tor
  634. mainw.C1 = CFn(1, 1, 0)
  635. equipped = false
  636. hum.WalkSpeed = nws
  637. hum.JumpPower = njp
  638. Changing = false
  639. attacking = false
  640. end
  641. end
  642.  
  643. function Swing()
  644. if attacking == false and equipped == true and Swinging == false then
  645. attacking = true
  646. Swinging = true
  647. kill = true
  648. hum.WalkSpeed = 3
  649. hum.JumpPower = 5
  650. local hey = bld.Touched:connect(function(hit)
  651. if kill == true and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
  652. kill = false
  653. local killman = hit.Parent
  654. local killhum = killman:FindFirstChildOfClass("Humanoid")
  655. local up = true
  656. for i = 1,2 do
  657. local cutpart = Instance.new("Part", killman)
  658. cutpart.Size = Vector3.new(hit.Size.X, hit.Size.Y / 2, hit.Size.Z)
  659. cutpart.BrickColor = hit.BrickColor
  660. cutpart.Material = hit.Material
  661. cutpart.Transparency = hit.Transparency
  662. cutpart.Reflectance = hit.Reflectance
  663. cutpart.BackSurface = hit.BackSurface
  664. cutpart.BottomSurface = hit.BottomSurface
  665. cutpart.FrontSurface = hit.FrontSurface
  666. cutpart.LeftSurface = hit.LeftSurface
  667. cutpart.RightSurface = hit.RightSurface
  668. cutpart.TopSurface = hit.TopSurface
  669. if up == true then
  670. cutpart.CFrame = hit.CFrame * CFn(0, hit.Size.Y / 2, 0)
  671. up = false
  672. else
  673. cutpart.CFrame = hit.CFrame * CFn(0, -(hit.Size.Y / 2), 0)
  674. up = true
  675. end
  676. end
  677. hit:Destroy()
  678. killman:BreakJoints()
  679. if attackstate == 1 then
  680. Sound("rbxassetid://1647165403", 1, outblade, "CHWAN", false)
  681. elseif attackstate == 2 then
  682. Sound("rbxassetid://1335649595", 1, outblade, "PSSPS", false)
  683. end
  684. elseif kill == true and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
  685. kill = false
  686. local killman = hit.Parent.Parent
  687. local killhum = killman:FindFirstChildOfClass("Humanoid")
  688. local up = true
  689. for i = 1,2 do
  690. local cutpart = Instance.new("Part", killman)
  691. cutpart.Size = Vector3.new(hit.Size.X, hit.Size.Y / 2, hit.Size.Z)
  692. cutpart.BrickColor = hit.BrickColor
  693. cutpart.Material = hit.Material
  694. cutpart.Transparency = hit.Transparency
  695. cutpart.Reflectance = hit.Reflectance
  696. cutpart.BackSurface = hit.BackSurface
  697. cutpart.BottomSurface = hit.BottomSurface
  698. cutpart.FrontSurface = hit.FrontSurface
  699. cutpart.LeftSurface = hit.LeftSurface
  700. cutpart.RightSurface = hit.RightSurface
  701. cutpart.TopSurface = hit.TopSurface
  702. if up == true then
  703. cutpart.CFrame = hit.CFrame * CFn(0, hit.Size.Y / 2, 0)
  704. up = false
  705. else
  706. cutpart.CFrame = hit.CFrame * CFn(0, -(hit.Size.Y / 2), 0)
  707. up = true
  708. end
  709. end
  710. hit:Destroy()
  711. killman:BreakJoints()
  712. if attackstate == 1 then
  713. Sound("rbxassetid://1647165403", 1, outblade, "CHWAN", false)
  714. elseif attackstate == 2 then
  715. Sound("rbxassetid://1335649595", 1, outblade, "PSSPS", false)
  716. end
  717. end
  718. end)
  719. if attackstate == 1 then
  720. attackstate = 2
  721. for i = 0,1,.15 do
  722. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-10)), i)
  723. rootj.C1 = clerp(rootj.C1, rootj1, i)
  724. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  725. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-80), Rad(-40)), i)
  726. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  727. RH.C1 = clerp(RH.C1, RH1 * CFn(0.3, 0, 0) * CFa(Rad(5), 0, 0), i)
  728. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  729. rootj.C0 = clerp(rootj.C0, rootj0, i)
  730. LS.C0 = clerp(LS.C0, LS0, i)
  731. RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(30), 0), i)
  732. LH.C0 = clerp(LH.C0, LH0, i)
  733. RH.C0 = clerp(RH.C0, RH0, i)
  734. swait()
  735. end
  736. Sound("rbxassetid://2088308141", 2, outblade, "VOMB", false)
  737. for i = 0,1,.15 do
  738. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(10)), i)
  739. rootj.C1 = clerp(rootj.C1, rootj1, i)
  740. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  741. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-80), Rad(-50)), i)
  742. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  743. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  744. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  745. rootj.C0 = clerp(rootj.C0, rootj0, i)
  746. LS.C0 = clerp(LS.C0, LS0, i)
  747. RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(-75), 0), i)
  748. LH.C0 = clerp(LH.C0, LH0, i)
  749. RH.C0 = clerp(RH.C0, RH0, i)
  750. swait()
  751. end
  752. elseif attackstate == 2 then
  753. attackstate = 1
  754. for i = 0,1,.15 do
  755. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(10)), i)
  756. rootj.C1 = clerp(rootj.C1, rootj1, i)
  757. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  758. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(110), Rad(-20), Rad(-90)), i)
  759. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  760. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  761. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  762. rootj.C0 = clerp(rootj.C0, rootj0, i)
  763. LS.C0 = clerp(LS.C0, LS0, i)
  764. RS.C0 = clerp(RS.C0, RS0, i)
  765. LH.C0 = clerp(LH.C0, LH0, i)
  766. RH.C0 = clerp(RH.C0, RH0, i)
  767. swait()
  768. end
  769. Sound("rbxassetid://2088308141", 2, outblade, "VOMB", false)
  770. for i = 0,1,.15 do
  771. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-10)), i)
  772. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(-40)), i)
  773. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  774. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(-80), Rad(70), Rad(-40)), i)
  775. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  776. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), Rad(40), 0), i)
  777. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  778. rootj.C0 = clerp(rootj.C0, rootj0, i)
  779. LS.C0 = clerp(LS.C0, LS0, i)
  780. RS.C0 = clerp(RS.C0, RS0, i)
  781. LH.C0 = clerp(LH.C0, LH0, i)
  782. RH.C0 = clerp(RH.C0, RH0, i)
  783. swait()
  784. end
  785. end
  786. hum.WalkSpeed = nws
  787. hum.JumpPower = njp
  788. kill = false
  789. hey:disconnect()
  790. Swinging = false
  791. attacking = false
  792. end
  793. end
  794.  
  795. function Choke()
  796. if attacking == false and Choking == false then
  797. attacking = true
  798. Choking = true
  799. hum.WalkSpeed = 0
  800. hum.JumpPower = 0
  801. if Mouse.Target ~= nil and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
  802. local theguy = Mouse.Target.Parent
  803. local thehum = theguy:FindFirstChildOfClass("Humanoid")
  804. if thehum.Health > 0 then
  805. local thehead = theguy:FindFirstChild("Head")
  806. local thetor = theguy:FindFirstChild("Torso") or theguy:FindFirstChild("UpperTorso")
  807. root.CFrame = CFn(root.CFrame.p, Vector3.new(Mouse.Hit.x, root.CFrame.y, Mouse.Hit.z))
  808. thetor.CFrame = CFn(thetor.CFrame.p, Vector3.new(root.CFrame.x, thetor.CFrame.y, root.CFrame.z))
  809. local thetorframe = thetor.CFrame
  810. local forpar, forpar2 = Force(larm, CFn(0, 1, 0), thehead, CFn(0, 0.5, 0), theguy)
  811. if thetor.Anchored == true then
  812. thetor.Anchored = false
  813. end
  814. local thebv = Instance.new("BodyPosition", thetor)
  815. thebv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  816. thebv.Position = thetorframe.p
  817. Sound("rbxassetid://1386781853", 2.5, larm, "OOOWA", false)
  818. for i = 0,1,.15 do
  819. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-20)) , i)
  820. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
  821. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(90)), i)
  822. RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
  823. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
  824. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  825. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  826. rootj.C0 = clerp(rootj.C0, rootj0, i)
  827. LS.C0 = clerp(LS.C0, LS0, i)
  828. RS.C0 = clerp(RS.C0, RS0, i)
  829. LH.C0 = clerp(LH.C0, LH0, i)
  830. RH.C0 = clerp(RH.C0, RH0, i)
  831. swait()
  832. end
  833. thebv.Position = thetorframe * CFn(0, 10, 0).p
  834. for i = 0,1,.05 do
  835. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(20), 0, Rad(-20)), i)
  836. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
  837. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(140)), i)
  838. RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
  839. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
  840. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  841. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  842. rootj.C0 = clerp(rootj.C0, rootj0, i)
  843. LS.C0 = clerp(LS.C0, LS0, i)
  844. RS.C0 = clerp(RS.C0, RS0, i)
  845. LH.C0 = clerp(LH.C0, LH0, i)
  846. RH.C0 = clerp(RH.C0, RH0, i)
  847. swait()
  848. end
  849. for i = 1,math.huge do
  850. if buttonC == true and thehum.Health > 0 then
  851. thehum.Health = thehum.Health - 1.5
  852. swait()
  853. elseif buttonC == false or thehum.Health <= 0 then
  854. break
  855. end
  856. end
  857. if thehum.Health <= 0 then
  858. theguy:BreakJoints()
  859. Sound("rbxassetid://513153251", 4, thetor, "OUCH", false)
  860. end
  861. thebv:Destroy()
  862. forpar:Destroy()
  863. forpar2:Destroy()
  864. end
  865. elseif Mouse.Target ~= nil and Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  866. local theguy = Mouse.Target.Parent.Parent
  867. local thehum = theguy:FindFirstChildOfClass("Humanoid")
  868. if thehum.Health > 0 then
  869. local thehead = theguy:FindFirstChild("Head")
  870. local thetor = theguy:FindFirstChild("Torso") or theguy:FindFirstChild("UpperTorso")
  871. root.CFrame = CFn(root.CFrame.p, Vector3.new(Mouse.Hit.x, root.CFrame.y, Mouse.Hit.z))
  872. thetor.CFrame = CFn(thetor.CFrame.p, Vector3.new(root.CFrame.x, root.CFrame.y, root.CFrame.z))
  873. local thetorframe = thetor.CFrame
  874. local forpar, forpar2 = Force(larm, CFn(0, 1, 0), thehead, CFn(0, 0.5, 0), theguy)
  875. if thetor.Anchored == true then
  876. thetor.Anchored = false
  877. end
  878. local thebv = Instance.new("BodyPosition", thetor)
  879. thebv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  880. thebv.Position = thetorframe.p
  881. Sound("rbxassetid://1386781853", 2.5, larm, "OOOWA", false)
  882. for i = 0,1,.15 do
  883. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-20)) , i)
  884. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
  885. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(90)), i)
  886. RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
  887. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
  888. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  889. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  890. rootj.C0 = clerp(rootj.C0, rootj0, i)
  891. LS.C0 = clerp(LS.C0, LS0, i)
  892. RS.C0 = clerp(RS.C0, RS0, i)
  893. LH.C0 = clerp(LH.C0, LH0, i)
  894. RH.C0 = clerp(RH.C0, RH0, i)
  895. swait()
  896. end
  897. thebv.Position = thetorframe * CFn(0, 10, 0).p
  898. for i = 0,1,.05 do
  899. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(20), 0, Rad(-20)), i)
  900. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
  901. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(140)), i)
  902. RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
  903. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
  904. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  905. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  906. rootj.C0 = clerp(rootj.C0, rootj0, i)
  907. LS.C0 = clerp(LS.C0, LS0, i)
  908. RS.C0 = clerp(RS.C0, RS0, i)
  909. LH.C0 = clerp(LH.C0, LH0, i)
  910. RH.C0 = clerp(RH.C0, RH0, i)
  911. swait()
  912. end
  913. for i = 1,math.huge do
  914. if buttonC == true and thehum.Health > 0 then
  915. thehum.Health = thehum.Health - 1.5
  916. swait()
  917. elseif buttonC == false or thehum.Health <= 0 then
  918. break
  919. end
  920. end
  921. if thehum.Health <= 0 then
  922. theguy:BreakJoints()
  923. Sound("rbxassetid://513153251", 4, thetor, "OUCH", false)
  924. end
  925. thebv:Destroy()
  926. forpar:Destroy()
  927. forpar2:Destroy()
  928. end
  929. end
  930. hum.WalkSpeed = nws
  931. hum.JumpPower = njp
  932. Choking = false
  933. attacking = false
  934. end
  935. end
  936.  
  937.  
  938.  
  939. -----------------------------------------------------------------------------
  940.  
  941. function kdown(k)
  942. if k == "e" then
  943. equipunequip()
  944. elseif k == "c" then
  945. if buttonC == false then
  946. buttonC = true
  947. Choke()
  948. end
  949. end
  950. end
  951.  
  952. function kup(k)
  953. if k == "c" then
  954. if buttonC == true then
  955. buttonC = false
  956. end
  957. end
  958. end
  959.  
  960. function lmdown()
  961. Swing()
  962. end
  963.  
  964. Mouse.KeyDown:connect(kdown)
  965. Mouse.KeyUp:connect(kup)
  966. Mouse.Button1Down:connect(lmdown)
  967.  
  968. -----------------------------------------------------------------------------
  969.  
  970. warn([[Darth Vader.
  971. last updated: 2018/7/19, 20:14 JST.
  972.  
  973. Please do not leak this script.]])
  974.  
  975. -----------------------------------------------------------------------------
  976.  
  977. while true do
  978. swait()
  979. sine = sine + 1
  980. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  981. if Changing == true then
  982. state = "Change"
  983. elseif Swinging == true then
  984. state = "Swing"
  985. elseif Choking == true then
  986. state = "Choking"
  987. elseif 1 < root.Velocity.y then
  988. state = "Jump"
  989. elseif -1 > root.Velocity.y then
  990. state = "Fall"
  991. elseif torvel < 1 then
  992. state = "Idle"
  993. elseif tor.Velocity.magnitude < 50 then
  994. state = "Walk"
  995. end
  996.  
  997. if state == "Jump" then
  998. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-10), 0, 0), 0.15)
  999. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-10), 0, 0), 0.15)
  1000. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), 0.15)
  1001. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, 0), 0.15)
  1002. LH.C1 = clerp(LH.C1, LH1 * CFn(0.5, -1, -0.1) * CFa(Rad(-10), 0, Rad(-40)), 0.15)
  1003. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.3, -0.8, 0) * CFa(Rad(-5), 0, Rad(15)), 0.15)
  1004. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1005. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1006. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1007. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1008. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1009. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1010. elseif state == "Fall" then
  1011. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
  1012. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(10), 0, 0), 0.15)
  1013. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, 0), 0.15)
  1014. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(20), 0, 0), 0.15)
  1015. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
  1016. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
  1017. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1018. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1019. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1020. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1021. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
  1022. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
  1023. elseif state == "Idle" then
  1024. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-7 * Sin(sine / 15)), 0, 0), 0.15)
  1025. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-2 * Sin(sine / 15)), 0, 0), 0.15)
  1026. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
  1027. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
  1028. LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, Rad(2 * Sin(sine / 15))), 0.15)
  1029. RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, Rad(-2 * Sin(sine / 15))), 0.15)
  1030. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(10), 0, 0), 0.15)
  1031. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(2), 0, 0), 0.15)
  1032. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1033. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1034. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1035. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1036. elseif state == "Walk" then
  1037. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5 * Sin(sine / 4)), 0, 0), 0.15)
  1038. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 4)) * CFa(Rad(-5), 0, Rad(5 * Sin(sine / 8))), 0.15)
  1039. LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
  1040. RS.C1 = clerp(RS.C1, RS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
  1041. LH.C1 = clerp(LH.C1, LH1 * CFn(0.15 * Cos(sine / 8), -0.3 * Cos(sine / 8), 0) * CFa(0, 0, Rad(55 * Sin(sine / 8))), 0.15)
  1042. RH.C1 = clerp(RH.C1, RH1 * CFn(0.15 * Cos(sine / 8), 0.3 * Cos(sine / 8), 0) * CFa(0, 0, Rad(55 * Sin(sine / 8))), 0.15)
  1043. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), 0.15)
  1044. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1045. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1046. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1047. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
  1048. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
  1049. end
  1050. if not head:FindFirstChild("KOOOHAAA") then
  1051. koohaa = Instance.new("Sound", head)
  1052. koohaa.SoundId = "rbxassetid://149840174"
  1053. koohaa.Name = "KOOOHAAA"
  1054. koohaa.Volume = 2
  1055. koohaa.TimePosition = thepos
  1056. koohaa.Looped = true
  1057. koohaa:Play()
  1058. end
  1059. thepos = koohaa.TimePosition
  1060. end
  1061. -----------------------------------------------------------------------------
  1062.  
  1063. while true do
  1064. swait()
  1065. sine = sine + 1
  1066. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1067. if Changing == true then
  1068. state = "Change"
  1069. elseif Swinging == true then
  1070. state = "Swing"
  1071. elseif Choking == true then
  1072. state = "Choking"
  1073. elseif 1 < root.Velocity.y then
  1074. state = "Jump"
  1075. elseif -1 > root.Velocity.y then
  1076. state = "Fall"
  1077. elseif torvel < 1 then
  1078. state = "Idle"
  1079. elseif tor.Velocity.magnitude < 50 then
  1080. state = "Walk"
  1081. end
  1082.  
  1083. if state == "Jump" then
  1084. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-10), 0, 0), 0.15)
  1085. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-10), 0, 0), 0.15)
  1086. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), 0.15)
  1087. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, 0), 0.15)
  1088. LH.C1 = clerp(LH.C1, LH1 * CFn(0.5, -1, -0.1) * CFa(Rad(-10), 0, Rad(-40)), 0.15)
  1089. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.3, -0.8, 0) * CFa(Rad(-5), 0, Rad(15)), 0.15)
  1090. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1091. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1092. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1093. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1094. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1095. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1096. elseif state == "Fall" then
  1097. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
  1098. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(10), 0, 0), 0.15)
  1099. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, 0), 0.15)
  1100. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(20), 0, 0), 0.15)
  1101. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
  1102. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
  1103. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1104. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1105. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1106. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1107. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
  1108. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
  1109. elseif state == "Idle" then
  1110. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-7 * Sin(sine / 15)), 0, 0), 0.15)
  1111. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-2 * Sin(sine / 15)), 0, 0), 0.15)
  1112. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
  1113. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
  1114. LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, Rad(2 * Sin(sine / 15))), 0.15)
  1115. RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, Rad(-2 * Sin(sine / 15))), 0.15)
  1116. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(10), 0, 0), 0.15)
  1117. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(2), 0, 0), 0.15)
  1118. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1119. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1120. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1121. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1122. elseif state == "Walk" then
  1123. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5 * Sin(sine / 4)), 0, 0), 0.15)
  1124. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 4)) * CFa(Rad(-5), 0, Rad(5 * Sin(sine / 8))), 0.15)
  1125. LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
  1126. RS.C1 = clerp(RS.C1, RS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
  1127. LH.C1 = clerp(LH.C1, LH1 * CFn(0.15 * Cos(sine / 8), -0.3 * Cos(sine / 8), 0) * CFa(0, 0, Rad(55 * Sin(sine / 8))), 0.15)
  1128. RH.C1 = clerp(RH.C1, RH1 * CFn(0.15 * Cos(sine / 8), 0.3 * Cos(sine / 8), 0) * CFa(0, 0, Rad(55 * Sin(sine / 8))), 0.15)
  1129. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), 0.15)
  1130. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1131. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1132. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1133. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
  1134. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
  1135. end
  1136. if not head:FindFirstChild("KOOOHAAA") then
  1137. koohaa = Instance.new("Sound", head)
  1138. koohaa.SoundId = "rbxassetid://149840174"
  1139. koohaa.Name = "KOOOHAAA"
  1140. koohaa.Volume = 2
  1141. koohaa.TimePosition = thepos
  1142. koohaa.Looped = true
  1143. koohaa:Play()
  1144. end
  1145. thepos = koohaa.TimePosition
  1146. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement