Advertisement
sawgamer1

Untitled

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