Advertisement
Dark_EccentricYT

Untitled

Oct 12th, 2017 (edited)
1,151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.54 KB | None | 0 0
  1. --[[ Arkuni Script ]]--
  2. --[[ Declarations ]]--
  3. wait(.0000000000000000000001)
  4. local Player = game:GetService("Players").LocalPlayer
  5. local Character = Player.Character
  6. local Head = Character.Head
  7. local Torso = Character.Torso
  8. local Right_Arm = Character["Right Arm"]
  9. local Right_Leg = Character["Right Leg"]
  10. local Left_Arm = Character["Left Arm"]
  11. local Left_Leg = Character["Left Leg"]
  12. local Humanoid = Character.Humanoid
  13. local Animation = "Idle"
  14. local Mouse = Player:GetMouse()
  15. local LeftShoulder = Torso["Left Shoulder"]
  16. local Left_Hip = Torso["Left Hip"]
  17. local RightShoulder = Torso["Right Shoulder"]
  18. local Right_Hip = Torso["Right Hip"]
  19. local Root = Character.HumanoidRootPart
  20. local RootJoint = Root.RootJoint
  21. local Attacking = false
  22. local CanAttack = true
  23. local Anim = "Idle"
  24. local Combo = 1
  25. local Blocking = false
  26. local MaxArk = 100
  27. local Ark = 100
  28. local MaxBlock = 100
  29. local Effects = {}
  30. local Color = "Bright yellow"
  31. local Invert = false
  32. local Idle = 0
  33. local Equipped = false
  34. local Running = false
  35. local Unseathed = false
  36.  
  37. Humanoid.MaxHealth = 5000
  38. Humanoid.Health = 5000
  39.  
  40. Left_Shoulder = Instance.new("Weld", Torso)
  41. Left_Shoulder.Part0 = Torso
  42. Left_Shoulder.Part1 = Left_Arm
  43. Left_Shoulder.Name = "Left Shoulder"
  44. Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
  45.  
  46. Right_Shoulder = Instance.new("Weld", Torso)
  47. Right_Shoulder.Part0 = Torso
  48. Right_Shoulder.Part1 = Right_Arm
  49. Right_Shoulder.Name = "Right Shoulder"
  50. Right_Shoulder.C0 = CFrame.new(1.5,0,0)
  51.  
  52. LeftShoulder.Parent = nil
  53. RightShoulder.Parent = nil
  54. Humanoid.WalkSpeed = 10
  55.  
  56. local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
  57. Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  58. Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  59. Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  60. Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  61.  
  62.  
  63. Movemment = 1
  64. Walk = 0
  65.  
  66. Animator = Humanoid.Animator
  67. Animate = Character.Animate
  68.  
  69. Animator.Parent = nil
  70. Animate.Parent = nil
  71.  
  72. --[[for i,v in pairs(Head:children()) do
  73.  
  74. if v:IsA("Sound") then
  75.  
  76. v:Remove()
  77.  
  78. end
  79. end
  80. ]]--
  81.  
  82. local Services = {
  83.  
  84. SoundService = game:GetService("SoundService");
  85. Players = game:GetService("Players");
  86. Debris = game:GetService("Debris");
  87. Workspace = game:GetService("Workspace");
  88. Lighting = game:GetService("Lighting");
  89. HttpService = game:GetService("HttpService");
  90. InsertService = game:GetService("InsertService");
  91.  
  92. }
  93.  
  94. local ArkuniGui = Instance.new("BillboardGui", Head)
  95. ArkuniGui.ExtentsOffset = Vector3.new(0,5,0)
  96. ArkuniGui.Adornee = Head
  97. ArkuniGui.AlwaysOnTop = true
  98. ArkuniGui.Enabled = true
  99. ArkuniGui.Size = UDim2.new(0, 200,0, 50)
  100.  
  101. local ArkuniText = Instance.new("TextLabel", ArkuniGui)
  102. ArkuniText.BackgroundTransparency = 1
  103. ArkuniText.Font = "Code"
  104. ArkuniText.Size = UDim2.new(0, 200,0, 50)
  105. ArkuniText.TextStrokeColor3 = BrickColor.Gray().Color
  106. ArkuniText.TextStrokeTransparency = 0
  107. ArkuniText.TextColor3 = Color3.new(1,1,1)
  108. ArkuniText.TextScaled = true
  109. ArkuniText.Text = "Arkuni"
  110.  
  111. --------[[ Mesh Ids ]]--------
  112.  
  113. -- Eh... This is just my Stock of Meshes
  114.  
  115. SpikeMeshId = 1033714
  116. SpikeBallId = 9982590
  117. StarMeshId = 45428961
  118. CrystalMeshId = 9756362
  119.  
  120. --[[ Essential Functions ]]--
  121. function NoOutlines(Part)
  122. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  123. end
  124.  
  125.  
  126. local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape)
  127.  
  128. local Part = Instance.new("Part", Parent)
  129. Part.Name = Name
  130. Part.BrickColor = BrickColor.new(Color)
  131. Part.Size = Size
  132. Part.Material = Material
  133. Part.Transparency = Transparency
  134. Part.Shape = Shape
  135. Part.CanCollide = false
  136. NoOutlines(Part)
  137.  
  138. return Part
  139.  
  140. end
  141.  
  142. local CreateMesh = function(Parent, Scale, Shape)
  143.  
  144.  
  145. local Mesh = Instance.new("BlockMesh", Parent)
  146. Mesh.Scale = Scale
  147.  
  148. return Mesh
  149.  
  150. end
  151.  
  152. local CreateWedge = function(Parent, Name, Color, Size, Material, Transparency)
  153.  
  154. local WedgePart = Instance.new("WedgePart", Parent)
  155. WedgePart.Name = Name
  156. WedgePart.BrickColor = BrickColor.new(Color)
  157. WedgePart.Size = Size
  158. WedgePart.Material = Material
  159. WedgePart.Transparency = Transparency
  160. WedgePart.CanCollide = false
  161. NoOutlines(WedgePart)
  162.  
  163. return WedgePart
  164.  
  165. end
  166.  
  167. local CreateWeld = function(Parent, Cframe, P1 , P0)
  168.  
  169. local Weld = Instance.new("Weld", Parent)
  170. Weld.Part0 = P0
  171. Weld.Part1 = P1
  172. Weld.Name = P0.Name .. "To" .. P1.Name
  173. Weld.C0 = Cframe
  174.  
  175. return Weld
  176.  
  177. end
  178.  
  179. local CreateVelocity = function(Parent,Velocity,Force)
  180.  
  181. local BodyVelocity = Instance.new("BodyVelocity", Parent)
  182. BodyVelocity.Velocity = Velocity
  183. BodyVelocity.MaxForce = Force
  184.  
  185.  
  186.  
  187. return BodyVelocity
  188.  
  189. end
  190.  
  191.  
  192. local CreateCrystal = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  193.  
  194.  
  195. local Part = Instance.new("Part", Parent)
  196. Part.Name = Name
  197. Part.BrickColor = BrickColor.new(Color)
  198. Part.Size = Size
  199. Part.Material = Material
  200. Part.Transparency = Transparency
  201. Part.CanCollide = false
  202. NoOutlines(Part)
  203.  
  204. local Mesh = Instance.new("SpecialMesh", Part)
  205. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. CrystalMeshId
  206. Mesh.Scale = Scale
  207.  
  208. return Mesh and Part
  209.  
  210. end
  211.  
  212. local MakeSFX = function(Parent, Id, Volume, Pitch)
  213.  
  214. local SFX = Instance.new("Sound", Parent)
  215. SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id
  216. SFX.Name = "SFX"
  217. SFX:Play()
  218. SFX.Volume = Volume
  219. SFX.Pitch = Pitch
  220. SFX.PlayOnRemove = true
  221. SFX:Remove()
  222.  
  223. end
  224.  
  225. CircleEffect = function(Position, Parent, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  226.  
  227. local Part = Instance.new("Part", Parent)
  228. Part.Transparency = Transparency
  229. Part.Name = "CircleEffect"
  230. Part.Size = Vector3.new()
  231. Part.Anchored = true
  232. Part.CanCollide = false
  233. Part.Position = Position
  234. Part.BrickColor = BrickColor.new(Brickcolor)
  235. Part.Material = Material
  236. NoOutlines(Part)
  237.  
  238. local Mesh = Instance.new("SpecialMesh", Part)
  239. Mesh.MeshType = "Sphere"
  240. Mesh.Scale = Vector3.new(0,0,0)
  241.  
  242. Services.Debris:AddItem(Part, Time)
  243.  
  244.  
  245. table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ})
  246.  
  247.  
  248. end
  249.  
  250. BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  251.  
  252. local Part = Instance.new("Part", Parent)
  253. Part.Transparency = Transparency
  254. Part.Name = "BlockEffect"
  255. Part.Size = Vector3.new()
  256. Part.Anchored = true
  257. Part.Position = Position
  258. Part.CanCollide = false
  259. Part.BrickColor = BrickColor.new(Brickcolor)
  260. Part.Material = Material
  261. NoOutlines(Part)
  262.  
  263. local Mesh = Instance.new("BlockMesh", Part)
  264. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  265.  
  266. Services.Debris:AddItem(Part, Time)
  267.  
  268. table.insert(Effects, {Part, "Block", Time, SX, SY, SZ})
  269.  
  270.  
  271. end
  272. --[[ Uniform ]]--
  273. Uniform = Instance.new("Model", Character)
  274. Uniform.Name = "Uniform"
  275.  
  276. local Cloak = Instance.new("Part", Uniform)
  277. Cloak.Name = "Cloak"
  278. Cloak.CanCollide = false
  279. Cloak.BrickColor = BrickColor.new("Institutional white")
  280.  
  281. local CloakMesh = Instance.new("SpecialMesh", Cloak)
  282. CloakMesh.MeshId = "http://www.roblox.com/asset?id=16952952"
  283.  
  284. local CloakWeld = CreateWeld(Cloak, CFrame.new(0,-0.25,0) * CFrame.Angles(0,0,0), Head , Cloak, "ArkusToCharacter")
  285.  
  286. Arm1Color = Right_Arm.BrickColor.Color
  287. Arm2Color = Left_Arm.BrickColor.Color
  288.  
  289. local TorsoCloak = CreatePart(Uniform, "TorsoCloak", "White", Vector3.new(2, 2, 1), "SmoothPlastic", 0, "Block")
  290.  
  291. local LeftArmCloak = CreatePart(Uniform, "LeftArmCloak", "White", Vector3.new(1, 1.7, 1), "SmoothPlastic", 0, "Block")
  292. local RightArmCloak = CreatePart(Uniform, "RightArmCloak", "White", Vector3.new(1, 1.7, 1), "SmoothPlastic", 0, "Block")
  293. local LeftArmCloak2 = CreatePart(Uniform, "LeftArmCloak2", "White", Vector3.new(0.6, 0.3, 1), "SmoothPlastic", 0, "Block")
  294. local RightArmCloak2 = CreatePart(Uniform, "RightArmCloak2", "White", Vector3.new(0.6, 0.3, 1), "SmoothPlastic", 0, "Block")
  295. local LeftArmCloak3 = CreateWedge(Uniform, "LeftArmCloak3", "White", Vector3.new(1.001, 0.3, 0.4), "SmoothPlastic", 0)
  296. local RightArmCloak3 = CreateWedge(Uniform, "RightArmCloak3", "White", Vector3.new(1.001, 0.3, 0.4), "SmoothPlastic", 0)
  297. local RightArmPart = CreatePart(Uniform, "RightArmPart",Arm1Color, Vector3.new(0.4, 0.3, 1), "SmoothPlastic", 0, "Block")
  298. local LeftArmPart = CreatePart(Uniform, "LeftArmPart", Arm2Color, Vector3.new(0.4, 0.3, 1), "SmoothPlastic", 0, "Block")
  299.  
  300.  
  301. local LeftLegCloak = CreatePart(Uniform, "LeftLegCloak", "White", Vector3.new(1, 1.8, 1), "SmoothPlastic", 0, "Block")
  302. local RightLegCloak = CreatePart(Uniform, "RightLegCloak", "White", Vector3.new(1, 1.8, 1), "SmoothPlastic", 0, "Block")
  303. local LeftLegCloak2 = CreatePart(Uniform, "LeftLegCloak2", "Dark stone grey", Vector3.new(1, 0.3, 1), "SmoothPlastic", 0, "Block")
  304. local RightLegCloak2 = CreatePart(Uniform, "RightLegCloak2", "Dark stone grey", Vector3.new(1, 0.3, 1), "SmoothPlastic", 0, "Block")
  305.  
  306. local LeftLegCloak3 = CreatePart(Uniform, "LeftLegCloak3", "Fossil", Vector3.new(0.8, 0.43, 0.2), "SmoothPlastic", 0, "Block")
  307. local RightLegCloak3 = CreatePart(Uniform, "RightLegCloak3", "Fossil", Vector3.new(0.8, 0.43, 0.2), "SmoothPlastic", 0, "Block")
  308.  
  309. local LeftLegCloak3Mesh = CreateMesh(LeftLegCloak3, Vector3.new(1, 1, 0.1), "Block")
  310. local RightLegCloak3Mesh = CreateMesh(RightLegCloak3, Vector3.new(1, 1, 0.1), "Block")
  311.  
  312. local BeltPart1 = CreatePart(Uniform, "BeltPart1", "Institutional white", Vector3.new(2.1, 0.3, 1.1), "Granite", 0, "Block")
  313. local BeltPart2 = CreatePart(Uniform, "BeltPart2", "Dark stone grey", Vector3.new(2.11, 0.3, 1.11), "SmoothPlastic", 0, "Block")
  314. local BeltPart2Mesh = CreateMesh(BeltPart2, Vector3.new(1, 0.5, 1), "Block")
  315. local BeltPart3 = CreatePart(Uniform, "BeltPart3", "Dark stone grey", Vector3.new(2.11, 0.3, 1.11), "SmoothPlastic", 0, "Block")
  316. local BeltPart3Mesh = CreateMesh(BeltPart3, Vector3.new(1, 0.5, 1), "Block")
  317.  
  318. local UltimateCrystalPocket = CreatePart(Uniform, "UltimateCrystalPocket", "Institutional white", Vector3.new(0.6, 0.2, 0.5), "SmoothPlastic", 0, "Block")
  319. UltimateCrystalPocketMesh = Instance.new("CylinderMesh", UltimateCrystalPocket)
  320. UltimateCrystalPocketMesh.Scale = Vector3.new(1,0.01,1)
  321.  
  322. local EarthCrystal = CreateCrystal(Uniform, "Earth Crystal", "Burnt Sienna", Vector3.new(), "SmoothPlastic", 0.5,Vector3.new(0.1, 0.2, 0.1))
  323. local FireCrystal = CreateCrystal(Uniform, "Fire Crystal", "Bright red", Vector3.new(), "SmoothPlastic", 0.5,Vector3.new(0.1, 0.2, 0.1))
  324. local WaterCrystal = CreateCrystal(Uniform, "Fire Crystal", "Bright blue", Vector3.new(), "SmoothPlastic", 0.5,Vector3.new(0.1, 0.2, 0.1))
  325.  
  326. local LightingCrystal = CreateCrystal(Uniform, "Lighting Crystal", "Bright yellow", Vector3.new(), "SmoothPlastic", 0.5,Vector3.new(0.1, 0.2, 0.1))
  327. local PlantCrystal = CreateCrystal(Uniform, "Plant Crystal", "Bright green", Vector3.new(), "SmoothPlastic", 0.5,Vector3.new(0.1, 0.2, 0.1))
  328. local DarknessCrystal = CreateCrystal(Uniform, "Darkness Crystal", "Black", Vector3.new(), "SmoothPlastic", 0.5,Vector3.new(0.1, 0.2, 0.1))
  329.  
  330. local UltimateCrystal = CreateCrystal(Uniform, "Ultimate Crystal", "Medium stone grey", Vector3.new(), "SmoothPlastic", 0.5,Vector3.new(0.1, 0.2, 0.1))
  331.  
  332. TorsoCloakWeld = CreateWeld(TorsoCloak, CFrame.new(0,0,0), Torso, TorsoCloak)
  333. LeftArmPartWeld = CreateWeld(LeftArmPart, CFrame.new(0.3,1,0), LeftArmCloak, LeftArmPart)
  334. RightArmPartWeld = CreateWeld(RightArmPart, CFrame.new(-0.3,1,0), RightArmCloak, RightArmPart)
  335. LeftArmCloakWeld = CreateWeld(LeftArmCloak, CFrame.new(0,-0,0), Right_Arm, LeftArmCloak)
  336. RightArmCloakWeld = CreateWeld(RightArmCloak, CFrame.new(0,-0,0), Left_Arm, RightArmCloak)
  337. LeftArmCloak2Weld = CreateWeld(LeftArmCloak2, CFrame.new(-0.2,1,0), LeftArmCloak, LeftArmCloak2)
  338. RightArmCloak2Weld = CreateWeld(RightArmCloak2, CFrame.new(0.2,1,0), RightArmCloak, RightArmCloak2)
  339. LeftArmCloak3Weld = CreateWeld(LeftArmCloak3,CFrame.new(0,-0.25,0.8) * CFrame.Angles(1.57,1.57,0), Left_Arm, LeftArmCloak3)
  340. RightArmCloak3Weld = CreateWeld(RightArmCloak3,CFrame.new(0,-0.25,0.8) * CFrame.Angles(1.57,-1.57,0), Right_Arm, RightArmCloak3)
  341. LeftLegCloakWeld = CreateWeld(LeftLegCloak, CFrame.new(0,-0.1,0), Left_Leg, LeftLegCloak)
  342. RightLegCloakWeld = CreateWeld(RightLegCloak, CFrame.new(0,-0.1,0), Right_Leg, RightLegCloak)
  343. LeftLegCloak2Weld = CreateWeld(LeftLegCloak2, CFrame.new(0,1.05,0), LeftLegCloak, LeftLegCloak2)
  344. RightLegCloak2Weld = CreateWeld(RightLegCloak2, CFrame.new(0,1.05,0), RightLegCloak, RightLegCloak2)
  345. LeftLegCloak3Weld = CreateWeld(LeftLegCloak3, CFrame.new(0,-0.1,0.5), LeftLegCloak2, LeftLegCloak3)
  346. RightLegCloak3Weld = CreateWeld(RightLegCloak3, CFrame.new(0,-0.1,0.5), RightLegCloak2, RightLegCloak3)
  347. BeltPart1Weld = CreateWeld(BeltPart1, CFrame.new(0,1,0), Torso, BeltPart1)
  348. BeltPart2Weld = CreateWeld(BeltPart2, CFrame.new(0,0.8,0), Torso, BeltPart2)
  349. BeltPart3Weld = CreateWeld(BeltPart3, CFrame.new(0,1.2,0), Torso, BeltPart3)
  350. UltimateCrystalPocketWeld = CreateWeld(UltimateCrystalPocket, CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(1.57,0,0), Torso, UltimateCrystalPocket)
  351. UltimateCrystalWeld = CreateWeld(UltimateCrystal, CFrame.new(0,0,0) * CFrame.Angles(1.57,0,0), UltimateCrystalPocket, UltimateCrystal)
  352. EarthCrystalWeld = CreateWeld(EarthCrystal, CFrame.new(0,0.35,0) * CFrame.Angles(1.57,0,0), UltimateCrystalPocket, EarthCrystal)
  353. DarknessCrystalWeld = CreateWeld(DarknessCrystal, CFrame.new(0,-0.35,0) * CFrame.Angles(1.57,0,0), UltimateCrystalPocket, DarknessCrystal)
  354.  
  355. FireCrystalWeld = CreateWeld(EarthCrystal, CFrame.new(0.3,0.25,0) * CFrame.Angles(1.57,-0.2,0), UltimateCrystalPocket, FireCrystal)
  356. LightingCrystalWeld = CreateWeld(DarknessCrystal, CFrame.new(0.3,0.25,0) * CFrame.Angles(-1.57,0.2,0), UltimateCrystalPocket, LightingCrystal)
  357.  
  358. WaterCrystalWeld = CreateWeld(WaterCrystal, CFrame.new(-0.3,-0.25,0) * CFrame.Angles(-1.57,0.2,0), UltimateCrystalPocket, WaterCrystal)
  359. PlantCrystalWeld = CreateWeld(PlantCrystal, CFrame.new(-0.3,-0.25,0) * CFrame.Angles(1.57,-0.2,0), UltimateCrystalPocket, PlantCrystal)
  360.  
  361. Torso.Transparency = 1
  362. Left_Arm.Transparency = 1
  363. Right_Arm.Transparency = 1
  364. Left_Leg.Transparency = 1
  365. Right_Leg.Transparency = 1
  366.  
  367.  
  368.  
  369. --[[ Arkus ]]--
  370.  
  371. local Arkus = Instance.new("Part", Character)
  372. Arkus.Name = "Arkus"
  373. Arkus.Size = Vector3.new()
  374.  
  375. local Mesh = Instance.new("SpecialMesh", Arkus)
  376. Mesh.Scale = Vector3.new(1.8, 1.8, 2)
  377. Mesh.MeshId = "http://www.roblox.com/asset/?id=11442510"
  378. Mesh.TextureId = "http://www.roblox.com/asset/?id=12067965"
  379.  
  380. local ArkusWeld = CreateWeld(Arkus, CFrame.new(0,-0.5,0) * CFrame.Angles(-1.57,0,0.6), Torso , Arkus)
  381.  
  382.  
  383. --[[ Damage function ]]--
  384.  
  385.  
  386. function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  387.  
  388. local HitHumanoid = Hit.Parent.Humanoid
  389.  
  390.  
  391. local Damage = math.random(Min, Max)
  392.  
  393.  
  394. coroutine.resume(coroutine.create(function()
  395. HitHumanoid:TakeDamage(Damage)
  396. end))
  397.  
  398. if Type == "Normal" then
  399.  
  400. local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  401. Services.Debris:AddItem(Push, 0)
  402. DamageLabel(Hit.Parent, Damage, Hit)
  403.  
  404. elseif Type == "Ranged" then
  405. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  406. Services.Debris:AddItem(Push, 0)
  407. DamageLabel(Hit.Parent, Damage, Hit)
  408.  
  409. elseif Type == "Knockdown" then
  410.  
  411.  
  412. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  413. DamageLabel(Hit.Parent, Damage, Hit)
  414. Services.Debris:AddItem(Push, 0.3)
  415.  
  416. coroutine.resume(coroutine.create(function()
  417.  
  418. HitHumanoid.PlatformStand = true
  419. wait(1)
  420. HitHumanoid.PlatformStand = false
  421.  
  422.  
  423. end))
  424. end
  425.  
  426. if HitSFX == "Penetration" then
  427.  
  428. MakeSFX(Hit, 199149269, 1 , 1)
  429.  
  430. elseif HitSFX == "Punch" then
  431.  
  432. MakeSFX(Hit, 278062209, 1 , 1)
  433.  
  434.  
  435.  
  436.  
  437. end
  438. end
  439.  
  440. function DamageLabel(HitCharacter, DamageDealt, Hit)
  441.  
  442. local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block")
  443. DamageShowingPart.Position = HitCharacter.Head.Position
  444.  
  445. local DamageGui = Instance.new("BillboardGui", DamageShowingPart)
  446. DamageGui.Name = "Damage"
  447. DamageGui.AlwaysOnTop = true
  448. DamageGui.Size = UDim2.new(5, 0, 5, 0)
  449.  
  450. local DamageNumber = Instance.new("TextLabel", DamageGui)
  451. DamageNumber.Size = UDim2.new(1,0,1,0)
  452. if Hit.Parent:FindFirstChild("Head") then
  453. DamageNumber.TextStrokeColor3 = Hit.Parent.Head.BrickColor.Color
  454. DamageNumber.TextColor3 = Hit.BrickColor.Color
  455. end
  456. DamageNumber.TextStrokeTransparency = 0
  457. DamageNumber.BackgroundTransparency = 1
  458. DamageNumber.Font = "SourceSansBold"
  459. DamageNumber.TextScaled = true
  460. DamageNumber.Text = DamageDealt
  461.  
  462. local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart)
  463. BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  464. BodyVelocity.Velocity = Vector3.new(0,2,0)
  465.  
  466. Services.Debris:AddItem(DamageShowingPart, 3)
  467.  
  468.  
  469. end
  470.  
  471. function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback)
  472. for _,WorkspaceChildren in pairs(workspace:children()) do
  473.  
  474. local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid")
  475.  
  476. if HitHumanoid ~= nil then
  477. local Hit = WorkspaceChildren:findFirstChild("Torso")
  478.  
  479. if Hit ~= nil then
  480.  
  481. local Target = Hit.Position - Part.Position
  482.  
  483. local Magnitude = Target.magnitude
  484.  
  485. if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then
  486.  
  487. local HitBlock = Hit.Parent:FindFirstChild("Block")
  488.  
  489. if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then
  490.  
  491. local HitBlock2 = Hit.Parent.Block.BlockDurability
  492.  
  493. if HitBlock2.Value > 15 then
  494.  
  495. local HitN = math.random(1,5)
  496.  
  497. HitBlock2.Value = HitBlock2.Value - 15
  498.  
  499.  
  500. if HitN == 1 then
  501. MakeSFX(Hit ,199148971, 0.5, 1)
  502. end
  503.  
  504. if HitN == 2 then
  505. MakeSFX(Hit ,199149025, 0.5, 1)
  506. end
  507.  
  508. if HitN == 3 then
  509. MakeSFX(Hit ,199149072, 0.5, 1)
  510. end
  511.  
  512. if HitN == 4 then
  513. MakeSFX(Hit ,199149109, 0.5, 1)
  514. end
  515.  
  516. if HitN == 5 then
  517. MakeSFX(Hit ,199149119, 0.5, 1)
  518. end
  519. return
  520. end
  521. end
  522.  
  523. DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  524.  
  525.  
  526.  
  527. end
  528. end
  529. end
  530. end
  531. end
  532.  
  533.  
  534.  
  535. --[[ Attacks ]]--
  536.  
  537.  
  538.  
  539. function ArktizuAttack1()
  540.  
  541. Attacking = true
  542. MakeSFX(Left_Arm, 320557563, 1, 1)
  543.  
  544. for i = 1,6 do
  545.  
  546. wait()
  547. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,-1.6),0.2)
  548. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,1),0.2)
  549. Right_Shoulder.C0 = clerp(Right_Shoulder.C0,CFrame.new(1,0.3,-0.5) * CFrame.Angles(0.8,0,-1), 0.3)
  550. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-2,0.5,-0.5) * CFrame.Angles(1.57,0,-1), 0.5)
  551. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0),0.2)
  552. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  553.  
  554. end
  555.  
  556. ValidateDamage(Left_Arm, 3 ,10 , 14, "Normal", "Punch", 5)
  557.  
  558. Attacking = false
  559.  
  560.  
  561. end
  562.  
  563.  
  564. function ArktizuAttack2()
  565.  
  566. Attacking = true
  567. MakeSFX(Right_Arm, 320557563, 1, 1)
  568.  
  569. for i = 1,6 do
  570.  
  571. wait()
  572. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,1.6),0.2)
  573. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,-1),0.2)
  574. Right_Shoulder.C0 = clerp(Right_Shoulder.C0,CFrame.new(2,0.5,-0.5) * CFrame.Angles(1.57,0,1), 0.3)
  575. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1,0.3,-0.5) * CFrame.Angles(0.8,0,1), 0.3)
  576. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0),0.2)
  577. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  578.  
  579. end
  580.  
  581. ValidateDamage(Right_Arm, 3 ,10 , 14, "Normal", "Punch", 5)
  582.  
  583. Attacking = false
  584.  
  585.  
  586. end
  587.  
  588. function ArktizuAttack3()
  589.  
  590. Attacking = true
  591. MakeSFX(Right_Leg, 320557563, 1, 1)
  592.  
  593. for i = 1,6 do
  594.  
  595. wait()
  596. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,1.6),0.5)
  597. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,-1),0.2)
  598. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(0.8, 0.5, -0.8) * CFrame.Angles(1.8,0,-1), 0.3)
  599. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-0.8, 0.5, -0.8) * CFrame.Angles(1.8,0,1), 0.4)
  600. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(0.5,-1,0.5) * CFrame.Angles(0,0,1.6),0.3)
  601. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-0.5,-1,-0.5) * CFrame.Angles(0,-3.2,0),0.3)
  602.  
  603. end
  604.  
  605. ValidateDamage(Right_Leg, 3 ,10 , 14, "Normal", "Punch", 5)
  606.  
  607. Attacking = false
  608.  
  609.  
  610. end
  611.  
  612. function ArktizuAttack4()
  613.  
  614. Attacking = true
  615. MakeSFX(Left_Leg, 320557563, 1, 1)
  616.  
  617. for i = 1,6 do
  618.  
  619. wait()
  620. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,-1.6),0.5)
  621. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,1),0.2)
  622. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(0.8, 0.5, -0.8) * CFrame.Angles(1.8,0,-1), 0.3)
  623. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-0.8, 0.5, -0.8) * CFrame.Angles(1.8,0,1), 0.4)
  624. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(0.5,-1,-0.5) * CFrame.Angles(0,3.2,0),0.3)
  625. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-0.5,-1,-0.5) * CFrame.Angles(0,0,-1.6),0.3)
  626.  
  627. end
  628.  
  629. ValidateDamage(Left_Leg, 3 ,10 , 14, "Normal", "Punch", 5)
  630.  
  631. Attacking = false
  632.  
  633.  
  634. end
  635.  
  636. function Unseath()
  637.  
  638. Attacking = true
  639. Unseathed = true
  640.  
  641. local Unseath = Instance.new("Sound", Arkus)
  642. Unseath.SoundId = "rbxasset://sounds\\unsheath.wav"
  643. Unseath.PlayOnRemove = true
  644. Unseath:Play()
  645. wait()
  646. Unseath:Remove()
  647.  
  648. for i = 1,6 do
  649. wait()
  650. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0.5),0.2)
  651. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.2,0,-0.3),0.3)
  652. Right_Shoulder.C0 = clerp(Right_Shoulder.C0,CFrame.new(1.3,1,0) * CFrame.Angles(3.8,0,0.8), 0.3)
  653. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5,0.3,0) * CFrame.Angles(0,0,-0.2), 0.3)
  654. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0),0.2)
  655. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  656.  
  657. end
  658.  
  659. ArkusWeld.Part1 = Right_Arm
  660. ArkusWeld.C0 = CFrame.new(1.1,0.3,-2.2)* CFrame.Angles(3.2,0.1,-1.6)
  661.  
  662. for i = 1,6 do
  663. wait()
  664.  
  665. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0.5),0.2)
  666. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.2,0,-0.3),0.3)
  667. Right_Shoulder.C0 = clerp(Right_Shoulder.C0,CFrame.new(1.5,0.1,0) * CFrame.Angles(0,0,0.2), 0.3)
  668. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5,0.1,0) * CFrame.Angles(0,0,-0.2), 0.3)
  669. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0),0.2)
  670. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  671.  
  672. end
  673.  
  674. Attacking = false
  675.  
  676.  
  677. end
  678.  
  679. function Seath()
  680.  
  681. Attacking = true
  682. Unseathed = false
  683. local Unseath = Instance.new("Sound", Arkus)
  684. Unseath.SoundId = "rbxasset://sounds\\unsheath.wav"
  685. Unseath.PlayOnRemove = true
  686. Unseath:Play()
  687. wait()
  688. Unseath:Remove()
  689.  
  690. for i = 1,6 do
  691. wait()
  692.  
  693. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0.5),0.2)
  694. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.2,0,-0.3),0.3)
  695. Right_Shoulder.C0 = clerp(Right_Shoulder.C0,CFrame.new(1.3,1,0) * CFrame.Angles(3.8,0,-0.2), 0.3)
  696. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5,0.3,0) * CFrame.Angles(0,0,-0.2), 0.3)
  697. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0),0.2)
  698. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  699.  
  700. end
  701.  
  702. ArkusWeld.Part1 = Torso
  703. ArkusWeld.C0 = CFrame.new(0,-0.5,0) * CFrame.Angles(-1.57,0,0.6)
  704.  
  705. for i = 1,6 do
  706. wait()
  707.  
  708. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0.5),0.2)
  709. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.2,0,-0.3),0.3)
  710. Right_Shoulder.C0 = clerp(Right_Shoulder.C0,CFrame.new(1.3,1,0) * CFrame.Angles(3.8,0,-0.2), 0.3)
  711. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5,0.3,0) * CFrame.Angles(0,0,-0.2), 0.3)
  712. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0),0.2)
  713. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  714.  
  715. end
  716.  
  717. Attacking = false
  718.  
  719.  
  720. end
  721.  
  722.  
  723. --[[ Tool & Tool Functions ]]--
  724.  
  725. local Tool = Instance.new("HopperBin", Player.Backpack)
  726. Tool.Name = "Arkus"
  727.  
  728. Tool.Selected:connect(function(Mouse)
  729.  
  730. Mouse.Button1Down:connect(function()
  731. if not Attacking and Equipped and not Unseathed then
  732.  
  733. if Combo == 1 then
  734.  
  735. ArktizuAttack1()
  736. Combo = 2
  737.  
  738. elseif Combo == 2 then
  739.  
  740. ArktizuAttack2()
  741. Combo = 3
  742.  
  743. elseif Combo == 3 then
  744.  
  745. ArktizuAttack3()
  746. Combo = 4
  747.  
  748. elseif Combo == 4 then
  749.  
  750. ArktizuAttack4()
  751. Combo = 1
  752.  
  753. elseif not Attacking and Equipped and Unseathed then
  754.  
  755.  
  756. end
  757.  
  758.  
  759. end
  760. end)
  761.  
  762. Mouse.KeyDown:connect(function(Key)
  763.  
  764. if Key == "y" and not Attacking then
  765.  
  766. if Running == false then
  767. Running = true
  768.  
  769. Humanoid.WalkSpeed = 50
  770. Humanoid.JumpPower = 150
  771.  
  772.  
  773. elseif Running == true then
  774. Running = false
  775.  
  776. Humanoid.WalkSpeed = 10
  777. Humanoid.JumpPower = 50
  778.  
  779. end
  780.  
  781. end
  782.  
  783. if Key == "q" and Equipped and not Attacking then
  784.  
  785. if not Unseathed then
  786. Unseath()
  787. Combo = 1
  788.  
  789. elseif Unseathed then
  790.  
  791. Seath()
  792. Combo = 1
  793.  
  794. end
  795.  
  796. end
  797.  
  798.  
  799. if Key == "e" then
  800.  
  801. if Equipped == false then
  802. Equipped = true
  803.  
  804. elseif Equipped == true and not Unseathed then
  805. Equipped = false
  806.  
  807. elseif Unseathed and Equipped == true then
  808. Seath()
  809. Equipped = false
  810.  
  811.  
  812. end
  813. end
  814. end)
  815.  
  816. Mouse.KeyUp:connect(function(Key)
  817.  
  818. end)
  819. end)
  820.  
  821.  
  822. --[[ CLerp Declarations ]]--
  823.  
  824. function clerp(a,b,t)
  825. local qa = {QuaternionFromCFrame(a)}
  826. local qb = {QuaternionFromCFrame(b)}
  827. local ax, ay, az = a.x, a.y, a.z
  828. local bx, by, bz = b.x, b.y, b.z
  829. local _t = 1-t
  830. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  831. end
  832.  
  833. function QuaternionFromCFrame(cf)
  834. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  835. local trace = m00 + m11 + m22
  836. if trace > 0 then
  837. local s = math.sqrt(1 + trace)
  838. local recip = 0.5/s
  839. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  840. else
  841. local i = 0
  842. if m11 > m00 then
  843. i = 1
  844. end
  845. if m22 > (i == 0 and m00 or m11) then
  846. i = 2
  847. end
  848. if i == 0 then
  849. local s = math.sqrt(m00-m11-m22+1)
  850. local recip = 0.5/s
  851. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  852. elseif i == 1 then
  853. local s = math.sqrt(m11-m22-m00+1)
  854. local recip = 0.5/s
  855. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  856. elseif i == 2 then
  857. local s = math.sqrt(m22-m00-m11+1)
  858. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  859. end
  860. end
  861. end
  862.  
  863. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  864. local xs, ys, zs = x + x, y + y, z + z
  865. local wx, wy, wz = w*xs, w*ys, w*zs
  866. local xx = x*xs
  867. local xy = x*ys
  868. local xz = x*zs
  869. local yy = y*ys
  870. local yz = y*zs
  871. local zz = z*zs
  872. 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))
  873. end
  874.  
  875. function QuaternionSlerp(a, b, t)
  876. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  877. local startInterp, finishInterp;
  878. if cosTheta >= 0.0001 then
  879. if (1 - cosTheta) > 0.0001 then
  880. local theta = math.acos(cosTheta)
  881. local invSinTheta = 1/math.sin(theta)
  882. startInterp = math.sin((1-t)*theta)*invSinTheta
  883. finishInterp = math.sin(t*theta)*invSinTheta
  884. else
  885. startInterp = 1-t
  886. finishInterp = t
  887. end
  888. else
  889. if (1+cosTheta) > 0.0001 then
  890. local theta = math.acos(-cosTheta)
  891. local invSinTheta = 1/math.sin(theta)
  892. startInterp = math.sin((t-1)*theta)*invSinTheta
  893. finishInterp = math.sin(t*theta)*invSinTheta
  894. else
  895. startInterp = t-1
  896. finishInterp = t
  897. end
  898. end
  899. 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
  900. end
  901.  
  902. function RayCast(Pos, Dir, Max, Ignore)
  903. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  904. end
  905.  
  906. --[[ CLerp Animations ]]--
  907. Change1 = 0
  908. Change2 = 0
  909. Change3 = 0
  910. Change4 = 0
  911.  
  912. coroutine.resume(coroutine.create(function()
  913. while true do
  914. local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude
  915. local Velderp = Root.Velocity.y
  916. HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  917.  
  918. wait()
  919. if 30 <= Torvel and HitFloor ~= nil then
  920.  
  921. Anim = "Running"
  922. WalkForward = true
  923. Walk = Walk + 1
  924. if 15 - 5 * Movemment <= Walk then
  925. Walk = 0
  926. if WalkForward == true then
  927. WalkForward = false
  928. else
  929. if WalkForward == false then
  930. WalkForward = true
  931. end
  932. end
  933. end
  934.  
  935. if Attacking == false then
  936.  
  937. if Invert == false then
  938.  
  939. Change2 = Change2 + 2
  940.  
  941. elseif Invert == true then
  942.  
  943. Change2 = Change2 - 2
  944.  
  945. end
  946.  
  947. if Change2 > 0.1 then
  948.  
  949. Invert = true
  950.  
  951. elseif Change2 < -0.1 then
  952.  
  953. Invert = false
  954.  
  955.  
  956.  
  957. end
  958. end
  959. end
  960. end
  961. end))
  962.  
  963. while true do
  964.  
  965. wait()
  966.  
  967. local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude
  968. local Velderp = Root.Velocity.y
  969. HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  970.  
  971. if Torvel < 1 and HitFloor ~= nil and Attacking == false then
  972. Anim = "Idle"
  973. Jump = false
  974. if Equipped == false then
  975.  
  976.  
  977. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  978. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.2,0,-0.3),0.3)
  979. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(0.21,0.5, -1) * CFrame.Angles(1.6,0,-1.3), 0.3)
  980. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-0.21,0.5,-1) * CFrame.Angles(1.6,0,1.3), 0.3)
  981. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0),0.2)
  982. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  983.  
  984.  
  985. elseif Equipped and Unseathed then
  986. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0.5),0.2)
  987. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.2,0,-0.3),0.3)
  988. Right_Shoulder.C0 = clerp(Right_Shoulder.C0,CFrame.new(1.5,0.2,0) * CFrame.Angles(0,0,0.2), 0.3)
  989. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5,0.2,0) * CFrame.Angles(0,0,-0.2), 0.3)
  990. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0),0.2)
  991. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  992.  
  993. elseif Equipped == true then
  994.  
  995. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0.5),0.2)
  996. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.2,0,-0.3),0.3)
  997. Right_Shoulder.C0 = clerp(Right_Shoulder.C0,CFrame.new(1.3,1,0) * CFrame.Angles(3.8,0,-0.2), 0.3)
  998. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5,0.3,0) * CFrame.Angles(0,0,-0.2), 0.3)
  999. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0),0.2)
  1000. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  1001.  
  1002.  
  1003. end
  1004. end
  1005.  
  1006.  
  1007. if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then
  1008. Anim = "Walking"
  1009. WalkForward = true
  1010. Walk = Walk + 1
  1011. if 15 - 5 * Movemment <= Walk then
  1012. Walk = 0
  1013. if WalkForward == true then
  1014. WalkForward = false
  1015. else
  1016. if WalkForward == false then
  1017. WalkForward = true
  1018. end
  1019. end
  1020. end
  1021.  
  1022.  
  1023. if Invert == false then
  1024. Change1 = Change1 + 0.1
  1025.  
  1026. elseif Invert == true then
  1027.  
  1028. Change1 = Change1 - 0.1
  1029.  
  1030. end
  1031.  
  1032. if Change1 > 0.5 then
  1033.  
  1034. Invert = true
  1035.  
  1036. elseif Change1 < -0.5 then
  1037.  
  1038. Invert = false
  1039.  
  1040.  
  1041.  
  1042. end
  1043.  
  1044. Jump = false
  1045. if Attacking == false then
  1046.  
  1047. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0.2,0,0),0.2)
  1048. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.1,0,0),0.3)
  1049. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.2, -Change1) * CFrame.Angles(Change1,0,0), 0.3)
  1050. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.2, Change1) * CFrame.Angles(-Change1,0,0), 0.3)
  1051. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-Change1 / 4)*CFrame.Angles(Change1 + 0.1,1.6,0),0.2)
  1052. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,Change1 / 4)*CFrame.Angles(-Change1 + 0.1,-1.6,0),0.2)
  1053.  
  1054. end
  1055. end
  1056.  
  1057. if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then
  1058.  
  1059. Anim = "Jump"
  1060. Jump = false
  1061. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  1062. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  1063. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.2, 0.2) * CFrame.Angles(-0.4,0,0.2), 0.3)
  1064. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.2, 0.2) * CFrame.Angles(-0.4,0,-0.2), 0.3)
  1065. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
  1066. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  1067.  
  1068.  
  1069. end
  1070.  
  1071. if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then
  1072.  
  1073. Anim = "Falling"
  1074. Jump = true
  1075. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  1076. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  1077. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.2, -0.2) * CFrame.Angles(0.4,0,0.2), 0.3)
  1078. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.2, -0.2) * CFrame.Angles(0.4,0,-0.2), 0.3)
  1079. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
  1080. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  1081.  
  1082. end
  1083.  
  1084. if 30 <= Torvel and HitFloor ~= nil then
  1085. Jump = false
  1086. Anim = "Running"
  1087. WalkForward = true
  1088. Walk = Walk + 1
  1089. if 15 - 5 * Movemment <= Walk then
  1090. Walk = 0
  1091. if WalkForward == true then
  1092. WalkForward = false
  1093. else
  1094. if WalkForward == false then
  1095. WalkForward = true
  1096. end
  1097. end
  1098. end
  1099.  
  1100. if Attacking == false then
  1101.  
  1102.  
  1103.  
  1104. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,-0.2,0)* CFrame.Angles(1,0,0),0.2)
  1105. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  1106. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.3, 0.5) * CFrame.Angles(-1,0,0), 0.3)
  1107. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.3, 0.5) * CFrame.Angles(-1,0,0), 0.3)
  1108. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-Change2 / 4)*CFrame.Angles(Change2 + 0.5,1.6,0),0.5)
  1109. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,Change2 / 4)*CFrame.Angles(-Change2 + 0.5,-1.6,0),0.5)
  1110.  
  1111. end
  1112. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0) * CFrame.Angles(0,1.6,0),0.2)
  1113. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.2)
  1114.  
  1115. end
  1116.  
  1117. for i,v in pairs(Character:children()) do
  1118.  
  1119. if v:IsA("Shirt") then
  1120.  
  1121. v:Remove()
  1122.  
  1123. elseif v:IsA("Pants") then
  1124.  
  1125. v:Remove()
  1126.  
  1127. elseif v:IsA("Hat") then
  1128.  
  1129. v:Remove()
  1130.  
  1131. elseif v:IsA("ShirtGraphic") then
  1132.  
  1133. v:Remove()
  1134.  
  1135.  
  1136. for a,x in pairs(v:children()) do
  1137.  
  1138. if x:IsA("Decal") then
  1139.  
  1140. x:Remove()
  1141.  
  1142. end
  1143. end
  1144. end
  1145. end
  1146.  
  1147.  
  1148. if #Effects > 0 then
  1149. for E = 1, #Effects do
  1150. if Effects[E]~=nil then
  1151. local Effect = Effects[E]
  1152.  
  1153. if Effect ~= nil then
  1154.  
  1155. local Part = Effect[1]
  1156. local Mode = Effect[2]
  1157. local Time = Effect[3]
  1158. local SizeX = Effect[4]
  1159. local SizeY = Effect[5]
  1160. local SizeZ = Effect[6]
  1161.  
  1162. if Effect[1].Transparency <= 1 then
  1163. if Effect[2] == "Block" then
  1164. Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1165.  
  1166. Mesh = Effect[1]:FindFirstChild("Mesh")
  1167. if Mesh ~= nil then
  1168. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  1169. end
  1170.  
  1171. elseif Effect[2] == "Circle" then
  1172.  
  1173. if Effect[1]:FindFirstChild("Mesh") ~= nil then
  1174. Mesh=Effect[1].Mesh
  1175. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  1176. end
  1177.  
  1178. else
  1179.  
  1180. Part.Parent=nil
  1181.  
  1182. table.remove(Effects, E)
  1183.  
  1184. end
  1185. end
  1186. end
  1187. end
  1188. end
  1189. end
  1190. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement