Advertisement
Marxie

Untitled

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