Advertisement
DarkScriptZEditors

Untitled

Dec 25th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 66.94 KB | None | 0 0
  1. function Create()
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. ParticleEmitter0 = Instance.new("ParticleEmitter")
  19. ParticleEmitter1 = Instance.new("ParticleEmitter")
  20. Model2 = Instance.new("Model")
  21. Part3 = Instance.new("Part")
  22. SpecialMesh4 = Instance.new("SpecialMesh")
  23. Part5 = Instance.new("Part")
  24. Weld6 = Instance.new("Weld")
  25. SpecialMesh7 = Instance.new("SpecialMesh")
  26. UnionOperation8 = Instance.new("UnionOperation")
  27. Weld9 = Instance.new("Weld")
  28. UnionOperation10 = Instance.new("UnionOperation")
  29. Weld11 = Instance.new("Weld")
  30. Model12 = Instance.new("Model")
  31. Part13 = Instance.new("Part")
  32. UnionOperation14 = Instance.new("UnionOperation")
  33. Weld15 = Instance.new("Weld")
  34. Model16 = Instance.new("Model")
  35. Part17 = Instance.new("Part")
  36. UnionOperation18 = Instance.new("UnionOperation")
  37. Weld19 = Instance.new("Weld")
  38. UnionOperation20 = Instance.new("UnionOperation")
  39. Weld21 = Instance.new("Weld")
  40. Model22 = Instance.new("Model")
  41. MeshPart23 = Instance.new("MeshPart")
  42. Trail24 = Instance.new("Trail")
  43. Weld25 = Instance.new("Weld")
  44. MeshPart26 = Instance.new("MeshPart")
  45. Weld27 = Instance.new("Weld")
  46. MeshPart28 = Instance.new("MeshPart")
  47. Weld29 = Instance.new("Weld")
  48. UnionOperation30 = Instance.new("UnionOperation")
  49. Weld31 = Instance.new("Weld")
  50. Part32 = Instance.new("Part")
  51. ParticleEmitter0.Name = "Vortex"
  52. ParticleEmitter0.Parent = mas
  53. ParticleEmitter0.Speed = NumberRange.new(0, 0)
  54. ParticleEmitter0.Rotation = NumberRange.new(0, 360)
  55. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118),Color3.new(0.423529, 0.345098, 0.294118))
  56. ParticleEmitter0.Enabled = false
  57. ParticleEmitter0.LightEmission = 1
  58. ParticleEmitter0.Texture = "rbxassetid://1084969997"
  59. ParticleEmitter0.Transparency = NumberSequence.new(1,0.5,0.5)
  60. ParticleEmitter0.ZOffset = -2
  61. ParticleEmitter0.Size = NumberSequence.new(0,0)
  62. ParticleEmitter0.Lifetime = NumberRange.new(1, 1)
  63. ParticleEmitter0.LockedToPart = true
  64. ParticleEmitter0.Rate = 0
  65. ParticleEmitter0.RotSpeed = NumberRange.new(360, 360)
  66. ParticleEmitter1.Name = "Wave"
  67. ParticleEmitter1.Parent = mas
  68. ParticleEmitter1.Speed = NumberRange.new(0, 0)
  69. ParticleEmitter1.Rotation = NumberRange.new(-180, 180)
  70. ParticleEmitter1.Enabled = false
  71. ParticleEmitter1.LightEmission = 1
  72. ParticleEmitter1.Texture = "rbxassetid://1084991215"
  73. ParticleEmitter1.Transparency = NumberSequence.new(0,0.39344263076782,0.66120219230652,0.83606559038162,1)
  74. ParticleEmitter1.ZOffset = 1
  75. ParticleEmitter1.Size = NumberSequence.new(0,0)
  76. ParticleEmitter1.Lifetime = NumberRange.new(0.30000001192093, 0.30000001192093)
  77. ParticleEmitter1.Rate = 1
  78. Model2.Name = "Head"
  79. Model2.Parent = mas
  80. Model2.PrimaryPart = Part5
  81. Part3.Name = "Hood"
  82. Part3.Parent = Model2
  83. Part3.CFrame = CFrame.new(-5.39999914, 1.61983001, -6.17999601, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  84. Part3.Position = Vector3.new(-5.39999914, 1.61983001, -6.17999601)
  85. Part3.Size = Vector3.new(1.79999924, 2.20000052, 2.00000024)
  86. Part3.Anchored = true
  87. Part3.BottomSurface = Enum.SurfaceType.Smooth
  88. Part3.CanCollide = false
  89. Part3.TopSurface = Enum.SurfaceType.Smooth
  90. Part3.FormFactor = Enum.FormFactor.Custom
  91. Part3.formFactor = Enum.FormFactor.Custom
  92. SpecialMesh4.Parent = Part3
  93. SpecialMesh4.MeshId = "http://www.roblox.com/asset/?id=93129244"
  94. SpecialMesh4.TextureId = "http://www.roblox.com/asset/?id=93129336"
  95. SpecialMesh4.MeshType = Enum.MeshType.FileMesh
  96. Part5.Name = "Base"
  97. Part5.Parent = Model2
  98. Part5.CFrame = CFrame.new(-5.39999914, 1.219836, -6.12999296, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  99. Part5.Position = Vector3.new(-5.39999914, 1.219836, -6.12999296)
  100. Part5.Transparency = 1
  101. Part5.Size = Vector3.new(2, 1, 1)
  102. Part5.Anchored = true
  103. Part5.BottomSurface = Enum.SurfaceType.Smooth
  104. Part5.CanCollide = false
  105. Part5.Material = Enum.Material.SmoothPlastic
  106. Part5.TopSurface = Enum.SurfaceType.Smooth
  107. Weld6.Name = "Joint"
  108. Weld6.Parent = Part5
  109. Weld6.C0 = CFrame.new(0, 0.399993896, -0.0500011444, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  110. Weld6.Part0 = Part5
  111. Weld6.Part1 = Part3
  112. Weld6.part1 = Part3
  113. SpecialMesh7.Parent = Part5
  114. SpecialMesh7.Scale = Vector3.new(1.25, 1.25, 1.25)
  115. UnionOperation8.Parent = Model2
  116. UnionOperation8.CFrame = CFrame.new(-5.6099968, 1.41984105, -6.55999708, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849, 0, 0, 0, 1)
  117. UnionOperation8.Orientation = Vector3.new(0, 0, 10)
  118. UnionOperation8.Position = Vector3.new(-5.6099968, 1.41984105, -6.55999708)
  119. UnionOperation8.Rotation = Vector3.new(0, 0, 10)
  120. UnionOperation8.Color = Color3.new(0.972549, 0.972549, 0.972549)
  121. UnionOperation8.Size = Vector3.new(0.299999148, 0.150003329, 0.299999297)
  122. UnionOperation8.Anchored = true
  123. UnionOperation8.CanCollide = false
  124. UnionOperation8.Material = Enum.Material.Neon
  125. Weld9.Name = "Joint"
  126. Weld9.Parent = UnionOperation8
  127. Weld9.C0 = CFrame.new(0.241538048, 0.160499573, 0.380000114, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849, 0, 0, 0, 1)
  128. Weld9.Part0 = UnionOperation8
  129. Weld9.Part1 = Part3
  130. Weld9.part1 = Part3
  131. UnionOperation10.Parent = Model2
  132. UnionOperation10.CFrame = CFrame.new(-5.33529711, 1.56131196, -6.12999678, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1)
  133. UnionOperation10.Orientation = Vector3.new(0, 0, -30)
  134. UnionOperation10.Position = Vector3.new(-5.33529711, 1.56131196, -6.12999678)
  135. UnionOperation10.Rotation = Vector3.new(0, 0, -30)
  136. UnionOperation10.Size = Vector3.new(1.30000305, 0.300018311, 1.29999924)
  137. UnionOperation10.Anchored = true
  138. UnionOperation10.CanCollide = false
  139. UnionOperation10.Material = Enum.Material.Fabric
  140. Weld11.Name = "Joint"
  141. Weld11.Parent = UnionOperation10
  142. Weld11.C0 = CFrame.new(-0.0853004456, 0.0183410645, -0.0499992371, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388, 0, 0, 0, 1)
  143. Weld11.Part0 = UnionOperation10
  144. Weld11.Part1 = Part3
  145. Weld11.part1 = Part3
  146. Model12.Name = "Right Arm"
  147. Model12.Parent = mas
  148. Model12.PrimaryPart = Part13
  149. Part13.Name = "Base"
  150. Part13.Parent = Model12
  151. Part13.CFrame = CFrame.new(2.90001798, 1.719836, -6.17999601, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  152. Part13.Position = Vector3.new(2.90001798, 1.719836, -6.17999601)
  153. Part13.Transparency = 1
  154. Part13.Size = Vector3.new(1, 2, 1)
  155. Part13.Anchored = true
  156. Part13.BottomSurface = Enum.SurfaceType.Smooth
  157. Part13.CanCollide = false
  158. Part13.Material = Enum.Material.SmoothPlastic
  159. Part13.TopSurface = Enum.SurfaceType.Smooth
  160. UnionOperation14.Parent = Model12
  161. UnionOperation14.CFrame = CFrame.new(2.89999008, 1.21986496, -6.1798892, -1, 0, -0, 0, 0, -1, 0, -1, -0)
  162. UnionOperation14.Orientation = Vector3.new(90, 180, 0)
  163. UnionOperation14.Position = Vector3.new(2.89999008, 1.21986496, -6.1798892)
  164. UnionOperation14.Rotation = Vector3.new(90, 0, -180)
  165. UnionOperation14.Color = Color3.new(0.972549, 0.972549, 0.972549)
  166. UnionOperation14.Size = Vector3.new(1.92824566, 1.928262, 0.199996948)
  167. UnionOperation14.Material = Enum.Material.Metal
  168. Weld15.Name = "Joint"
  169. Weld15.Parent = UnionOperation14
  170. Weld15.C0 = CFrame.new(-2.78949738e-05, 0.000108242035, -0.499984741, -1, 0, -0, 0, 0, -1, 0, -1, -0)
  171. Weld15.Part0 = UnionOperation14
  172. Weld15.Part1 = Part13
  173. Weld15.part1 = Part13
  174. Model16.Name = "Torso"
  175. Model16.Parent = mas
  176. Model16.PrimaryPart = Part17
  177. Part17.Name = "Base"
  178. Part17.Parent = Model16
  179. Part17.CFrame = CFrame.new(0.194646001, 1.78298295, -4.42007017, 0.990866959, 0, -0.134853125, 0, 1, 0, 0.134853125, 0, 0.990866959)
  180. Part17.Orientation = Vector3.new(0, -7.75, 0)
  181. Part17.Position = Vector3.new(0.194646001, 1.78298295, -4.42007017)
  182. Part17.Rotation = Vector3.new(0, -7.75, 0)
  183. Part17.Transparency = 1
  184. Part17.Size = Vector3.new(2.00000143, 2.00000024, 0.999999523)
  185. Part17.Anchored = true
  186. Part17.BottomSurface = Enum.SurfaceType.Smooth
  187. Part17.Material = Enum.Material.SmoothPlastic
  188. Part17.TopSurface = Enum.SurfaceType.Smooth
  189. UnionOperation18.Parent = Model16
  190. UnionOperation18.CFrame = CFrame.new(0.25771001, 1.85151994, -4.46697617, 0.418757796, 0.898028553, -0.13485226, -0.906306803, 0.422617823, 6.83113285e-07, 0.0569899194, 0.12221811, 0.990865886)
  191. UnionOperation18.Orientation = Vector3.new(0, -7.75, -65)
  192. UnionOperation18.Position = Vector3.new(0.25771001, 1.85151994, -4.46697617)
  193. UnionOperation18.Rotation = Vector3.new(0, -7.75, -65)
  194. UnionOperation18.Color = Color3.new(0.972549, 0.972549, 0.972549)
  195. UnionOperation18.Size = Vector3.new(1.78060913, 1.4895668, 0.910001755)
  196. UnionOperation18.CanCollide = false
  197. UnionOperation18.Material = Enum.Material.SmoothPlastic
  198. Weld19.Name = "Joint"
  199. Weld19.Parent = UnionOperation18
  200. Weld19.C0 = CFrame.new(0.0383834839, -0.079864502, 0.0549826622, 0.422618538, -0.906306803, -1.36718154e-06, 0.906308353, 0.422617823, -6.70552254e-08, 7.15255737e-07, 6.83113285e-07, 1.00000155)
  201. Weld19.Part0 = UnionOperation18
  202. Weld19.Part1 = Part17
  203. Weld19.part1 = Part17
  204. UnionOperation20.Parent = Model16
  205. UnionOperation20.CFrame = CFrame.new(0.194999993, 2.8828299, -4.41999388, -1, -5.96046448e-08, 0, 0, 0, -0.99999994, 5.96046448e-08, -1, 0)
  206. UnionOperation20.Orientation = Vector3.new(89.9799957, 0, 0)
  207. UnionOperation20.Position = Vector3.new(0.194999993, 2.8828299, -4.41999388)
  208. UnionOperation20.Rotation = Vector3.new(90, 0, 180)
  209. UnionOperation20.Color = Color3.new(0.639216, 0.635294, 0.647059)
  210. UnionOperation20.Size = Vector3.new(2.05999804, 2.06000805, 0.200012207)
  211. UnionOperation20.BrickColor = BrickColor.new("Medium stone grey")
  212. UnionOperation20.Material = Enum.Material.Metal
  213. UnionOperation20.brickColor = BrickColor.new("Medium stone grey")
  214. Weld21.Name = "Joint"
  215. Weld21.Parent = UnionOperation20
  216. Weld21.C0 = CFrame.new(0.00035405159, 7.34329224e-05, 1.09985352, -0.990866959, 0, 0.134853184, -0.134853184, 0, -0.990866959, 0, -0.99999994, 0)
  217. Weld21.Part0 = UnionOperation20
  218. Weld21.Part1 = Part17
  219. Weld21.part1 = Part17
  220. Model22.Name = "Weapon"
  221. Model22.Parent = mas
  222. Model22.PrimaryPart = UnionOperation30
  223. MeshPart23.Name = "TrailBlade"
  224. MeshPart23.Parent = Model22
  225. MeshPart23.CFrame = CFrame.new(8.69999886, 7.97447968, -18.380003, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  226. MeshPart23.Orientation = Vector3.new(0, 180, 180)
  227. MeshPart23.Position = Vector3.new(8.69999886, 7.97447968, -18.380003)
  228. MeshPart23.Rotation = Vector3.new(-180, 0, 0)
  229. MeshPart23.Color = Color3.new(0, 0, 0)
  230. MeshPart23.Velocity = Vector3.new(0, -16.3500004, 0)
  231. MeshPart23.Size = Vector3.new(0.200000003, 2.12599993, 0.600000024)
  232. MeshPart23.BrickColor = BrickColor.new("Really black")
  233. MeshPart23.CanCollide = false
  234. MeshPart23.Material = Enum.Material.Neon
  235. MeshPart23.brickColor = BrickColor.new("Really black")
  236. Trail24.Parent = MeshPart23
  237. Trail24.Attachment0 = nil
  238. Trail24.Attachment1 = nil
  239. Trail24.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  240. Trail24.Transparency = NumberSequence.new(0.5,0.76249998807907,0.91874998807907,1)
  241. Trail24.Lifetime = 0.10000000149012
  242. Weld25.Name = "Joint"
  243. Weld25.Parent = MeshPart23
  244. Weld25.C0 = CFrame.new(9.53674316e-07, 1.91990662, -4.29153442e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  245. Weld25.Part0 = MeshPart23
  246. Weld25.Part1 = Part32
  247. Weld25.part1 = Part32
  248. MeshPart26.Name = "Blade"
  249. MeshPart26.Parent = Model22
  250. MeshPart26.CFrame = CFrame.new(8.69999886, 7.62445831, -18.380003, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  251. MeshPart26.Orientation = Vector3.new(0, 180, 180)
  252. MeshPart26.Position = Vector3.new(8.69999886, 7.62445831, -18.380003)
  253. MeshPart26.Rotation = Vector3.new(-180, 0, 0)
  254. MeshPart26.Color = Color3.new(0.972549, 0.972549, 0.972549)
  255. MeshPart26.Velocity = Vector3.new(0, -16.3500004, 0)
  256. MeshPart26.Size = Vector3.new(0.200000003, 1.22599995, 0.600000024)
  257. MeshPart26.BrickColor = BrickColor.new("Institutional white")
  258. MeshPart26.CanCollide = false
  259. MeshPart26.Material = Enum.Material.Wood
  260. MeshPart26.brickColor = BrickColor.new("Institutional white")
  261. Weld27.Name = "Joint"
  262. Weld27.Parent = MeshPart26
  263. Weld27.C0 = CFrame.new(9.53674316e-07, 1.56988525, -4.29153442e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  264. Weld27.Part0 = MeshPart26
  265. Weld27.Part1 = Part32
  266. Weld27.part1 = Part32
  267. MeshPart28.Name = "Blade"
  268. MeshPart28.Parent = Model22
  269. MeshPart28.CFrame = CFrame.new(8.69999886, 7.62445831, -18.380003, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  270. MeshPart28.Orientation = Vector3.new(0, 180, 180)
  271. MeshPart28.Position = Vector3.new(8.69999886, 7.62445831, -18.380003)
  272. MeshPart28.Rotation = Vector3.new(-180, 0, 0)
  273. MeshPart28.Color = Color3.new(0.972549, 0.972549, 0.972549)
  274. MeshPart28.Velocity = Vector3.new(0, -16.3500004, 0)
  275. MeshPart28.Size = Vector3.new(0.300000012, 1.22599995, 0.0500000007)
  276. MeshPart28.BrickColor = BrickColor.new("Institutional white")
  277. MeshPart28.CanCollide = false
  278. MeshPart28.Material = Enum.Material.Wood
  279. MeshPart28.brickColor = BrickColor.new("Institutional white")
  280. Weld29.Name = "Joint"
  281. Weld29.Parent = MeshPart28
  282. Weld29.C0 = CFrame.new(9.53674316e-07, 1.56988525, -4.29153442e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  283. Weld29.Part0 = MeshPart28
  284. Weld29.Part1 = Part32
  285. Weld29.part1 = Part32
  286. UnionOperation30.Name = "Bostaff"
  287. UnionOperation30.Parent = Model22
  288. UnionOperation30.CFrame = CFrame.new(8.69999981, 3.45453644, -18.3800049, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  289. UnionOperation30.Position = Vector3.new(8.69999981, 3.45453644, -18.3800049)
  290. UnionOperation30.Color = Color3.new(0.972549, 0.972549, 0.972549)
  291. UnionOperation30.Velocity = Vector3.new(0, -16.3500004, 0)
  292. UnionOperation30.Size = Vector3.new(0.250000954, 6.90002441, 0.25)
  293. UnionOperation30.CanCollide = false
  294. UnionOperation30.Material = Enum.Material.Wood
  295. Weld31.Name = "Joint"
  296. Weld31.Parent = UnionOperation30
  297. Weld31.C0 = CFrame.new(0, 2.60003662, 6.19888306e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  298. Weld31.Part0 = UnionOperation30
  299. Weld31.Part1 = Part32
  300. Weld31.part1 = Part32
  301. Part32.Name = "MainBlade"
  302. Part32.Parent = Model22
  303. Part32.CFrame = CFrame.new(8.69999981, 6.05457306, -18.3799992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  304. Part32.Position = Vector3.new(8.69999981, 6.05457306, -18.3799992)
  305. Part32.Transparency = 1
  306. Part32.Velocity = Vector3.new(0, -16.3500004, 0)
  307. Part32.Size = Vector3.new(0.400000006, 6.19999838, 0.800000072)
  308. Part32.BottomSurface = Enum.SurfaceType.Smooth
  309. Part32.CanCollide = false
  310. Part32.Material = Enum.Material.SmoothPlastic
  311. Part32.TopSurface = Enum.SurfaceType.Smooth
  312. for i,v in pairs(mas:GetChildren()) do
  313. v.Parent = script
  314. pcall(function() v:MakeJoints() end)
  315. end
  316. mas:Destroy()
  317. for i,v in pairs(cors) do
  318. spawn(function()
  319. pcall(v)
  320. end)
  321. end
  322. end
  323. Create()
  324.  
  325. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  326. local Player,game,owner = owner,game
  327. local RealPlayer = Player
  328. do
  329. print("FE Compatibility code by Mokiros")
  330. local rp = RealPlayer
  331. script.Parent = rp.Character
  332.  
  333. --RemoteEvent for communicating
  334. local Event = Instance.new("RemoteEvent")
  335. Event.Name = "UserInput_Event"
  336.  
  337. --Fake event to make stuff like Mouse.KeyDown work
  338. local function fakeEvent()
  339. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  340. t.connect = t.Connect
  341. return t
  342. end
  343.  
  344. --Creating fake input objects with fake variables
  345. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  346. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  347. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  348. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  349. end}
  350. --Merged 2 functions into one by checking amount of arguments
  351. CAS.UnbindAction = CAS.BindAction
  352.  
  353. --This function will trigger the events that have been :Connect()'ed
  354. local function te(self,ev,...)
  355. local t = m[ev]
  356. if t and t._fakeEvent then
  357. for _,f in pairs(t.Functions) do
  358. f(...)
  359. end
  360. end
  361. end
  362. m.TrigEvent = te
  363. UIS.TrigEvent = te
  364.  
  365. Event.OnServerEvent:Connect(function(plr,io)
  366. if plr~=rp then return end
  367. m.Target = io.Target
  368. m.Hit = io.Hit
  369. if not io.isMouse then
  370. local b = io.UserInputState == Enum.UserInputState.Begin
  371. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  372. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  373. end
  374. for _,t in pairs(CAS.Actions) do
  375. for _,k in pairs(t.Keys) do
  376. if k==io.KeyCode then
  377. t.Function(t.Name,io.UserInputState,io)
  378. end
  379. end
  380. end
  381. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  382. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  383. end
  384. end)
  385. Event.Parent = NLS([==[
  386. local Player = game:GetService("Players").LocalPlayer
  387. local Event = script:WaitForChild("UserInput_Event")
  388.  
  389. local Mouse = Player:GetMouse()
  390. local UIS = game:GetService("UserInputService")
  391. local input = function(io,a)
  392. if a then return end
  393. --Since InputObject is a client-side instance, we create and pass table instead
  394. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  395. end
  396. UIS.InputBegan:Connect(input)
  397. UIS.InputEnded:Connect(input)
  398.  
  399. local h,t
  400. --Give the server mouse data 30 times every second, but only if the values changed
  401. --If player is not moving their mouse, client won't fire events
  402. while wait(1/30) do
  403. if h~=Mouse.Hit or t~=Mouse.Target then
  404. h,t=Mouse.Hit,Mouse.Target
  405. Event:FireServer({isMouse=true,Target=t,Hit=h})
  406. end
  407. end]==],Player.Character)
  408.  
  409. ----Sandboxed game object that allows the usage of client-side methods and services
  410. --Real game object
  411. local _rg = game
  412.  
  413. --Metatable for fake service
  414. local fsmt = {
  415. __index = function(self,k)
  416. local s = rawget(self,"_RealService")
  417. if s then return s[k] end
  418. end,
  419. __newindex = function(self,k,v)
  420. local s = rawget(self,"_RealService")
  421. if s then s[k]=v end
  422. end,
  423. __call = function(self,...)
  424. local s = rawget(self,"_RealService")
  425. if s then return s(...) end
  426. end
  427. }
  428. local function FakeService(t,RealService)
  429. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  430. return setmetatable(t,fsmt)
  431. end
  432.  
  433. --Fake game object
  434. local g = {
  435. GetService = function(self,s)
  436. return self[s]
  437. end,
  438. Players = FakeService({
  439. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  440. },"Players"),
  441. UserInputService = FakeService(UIS,"UserInputService"),
  442. ContextActionService = FakeService(CAS,"ContextActionService"),
  443. }
  444. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  445. g.service = g.GetService
  446.  
  447. g.RunService = FakeService({
  448. RenderStepped = _rg:GetService("RunService").Heartbeat,
  449. BindToRenderStep = function(self,name,_,fun)
  450.  
  451. end,
  452. UnbindFromRenderStep = function(self,name)
  453. self._btrs[name]:Disconnect()
  454. end,
  455. },"RunService")
  456.  
  457. setmetatable(g,{
  458. __index=function(self,s)
  459. return _rg:GetService(s) or typeof(_rg[s])=="function"
  460. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  461. end,
  462. __newindex = fsmt.__newindex,
  463. __call = fsmt.__call
  464. })
  465. --Changing owner to fake player object to support owner:GetMouse()
  466. game,owner = g,g.Players.LocalPlayer
  467. end
  468.  
  469. wait(1)
  470.  
  471. Player = game:GetService("Players").LocalPlayer
  472. PlayerGui = Player.PlayerGui
  473. Cam = workspace.CurrentCamera
  474. Backpack = Player.Backpack
  475. Character = Player.Character
  476. Humanoid = Character.Humanoid
  477. Mouse = Player:GetMouse()
  478. RootPart = Character["HumanoidRootPart"]
  479. Torso = Character["Torso"]
  480. Head = Character["Head"]
  481. RightArm = Character["Right Arm"]
  482. LeftArm = Character["Left Arm"]
  483. RightLeg = Character["Right Leg"]
  484. LeftLeg = Character["Left Leg"]
  485. RootJoint = RootPart["RootJoint"]
  486. Neck = Torso["Neck"]
  487. RightShoulder = Torso["Right Shoulder"]
  488. LeftShoulder = Torso["Left Shoulder"]
  489. RightHip = Torso["Right Hip"]
  490. LeftHip = Torso["Left Hip"]
  491. local sick = Instance.new("Sound",Character)
  492.  
  493. IT = Instance.new
  494. CF = CFrame.new
  495. VT = Vector3.new
  496. RAD = math.rad
  497. C3 = Color3.new
  498. UD2 = UDim2.new
  499. BRICKC = BrickColor.new
  500. ANGLES = CFrame.Angles
  501. EULER = CFrame.fromEulerAnglesXYZ
  502. COS = math.cos
  503. ACOS = math.acos
  504. SIN = math.sin
  505. ASIN = math.asin
  506. ABS = math.abs
  507. MRANDOM = math.random
  508. FLOOR = math.floor
  509.  
  510. --//=================================\\
  511. --|| USEFUL VALUES
  512. --\\=================================//
  513.  
  514. Animation_Speed = 3
  515. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  516. local Speed = 16
  517. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  518. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  519. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  520. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  521. local DAMAGEMULTIPLIER = 1
  522. local ANIM = "Idle"
  523. local ATTACK = false
  524. local MELEE = false
  525. local EQUIPPED = false
  526. local HOLD = false
  527. local COMBO = 1
  528. local Rooted = false
  529. local SINE = 0
  530. local KEYHOLD = false
  531. local CHANGE = 2 / Animation_Speed
  532. local WALKINGANIM = false
  533. local VALUE1 = false
  534. local VALUE2 = false
  535. local ROBLOXIDLEANIMATION = IT("Animation")
  536. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  537. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  538. --ROBLOXIDLEANIMATION.Parent = Humanoid
  539. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  540. WEAPONGUI.Name = "Weapon GUI"
  541. local Effects = IT("Folder", Character)
  542. Effects.Name = "Effects"
  543. local ANIMATOR = Humanoid.Animator
  544. local ANIMATE = Character.Animate
  545. local UNANCHOR = true
  546. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  547. local EXTRATRANS = 0
  548. local DASHING = false
  549.  
  550. --//=================================\\
  551. --\\=================================//
  552.  
  553.  
  554. --//=================================\\
  555. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  556. --\\=================================//
  557.  
  558. ArtificialHB = Instance.new("BindableEvent", script)
  559. ArtificialHB.Name = "ArtificialHB"
  560.  
  561. script:WaitForChild("ArtificialHB")
  562.  
  563. frame = Frame_Speed
  564. tf = 0
  565. allowframeloss = false
  566. tossremainder = false
  567. lastframe = tick()
  568. script.ArtificialHB:Fire()
  569.  
  570. game:GetService("RunService").Heartbeat:connect(function(s, p)
  571. tf = tf + s
  572. if tf >= frame then
  573. if allowframeloss then
  574. script.ArtificialHB:Fire()
  575. lastframe = tick()
  576. else
  577. for i = 1, math.floor(tf / frame) do
  578. script.ArtificialHB:Fire()
  579. end
  580. lastframe = tick()
  581. end
  582. if tossremainder then
  583. tf = 0
  584. else
  585. tf = tf - frame * math.floor(tf / frame)
  586. end
  587. end
  588. end)
  589.  
  590. --//=================================\\
  591. --\\=================================//
  592.  
  593. --//=================================\\
  594. --|| SOME FUNCTIONS
  595. --\\=================================//
  596.  
  597. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  598. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  599. end
  600.  
  601. function PositiveAngle(NUMBER)
  602. if NUMBER >= 0 then
  603. NUMBER = 0
  604. end
  605. return NUMBER
  606. end
  607.  
  608. function NegativeAngle(NUMBER)
  609. if NUMBER <= 0 then
  610. NUMBER = 0
  611. end
  612. return NUMBER
  613. end
  614.  
  615. function Swait(NUMBER)
  616. if NUMBER == 0 or NUMBER == nil then
  617. ArtificialHB.Event:wait()
  618. else
  619. for i = 1, NUMBER do
  620. ArtificialHB.Event:wait()
  621. end
  622. end
  623. end
  624.  
  625. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  626. local NEWMESH = IT(MESH)
  627. if MESH == "SpecialMesh" then
  628. NEWMESH.MeshType = MESHTYPE
  629. if MESHID ~= "nil" and MESHID ~= "" then
  630. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  631. end
  632. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  633. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  634. end
  635. end
  636. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  637. NEWMESH.Scale = SCALE
  638. NEWMESH.Parent = PARENT
  639. return NEWMESH
  640. end
  641.  
  642. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  643. local NEWPART = IT("Part")
  644. NEWPART.formFactor = FORMFACTOR
  645. NEWPART.Reflectance = REFLECTANCE
  646. NEWPART.Transparency = TRANSPARENCY
  647. NEWPART.CanCollide = false
  648. NEWPART.Locked = true
  649. NEWPART.Anchored = true
  650. if ANCHOR == false then
  651. NEWPART.Anchored = false
  652. end
  653. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  654. NEWPART.Name = NAME
  655. NEWPART.Size = SIZE
  656. NEWPART.Position = Torso.Position
  657. NEWPART.Material = MATERIAL
  658. NEWPART:BreakJoints()
  659. NEWPART.Parent = PARENT
  660. return NEWPART
  661. end
  662.  
  663. local function weldBetween(a, b)
  664. local weldd = Instance.new("ManualWeld")
  665. weldd.Part0 = a
  666. weldd.Part1 = b
  667. weldd.C0 = CFrame.new()
  668. weldd.C1 = b.CFrame:inverse() * a.CFrame
  669. weldd.Parent = a
  670. return weldd
  671. end
  672.  
  673.  
  674. function QuaternionFromCFrame(cf)
  675. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  676. local trace = m00 + m11 + m22
  677. if trace > 0 then
  678. local s = math.sqrt(1 + trace)
  679. local recip = 0.5 / s
  680. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  681. else
  682. local i = 0
  683. if m11 > m00 then
  684. i = 1
  685. end
  686. if m22 > (i == 0 and m00 or m11) then
  687. i = 2
  688. end
  689. if i == 0 then
  690. local s = math.sqrt(m00 - m11 - m22 + 1)
  691. local recip = 0.5 / s
  692. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  693. elseif i == 1 then
  694. local s = math.sqrt(m11 - m22 - m00 + 1)
  695. local recip = 0.5 / s
  696. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  697. elseif i == 2 then
  698. local s = math.sqrt(m22 - m00 - m11 + 1)
  699. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  700. end
  701. end
  702. end
  703.  
  704. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  705. local xs, ys, zs = x + x, y + y, z + z
  706. local wx, wy, wz = w * xs, w * ys, w * zs
  707. local xx = x * xs
  708. local xy = x * ys
  709. local xz = x * zs
  710. local yy = y * ys
  711. local yz = y * zs
  712. local zz = z * zs
  713. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  714. end
  715.  
  716. function QuaternionSlerp(a, b, t)
  717. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  718. local startInterp, finishInterp;
  719. if cosTheta >= 0.0001 then
  720. if (1 - cosTheta) > 0.0001 then
  721. local theta = ACOS(cosTheta)
  722. local invSinTheta = 1 / SIN(theta)
  723. startInterp = SIN((1 - t) * theta) * invSinTheta
  724. finishInterp = SIN(t * theta) * invSinTheta
  725. else
  726. startInterp = 1 - t
  727. finishInterp = t
  728. end
  729. else
  730. if (1 + cosTheta) > 0.0001 then
  731. local theta = ACOS(-cosTheta)
  732. local invSinTheta = 1 / SIN(theta)
  733. startInterp = SIN((t - 1) * theta) * invSinTheta
  734. finishInterp = SIN(t * theta) * invSinTheta
  735. else
  736. startInterp = t - 1
  737. finishInterp = t
  738. end
  739. end
  740. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  741. end
  742.  
  743. function Clerp(a, b, t)
  744. local qa = {QuaternionFromCFrame(a)}
  745. local qb = {QuaternionFromCFrame(b)}
  746. local ax, ay, az = a.x, a.y, a.z
  747. local bx, by, bz = b.x, b.y, b.z
  748. local _t = 1 - t
  749. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  750. end
  751.  
  752. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  753. local frame = IT("Frame")
  754. frame.BackgroundTransparency = TRANSPARENCY
  755. frame.BorderSizePixel = BORDERSIZEPIXEL
  756. frame.Position = POSITION
  757. frame.Size = SIZE
  758. frame.BackgroundColor3 = COLOR
  759. frame.BorderColor3 = BORDERCOLOR
  760. frame.Name = NAME
  761. frame.Parent = PARENT
  762. return frame
  763. end
  764.  
  765. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  766. local label = IT("TextLabel")
  767. label.BackgroundTransparency = 1
  768. label.Size = UD2(1, 0, 1, 0)
  769. label.Position = UD2(0, 0, 0, 0)
  770. label.TextColor3 = TEXTCOLOR
  771. label.TextStrokeTransparency = STROKETRANSPARENCY
  772. label.TextTransparency = TRANSPARENCY
  773. label.FontSize = TEXTFONTSIZE
  774. label.Font = TEXTFONT
  775. label.BorderSizePixel = BORDERSIZEPIXEL
  776. label.TextScaled = false
  777. label.Text = TEXT
  778. label.Name = NAME
  779. label.Parent = PARENT
  780. return label
  781. end
  782.  
  783. function NoOutlines(PART)
  784. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  785. end
  786.  
  787. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  788. local NEWWELD = IT(TYPE)
  789. NEWWELD.Part0 = PART0
  790. NEWWELD.Part1 = PART1
  791. NEWWELD.C0 = C0
  792. NEWWELD.C1 = C1
  793. NEWWELD.Parent = PARENT
  794. return NEWWELD
  795. end
  796.  
  797. local S = IT("Sound")
  798. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  799. local NEWSOUND = nil
  800. coroutine.resume(coroutine.create(function()
  801. NEWSOUND = S:Clone()
  802. NEWSOUND.Parent = PARENT
  803. NEWSOUND.Volume = VOLUME
  804. NEWSOUND.Pitch = PITCH
  805. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  806. NEWSOUND:play()
  807. if DOESLOOP == true then
  808. NEWSOUND.Looped = true
  809. else
  810. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  811. NEWSOUND.Playing = false
  812. NEWSOUND:remove()
  813. end
  814. end))
  815. return NEWSOUND
  816. end
  817.  
  818. function CFrameFromTopBack(at, top, back)
  819. local right = top:Cross(back)
  820. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  821. end
  822.  
  823. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  824. function WACKYEFFECT(Table)
  825. local TYPE = (Table.EffectType or "Sphere")
  826. local SIZE = (Table.Size or VT(1,1,1))
  827. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  828. local TRANSPARENCY = (Table.Transparency or 0)
  829. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  830. local CFRAME = (Table.CFrame or Torso.CFrame)
  831. local MOVEDIRECTION = (Table.MoveToPos or nil)
  832. local ROTATION1 = (Table.RotationX or 0)
  833. local ROTATION2 = (Table.RotationY or 0)
  834. local ROTATION3 = (Table.RotationZ or 0)
  835. local MATERIAL = (Table.Material or "Neon")
  836. local COLOR = (Table.Color or C3(1,1,1))
  837. local TIME = (Table.Time or 45)
  838. local SOUNDID = (Table.SoundID or nil)
  839. local SOUNDPITCH = (Table.SoundPitch or nil)
  840. local SOUNDVOLUME = (Table.SoundVolume or nil)
  841. coroutine.resume(coroutine.create(function()
  842. local PLAYSSOUND = false
  843. local SOUND = nil
  844. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  845. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  846. PLAYSSOUND = true
  847. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  848. end
  849. EFFECT.Color = COLOR
  850. local MSH = nil
  851. if TYPE == "Sphere" then
  852. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  853. elseif TYPE == "Block" then
  854. MSH = IT("BlockMesh",EFFECT)
  855. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  856. elseif TYPE == "Wave" then
  857. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  858. elseif TYPE == "Ring" then
  859. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  860. elseif TYPE == "Slash" then
  861. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  862. elseif TYPE == "Round Slash" then
  863. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  864. elseif TYPE == "Swirl" then
  865. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  866. elseif TYPE == "Skull" then
  867. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  868. elseif TYPE == "Crystal" then
  869. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  870. end
  871. if MSH ~= nil then
  872. local MOVESPEED = nil
  873. if MOVEDIRECTION ~= nil then
  874. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  875. end
  876. local GROWTH = SIZE - ENDSIZE
  877. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  878. if TYPE == "Block" then
  879. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  880. else
  881. EFFECT.CFrame = CFRAME
  882. end
  883. for LOOP = 1, TIME+1 do
  884. Swait()
  885. MSH.Scale = MSH.Scale - GROWTH/TIME
  886. if TYPE == "Wave" then
  887. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  888. end
  889. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  890. if TYPE == "Block" then
  891. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  892. else
  893. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  894. end
  895. if MOVEDIRECTION ~= nil then
  896. local ORI = EFFECT.Orientation
  897. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  898. EFFECT.Orientation = ORI
  899. end
  900. end
  901. if PLAYSSOUND == false then
  902. EFFECT:remove()
  903. else
  904. repeat Swait() until SOUND.Playing == false
  905. EFFECT:remove()
  906. end
  907. else
  908. if PLAYSSOUND == false then
  909. EFFECT:remove()
  910. else
  911. repeat Swait() until SOUND.Playing == false
  912. EFFECT:remove()
  913. end
  914. end
  915. end))
  916. end
  917.  
  918. function MakeForm(PART,TYPE)
  919. if TYPE == "Cyl" then
  920. local MSH = IT("CylinderMesh",PART)
  921. elseif TYPE == "Ball" then
  922. local MSH = IT("SpecialMesh",PART)
  923. MSH.MeshType = "Sphere"
  924. elseif TYPE == "Wedge" then
  925. local MSH = IT("SpecialMesh",PART)
  926. MSH.MeshType = "Wedge"
  927. end
  928. end
  929.  
  930. Debris = game:GetService("Debris")
  931.  
  932. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  933. local DIRECTION = CF(StartPos,EndPos).lookVector
  934. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  935. end
  936.  
  937. function turnto(position)
  938. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  939. end
  940.  
  941. function WaveParticles(Position,Size,Color)
  942. local BASE = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Shockwave", VT(0,0,0), true)
  943. BASE.CFrame = CF(Position)
  944. local A = IT("Attachment",BASE)
  945. local WAVE = script.Wave:Clone()
  946. WAVE.Parent = A
  947. WAVE.Size = NumberSequence.new(0,Size)
  948. WAVE.Color = ColorSequence.new(Color)
  949. Debris:AddItem(BASE,0.5)
  950. WAVE:Emit(1)
  951. end
  952.  
  953. --//=================================\\
  954. --|| WEAPON CREATION
  955. --\\=================================//
  956.  
  957. for _, c in pairs(Character:GetChildren()) do
  958. if script:FindFirstChild(c.Name) then
  959. local Part = script[c.Name]
  960. Part.Parent = Character
  961. Part.Base.Anchored = false
  962. Part:SetPrimaryPartCFrame(c.CFrame)
  963. weldBetween(c,Part.Base)
  964. for _, e in pairs(Part:GetChildren()) do
  965. if e:IsA("BasePart") and e.Name ~= "Base" then
  966. e.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  967. e.Locked = true
  968. e.Anchored = false
  969. e.Parent = Character
  970. weldBetween(c,e)
  971. end
  972. end
  973. Part:remove()
  974. end
  975. end
  976. local Weapon = script.Weapon
  977. Weapon.Parent = Character
  978. local Grip = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Weapon.Bostaff, CF(0, -1, 0)*ANGLES(RAD(-90),RAD(0),RAD(0)), CF(0, 0, 0))
  979.  
  980. --[[local BONE = CreatePart(3, nil, "SmoothPlastic", 0, 0, BRICKC("Bright yellow"), "Tail", VT(0.3,0.5,0.3), false)
  981. MakeForm(BONE,"Cyl")
  982.  
  983. local TAIL = {}
  984. local LASTPART = Torso
  985. local SIZE = BONE.Size
  986. for i = 1, 15 do
  987. local PART = BONE:Clone()
  988. PART.Anchored = false
  989. PART.Parent = Character
  990. PART.Size = SIZE*((17-i)/10)/1.6
  991. if LASTPART == Torso then
  992. local WELD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, PART, CF(0,-1,0.6)* ANGLES(RAD(-55), RAD(0), RAD(0)), CF(0, 0, 0))
  993. LASTPART = PART
  994. table.insert(TAIL,WELD)
  995. else
  996. local WELD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, PART, CF(0,-PART.Size.Y/2,0), CF(0, PART.Size.Y/2, 0))
  997. LASTPART = PART
  998. table.insert(TAIL,WELD)
  999. end
  1000. end]]--
  1001.  
  1002. for _, c in pairs(Character:GetChildren()) do
  1003. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1004. c.Material = "SmoothPlastic"
  1005. if c:FindFirstChildOfClass("ParticleEmitter") then
  1006. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1007. end
  1008. if c == LeftLeg or c == RightLeg then
  1009. c.Color = C3(0.12,0.12,0.12)
  1010. elseif c == Torso then
  1011. c.Color = C3(0.15,0.15,0.15)
  1012. else
  1013. c.BrickColor = BRICKC"Bright yellow"
  1014. end
  1015. if c == Head then
  1016. if c:FindFirstChild("face") then
  1017. c.face:remove()
  1018. end
  1019. end
  1020. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1021. c:remove()
  1022. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1023. c:remove()
  1024. end
  1025. end
  1026. local BODY = {}
  1027. for _, c in pairs(Character:GetDescendants()) do
  1028. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1029. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1030. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1031. end
  1032. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1033. elseif c:IsA("JointInstance") then
  1034. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1035. end
  1036. end
  1037. for e = 1, #BODY do
  1038. if BODY[e] ~= nil then
  1039. local STUFF = BODY[e]
  1040. local PART = STUFF[1]
  1041. local PARENT = STUFF[2]
  1042. local MATERIAL = STUFF[3]
  1043. local COLOR = STUFF[4]
  1044. local TRANSPARENCY = STUFF[5]
  1045. if PART.ClassName == "Part" and PART ~= RootPart then
  1046. PART.Material = MATERIAL
  1047. PART.Color = COLOR
  1048. PART.Transparency = TRANSPARENCY
  1049. end
  1050. PART.AncestryChanged:Connect(function()
  1051. PART.Parent = PARENT
  1052. end)
  1053. end
  1054. end
  1055. function refit()
  1056. Character.Parent = workspace
  1057. for e = 1, #BODY do
  1058. if BODY[e] ~= nil then
  1059. local STUFF = BODY[e]
  1060. local PART = STUFF[1]
  1061. local PARENT = STUFF[2]
  1062. local MATERIAL = STUFF[3]
  1063. local COLOR = STUFF[4]
  1064. local TRANSPARENCY = STUFF[5]
  1065. if PART:IsA("BasePart") and PART ~= RootPart then
  1066. PART.Material = MATERIAL
  1067. PART.Color = COLOR
  1068. PART.Transparency = TRANSPARENCY+EXTRATRANS
  1069. end
  1070. if PART.Parent ~= PARENT then
  1071. Humanoid:remove()
  1072. PART.Parent = PARENT
  1073. Humanoid = IT("Humanoid",Character)
  1074. end
  1075. end
  1076. end
  1077. end
  1078.  
  1079. Humanoid.Died:connect(function()
  1080. refit()
  1081. end)
  1082.  
  1083. local SKILLTEXTCOLOR = C3(1,1,1)
  1084. local SKILLFONT = "Fantasy"
  1085. local SKILLTEXTSIZE = 5
  1086.  
  1087. local MOBILITY = {"Z","B","C","G","H"}
  1088. local ATTACKS = {"Mouse","Q","E","V","X","M"}
  1089. local MOBILITYFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.71, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
  1090. local TEXT = CreateLabel(MOBILITYFRAME, "[MOBILITY]", SKILLTEXTCOLOR, SKILLTEXTSIZE+1, SKILLFONT, 0, 2, 0.5, "Skill text")
  1091. local ATTACKSFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
  1092. local TEXT = CreateLabel(ATTACKSFRAME, "[ATTACKS]", SKILLTEXTCOLOR, SKILLTEXTSIZE+1, SKILLFONT, 0, 2, 0.5, "Skill text")
  1093.  
  1094. for i = 1, #MOBILITY do
  1095. local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.71, 0, 0.90-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
  1096. local SKILLTEXT = CreateLabel(SKILLFRAME, "["..MOBILITY[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Skill text")
  1097. end
  1098. for i = 1, #ATTACKS do
  1099. local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
  1100. local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKS[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Skill text")
  1101. end
  1102.  
  1103. --//=================================\\
  1104. --|| DAMAGING
  1105. --\\=================================//
  1106.  
  1107. function ApplyDamage(Humanoid,Damage)
  1108. Damage = Damage * DAMAGEMULTIPLIER
  1109. if Humanoid.Health < 2000 then
  1110. if Humanoid.Health - Damage > 0 then
  1111. Humanoid.Health = Humanoid.Health - Damage
  1112. else
  1113. Humanoid.Parent:BreakJoints()
  1114. end
  1115. else
  1116. Humanoid.Parent:BreakJoints()
  1117. end
  1118. end
  1119.  
  1120. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1121. local CHILDREN = workspace:GetDescendants()
  1122. for index, CHILD in pairs(CHILDREN) do
  1123. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1124. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1125. if HUM then
  1126. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1127. if TORSO then
  1128. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1129. if INSTAKILL == true then
  1130. CHILD:BreakJoints()
  1131. else
  1132. local DMG = MRANDOM(MINDMG,MAXDMG)
  1133. ApplyDamage(HUM,DMG)
  1134. end
  1135. if FLING > 0 then
  1136. for _, c in pairs(CHILD:GetChildren()) do
  1137. if c:IsA("BasePart") then
  1138. local bv = Instance.new("BodyVelocity")
  1139. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1140. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1141. bv.Parent = c
  1142. Debris:AddItem(bv,0.05)
  1143. end
  1144. end
  1145. end
  1146. end
  1147. end
  1148. end
  1149. end
  1150. end
  1151. end
  1152.  
  1153. function APPLYMELEE(PART,MINDMG,MAXDMG,CANSTUN)
  1154. local HITS = {}
  1155. local TOUCH = PART.Touched:Connect(function(hit)
  1156. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  1157. local HUM = hit.Parent:FindFirstChildOfClass("Humanoid")
  1158. local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1159. if TORSO and HUM.Health > 0 then
  1160. local PASS = true
  1161. for i = 1, #HITS do
  1162. if HITS[i] == hit.Parent then
  1163. PASS = false
  1164. end
  1165. end
  1166. table.insert(HITS,hit.Parent)
  1167. if PASS == true then
  1168. for i = 1, 3 do
  1169. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0.3,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  1170. end
  1171. ApplyDamage(HUM,MRANDOM(MINDMG,MAXDMG),TORSO,CANSTUN)
  1172. CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)],TORSO,2,MRANDOM(8,12)/10,false)
  1173. end
  1174. end
  1175. end
  1176. end)
  1177. return TOUCH
  1178. end
  1179.  
  1180. --//=================================\\
  1181. --|| MOBILITY STUFF
  1182. --\\=================================//
  1183.  
  1184. function Mobility(CFR)
  1185. Weapon.TrailBlade.Trail.Enabled = false
  1186. local POS = RootPart.Position
  1187. EXTRATRANS = 1
  1188. DASHING = true
  1189. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(12,12,12), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 182765513, SoundPitch = 1, SoundVolume = 3})
  1190. repeat
  1191. RootPart.CFrame = RootPart.CFrame*CFR
  1192. for i = 1, 5 do
  1193. WACKYEFFECT({Time = MRANDOM(10,40), EffectType = "Sphere", Size = VT(2,2,0.7), Size2 = VT(0,0,10), Transparency = 0, Transparency2 = 1, CFrame = CF(CF(POS) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,2).p,RootPart.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1194. end
  1195. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(6,8,6), Size2 = VT(0,4,0), Transparency = 1, Transparency2 = 0.8, CFrame = CF(RootPart.Position,POS) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = CF(RootPart.Position,POS)*CF(0,0,-35).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1196. POS = RootPart.Position
  1197. RootPart.Velocity = VT(0,0,0)
  1198. Swait()
  1199. until KEYHOLD == false or ATTACK == true or MELEE == true
  1200. EXTRATRANS = 0
  1201. DASHING = false
  1202. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(12,12,12), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 182765513, SoundPitch = 1, SoundVolume = 3})
  1203. RootPart.Velocity = VT(0,0,0)
  1204. Weapon.TrailBlade.Trail.Enabled = true
  1205. end
  1206.  
  1207. --//=================================\\
  1208. --|| ATTACK FUNCTIONS AND STUFF
  1209. --\\=================================//
  1210.  
  1211. function Clicks()
  1212. MELEE = true
  1213. Rooted = false
  1214. Weapon.MainBlade.CanCollide = true
  1215. repeat
  1216. if COMBO == 1 and ATTACK == false then
  1217. COMBO = 2
  1218. for i=0, 0.15, 0.1 / Animation_Speed do
  1219. Swait()
  1220. if ATTACK == true then
  1221. break
  1222. end
  1223. Grip.C1 = Clerp(Grip.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1224. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1225. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(40)), 2 / Animation_Speed)
  1226. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1227. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.4) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1228. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 2 / Animation_Speed)
  1229. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 2 / Animation_Speed)
  1230. end
  1231. CreateSound(143501853,Weapon.TrailBlade,2,MRANDOM(8,13)/10,false)
  1232. local DMGER = APPLYMELEE(Weapon.MainBlade,8,12,false)
  1233. for i=0, 0.4, 0.1 / Animation_Speed do
  1234. Swait()
  1235. if ATTACK == true then
  1236. break
  1237. end
  1238. Grip.C1 = Clerp(Grip.C1,CF(0, -1, 0.35) * ANGLES(RAD(80), RAD(0), RAD(0)), 1 / Animation_Speed)
  1239. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(80)), 1 / Animation_Speed)
  1240. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-50)), 1 / Animation_Speed)
  1241. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1242. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.4) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1243. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1244. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1245. end
  1246. DMGER:Disconnect()
  1247. elseif COMBO == 2 and ATTACK == false then
  1248. COMBO = 3
  1249. local DMGER = APPLYMELEE(Weapon.MainBlade,25,35,false)
  1250. CreateSound(134012322,Weapon.TrailBlade,4,MRANDOM(8,13)/10,false)
  1251. for i = 1, 15 do
  1252. Swait()
  1253. if ATTACK == true then
  1254. break
  1255. end
  1256. RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.02)
  1257. Grip.C1 = Clerp(Grip.C1,CF(0, 1, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1258. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(80-(i*(360/15)))), 2.5 / Animation_Speed)
  1259. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(30), RAD(0), RAD(0)), 1 / Animation_Speed)
  1260. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1261. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.4) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1262. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1263. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1264. end
  1265. DMGER:Disconnect()
  1266. elseif COMBO == 3 and ATTACK == false then
  1267. COMBO = 1
  1268. for i=0, 0.5, 0.1 / Animation_Speed do
  1269. Swait()
  1270. if ATTACK == true then
  1271. break
  1272. end
  1273. Grip.C1 = Clerp(Grip.C1,CF(0, 0, 0) * ANGLES(RAD(60), RAD(0), RAD(0)), 1 / Animation_Speed)
  1274. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 2 / Animation_Speed)
  1275. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(25)), 1 / Animation_Speed)
  1276. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1277. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.4) * ANGLES(RAD(-45), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1278. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1279. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1280. end
  1281. CreateSound(143501853,Weapon.TrailBlade,2,MRANDOM(8,13)/10,false)
  1282. local DMGER = APPLYMELEE(Weapon.MainBlade,10,15,false)
  1283. for i=0, 0.6, 0.1 / Animation_Speed do
  1284. Swait()
  1285. if ATTACK == true then
  1286. break
  1287. end
  1288. Grip.C1 = Clerp(Grip.C1,CF(0, 0, 0) * ANGLES(RAD(55), RAD(0), RAD(0)), 1 / Animation_Speed)
  1289. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(80)), 1 / Animation_Speed)
  1290. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-40)), 1 / Animation_Speed)
  1291. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(120), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1292. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.4) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1293. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1294. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1295. end
  1296. DMGER:Disconnect()
  1297. end
  1298. until HOLD == false or ATTACK == true
  1299. if COMBO == 2 and ATTACK == false then
  1300. for i=0, 0.5, 0.1 / Animation_Speed do
  1301. Swait()
  1302. if ATTACK == true then
  1303. break
  1304. end
  1305. Grip.C1 = Clerp(Grip.C1,CF(0, -1, 0.35) * ANGLES(RAD(80), RAD(0), RAD(0)), 1 / Animation_Speed)
  1306. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(80)), 1 / Animation_Speed)
  1307. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-50)), 1 / Animation_Speed)
  1308. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1309. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.4) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1310. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1311. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1312. end
  1313. end
  1314. Weapon.MainBlade.CanCollide = false
  1315. coroutine.resume(coroutine.create(function()
  1316. for i = 1, 50 do
  1317. Swait()
  1318. if MELEE == true then
  1319. break
  1320. end
  1321. end
  1322. if MELEE == false then
  1323. COMBO = 1
  1324. end
  1325. end))
  1326. MELEE = false
  1327. Rooted = false
  1328. end
  1329.  
  1330. function Aerial()
  1331. ATTACK = true
  1332. Rooted = false
  1333. local DMGER = APPLYMELEE(Weapon.MainBlade,35,45,false)
  1334. CreateSound(134012322,Weapon.TrailBlade,4,MRANDOM(8,13)/10,false)
  1335. for i = 1, 12 do
  1336. Swait()
  1337. Grip.C1 = Clerp(Grip.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1338. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(-i*(360/10))), 2 / Animation_Speed)
  1339. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-65)), 1 / Animation_Speed)
  1340. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1341. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1342. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1343. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1344. end
  1345. DMGER:Disconnect()
  1346. ATTACK = false
  1347. Rooted = false
  1348. end
  1349.  
  1350. function ZenBullet()
  1351. ATTACK = true
  1352. Rooted = false
  1353. if MELEE == true then
  1354. for i=0, 0.3, 0.1 / Animation_Speed do
  1355. Swait()
  1356. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1357. Grip.C1 = Clerp(Grip.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1358. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1359. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1360. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(95), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1361. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.4) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1362. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1363. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1364. end
  1365. else
  1366. local GYRO = IT("BodyGyro",RootPart)
  1367. GYRO.D = 2
  1368. GYRO.P = 2000
  1369. GYRO.MaxTorque = VT(0,4000000,0)
  1370. coroutine.resume(coroutine.create(function()
  1371. repeat
  1372. Swait()
  1373. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1374. until ATTACK == false
  1375. GYRO:Remove()
  1376. end))
  1377. for i=0, 1, 0.1 / Animation_Speed do
  1378. Swait()
  1379. Grip.C1 = Clerp(Grip.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1380. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1381. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1382. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(95), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1383. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.4) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1384. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1385. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1386. end
  1387. end
  1388. ATTACK = false
  1389. Rooted = false
  1390. end
  1391.  
  1392. function AttackTemplate()
  1393. ATTACK = true
  1394. Rooted = false
  1395. for i=0, 1, 0.1 / Animation_Speed do
  1396. Swait()
  1397. Grip.C1 = Clerp(Grip.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1398. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1399. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1400. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(95), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1401. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.4) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1402. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1403. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1404. end
  1405. ATTACK = false
  1406. Rooted = false
  1407. end
  1408.  
  1409. --//=================================\\
  1410. --|| ASSIGN THINGS TO KEYS
  1411. --\\=================================//
  1412.  
  1413. function MouseDown(Mouse)
  1414. HOLD = true
  1415. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1416. if HITFLOOR then
  1417. if ATTACK == false and MELEE == false then
  1418. Clicks()
  1419. end
  1420. elseif ATTACK == false then
  1421. Aerial()
  1422. end
  1423. end
  1424.  
  1425. function MouseUp(Mouse)
  1426. HOLD = false
  1427. end
  1428.  
  1429. function KeyDown(Key)
  1430. KEYHOLD = true
  1431. --MOBILITY--
  1432. if DASHING == false and MELEE == false then
  1433. if Key == "z" and ATTACK == false then
  1434. Mobility(CF(0,5,0))
  1435. end
  1436.  
  1437. if Key == "b" and ATTACK == false then
  1438. Mobility(CF(0,0,-5))
  1439. end
  1440.  
  1441. if Key == "c" and ATTACK == false then
  1442. Mobility(CF(0,0,5))
  1443. end
  1444.  
  1445. if Key == "g" and ATTACK == false then
  1446. Mobility(CF(5,0,0))
  1447. end
  1448.  
  1449. if Key == "h" and ATTACK == false then
  1450. Mobility(CF(-5,0,0))
  1451. end
  1452. end
  1453. --ATTACKS--
  1454. if Key == "q" and ATTACK == false then
  1455. end
  1456.  
  1457. if Key == "e" and ATTACK == false then
  1458. end
  1459.  
  1460. if Key == "v" and ATTACK == false then
  1461. end
  1462.  
  1463. if Key == "x" and ATTACK == false then
  1464. end
  1465.  
  1466. if Key == "m" and ATTACK == false then
  1467. end
  1468. end
  1469.  
  1470. function KeyUp(Key)
  1471. KEYHOLD = false
  1472. end
  1473.  
  1474. Mouse.Button1Down:connect(function(NEWKEY)
  1475. MouseDown(NEWKEY)
  1476. end)
  1477. Mouse.Button1Up:connect(function(NEWKEY)
  1478. MouseUp(NEWKEY)
  1479. end)
  1480. Mouse.KeyDown:connect(function(NEWKEY)
  1481. KeyDown(NEWKEY)
  1482. end)
  1483. Mouse.KeyUp:connect(function(NEWKEY)
  1484. KeyUp(NEWKEY)
  1485. end)
  1486.  
  1487. --//=================================\\
  1488. --\\=================================//
  1489.  
  1490. function unanchor()
  1491. for _, c in pairs(Character:GetChildren()) do
  1492. if c:IsA("BasePart") and c ~= RootPart then
  1493. c.Anchored = false
  1494. end
  1495. end
  1496. if UNANCHOR == true then
  1497. RootPart.Anchored = false
  1498. else
  1499. RootPart.Anchored = true
  1500. end
  1501. end
  1502.  
  1503. --//=================================\\
  1504. --|| WRAP THE WHOLE SCRIPT UP
  1505. --\\=================================//
  1506.  
  1507. Humanoid.Changed:connect(function(Jump)
  1508. if Jump == "Jump" and (Disable_Jump == true) then
  1509. Humanoid.Jump = false
  1510. end
  1511. end)
  1512.  
  1513. while true do
  1514. Swait()
  1515. script.Parent = WEAPONGUI
  1516. ANIMATE.Parent = nil
  1517. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1518. v:Stop();
  1519. end
  1520. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1521. Humanoid = IT("Humanoid",Character)
  1522. end
  1523. SINE = SINE + CHANGE
  1524. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1525. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1526. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1527. local WALKSPEEDVALUE = 4
  1528. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1529. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1530. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1531. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2- 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1532. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1533. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1534. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1535. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1536. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1537. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1538. end
  1539. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1540. ANIM = "Jump"
  1541. if ATTACK == false and MELEE == false then
  1542. Grip.C1 = Clerp(Grip.C1,CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1543. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1544. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1545. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1546. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1547. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1548. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1549. end
  1550. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1551. ANIM = "Fall"
  1552. if ATTACK == false and MELEE == false then
  1553. Grip.C1 = Clerp(Grip.C1,CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1554. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1555. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1556. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1557. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1558. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1559. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1560. end
  1561. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1562. ANIM = "Idle"
  1563. if ATTACK == false and MELEE == false then
  1564. Grip.C1 = Clerp(Grip.C1,CF(0, 0.2 + 0.1 * SIN(SINE / 12), 0) * ANGLES(RAD(5), RAD(2 * COS(SINE / 12)), RAD(0)), 1 / Animation_Speed)
  1565. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * SIN(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1566. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed)
  1567. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(95), RAD(0), RAD(15+1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1568. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.4) * ANGLES(RAD(-45-2 * COS(SINE / 12)), RAD(0), RAD(45+2 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1569. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1570. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1571. end
  1572. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1573. ANIM = "Walk"
  1574. if ATTACK == false and MELEE == false then
  1575. Grip.C1 = Clerp(Grip.C1,CF(0, 0, 0) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1576. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1577. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1 / Animation_Speed)
  1578. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1579. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1580. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(-5), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1581. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-5), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1582. end
  1583. end
  1584. --[[for E = 1, #TAIL do
  1585. TAIL[E].C1 = Clerp(TAIL[E].C1,CF(0, 0, 0) * ANGLES(RAD(5-1 * SIN(SINE / 3)), RAD(-2 * COS(SINE / 6)), RAD(4 * SIN(SINE / 6))), 1 / Animation_Speed)
  1586. end]]
  1587. unanchor()
  1588. Humanoid.MaxHealth = 15e15
  1589. Humanoid.Health = 15e15
  1590. if Rooted == false then
  1591. Disable_Jump = false
  1592. Humanoid.WalkSpeed = Speed
  1593. elseif Rooted == true then
  1594. Disable_Jump = true
  1595. Humanoid.WalkSpeed = 0
  1596. end
  1597. refit()
  1598. for _, c in pairs(Character:GetChildren()) do
  1599. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1600. c.Material = "SmoothPlastic"
  1601. if c:FindFirstChildOfClass("ParticleEmitter") then
  1602. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1603. end
  1604. if c == LeftLeg or c == RightLeg then
  1605. c.Color = C3(0.12,0.12,0.12)
  1606. if c:FindFirstChildOfClass("BlockMesh") == nil then
  1607. IT("BlockMesh",c)
  1608. end
  1609. elseif c == Torso then
  1610. c.Color = C3(0.15,0.15,0.15)
  1611. if c:FindFirstChildOfClass("BlockMesh") == nil then
  1612. IT("BlockMesh",c)
  1613. end
  1614. else
  1615. c.BrickColor = BRICKC"Bright yellow"
  1616. end
  1617. if c == Head then
  1618. if c:FindFirstChild("face") then
  1619. c.face:remove()
  1620. end
  1621. end
  1622. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1623. c:remove()
  1624. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1625. c:remove()
  1626. end
  1627. end
  1628. sick.SoundId = "rbxassetid://601021377"
  1629. sick.Looped = true
  1630. sick.Pitch = 1
  1631. sick.Volume = 1
  1632. sick.Parent = Character
  1633. sick.Playing = true
  1634. Humanoid.Name = "ZenMan"
  1635. Effects.Parent = Character
  1636. for _, c in pairs(Character:GetChildren()) do
  1637. if c:IsA("BasePart") and ATTACK == false then
  1638. for _, e in pairs(c:GetChildren()) do
  1639. if e:IsA("ParticleEmitter") or e:IsA("BodyPosition") or e:IsA("BodyGyro") then
  1640. e:remove()
  1641. end
  1642. end
  1643. end
  1644. end
  1645. if Head:FindFirstChild("face") then
  1646. Head.face:remove()
  1647. elseif Head:FindFirstChildOfClass("Sound") then
  1648. Head:FindFirstChildOfClass("Sound"):remove()
  1649. end
  1650. end
  1651.  
  1652. --//=================================\\
  1653. --\\=================================//
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659. --//====================================================\\--
  1660. --|| END OF SCRIPT
  1661. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement