Mitko1223tm

vader FE

Aug 1st, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.76 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. for i,v in pairs(char:GetChildren()) do
  416. if v:IsA("Shirt") then
  417. v:Destroy()
  418. end
  419. if v:IsA("Pants") then
  420. v:Destroy()
  421. end
  422. if v:IsA("Accessory") then
  423. v:Destroy()
  424. end
  425. end
  426.  
  427. local ff = Instance.new("ForceField", char)
  428. ff.Visible = false
  429. hum.MaxHealth = math.huge
  430. hum.Health = math.huge
  431.  
  432. local shirt = Instance.new("Shirt", char)
  433. shirt.ShirtTemplate = "rbxassetid://1724954890"
  434. local pants = Instance.new("Pants", char)
  435. pants.PantsTemplate = "rbxassetid://1057571121"
  436.  
  437. head.Transparency = 1
  438.  
  439. local hair = Instance.new("Part", char)
  440. hair.Size = Vector3.new(1, 1, 1)
  441. hair.CanCollide = false
  442. local hairm = Instance.new("SpecialMesh", hair)
  443. hairm.MeshId = "rbxassetid://306063581"
  444. hairm.TextureId = "rbxassetid://306062884"
  445.  
  446. local hairw = Instance.new("Weld", hair)
  447. hairw.Part0 = head
  448. hairw.Part1 = hair
  449. hairw.C1 = CFn(0, -0.1, 0)
  450.  
  451. local AT0 = Instance.new("Attachment", outblade)
  452. AT0.Position = Vector3.new(-2.2, 0, 0)
  453.  
  454. local AT1 = Instance.new("Attachment", outblade)
  455. AT1.Position = Vector3.new(2.4, 0, 0)
  456.  
  457. local trail = Instance.new("Trail", outblade)
  458. trail.Attachment0 = AT0
  459. trail.Attachment1 = AT1
  460. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(1, 0.9, 0)})
  461. trail.LightEmission = 0.7
  462. trail.Lifetime = 0.5
  463. trail.MaxLength = 2
  464. trail.MinLength = 0.05
  465. trail.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(1, 0.2, 0)})
  466. trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(85, 0, 0), 0), ColorSequenceKeypoint.new(1, Color3.fromRGB(170, 0, 0), 0)})
  467.  
  468. local mainw = Instance.new("Weld", main)
  469. mainw.Part0 = tor
  470. mainw.Part1 = main
  471. mainw.C1 = CFn(1, 1, 0)
  472.  
  473. local bld = Instance.new("Part", saber)
  474. bld.Size = Vector3.new(4.7, 1, 1)
  475. bld.CanCollide = false
  476. bld.Transparency = 1
  477.  
  478. local bldw = Instance.new("Weld", bld)
  479. bldw.Part0 = outblade
  480. bldw.Part1 = bld
  481.  
  482. local cape = Instance.new("Part", char)
  483. cape.Size = Vector3.new(2, 3.6, 1)
  484. cape.Material = "SmoothPlastic"
  485. cape.BrickColor = BrickColor.new("Really black")
  486. local capem = Instance.new("SpecialMesh", cape)
  487. capem.MeshType = "FileMesh"
  488. capem.MeshId = "rbxassetid://114046169"
  489. capem.Scale = Vector3.new(1.2, 1.8, 1.1)
  490.  
  491. local capew = Instance.new("Weld", cape)
  492. capew.Part0 = tor
  493. capew.Part1 = cape
  494. capew.C1 = CFn(0, 0.7, -0.35)
  495.  
  496. outblade.Transparency = 1
  497. outball.Transparency = 1
  498. trail.Enabled = false
  499. particle.Transparency = NumberSequence.new(0, 1)
  500. particle.LockedToPart = false
  501. particle.Enabled = false
  502.  
  503. -----------------------------------------------------------------------------
  504.  
  505. ArtificialHB = Instance.new("BindableEvent", script)
  506. ArtificialHB.Name = "Heartbeat"
  507. script:WaitForChild("Heartbeat")
  508.  
  509. frame = 1 / 60
  510. tf = 0
  511. allowframeloss = false
  512. tossremainder = false
  513.  
  514.  
  515. lastframe = tick()
  516. script.Heartbeat:Fire()
  517.  
  518.  
  519. game:GetService("RunService").Heartbeat:connect(function(s, p)
  520. tf = tf + s
  521. if tf >= frame then
  522. if allowframeloss then
  523. script.Heartbeat:Fire()
  524. lastframe = tick()
  525. else
  526. for i = 1, math.floor(tf / frame) do
  527. script.Heartbeat:Fire()
  528. end
  529. lastframe = tick()
  530. end
  531. if tossremainder then
  532. tf = 0
  533. else
  534. tf = tf - frame * math.floor(tf / frame)
  535. end
  536. end
  537. end)
  538.  
  539. function swait(num)
  540. if num == 0 or num == nil then
  541. game:service("RunService").Stepped:wait(0)
  542. else
  543. for i = 0, num do
  544. game:service("RunService").Stepped:wait(0)
  545. end
  546. end
  547. end
  548.  
  549. function clerp(a, b, t)
  550. return a:lerp(b, t)
  551. end
  552.  
  553. function Sound(id, vol, par, name, looped)
  554. if not par:FindFirstChild(name) then
  555. local sound = Instance.new("Sound", par)
  556. sound.SoundId = id
  557. sound.Volume = vol
  558. if looped == true then
  559. sound.Looped = true
  560. end
  561. sound.Name = name
  562. sound:Play()
  563. return sound
  564. else
  565. local sound = par:FindFirstChild(name)
  566. sound:Play()
  567. return sound
  568. end
  569. end
  570.  
  571. function StopSound(id, vol, par, name, looped)
  572. if not par:FindFirstChild(name) then
  573. local sound = Instance.new("Sound", par)
  574. sound.SoundId = id
  575. sound.Volume = vol
  576. if looped == true then
  577. sound.Looped = true
  578. end
  579. sound.Name = name
  580. sound:Stop()
  581. return sound
  582. else
  583. local sound = par:FindFirstChild(name)
  584. sound:Stop()
  585. return sound
  586. end
  587. end
  588.  
  589. function Force(part, pos, part2, pos2, par2)
  590. local parp = Instance.new("Part", char)
  591. parp.Size = Vector3.new(1, 1, 1)
  592. parp.Transparency = 1
  593. parp.CanCollide = false
  594. local parpw = Instance.new("Weld", parp)
  595. parpw.Part0 = part
  596. parpw.Part1 = parp
  597. parpw.C1 = pos
  598. local pare = Instance.new("ParticleEmitter", parp)
  599. pare.LockedToPart = true
  600. pare.Transparency = NumberSequence.new(0.4, 1)
  601. pare.Size = NumberSequence.new(1.25, 0)
  602. pare.Lifetime = NumberRange.new(1)
  603. pare.Rotation = NumberRange.new(0, 360)
  604. pare.Rate = 200
  605. pare.RotSpeed = NumberRange.new(360, 360)
  606. pare.Speed = NumberRange.new(4)
  607. pare.Color = ColorSequence.new(Color3.fromRGB(170, 0, 0),Color3.fromRGB(255, 255, 255))
  608. pare.SpreadAngle = Vector2.new(360, 360)
  609. pare.Texture = "rbxassetid://122356023"
  610. local parp2 = parp:Clone()
  611. parp2.Parent = par2
  612. local parp2w = parp2:FindFirstChild("Weld")
  613. parp2w.Part0 = part2
  614. parp2w.Part1 = parp2
  615. parp2w.C1 = pos2
  616. return parp, parp2
  617. end
  618.  
  619. function equipunequip()
  620. if attacking == false and equipped == false and Changing == false then
  621. attacking = true
  622. Changing = true
  623. hum.WalkSpeed = 0
  624. hum.JumpPower = 0
  625. for i = 0,1,.1 do
  626. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-20), 0, Rad(-60)), i)
  627. rootj.C1 = clerp(rootj.C1, rootj1, i)
  628. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  629. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-30), Rad(-3)), i)
  630. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  631. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  632. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  633. rootj.C0 = clerp(rootj.C0, rootj0, i)
  634. LS.C0 = clerp(LS.C0, LS0, i)
  635. RS.C0 = clerp(RS.C0, RS0 * CFn(0, 0, -0.5) * CFa(0, Rad(90), 0), i)
  636. LH.C0 = clerp(LH.C0, LH0, i)
  637. RH.C0 = clerp(RH.C0, RH0, i)
  638. swait()
  639. end
  640. StopSound("rbxassetid://605607641", 2, cap, "SHEWW", false)
  641. Sound("rbxassetid://605604103", 2, cap, "PSHEW", false)
  642. Sound("rbxassetid://1460966017", 1, cap, "WANWAN", true)
  643. equipped = true
  644. mainw.Part0 = rarm
  645. mainw.C1 = CFn(0, 1, 0) * CFa(0, Rad(180), 0)
  646. outblade.Transparency = 0
  647. outball.Transparency = 0
  648. trail.Enabled = true
  649. particle.Transparency = NumberSequence.new(0, 0.1)
  650. particle.LockedToPart = true
  651. particle.Enabled = true
  652. for i = 0,1,.1 do
  653. neck.C1 = clerp(neck.C1, neck1, i)
  654. rootj.C1 = clerp(rootj.C1, rootj1, i)
  655. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  656. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(50), 0, 0), i)
  657. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  658. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  659. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  660. rootj.C0 = clerp(rootj.C0, rootj0, i)
  661. LS.C0 = clerp(LS.C0, LS0, i)
  662. RS.C0 = clerp(RS.C0, RS0, i)
  663. LH.C0 = clerp(LH.C0, LH0, i)
  664. RH.C0 = clerp(RH.C0, RH0, i)
  665. swait()
  666. end
  667. hum.WalkSpeed = nws
  668. hum.JumpPower = njp
  669. Changing = false
  670. attacking = false
  671. elseif attacking == false and equipped == true and Changing == false then
  672. attacking = true
  673. Changing = true
  674. hum.WalkSpeed = 0
  675. hum.JumpPower = 0
  676. StopSound("rbxassetid://605604103", 2, cap, "PSHEW", false)
  677. Sound("rbxassetid://605607641", 2, cap, "SHEWW", false)
  678. StopSound("rbxassetid://1460966017", 1, cap, "WANWAN", true)
  679. outblade.Transparency = 1
  680. outball.Transparency = 1
  681. trail.Enabled = false
  682. particle.Transparency = NumberSequence.new(0, 1)
  683. particle.LockedToPart = false
  684. particle.Enabled = false
  685. for i = 0,1,.1 do
  686. neck.C1 = clerp(neck.C1, neck1, i)
  687. rootj.C1 = clerp(rootj.C1, rootj1, i)
  688. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  689. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(50), 0, 0), i)
  690. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  691. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  692. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  693. rootj.C0 = clerp(rootj.C0, rootj0, i)
  694. LS.C0 = clerp(LS.C0, LS0, i)
  695. RS.C0 = clerp(RS.C0, RS0, i)
  696. LH.C0 = clerp(LH.C0, LH0, i)
  697. RH.C0 = clerp(RH.C0, RH0, i)
  698. swait()
  699. end
  700. for i = 0,1,.1 do
  701. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-20), 0, Rad(-60)), i)
  702. rootj.C1 = clerp(rootj.C1, rootj1, i)
  703. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  704. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-30), Rad(-3)), i)
  705. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  706. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  707. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  708. rootj.C0 = clerp(rootj.C0, rootj0, i)
  709. LS.C0 = clerp(LS.C0, LS0, i)
  710. RS.C0 = clerp(RS.C0, RS0 * CFn(0, 0, -0.5) * CFa(0, Rad(90), 0), i)
  711. LH.C0 = clerp(LH.C0, LH0, i)
  712. RH.C0 = clerp(RH.C0, RH0, i)
  713. swait()
  714. end
  715. mainw.Part0 = tor
  716. mainw.C1 = CFn(1, 1, 0)
  717. equipped = false
  718. hum.WalkSpeed = nws
  719. hum.JumpPower = njp
  720. Changing = false
  721. attacking = false
  722. end
  723. end
  724.  
  725. function Swing()
  726. if attacking == false and equipped == true and Swinging == false then
  727. attacking = true
  728. Swinging = true
  729. kill = true
  730. hum.WalkSpeed = 3
  731. hum.JumpPower = 5
  732. local hey = bld.Touched:connect(function(hit)
  733. if kill == true and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
  734. kill = false
  735. local killman = hit.Parent
  736. local killhum = killman:FindFirstChildOfClass("Humanoid")
  737. local up = true
  738. for i = 1,2 do
  739. local cutpart = Instance.new("Part", killman)
  740. cutpart.Size = Vector3.new(hit.Size.X, hit.Size.Y / 2, hit.Size.Z)
  741. cutpart.BrickColor = hit.BrickColor
  742. cutpart.Material = hit.Material
  743. cutpart.Transparency = hit.Transparency
  744. cutpart.Reflectance = hit.Reflectance
  745. cutpart.BackSurface = hit.BackSurface
  746. cutpart.BottomSurface = hit.BottomSurface
  747. cutpart.FrontSurface = hit.FrontSurface
  748. cutpart.LeftSurface = hit.LeftSurface
  749. cutpart.RightSurface = hit.RightSurface
  750. cutpart.TopSurface = hit.TopSurface
  751. if up == true then
  752. cutpart.CFrame = hit.CFrame * CFn(0, hit.Size.Y / 2, 0)
  753. up = false
  754. else
  755. cutpart.CFrame = hit.CFrame * CFn(0, -(hit.Size.Y / 2), 0)
  756. up = true
  757. end
  758. end
  759. hit:Destroy()
  760. killman:BreakJoints()
  761. if attackstate == 1 then
  762. Sound("rbxassetid://1647165403", 1, outblade, "CHWAN", false)
  763. elseif attackstate == 2 then
  764. Sound("rbxassetid://1335649595", 1, outblade, "PSSPS", false)
  765. end
  766. elseif kill == true and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
  767. kill = false
  768. local killman = hit.Parent.Parent
  769. local killhum = killman:FindFirstChildOfClass("Humanoid")
  770. local up = true
  771. for i = 1,2 do
  772. local cutpart = Instance.new("Part", killman)
  773. cutpart.Size = Vector3.new(hit.Size.X, hit.Size.Y / 2, hit.Size.Z)
  774. cutpart.BrickColor = hit.BrickColor
  775. cutpart.Material = hit.Material
  776. cutpart.Transparency = hit.Transparency
  777. cutpart.Reflectance = hit.Reflectance
  778. cutpart.BackSurface = hit.BackSurface
  779. cutpart.BottomSurface = hit.BottomSurface
  780. cutpart.FrontSurface = hit.FrontSurface
  781. cutpart.LeftSurface = hit.LeftSurface
  782. cutpart.RightSurface = hit.RightSurface
  783. cutpart.TopSurface = hit.TopSurface
  784. if up == true then
  785. cutpart.CFrame = hit.CFrame * CFn(0, hit.Size.Y / 2, 0)
  786. up = false
  787. else
  788. cutpart.CFrame = hit.CFrame * CFn(0, -(hit.Size.Y / 2), 0)
  789. up = true
  790. end
  791. end
  792. hit:Destroy()
  793. killman:BreakJoints()
  794. if attackstate == 1 then
  795. Sound("rbxassetid://1647165403", 1, outblade, "CHWAN", false)
  796. elseif attackstate == 2 then
  797. Sound("rbxassetid://1335649595", 1, outblade, "PSSPS", false)
  798. end
  799. end
  800. end)
  801. if attackstate == 1 then
  802. attackstate = 2
  803. for i = 0,1,.15 do
  804. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-10)), i)
  805. rootj.C1 = clerp(rootj.C1, rootj1, i)
  806. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  807. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-80), Rad(-40)), i)
  808. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  809. RH.C1 = clerp(RH.C1, RH1 * CFn(0.3, 0, 0) * CFa(Rad(5), 0, 0), i)
  810. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  811. rootj.C0 = clerp(rootj.C0, rootj0, i)
  812. LS.C0 = clerp(LS.C0, LS0, i)
  813. RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(30), 0), i)
  814. LH.C0 = clerp(LH.C0, LH0, i)
  815. RH.C0 = clerp(RH.C0, RH0, i)
  816. swait()
  817. end
  818. Sound("rbxassetid://2088308141", 2, outblade, "VOMB", false)
  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(30), Rad(-80), Rad(-50)), 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 * CFa(0, Rad(-75), 0), i)
  830. LH.C0 = clerp(LH.C0, LH0, i)
  831. RH.C0 = clerp(RH.C0, RH0, i)
  832. swait()
  833. end
  834. elseif attackstate == 2 then
  835. attackstate = 1
  836. for i = 0,1,.15 do
  837. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(10)), i)
  838. rootj.C1 = clerp(rootj.C1, rootj1, i)
  839. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  840. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(110), Rad(-20), Rad(-90)), i)
  841. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  842. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  843. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  844. rootj.C0 = clerp(rootj.C0, rootj0, i)
  845. LS.C0 = clerp(LS.C0, LS0, i)
  846. RS.C0 = clerp(RS.C0, RS0, i)
  847. LH.C0 = clerp(LH.C0, LH0, i)
  848. RH.C0 = clerp(RH.C0, RH0, i)
  849. swait()
  850. end
  851. Sound("rbxassetid://2088308141", 2, outblade, "VOMB", false)
  852. for i = 0,1,.15 do
  853. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-10)), i)
  854. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(-40)), i)
  855. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
  856. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(-80), Rad(70), Rad(-40)), i)
  857. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
  858. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), Rad(40), 0), i)
  859. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  860. rootj.C0 = clerp(rootj.C0, rootj0, i)
  861. LS.C0 = clerp(LS.C0, LS0, i)
  862. RS.C0 = clerp(RS.C0, RS0, i)
  863. LH.C0 = clerp(LH.C0, LH0, i)
  864. RH.C0 = clerp(RH.C0, RH0, i)
  865. swait()
  866. end
  867. end
  868. hum.WalkSpeed = nws
  869. hum.JumpPower = njp
  870. kill = false
  871. hey:disconnect()
  872. Swinging = false
  873. attacking = false
  874. end
  875. end
  876.  
  877. function Choke()
  878. if attacking == false and Choking == false then
  879. attacking = true
  880. Choking = true
  881. hum.WalkSpeed = 0
  882. hum.JumpPower = 0
  883. if Mouse.Target ~= nil and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
  884. local theguy = Mouse.Target.Parent
  885. local thehum = theguy:FindFirstChildOfClass("Humanoid")
  886. if thehum.Health > 0 then
  887. local thehead = theguy:FindFirstChild("Head")
  888. local thetor = theguy:FindFirstChild("Torso") or theguy:FindFirstChild("UpperTorso")
  889. root.CFrame = CFn(root.CFrame.p, Vector3.new(Mouse.Hit.x, root.CFrame.y, Mouse.Hit.z))
  890. thetor.CFrame = CFn(thetor.CFrame.p, Vector3.new(root.CFrame.x, thetor.CFrame.y, root.CFrame.z))
  891. local thetorframe = thetor.CFrame
  892. local forpar, forpar2 = Force(larm, CFn(0, 1, 0), thehead, CFn(0, 0.5, 0), theguy)
  893. if thetor.Anchored == true then
  894. thetor.Anchored = false
  895. end
  896. local thebv = Instance.new("BodyPosition", thetor)
  897. thebv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  898. thebv.Position = thetorframe.p
  899. Sound("rbxassetid://1386781853", 2.5, larm, "OOOWA", false)
  900. for i = 0,1,.15 do
  901. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-20)) , i)
  902. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
  903. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(90)), i)
  904. RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
  905. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
  906. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  907. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  908. rootj.C0 = clerp(rootj.C0, rootj0, i)
  909. LS.C0 = clerp(LS.C0, LS0, i)
  910. RS.C0 = clerp(RS.C0, RS0, i)
  911. LH.C0 = clerp(LH.C0, LH0, i)
  912. RH.C0 = clerp(RH.C0, RH0, i)
  913. swait()
  914. end
  915. thebv.Position = thetorframe * CFn(0, 10, 0).p
  916. for i = 0,1,.05 do
  917. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(20), 0, Rad(-20)), i)
  918. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
  919. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(140)), i)
  920. RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
  921. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
  922. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  923. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  924. rootj.C0 = clerp(rootj.C0, rootj0, i)
  925. LS.C0 = clerp(LS.C0, LS0, i)
  926. RS.C0 = clerp(RS.C0, RS0, i)
  927. LH.C0 = clerp(LH.C0, LH0, i)
  928. RH.C0 = clerp(RH.C0, RH0, i)
  929. swait()
  930. end
  931. for i = 1,math.huge do
  932. if buttonC == true and thehum.Health > 0 then
  933. thehum.Health = thehum.Health - 1.5
  934. swait()
  935. elseif buttonC == false or thehum.Health <= 0 then
  936. break
  937. end
  938. end
  939. if thehum.Health <= 0 then
  940. theguy:BreakJoints()
  941. Sound("rbxassetid://513153251", 4, thetor, "OUCH", false)
  942. end
  943. thebv:Destroy()
  944. forpar:Destroy()
  945. forpar2:Destroy()
  946. end
  947. elseif Mouse.Target ~= nil and Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  948. local theguy = Mouse.Target.Parent.Parent
  949. local thehum = theguy:FindFirstChildOfClass("Humanoid")
  950. if thehum.Health > 0 then
  951. local thehead = theguy:FindFirstChild("Head")
  952. local thetor = theguy:FindFirstChild("Torso") or theguy:FindFirstChild("UpperTorso")
  953. root.CFrame = CFn(root.CFrame.p, Vector3.new(Mouse.Hit.x, root.CFrame.y, Mouse.Hit.z))
  954. thetor.CFrame = CFn(thetor.CFrame.p, Vector3.new(root.CFrame.x, root.CFrame.y, root.CFrame.z))
  955. local thetorframe = thetor.CFrame
  956. local forpar, forpar2 = Force(larm, CFn(0, 1, 0), thehead, CFn(0, 0.5, 0), theguy)
  957. if thetor.Anchored == true then
  958. thetor.Anchored = false
  959. end
  960. local thebv = Instance.new("BodyPosition", thetor)
  961. thebv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  962. thebv.Position = thetorframe.p
  963. Sound("rbxassetid://1386781853", 2.5, larm, "OOOWA", false)
  964. for i = 0,1,.15 do
  965. neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-20)) , i)
  966. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
  967. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(90)), i)
  968. RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
  969. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
  970. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  971. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  972. rootj.C0 = clerp(rootj.C0, rootj0, i)
  973. LS.C0 = clerp(LS.C0, LS0, i)
  974. RS.C0 = clerp(RS.C0, RS0, i)
  975. LH.C0 = clerp(LH.C0, LH0, i)
  976. RH.C0 = clerp(RH.C0, RH0, i)
  977. swait()
  978. end
  979. thebv.Position = thetorframe * CFn(0, 10, 0).p
  980. for i = 0,1,.05 do
  981. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(20), 0, Rad(-20)), i)
  982. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
  983. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(140)), i)
  984. RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
  985. LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
  986. RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
  987. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
  988. rootj.C0 = clerp(rootj.C0, rootj0, i)
  989. LS.C0 = clerp(LS.C0, LS0, i)
  990. RS.C0 = clerp(RS.C0, RS0, i)
  991. LH.C0 = clerp(LH.C0, LH0, i)
  992. RH.C0 = clerp(RH.C0, RH0, i)
  993. swait()
  994. end
  995. for i = 1,math.huge do
  996. if buttonC == true and thehum.Health > 0 then
  997. thehum.Health = thehum.Health - 1.5
  998. swait()
  999. elseif buttonC == false or thehum.Health <= 0 then
  1000. break
  1001. end
  1002. end
  1003. if thehum.Health <= 0 then
  1004. theguy:BreakJoints()
  1005. Sound("rbxassetid://513153251", 4, thetor, "OUCH", false)
  1006. end
  1007. thebv:Destroy()
  1008. forpar:Destroy()
  1009. forpar2:Destroy()
  1010. end
  1011. end
  1012. hum.WalkSpeed = nws
  1013. hum.JumpPower = njp
  1014. Choking = false
  1015. attacking = false
  1016. end
  1017. end
  1018.  
  1019.  
  1020.  
  1021. -----------------------------------------------------------------------------
  1022.  
  1023. function kdown(k)
  1024. if k == "e" then
  1025. equipunequip()
  1026. elseif k == "c" then
  1027. if buttonC == false then
  1028. buttonC = true
  1029. Choke()
  1030. end
  1031. end
  1032. end
  1033.  
  1034. function kup(k)
  1035. if k == "c" then
  1036. if buttonC == true then
  1037. buttonC = false
  1038. end
  1039. end
  1040. end
  1041.  
  1042. function lmdown()
  1043. Swing()
  1044. end
  1045.  
  1046. Mouse.KeyDown:connect(kdown)
  1047. Mouse.KeyUp:connect(kup)
  1048. Mouse.Button1Down:connect(lmdown)
  1049.  
  1050. -----------------------------------------------------------------------------
  1051.  
  1052. warn([[Darth Vader.
  1053. last updated: 2018/7/19, 20:14 JST.
  1054.  
  1055. Please do not leak this script.]])
  1056.  
  1057. -----------------------------------------------------------------------------
  1058.  
  1059. while true do
  1060. swait()
  1061. sine = sine + 1
  1062. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1063. if Changing == true then
  1064. state = "Change"
  1065. elseif Swinging == true then
  1066. state = "Swing"
  1067. elseif Choking == true then
  1068. state = "Choking"
  1069. elseif 1 < root.Velocity.y then
  1070. state = "Jump"
  1071. elseif -1 > root.Velocity.y then
  1072. state = "Fall"
  1073. elseif torvel < 1 then
  1074. state = "Idle"
  1075. elseif tor.Velocity.magnitude < 50 then
  1076. state = "Walk"
  1077. end
  1078.  
  1079. if state == "Jump" then
  1080. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-10), 0, 0), 0.15)
  1081. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-10), 0, 0), 0.15)
  1082. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), 0.15)
  1083. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, 0), 0.15)
  1084. LH.C1 = clerp(LH.C1, LH1 * CFn(0.5, -1, -0.1) * CFa(Rad(-10), 0, Rad(-40)), 0.15)
  1085. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.3, -0.8, 0) * CFa(Rad(-5), 0, Rad(15)), 0.15)
  1086. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1087. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1088. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1089. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1090. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1091. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1092. elseif state == "Fall" then
  1093. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
  1094. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(10), 0, 0), 0.15)
  1095. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, 0), 0.15)
  1096. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(20), 0, 0), 0.15)
  1097. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
  1098. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
  1099. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1100. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1101. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1102. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1103. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
  1104. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
  1105. elseif state == "Idle" then
  1106. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-7 * Sin(sine / 15)), 0, 0), 0.15)
  1107. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-2 * Sin(sine / 15)), 0, 0), 0.15)
  1108. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
  1109. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
  1110. 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)
  1111. 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)
  1112. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(10), 0, 0), 0.15)
  1113. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(2), 0, 0), 0.15)
  1114. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1115. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1116. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1117. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1118. elseif state == "Walk" then
  1119. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5 * Sin(sine / 4)), 0, 0), 0.15)
  1120. 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)
  1121. LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
  1122. RS.C1 = clerp(RS.C1, RS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
  1123. 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)
  1124. 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)
  1125. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), 0.15)
  1126. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1127. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1128. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1129. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
  1130. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
  1131. end
  1132. if not head:FindFirstChild("KOOOHAAA") then
  1133. koohaa = Instance.new("Sound", head)
  1134. koohaa.SoundId = "rbxassetid://149840174"
  1135. koohaa.Name = "KOOOHAAA"
  1136. koohaa.Volume = 2
  1137. koohaa.TimePosition = thepos
  1138. koohaa.Looped = true
  1139. koohaa:Play()
  1140. end
  1141. thepos = koohaa.TimePosition
  1142. end
  1143. -----------------------------------------------------------------------------
  1144.  
  1145. while true do
  1146. swait()
  1147. sine = sine + 1
  1148. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1149. if Changing == true then
  1150. state = "Change"
  1151. elseif Swinging == true then
  1152. state = "Swing"
  1153. elseif Choking == true then
  1154. state = "Choking"
  1155. elseif 1 < root.Velocity.y then
  1156. state = "Jump"
  1157. elseif -1 > root.Velocity.y then
  1158. state = "Fall"
  1159. elseif torvel < 1 then
  1160. state = "Idle"
  1161. elseif tor.Velocity.magnitude < 50 then
  1162. state = "Walk"
  1163. end
  1164.  
  1165. if state == "Jump" then
  1166. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-10), 0, 0), 0.15)
  1167. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-10), 0, 0), 0.15)
  1168. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), 0.15)
  1169. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, 0), 0.15)
  1170. LH.C1 = clerp(LH.C1, LH1 * CFn(0.5, -1, -0.1) * CFa(Rad(-10), 0, Rad(-40)), 0.15)
  1171. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.3, -0.8, 0) * CFa(Rad(-5), 0, Rad(15)), 0.15)
  1172. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1173. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1174. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1175. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1176. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1177. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1178. elseif state == "Fall" then
  1179. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
  1180. rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(10), 0, 0), 0.15)
  1181. LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, 0), 0.15)
  1182. RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(20), 0, 0), 0.15)
  1183. LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
  1184. RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
  1185. neck.C0 = clerp(neck.C0, neck0, 0.15)
  1186. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1187. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1188. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1189. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
  1190. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
  1191. elseif state == "Idle" then
  1192. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-7 * Sin(sine / 15)), 0, 0), 0.15)
  1193. rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-2 * Sin(sine / 15)), 0, 0), 0.15)
  1194. LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
  1195. RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
  1196. 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)
  1197. 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)
  1198. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(10), 0, 0), 0.15)
  1199. rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(2), 0, 0), 0.15)
  1200. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1201. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1202. LH.C0 = clerp(LH.C0, LH0, 0.15)
  1203. RH.C0 = clerp(RH.C0, RH0, 0.15)
  1204. elseif state == "Walk" then
  1205. neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5 * Sin(sine / 4)), 0, 0), 0.15)
  1206. 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)
  1207. LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
  1208. RS.C1 = clerp(RS.C1, RS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
  1209. 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)
  1210. 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)
  1211. neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), 0.15)
  1212. rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
  1213. LS.C0 = clerp(LS.C0, LS0, 0.15)
  1214. RS.C0 = clerp(RS.C0, RS0, 0.15)
  1215. LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
  1216. RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
  1217. end
  1218. if not head:FindFirstChild("KOOOHAAA") then
  1219. koohaa = Instance.new("Sound", head)
  1220. koohaa.SoundId = "rbxassetid://149840174"
  1221. koohaa.Name = "KOOOHAAA"
  1222. koohaa.Volume = 2
  1223. koohaa.TimePosition = thepos
  1224. koohaa.Looped = true
  1225. koohaa:Play()
  1226. end
  1227. thepos = koohaa.TimePosition
  1228. end
Add Comment
Please, Sign In to add comment