Advertisement
sawgamer1

Untitled

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