Advertisement
DylanD2003

Untitled

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