Advertisement
Mz_TH_edit

Untitled

Jun 30th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. for i,v in pairs(chr:children()) do
  3. if v:IsA("Accessory") then
  4. v:Destroy()
  5. end
  6. end
  7. for i,v in pairs(chr:children()) do
  8. if v:IsA("Hair") then
  9. v:Destroy()
  10. end
  11. end
  12. local Part = Instance.new("Part",chr)
  13. Part.BrickColor = BrickColor.new("Royal blue")
  14. Part.Size = Vector3.new(1,1,1)
  15. Part.CanCollide = false
  16. Part.Material = "Neon"
  17. local M = Instance.new("SpecialMesh",Part)
  18. M.MeshId = "rbxassetid://212966179"
  19. M.Scale = Vector3.new(1.2,1.2,1.2)
  20. M.TextureId = "rbxassetid://431984628"
  21. local Part2 = Instance.new("Weld",Part)
  22. Part2.Part0 = chr.Head
  23. Part2.Part1 = Part
  24. Part2.C0 = CFrame.new(0,0.2,0)*CFrame.Angles(0,0,0)
  25. local Part1 = Instance.new("Part",chr)
  26. Part1.BrickColor = BrickColor.new("Really black")
  27. Part1.Size = Vector3.new(1,1,1)
  28. Part1.CanCollide = false
  29. Part1.Material = "Neon"
  30. local M1 = Instance.new("SpecialMesh",Part1)
  31. M1.MeshId = "rbxassetid://212966179"
  32. M1.Scale = Vector3.new(1.1,1.1,1.1)
  33. local Part21 = Instance.new("Weld",Part1)
  34. Part21.Part0 = chr.Head
  35. Part21.Part1 = Part1
  36. Part21.C0 = CFrame.new(0,0.1,0)*CFrame.Angles(0,0,0)
  37. hrp = chr.HumanoidRootPart
  38. head = chr.Head
  39. anim = human.Animator
  40. activu = false
  41. Heartbeat = Instance.new("BindableEvent")
  42. Heartbeat.Name = "Heartbeat"
  43. Heartbeat.Parent = script
  44. frame = 0.03333333333333333
  45. tf = 0
  46.  
  47. --//====================================================\\--
  48. --|| TRAIL.... ( EDIT BY Penien23 )
  49. --\\====================================================//--
  50.  
  51. wait(0)
  52.  
  53. local p = game.Players.localPlayer
  54. local char = p.Character
  55. local mouse=p:GetMouse()
  56. local larm = char["Left Arm"]
  57. local rarm = char["Right Arm"]
  58. local lleg = char["Left Leg"]
  59. local rleg = char["Right Leg"]
  60. local torso = char.Torso
  61. local root = char.HumanoidRootPart
  62. local hed = char.Head
  63. ---------------------------------------------
  64.  
  65. local PE1 = Instance.new("ParticleEmitter",rleg)
  66. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  67. PE1.LightEmission = NumberSequence.new(0.2)
  68. PE1.Size = NumberSequence.new(1.2)
  69. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  70. PE1.Lifetime = NumberRange.new(.5)
  71. PE1.Rate = 10
  72. PE1.Transparency = NumberSequence.new(0.2)
  73. PE1.LightEmission = NumberSequence.new(0.2)
  74. PE1.Rotation = NumberRange.new(260)
  75. PE1.Speed = NumberRange.new(0)
  76. PE1.RotSpeed = NumberRange.new(100)
  77.  
  78. ----------------------------------------------------
  79. local PE1 = Instance.new("ParticleEmitter",rarm)
  80. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  81. PE1.LightEmission = NumberSequence.new(0.2)
  82. PE1.Size = NumberSequence.new(1.2)
  83. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  84. PE1.Lifetime = NumberRange.new(.5)
  85. PE1.Rate = 10
  86. PE1.Transparency = NumberSequence.new(0.2)
  87. PE1.LightEmission = NumberSequence.new(0.2)
  88. PE1.Rotation = NumberRange.new(260)
  89. PE1.Speed = NumberRange.new(0)
  90. PE1.RotSpeed = NumberRange.new(100)
  91. ---------------------------------------------
  92.  
  93. local PE1 = Instance.new("ParticleEmitter",lleg)
  94. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  95. PE1.LightEmission = NumberSequence.new(0.2)
  96. PE1.Size = NumberSequence.new(1.2)
  97. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  98. PE1.Lifetime = NumberRange.new(.5)
  99. PE1.Rate = 10
  100. PE1.Transparency = NumberSequence.new(0.2)
  101. PE1.LightEmission = NumberSequence.new(0.2)
  102. PE1.Rotation = NumberRange.new(260)
  103. PE1.Speed = NumberRange.new(0)
  104. PE1.RotSpeed = NumberRange.new(100)
  105. ---------------------------------------------
  106.  
  107. local PE1 = Instance.new("ParticleEmitter",larm)
  108. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  109. PE1.LightEmission = NumberSequence.new(0.2)
  110. PE1.Size = NumberSequence.new(1.2)
  111. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  112. PE1.Lifetime = NumberRange.new(.5)
  113. PE1.Rate = 10
  114. PE1.Transparency = NumberSequence.new(0.2)
  115. PE1.LightEmission = NumberSequence.new(0.2)
  116. PE1.Rotation = NumberRange.new(260)
  117. PE1.Speed = NumberRange.new(0)
  118. PE1.RotSpeed = NumberRange.new(100)
  119. ---------------------------------------------
  120.  
  121. local PE1 = Instance.new("ParticleEmitter",torso)
  122. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  123. PE1.LightEmission = NumberSequence.new(0.2)
  124. PE1.Size = NumberSequence.new(1.2)
  125. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  126. PE1.Lifetime = NumberRange.new(.5)
  127. PE1.Rate = 10
  128. PE1.Transparency = NumberSequence.new(0.2)
  129. PE1.LightEmission = NumberSequence.new(0.2)
  130. PE1.Rotation = NumberRange.new(260)
  131. PE1.Speed = NumberRange.new(0)
  132. PE1.RotSpeed = NumberRange.new(100)
  133. ---------------------------------------------
  134.  
  135. local PE1 = Instance.new("ParticleEmitter",head)
  136. PE1.Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 1, 0))
  137. PE1.LightEmission = NumberSequence.new(0.2)
  138. PE1.Size = NumberSequence.new(1.2)
  139. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  140. PE1.Lifetime = NumberRange.new(.5)
  141. PE1.Rate = 10
  142. PE1.Transparency = NumberSequence.new(0.2)
  143. PE1.LightEmission = NumberSequence.new(0.2)
  144. PE1.Rotation = NumberRange.new(260)
  145. PE1.Speed = NumberRange.new(0)
  146. PE1.RotSpeed = NumberRange.new(100)
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155. --
  156. local Player = game:GetService('Players').LocalPlayer
  157. repeat wait() until Player.Character
  158. local Character = Player.Character
  159.  
  160. --All The Settings for Trails in this Script
  161. TrailSettings = {
  162. Lifetime = 0.7,
  163. Texture = 'rbxassetid://31270182',
  164. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  165. Color1 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Lime green').Color),
  166. Color2 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Lime green').Color),
  167. AllBody = true,
  168. UpperBodyOnly = false,
  169. LowerBodyOnly = false,
  170. Accessories = false,
  171. Extras = true,
  172. R15 = false, --Change to true if you're using R15
  173. R15Parts = {
  174. 'UpperTorso',
  175. 'LowerTorso',
  176. }
  177. }
  178.  
  179. local Trail; --Making other Trails uses this in this Script
  180.  
  181. --UpperBody Function
  182. UpperBody = function()
  183. if TrailSettings.R15 == false then
  184. A0 = Instance.new('Attachment',Character.Torso)
  185. A1 = Instance.new('Attachment',Character.Head)
  186. A2 = Instance.new('Attachment',Character['Right Arm'])
  187. A3 = Instance.new('Attachment',Character['Left Arm'])
  188. Trail = Instance.new('Trail',Character)
  189. Trail.Attachment0 = A0
  190. Trail.Attachment1 = A1
  191. Trail.Texture = TrailSettings.Texture
  192. Trail.Color = TrailSettings.Color1
  193. Trail.Lifetime = TrailSettings.Lifetime
  194. local Trail2 = Trail:Clone()
  195. Trail2.Parent = Character
  196. Trail2.Attachment1 = A2
  197. local Trail3 = Trail:Clone()
  198. Trail3.Parent = Character
  199. Trail3.Attachment1 = A3
  200. local Trail6 = Trail:Clone()
  201. Trail6.Parent = Character
  202. Trail6.Attachment0 = A1
  203. Trail6.Attachment1 = A2
  204. local Trail7 = Trail:Clone()
  205. Trail7.Parent = Character
  206. Trail7.Attachment0 = A1
  207. Trail7.Attachment1 = A3
  208. else
  209. A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]])
  210. A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]])
  211. A1 = Instance.new('Attachment',Character.Head)
  212. A2 = Instance.new('Attachment',Character['RightUpperArm'])
  213. A2R = Instance.new('Attachment',Character['RightLowerArm'])
  214. A3 = Instance.new('Attachment',Character['LeftUpperArm'])
  215. A3R = Instance.new('Attachment',Character['LeftLowerArm'])
  216. Trail = Instance.new('Trail',Character)
  217. Trail.Attachment0 = A0
  218. Trail.Attachment1 = A1
  219. Trail.Texture = TrailSettings.Texture
  220. Trail.Color = TrailSettings.Color1
  221. Trail.Lifetime = TrailSettings.Lifetime
  222. local Trail2 = Trail:Clone()
  223. Trail2.Parent = Character
  224. Trail2.Attachment1 = A2
  225. local Trail3 = Trail:Clone()
  226. Trail3.Parent = Character
  227. Trail3.Attachment1 = A3
  228. local Trail6 = Trail:Clone()
  229. Trail6.Parent = Character
  230. Trail6.Attachment0 = A1
  231. Trail6.Attachment1 = A2
  232. local Trail7 = Trail:Clone()
  233. Trail7.Parent = Character
  234. Trail7.Attachment0 = A1
  235. Trail7.Attachment1 = A3
  236. --R15 Trails
  237. local Trail1R = Trail:Clone()
  238. Trail1R.Parent = Character
  239. Trail1R.Attachment1 = A2R
  240. local Trail2R = Trail:Clone()
  241. Trail2R.Parent = Character
  242. Trail2R.Attachment1 = A3R
  243. local Trail6R = Trail:Clone()
  244. Trail6.Parent = Character
  245. Trail6.Attachment0 = A1
  246. Trail6.Attachment1 = A2R
  247. local Trail7R = Trail:Clone()
  248. Trail7.Parent = Character
  249. Trail7.Attachment0 = A1
  250. Trail7.Attachment1 = A3R
  251. end
  252. end
  253.  
  254. --Lower Body Function
  255. LowerBody = function()
  256. if TrailSettings.R15 == false then
  257. A4 = Instance.new('Attachment',Character['Right Leg'])
  258. A5 = Instance.new('Attachment',Character['Left Leg'])
  259. local Trail4 = Trail:Clone()
  260. Trail4.Parent = Character
  261. Trail4.Attachment1 = A4
  262. local Trail5 = Trail:Clone()
  263. Trail5.Parent = Character
  264. Trail5.Attachment1 = A5
  265. local Trail8 = Trail:Clone()
  266. Trail8.Parent = Character
  267. Trail8.Attachment0 = A2
  268. Trail8.Attachment1 = A4
  269. Trail8.Color = TrailSettings.Color2
  270. local Trail9 = Trail:Clone()
  271. Trail9.Parent = Character
  272. Trail9.Attachment0 = A3
  273. Trail9.Attachment1 = A5
  274. Trail9.Color = TrailSettings.Color2
  275. local FT = Trail:Clone()
  276. FT.Parent = Character
  277. FT.Attachment0 = A4
  278. FT.Attachment1 = A5
  279. FT.Color = TrailSettings.Color2
  280. else
  281. A4 = Instance.new('Attachment',Character['RightLowerLeg'])
  282. A4R = Instance.new('Attachment',Character['RightUpperLeg'])
  283. A5 = Instance.new('Attachment',Character['LeftLowerLeg'])
  284. A5R = Instance.new('Attachment',Character['LeftUpperLeg'])
  285. local Trail4 = Trail:Clone()
  286. Trail4.Parent = Character
  287. Trail4.Attachment1 = A4
  288. local Trail5 = Trail:Clone()
  289. Trail5.Parent = Character
  290. Trail5.Attachment1 = A5
  291. local Trail8 = Trail:Clone()
  292. Trail8.Parent = Character
  293. Trail8.Attachment0 = A2
  294. Trail8.Attachment1 = A4
  295. Trail8.Color = TrailSettings.Color2
  296. local Trail9 = Trail:Clone()
  297. Trail9.Parent = Character
  298. Trail9.Attachment0 = A3
  299. Trail9.Attachment1 = A5
  300. Trail9.Color = TrailSettings.Color2
  301. local FT = Trail:Clone()
  302. FT.Parent = Character
  303. FT.Attachment0 = A4
  304. FT.Attachment1 = A5
  305. FT.Color = TrailSettings.Color2
  306. --R15 Trails
  307. local Trail3R = Trail:Clone()
  308. Trail3R.Parent = Character
  309. Trail3R.Attachment1 = A4R
  310. local Trail4R = Trail:Clone()
  311. Trail4R.Parent = Character
  312. Trail4R.Attachment1 = A5R
  313. local Trail8 = Trail:Clone()
  314. Trail8.Parent = Character
  315. Trail8.Attachment0 = A2R
  316. Trail8.Attachment1 = A4R
  317. Trail8.Color = TrailSettings.Color2
  318. local Trail9 = Trail:Clone()
  319. Trail9.Parent = Character
  320. Trail9.Attachment0 = A3R
  321. Trail9.Attachment1 = A5R
  322. Trail9.Color = TrailSettings.Color2
  323. local FT2R = Trail:Clone()
  324. FT2R.Parent = Character
  325. FT2R.Attachment0 = A4R
  326. FT2R.Attachment1 = A5R
  327. FT2R.Color = TrailSettings.Color2
  328. end
  329. end
  330.  
  331. --All Body Function calling Both Functions
  332. AllBody = function()
  333. UpperBody()
  334. LowerBody()
  335. end
  336.  
  337. --Checking to make sure that Only some Variables are Selected else do All Body
  338. if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  339. TrailSettings.UpperBodyOnly = false
  340. TrailSettings.LowerBodyOnly = false
  341. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
  342. TrailSettings.UpperBodyOnly = false
  343. TrailSettings.LowerBodyOnly = false
  344. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
  345. TrailSettings.UpperBodyOnly = false
  346. TrailSettings.LowerBodyOnly = false
  347. elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  348. TrailSettings.AllBody = true
  349. TrailSettings.UpperBodyOnly = false
  350. TrailSettings.LowerBodyOnly = false
  351. end
  352.  
  353. --Call Trail Functions
  354. if TrailSettings.UpperBodyOnly == true then
  355. UpperBody()
  356. print('Called Upper Body Trail')
  357. elseif TrailSettings.LowerBodyOnly == true then
  358. LowerBody()
  359. print('Called Lower Body Trail')
  360. elseif TrailSettings.AllBody == true then
  361. AllBody()
  362. print('Called Full Body Trail')
  363. end
  364.  
  365. --Trails for Accessories
  366. if TrailSettings.Accessories == true then
  367. for Index,Item in pairs(Character:GetChildren()) do
  368. if Item:IsA'Accessory' then
  369. local AA = Instance.new('Attachment',Item.Handle)
  370. local ATrail = Trail:Clone()
  371. ATrail.Parent = Character
  372. ATrail.Attachment1 = AA
  373. end
  374. end
  375. end
  376.  
  377. --Extras
  378. if TrailSettings.Extras == true then
  379. --Making an Invisible Platform Part
  380. local a = Instance.new('Part',Character)
  381. a.CanCollide = false
  382. a.Size = Vector3.new(2,.2,2)
  383. a.Transparency = 1
  384.  
  385. --Constantly putting it under your feet
  386. if TrailSettings.R15 == false then
  387. spawn(function()
  388. game:GetService('RunService').RenderStepped:connect(function()
  389. a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0)
  390. end)
  391. end)
  392. else
  393. spawn(function()
  394. game:GetService('RunService').RenderStepped:connect(function()
  395. a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0)
  396. end)
  397. end)
  398. end
  399.  
  400. --Make a Trail from both feet to the Platform
  401. spawn(function()
  402. repeat wait() until Trail
  403. local AB = Instance.new('Attachment',a)
  404. local ABT = Trail:Clone()
  405. ABT.Parent = Character
  406. ABT.Attachment0 = A4
  407. ABT.Attachment1 = AB
  408. ABT.Color = TrailSettings.Color2
  409. local ABT2 = Trail:Clone()
  410. ABT2.Parent = Character
  411. ABT2.Attachment0 = A5
  412. ABT2.Attachment1 = AB
  413. ABT2.Color = TrailSettings.Color2
  414. end)
  415. end
  416. --
  417.  
  418. --//====================================================\\--
  419. --|| CREATED BY SHACKLUSTER
  420. --\\====================================================//--
  421.  
  422.  
  423.  
  424. wait(0.2)
  425.  
  426.  
  427.  
  428. Player = game:GetService("Players").LocalPlayer
  429. PlayerGui = Player.PlayerGui
  430. Cam = workspace.CurrentCamera
  431. Backpack = Player.Backpack
  432. Character = Player.Character
  433. Humanoid = Character.Humanoid
  434. Mouse = Player:GetMouse()
  435. RootPart = Character["HumanoidRootPart"]
  436. Torso = Character["Torso"]
  437. Head = Character["Head"]
  438. RightArm = Character["Right Arm"]
  439. LeftArm = Character["Left Arm"]
  440. RightLeg = Character["Right Leg"]
  441. LeftLeg = Character["Left Leg"]
  442. RootJoint = RootPart["RootJoint"]
  443. Neck = Torso["Neck"]
  444. RightShoulder = Torso["Right Shoulder"]
  445. LeftShoulder = Torso["Left Shoulder"]
  446. RightHip = Torso["Right Hip"]
  447. LeftHip = Torso["Left Hip"]
  448. local sick = Instance.new("Sound",Character)
  449. sick.SoundId = "rbxassetid://450783524"
  450. sick.Looped = true
  451. sick.Pitch = 1
  452. sick.Volume = 50
  453. sick:Play()
  454.  
  455. IT = Instance.new
  456. CF = CFrame.new
  457. VT = Vector3.new
  458. RAD = math.rad
  459. C3 = Color3.new
  460. UD2 = UDim2.new
  461. BRICKC = BrickColor.new
  462. ANGLES = CFrame.Angles
  463. EULER = CFrame.fromEulerAnglesXYZ
  464. COS = math.cos
  465. ACOS = math.acos
  466. SIN = math.sin
  467. ASIN = math.asin
  468. ABS = math.abs
  469. MRANDOM = math.random
  470. FLOOR = math.floor
  471.  
  472. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  473. local NEWMESH = IT(MESH)
  474. if MESH == "SpecialMesh" then
  475. NEWMESH.MeshType = MESHTYPE
  476. if MESHID ~= "nil" and MESHID ~= "" then
  477. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  478. end
  479. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  480. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  481. end
  482. end
  483. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  484. NEWMESH.Scale = SCALE
  485. NEWMESH.Parent = PARENT
  486. return NEWMESH
  487. end
  488.  
  489. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  490. local NEWPART = IT("Part")
  491. NEWPART.formFactor = FORMFACTOR
  492. NEWPART.Reflectance = REFLECTANCE
  493. NEWPART.Transparency = TRANSPARENCY
  494. NEWPART.CanCollide = false
  495. NEWPART.Locked = true
  496. NEWPART.Anchored = true
  497. if ANCHOR == false then
  498. NEWPART.Anchored = false
  499. end
  500. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  501. NEWPART.Name = NAME
  502. NEWPART.Size = SIZE
  503. NEWPART.Position = Torso.Position
  504. NEWPART.Material = MATERIAL
  505. NEWPART:BreakJoints()
  506. NEWPART.Parent = PARENT
  507. return NEWPART
  508. end
  509.  
  510. --//=================================\\
  511. --|| CUSTOMIZATION
  512. --\\=================================//
  513.  
  514. Player_Size = 1 --Size of the player.
  515. Animation_Speed = 3
  516. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  517.  
  518. local Speed = 16
  519. local Effects2 = {}
  520.  
  521. --//=================================\\
  522. --|| END OF CUSTOMIZATION
  523. --\\=================================//
  524.  
  525. local function weldBetween(a, b)
  526. local weldd = Instance.new("ManualWeld")
  527. weldd.Part0 = a
  528. weldd.Part1 = b
  529. weldd.C0 = CFrame.new()
  530. weldd.C1 = b.CFrame:inverse() * a.CFrame
  531. weldd.Parent = a
  532. return weldd
  533. end
  534.  
  535. --//=================================\\
  536. --|| USEFUL VALUES
  537. --\\=================================//
  538.  
  539. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  540. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  541. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  542. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  543. local CHANGEDEFENSE = 0
  544. local CHANGEDAMAGE = 0
  545. local CHANGEMOVEMENT = 0
  546. local ANIM = "Idle"
  547. local ATTACK = false
  548. local EQUIPPED = false
  549. local HOLD = false
  550. local COMBO = 1
  551. local Rooted = false
  552. local SINE = 0
  553. local KEYHOLD = false
  554. local CHANGE = 2 / Animation_Speed
  555. local WALKINGANIM = false
  556. local WALK = 0
  557. local VALUE1 = false
  558. local VALUE2 = false
  559. local ROBLOXIDLEANIMATION = IT("Animation")
  560. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  561. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  562. --ROBLOXIDLEANIMATION.Parent = Humanoid
  563. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  564. WEAPONGUI.Name = "Weapon GUI"
  565. local Weapon = IT("Model")
  566. Weapon.Name = "Adds"
  567. local HITFLOOR = nil
  568. local Effects = IT("Folder", Weapon)
  569. Effects.Name = "Effects"
  570. local ANIMATOR = Humanoid.Animator
  571. local ANIMATE = Character.Animate
  572. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  573. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  574. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  575. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  576. local UNANCHOR = true
  577.  
  578. local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255)
  579.  
  580. --//=================================\\
  581. --\\=================================//
  582.  
  583.  
  584. --//=================================\\
  585. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  586. --\\=================================//
  587.  
  588. ArtificialHB = Instance.new("BindableEvent", script)
  589. ArtificialHB.Name = "ArtificialHB"
  590.  
  591. script:WaitForChild("ArtificialHB")
  592.  
  593. frame = Frame_Speed
  594. tf = 0
  595. allowframeloss = false
  596. tossremainder = false
  597. lastframe = tick()
  598. script.ArtificialHB:Fire()
  599.  
  600. game:GetService("RunService").Heartbeat:connect(function(s, p)
  601. tf = tf + s
  602. if tf >= frame then
  603. if allowframeloss then
  604. script.ArtificialHB:Fire()
  605. lastframe = tick()
  606. else
  607. for i = 1, math.floor(tf / frame) do
  608. script.ArtificialHB:Fire()
  609. end
  610. lastframe = tick()
  611. end
  612. if tossremainder then
  613. tf = 0
  614. else
  615. tf = tf - frame * math.floor(tf / frame)
  616. end
  617. end
  618. end)
  619.  
  620. --//=================================\\
  621. --\\=================================//
  622.  
  623.  
  624.  
  625.  
  626.  
  627. --//=================================\\
  628. --|| SOME FUNCTIONS
  629. --\\=================================//
  630.  
  631. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  632. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  633. end
  634.  
  635. function PositiveAngle(NUMBER)
  636. if NUMBER >= 0 then
  637. NUMBER = 0
  638. end
  639. return NUMBER
  640. end
  641.  
  642. function NegativeAngle(NUMBER)
  643. if NUMBER <= 0 then
  644. NUMBER = 0
  645. end
  646. return NUMBER
  647. end
  648.  
  649. function Swait(NUMBER)
  650. if NUMBER == 0 or NUMBER == nil then
  651. ArtificialHB.Event:wait()
  652. else
  653. for i = 1, NUMBER do
  654. ArtificialHB.Event:wait()
  655. end
  656. end
  657. end
  658.  
  659. function QuaternionFromCFrame(cf)
  660. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  661. local trace = m00 + m11 + m22
  662. if trace > 0 then
  663. local s = math.sqrt(1 + trace)
  664. local recip = 0.5 / s
  665. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  666. else
  667. local i = 0
  668. if m11 > m00 then
  669. i = 1
  670. end
  671. if m22 > (i == 0 and m00 or m11) then
  672. i = 2
  673. end
  674. if i == 0 then
  675. local s = math.sqrt(m00 - m11 - m22 + 1)
  676. local recip = 0.5 / s
  677. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  678. elseif i == 1 then
  679. local s = math.sqrt(m11 - m22 - m00 + 1)
  680. local recip = 0.5 / s
  681. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  682. elseif i == 2 then
  683. local s = math.sqrt(m22 - m00 - m11 + 1)
  684. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  685. end
  686. end
  687. end
  688.  
  689. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  690. local xs, ys, zs = x + x, y + y, z + z
  691. local wx, wy, wz = w * xs, w * ys, w * zs
  692. local xx = x * xs
  693. local xy = x * ys
  694. local xz = x * zs
  695. local yy = y * ys
  696. local yz = y * zs
  697. local zz = z * zs
  698. 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))
  699. end
  700.  
  701. function QuaternionSlerp(a, b, t)
  702. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  703. local startInterp, finishInterp;
  704. if cosTheta >= 0.0001 then
  705. if (1 - cosTheta) > 0.0001 then
  706. local theta = ACOS(cosTheta)
  707. local invSinTheta = 1 / SIN(theta)
  708. startInterp = SIN((1 - t) * theta) * invSinTheta
  709. finishInterp = SIN(t * theta) * invSinTheta
  710. else
  711. startInterp = 1 - t
  712. finishInterp = t
  713. end
  714. else
  715. if (1 + cosTheta) > 0.0001 then
  716. local theta = ACOS(-cosTheta)
  717. local invSinTheta = 1 / SIN(theta)
  718. startInterp = SIN((t - 1) * theta) * invSinTheta
  719. finishInterp = SIN(t * theta) * invSinTheta
  720. else
  721. startInterp = t - 1
  722. finishInterp = t
  723. end
  724. end
  725. 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
  726. end
  727.  
  728. function Clerp(a, b, t)
  729. local qa = {QuaternionFromCFrame(a)}
  730. local qb = {QuaternionFromCFrame(b)}
  731. local ax, ay, az = a.x, a.y, a.z
  732. local bx, by, bz = b.x, b.y, b.z
  733. local _t = 1 - t
  734. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  735. end
  736.  
  737. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  738. local frame = IT("Frame")
  739. frame.BackgroundTransparency = TRANSPARENCY
  740. frame.BorderSizePixel = BORDERSIZEPIXEL
  741. frame.Position = POSITION
  742. frame.Size = SIZE
  743. frame.BackgroundColor3 = COLOR
  744. frame.BorderColor3 = BORDERCOLOR
  745. frame.Name = NAME
  746. frame.Parent = PARENT
  747. return frame
  748. end
  749.  
  750. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  751. local label = IT("TextLabel")
  752. label.BackgroundTransparency = 1
  753. label.Size = UD2(1, 0, 1, 0)
  754. label.Position = UD2(0, 0, 0, 0)
  755. label.TextColor3 = TEXTCOLOR
  756. label.TextStrokeTransparency = STROKETRANSPARENCY
  757. label.TextTransparency = TRANSPARENCY
  758. label.FontSize = TEXTFONTSIZE
  759. label.Font = TEXTFONT
  760. label.BorderSizePixel = BORDERSIZEPIXEL
  761. label.TextScaled = false
  762. label.Text = TEXT
  763. label.Name = NAME
  764. label.Parent = PARENT
  765. return label
  766. end
  767.  
  768. function NoOutlines(PART)
  769. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  770. end
  771.  
  772.  
  773. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  774. local NEWWELD = IT(TYPE)
  775. NEWWELD.Part0 = PART0
  776. NEWWELD.Part1 = PART1
  777. NEWWELD.C0 = C0
  778. NEWWELD.C1 = C1
  779. NEWWELD.Parent = PARENT
  780. return NEWWELD
  781. end
  782.  
  783. function CreateSound(ID, PARENT, VOLUME, PITCH)
  784. local NEWSOUND = nil
  785. coroutine.resume(coroutine.create(function()
  786. NEWSOUND = IT("Sound", PARENT)
  787. NEWSOUND.Volume = VOLUME
  788. NEWSOUND.Pitch = PITCH
  789. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  790. Swait()
  791. NEWSOUND:play()
  792. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  793. end))
  794. return NEWSOUND
  795. end
  796.  
  797. function CFrameFromTopBack(at, top, back)
  798. local right = top:Cross(back)
  799. 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)
  800. end
  801.  
  802. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  803. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  804. local mesh = IT("SpecialMesh",wave)
  805. mesh.MeshType = "FileMesh"
  806. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  807. mesh.Scale = SIZE
  808. mesh.Offset = VT(0,0,-SIZE.X/8)
  809. wave.CFrame = CFRAME
  810. coroutine.resume(coroutine.create(function(PART)
  811. for i = 1, WAIT do
  812. Swait()
  813. mesh.Scale = mesh.Scale + GROW
  814. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  815. if DOESROT == true then
  816. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  817. end
  818. wave.Transparency = wave.Transparency + (0.5/WAIT)
  819. if wave.Transparency > 0.99 then
  820. wave:remove()
  821. end
  822. end
  823. end))
  824. end
  825.  
  826. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  827. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  828. local mesh = IT("SpecialMesh",wave)
  829. mesh.MeshType = "FileMesh"
  830. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  831. mesh.Scale = SIZE
  832. --mesh.Offset = VT(0,0,-SIZE.X/8)
  833. wave.CFrame = CFRAME
  834. coroutine.resume(coroutine.create(function(PART)
  835. for i = 1, WAIT do
  836. Swait()
  837. mesh.Scale = mesh.Scale + GROW
  838. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  839. if DOESROT == true then
  840. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  841. end
  842. wave.Transparency = wave.Transparency + (0.5/WAIT)
  843. if wave.Transparency > 0.99 then
  844. wave:remove()
  845. end
  846. end
  847. end))
  848. end
  849.  
  850. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  851. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  852. local mesh = IT("SpecialMesh",wave)
  853. mesh.MeshType = "FileMesh"
  854. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  855. mesh.Scale = SIZE
  856. wave.CFrame = CFRAME
  857. coroutine.resume(coroutine.create(function(PART)
  858. for i = 1, WAIT do
  859. Swait()
  860. mesh.Scale = mesh.Scale + GROW
  861. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  862. if DOESROT == true then
  863. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  864. end
  865. wave.Transparency = wave.Transparency + (0.5/WAIT)
  866. if wave.Transparency > 0.99 then
  867. wave:remove()
  868. end
  869. end
  870. end))
  871. end
  872.  
  873.  
  874. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  875. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  876. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  877. wave.CFrame = CFRAME
  878. coroutine.resume(coroutine.create(function(PART)
  879. for i = 1, WAIT do
  880. Swait()
  881. mesh.Scale = mesh.Scale * GROW
  882. wave.Transparency = wave.Transparency + (0.5/WAIT)
  883. if wave.Transparency > 0.99 then
  884. wave:remove()
  885. end
  886. end
  887. end))
  888. end
  889.  
  890. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  891. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  892. local mesh = IT("SpecialMesh",wave)
  893. mesh.MeshType = "Sphere"
  894. mesh.Scale = SIZE
  895. mesh.Offset = VT(0,0,0)
  896. wave.CFrame = CFRAME
  897. coroutine.resume(coroutine.create(function(PART)
  898. for i = 1, WAIT do
  899. Swait()
  900. mesh.Scale = mesh.Scale + GROW
  901. wave.Transparency = wave.Transparency + (1/WAIT)
  902. if wave.Transparency > 0.99 then
  903. wave:remove()
  904. end
  905. end
  906. end))
  907. end
  908.  
  909. function MakeForm(PART,TYPE)
  910. if TYPE == "Cyl" then
  911. local MSH = IT("CylinderMesh",PART)
  912. elseif TYPE == "Ball" then
  913. local MSH = IT("SpecialMesh",PART)
  914. MSH.MeshType = "Sphere"
  915. elseif TYPE == "Wedge" then
  916. local MSH = IT("SpecialMesh",PART)
  917. MSH.MeshType = "Wedge"
  918. end
  919. end
  920.  
  921. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  922. if FLOOR ~= nil then
  923. coroutine.resume(coroutine.create(function()
  924. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  925. PART.CFrame = CF(POSITION)
  926. for i = 1, 45 do
  927. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  928. RingPiece.Material = FLOOR.Material
  929. RingPiece.Color = FLOOR.Color
  930. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  931. Debris:AddItem(RingPiece,SWAIT/100)
  932. end
  933. PART:remove()
  934. end))
  935. end
  936. end
  937.  
  938. function CheckTableForString(Table, String)
  939. for i, v in pairs(Table) do
  940. if string.find(string.lower(String), string.lower(v)) then
  941. return true
  942. end
  943. end
  944. return false
  945. end
  946.  
  947. function CheckIntangible(Hit)
  948. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  949. if Hit and Hit.Parent then
  950. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  951. return true
  952. end
  953. end
  954. return false
  955. end
  956.  
  957. Debris = game:GetService("Debris")
  958.  
  959. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  960. local Direction = CFrame.new(StartPos, Vec).lookVector
  961. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  962. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  963. if RayHit and CheckIntangible(RayHit) then
  964. if DelayIfHit then
  965. wait()
  966. end
  967. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  968. end
  969. return RayHit, RayPos, RayNormal
  970. end
  971.  
  972. function turnto(position)
  973. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  974. end
  975.  
  976. --//=================================\\
  977. --|| WEAPON CREATION
  978. --\\=================================//
  979.  
  980. local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "White", "Neon Gauntlet Part", VT(1.01*0.1,1.4*0.1,1.01*0.1),false)
  981. local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * 0.1, -0.25 * 0.1, 0 * 0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  982.  
  983.  
  984. for _, c in pairs(Weapon:GetChildren()) do
  985. if c.ClassName == "Part" then
  986. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  987. end
  988. end
  989.  
  990. Weapon.Parent = Character
  991.  
  992. Humanoid.Died:connect(function()
  993. ATTACK = true
  994. end)
  995.  
  996. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  997. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  998. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  999. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1000. local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
  1001.  
  1002. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] SMASH!", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1")
  1003. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] DETROIT SMASH!", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2")
  1004. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] TELEPORT!", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3")
  1005. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] TEAXS SMASH!", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4")
  1006. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[P] ONE FOR ALL FULL COWL!!!!!", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 7")
  1007.  
  1008. --//=================================\\
  1009. --|| DAMAGE FUNCTIONS
  1010. --\\=================================//
  1011.  
  1012. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1013. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1014. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1015. local BODYGYRO = IT("BodyGyro", STATPART)
  1016. local BODYPOSITION = IT("BodyPosition", STATPART)
  1017. BODYPOSITION.P = 2000
  1018. BODYPOSITION.D = 100
  1019. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1020. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1021. game:GetService("Debris"):AddItem(STATPART ,5)
  1022. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1023. BILLBOARDGUI.Adornee = STATPART
  1024. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1025. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1026. BILLBOARDGUI.AlwaysOnTop = false
  1027. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1028. TEXTLABEL.BackgroundTransparency = 1
  1029. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1030. TEXTLABEL.Text = TEXT
  1031. TEXTLABEL.Font = "SciFi"
  1032. TEXTLABEL.FontSize="Size42"
  1033. TEXTLABEL.TextColor3 = COLOR
  1034. TEXTLABEL.TextStrokeTransparency = 1
  1035. TEXTLABEL.TextScaled = true
  1036. TEXTLABEL.TextWrapped = true
  1037. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1038. if LABELTYPE == "Normal" then
  1039. for i = 1, 30 do
  1040. Swait()
  1041. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  1042. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1043. end
  1044. elseif LABELTYPE == "Debuff" then
  1045. for i = 1, 30 do
  1046. Swait()
  1047. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  1048. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1049. end
  1050. elseif LABELTYPE == "Shock" then
  1051. local ORIGIN = STATPART.Position
  1052. for i = 1, 30 do
  1053. Swait()
  1054. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  1055. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  1056. end
  1057. end
  1058. THEPART.Parent = nil
  1059. end),STATPART, BODYPOSITION, TEXTLABEL)
  1060. end
  1061.  
  1062. --//=================================\\
  1063. --|| DAMAGING
  1064. --\\=================================//
  1065.  
  1066. function killnearest(position,range,maxstrength,direction)
  1067. for i,v in ipairs(workspace:GetChildren()) do
  1068. local body = v:GetChildren()
  1069. for part = 1, #body do
  1070. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1071. if(body[part].Position - position).Magnitude < range then
  1072. if v.ClassName == "Model" then
  1073. --v:BreakJoints()
  1074. end
  1075. local POS = position
  1076. coroutine.resume(coroutine.create(function()
  1077. body[part].Anchored = true
  1078. body[part].Parent = Effects
  1079. body[part].CanCollide = true
  1080. local SIZE = body[part].Size
  1081. body[part].Material = "Neon"
  1082. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  1083. for i = 1, 75 do
  1084. Swait()
  1085. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1086. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1087. end
  1088. coroutine.resume(coroutine.create(function()
  1089. while true do
  1090. Swait()
  1091. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1092. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1093. end
  1094. end))
  1095. body[part].Anchored = false
  1096. body[part].Velocity = direction.lookVector*maxstrength
  1097. end))
  1098. end
  1099. end
  1100. end
  1101. if v.ClassName == "Part" then
  1102. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1103. local POS = position
  1104. coroutine.resume(coroutine.create(function()
  1105. v.Anchored = true
  1106. v.Parent = Effects
  1107. local SIZE = v.Size
  1108. v.Material = "Neon"
  1109. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  1110. for i = 1, 75 do
  1111. Swait()
  1112. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1113. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1114. end
  1115. coroutine.resume(coroutine.create(function()
  1116. while true do
  1117. Swait()
  1118. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1119. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1120. end
  1121. end))
  1122. v.Anchored = false
  1123. v.Velocity = direction.lookVector*maxstrength
  1124. end))
  1125. end
  1126. end
  1127. end
  1128. end
  1129.  
  1130. --//=================================\\
  1131. --|| ATTACK FUNCTIONS AND STUFF
  1132. --\\=================================//
  1133.  
  1134. function AttackTemplate()
  1135. ATTACK = true
  1136. Rooted = false
  1137. for i=0, 1, 0.1 / Animation_Speed do
  1138. Swait()
  1139. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1140. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1141. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1142. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1143. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1144. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1145. end
  1146. ATTACK = false
  1147. Rooted = false
  1148. end
  1149.  
  1150. function GoldenPunch()
  1151. ATTACK = true
  1152. Rooted = false
  1153. local SPEED = Speed
  1154. Speed = 8
  1155. CreateSound("169445572", RightArm, 10, 1.1)
  1156. for i=0, 4, 0.1 / Animation_Speed do
  1157. Swait()
  1158. turnto(Mouse.Hit.p)
  1159. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"White",VT(-1/15,-1/15,-1/15))
  1160. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"White",VT(-2/15,-2/15,-2/15))
  1161. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  1162. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
  1163. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1164. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1165. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1166. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1167. end
  1168. for i=0, 0.15, 0.1 / Animation_Speed do
  1169. Swait()
  1170. turnto(Mouse.Hit.p)
  1171. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  1172. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  1173. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1174. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1175. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1176. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1177. end
  1178. local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "White", "Punch", VT(50,50,50),false)
  1179. PART.CFrame = RootPart.CFrame * CF(0,0,-25)
  1180. PART.Shape = "Ball"
  1181. local bv = Instance.new("BodyVelocity")
  1182. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1183. bv.velocity = RootPart.CFrame.lookVector*600
  1184. bv.Parent = PART
  1185. bv.Name = "PROJECTILEVELOCITY"
  1186. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"White",VT(2.5,0.2,2.5))
  1187. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"White",VT(3,0.2,3))
  1188. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"White",VT(2,0.6,2))
  1189. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"White",VT(2.2,0.6,2.2))
  1190. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1191. coroutine.resume(coroutine.create(function()
  1192. for i = 1, 10 do
  1193. Swait()
  1194. PART.Transparency = PART.Transparency + 0.2/10
  1195. PART.Size = PART.Size + VT(5,5,5)
  1196. killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
  1197. end
  1198. PART:Destroy()
  1199. end))
  1200. for i=0, 1, 0.1 / Animation_Speed do
  1201. Swait()
  1202. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  1203. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
  1204. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1205. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1206. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
  1207. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
  1208. end
  1209. Speed = SPEED
  1210. ATTACK = false
  1211. Rooted = false
  1212. end
  1213.  
  1214. function GoldenGrasp()
  1215. ATTACK = true
  1216. Rooted = false
  1217. local HASGRABBED = false
  1218. local WELD = nil
  1219. local TORS = nil
  1220. local hitting = FIST.Touched:connect(function(hit)
  1221. if hit.Parent:FindFirstChild("Humanoid") then
  1222. if hit.Parent.Humanoid.Health ~= 0 then
  1223. UNANCHOR = false
  1224. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1225. TORS.Anchored = true
  1226. TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0))
  1227. WELD = weldBetween(RightArm,TORS)
  1228. HASGRABBED = true
  1229. Rooted = true
  1230. end
  1231. end
  1232. end)
  1233. for i=0, 1, 0.1 / Animation_Speed do
  1234. Swait()
  1235. if HASGRABBED == true then
  1236. break
  1237. end
  1238. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed)
  1239. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed)
  1240. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1241. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1242. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1243. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1244. end
  1245. hitting:disconnect()
  1246. if HASGRABBED == true then
  1247. TORS.Anchored = false
  1248. RootPart.Anchored = true
  1249. for i=0, 2, 0.1 / Animation_Speed do
  1250. Swait()
  1251. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1252. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1253. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1254. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1255. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1256. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1257. end
  1258. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.5,0.3,0.5))
  1259. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"White",VT(0.6,0.3,0.6))
  1260. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "White", "Sound", VT(0,0,0))
  1261. SOUNDPART.CFrame = RootPart.CFrame
  1262. Debris:AddItem(SOUNDPART,5)
  1263. CreateSound("1295446488", SOUNDPART, 2, 1)
  1264. for i = 1, 15 do
  1265. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"White", 1 + MRANDOM(1,30)/15)
  1266. end
  1267. for i=0, 2, 0.1 / Animation_Speed do
  1268. Swait()
  1269. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1270. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1271. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1272. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1273. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1274. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1275. end
  1276. for i=0, 0.25, 0.1 / Animation_Speed do
  1277. Swait()
  1278. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed)
  1279. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1280. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1281. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1282. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1283. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1284. end
  1285. if HITFLOOR ~= nil then
  1286. CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85)
  1287. end
  1288. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1289. WELD:remove()
  1290. for i = 1, 25 do
  1291. Swait()
  1292. killnearest(RootPart.Position,45,100,Torso.CFrame)
  1293. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"White",VT(0.3,3,0.3))
  1294. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(1,0.4,1))
  1295. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"White",VT(2.3,0.3,2.3))
  1296. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"White", 1 + MRANDOM(1,30)/5)
  1297. Slice(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"White", 1 + MRANDOM(1,30)/15)
  1298. end
  1299. end
  1300. UNANCHOR = true
  1301. ATTACK = false
  1302. Rooted = false
  1303. end
  1304.  
  1305. function Mach20()
  1306. local ORIGIN = RootPart.Position
  1307. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.2,3,0.4))
  1308. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.2,3.1,0.6))
  1309. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0))
  1310. SOUNDPART.CFrame = RootPart.CFrame
  1311. Debris:AddItem(SOUNDPART,5)
  1312. CreateSound("1295446488", SOUNDPART, 2, 1)
  1313. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z))
  1314. Swait()
  1315. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.2,3,0.4))
  1316. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"White",VT(0.2,3.1,0.6))
  1317. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "White", "Sound", VT(0,0,0))
  1318. SOUNDPART.CFrame = RootPart.CFrame
  1319. Debris:AddItem(SOUNDPART,5)
  1320. CreateSound("1295446488", SOUNDPART, 2, 1)
  1321. if MRANDOM(1,8) == 1 then
  1322. ATTACK = true
  1323. Rooted = true
  1324. local FRUITSTABLE = {
  1325. {MeshId = "0", TextureId = "0", Color = "White"},
  1326. {MeshId = "0", TextureId = "0", Color = "White"},
  1327. {MeshId = "0", TextureId = "0", Color = "White"}
  1328. }
  1329. local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)]
  1330. local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false)
  1331. CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0))
  1332. FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0)
  1333. weldBetween(RightArm,FRUITMODEL)
  1334. for i=0, 4, 0.1 / Animation_Speed do
  1335. Swait()
  1336. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1337. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1338. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1339. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1340. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1341. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1342. end
  1343. CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10)
  1344. FRUITMODEL:remove()
  1345. for i = 1, 15 do
  1346. Slice(0.1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15)
  1347. end
  1348. for i=0, 0.5, 0.1 / Animation_Speed do
  1349. Swait()
  1350. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1351. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1352. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1353. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1354. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1355. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1356. end
  1357. ATTACK = false
  1358. Rooted = false
  1359. end
  1360. end
  1361.  
  1362. function ImplosionCollision()
  1363. ATTACK = true
  1364. Rooted = true
  1365. CreateSound("169445572", RightArm, 10, 0.8)
  1366. for i=0, 8, 0.1 / Animation_Speed do
  1367. Swait()
  1368. turnto(Mouse.Hit.p)
  1369. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"White",VT(0.2,0,0.2))
  1370. MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"White",VT(0.001,0.001,1),0)
  1371. MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"White",VT(0.001,0.001,2),0)
  1372. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"White",VT(-1/15,-1/15,-1/15)) RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  1373. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
  1374. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1375. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1376. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1377. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1378. end
  1379. for i=0, 0.15, 0.1 / Animation_Speed do
  1380. Swait()
  1381. turnto(Mouse.Hit.p)
  1382. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  1383. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  1384. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1385. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1386. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1387. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1388. end
  1389. MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"White",VT(-0.04,-0.04,-0.04))
  1390. MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"White",VT(-0.035,-0.035,-0.035))
  1391. coroutine.resume(coroutine.create(function()
  1392. Swait(100)
  1393. for i = 1, 5 do
  1394. MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"White",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i))))
  1395. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"White",VT(4.5*i,0.2,4.5*i))
  1396. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"White",VT(5*i,0.2,5*i))
  1397. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"White",VT(4*i,0.6,4*i))
  1398. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"White",VT(5.2*i,0.6,5.2*i))
  1399. end
  1400. killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame)
  1401. for i = 1, 5 do
  1402. CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
  1403. CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
  1404. end
  1405. coroutine.resume(coroutine.create(function()
  1406. for i = 1, 50 do
  1407. Swait()
  1408. for i = 1, 1 do
  1409. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"White", 1 + MRANDOM(1,30)/5)
  1410. end
  1411. end
  1412. end))
  1413. end))
  1414. for i=0, 4, 0.1 / Animation_Speed do
  1415. Swait()
  1416. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  1417. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
  1418. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1419. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1420. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
  1421. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
  1422. end
  1423. ATTACK = false
  1424. Rooted = false
  1425. end
  1426.  
  1427. --//=================================\\
  1428. --|| ASSIGN THINGS TO KEYS
  1429. --\\=================================//
  1430.  
  1431. function MouseDown(Mouse)
  1432. if ATTACK == false then
  1433. end
  1434. end
  1435.  
  1436. function MouseUp(Mouse)
  1437. HOLD = false
  1438. end
  1439.  
  1440. function KeyDown(Key)
  1441. KEYHOLD = true
  1442. if Key == "z" and ATTACK == false then
  1443. GoldenPunch()
  1444. end
  1445.  
  1446. if Key == "b" and ATTACK == false then
  1447. GoldenGrasp()
  1448. end
  1449.  
  1450. if Key == "c" and ATTACK == false then
  1451. Mach20()
  1452. end
  1453.  
  1454. if Key == "x" and ATTACK == false then
  1455. ImplosionCollision()
  1456. end
  1457.  
  1458. if Key == "p" and ATTACK == false then
  1459. if Speed == 16 then
  1460. Speed = 150
  1461. elseif Speed == 150 then
  1462. Speed = 16
  1463. end
  1464. end
  1465. end
  1466.  
  1467. function KeyUp(Key)
  1468. KEYHOLD = false
  1469. end
  1470.  
  1471. Mouse.Button1Down:connect(function(NEWKEY)
  1472. MouseDown(NEWKEY)
  1473. end)
  1474. Mouse.Button1Up:connect(function(NEWKEY)
  1475. MouseUp(NEWKEY)
  1476. end)
  1477. Mouse.KeyDown:connect(function(NEWKEY)
  1478. KeyDown(NEWKEY)
  1479. end)
  1480. Mouse.KeyUp:connect(function(NEWKEY)
  1481. KeyUp(NEWKEY)
  1482. end)
  1483.  
  1484. --//=================================\\
  1485. --\\=================================//
  1486.  
  1487.  
  1488. function unanchor()
  1489. if UNANCHOR == true then
  1490. g = Character:GetChildren()
  1491. for i = 1, #g do
  1492. if g[i].ClassName == "Part" then
  1493. g[i].Anchored = false
  1494. end
  1495. end
  1496. end
  1497. end
  1498.  
  1499.  
  1500. --//=================================\\
  1501. --|| WRAP THE WHOLE SCRIPT UP
  1502. --\\=================================//
  1503.  
  1504. Humanoid.Changed:connect(function(Jump)
  1505. if Jump == "Jump" and (Disable_Jump == true) then
  1506. Humanoid.Jump = false
  1507. end
  1508. end)
  1509.  
  1510. while true do
  1511. Swait()
  1512. ANIMATE.Parent = nil
  1513. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1514. IDLEANIMATION:Play()
  1515. SINE = SINE + CHANGE
  1516. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1517. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1518. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1519. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1520. local WALKSPEEDVALUE = 0
  1521. if Speed < 35 then
  1522. WALKSPEEDVALUE = 6
  1523. else
  1524. WALKSPEEDVALUE = 3
  1525. end
  1526. if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then
  1527. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (1) / Animation_Speed)
  1528. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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)
  1529. if Speed < 35 then
  1530. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1531. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1532. else
  1533. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1534. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1535. end
  1536. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
  1537. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1538. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1539. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1540. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1541. end
  1542. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1543. ANIM = "Jump"
  1544. if ATTACK == false then
  1545. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1546. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1547. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1548. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1549. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1550. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1551. end
  1552. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1553. ANIM = "Fall"
  1554. if ATTACK == false then
  1555. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1556. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1557. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1558. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1559. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1560. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1561. end
  1562. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1563. ANIM = "Idle"
  1564. if ATTACK == false then
  1565. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1566. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1567. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1568. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1569. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1570. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1571. end
  1572. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then
  1573. ANIM = "Walk"
  1574. WALK = WALK + 1 / Animation_Speed
  1575. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1576. WALK = 0
  1577. if WALKINGANIM == true then
  1578. WALKINGANIM = false
  1579. elseif WALKINGANIM == false then
  1580. WALKINGANIM = true
  1581. end
  1582. end
  1583. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1584. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1585. if ATTACK == false then
  1586. if Speed < 35 then
  1587. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1588. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1589. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1590. 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)
  1591. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1592. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1593. else
  1594. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1595. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1596. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1597. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1598. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1599. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1600. end
  1601. end
  1602. end
  1603. unanchor()
  1604. Humanoid.MaxHealth = "inf"
  1605. Humanoid.Health = "inf"
  1606. if Rooted == false then
  1607. Disable_Jump = false
  1608. Humanoid.WalkSpeed = Speed
  1609. elseif Rooted == true then
  1610. Disable_Jump = true
  1611. Humanoid.WalkSpeed = 0
  1612. end
  1613. local MATHS = {"0","1"}
  1614. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1615. Humanoid.PlatformStand = false
  1616. end
  1617.  
  1618. --//=================================\\
  1619. --\\=================================//
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625. --//====================================================\\--
  1626. --|| END OF SCRIPT
  1627. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement