Advertisement
nikolawater

Untitled

Jun 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.11 KB | None | 0 0
  1. --Script made by Pedrorb03
  2. growingList = {}
  3. degrowingList = {}
  4.  
  5. torso = Instance.new("Part") torso.Size = Vector3.new(0,0,0) torso.CanCollide = false
  6. torso.Anchored = true
  7. local mesh = Instance.new("SpecialMesh",torso) mesh.MeshId = "rbxassetid://1198391230" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.01,0.01,0.01)
  8.  
  9. arm = Instance.new("Part") arm.Size = Vector3.new(0,0,0) arm.CanCollide = false
  10. arm.Anchored = true
  11. local mesh = Instance.new("SpecialMesh",arm) mesh.MeshId = "rbxassetid://1198392540" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.02,0.02,0.02)
  12.  
  13. leg1 = Instance.new("Part") leg1.Size = Vector3.new(0,0,0) leg1.CanCollide = false
  14. leg1.Anchored = true
  15. local mesh = Instance.new("SpecialMesh",leg1) mesh.MeshId = "rbxassetid://1198394446" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.01,0.01,0.01)
  16.  
  17. leg2 = Instance.new("Part") leg2.Size = Vector3.new(0,0,0) leg2.CanCollide = false
  18. leg2.Anchored = true
  19. local mesh = Instance.new("SpecialMesh",leg2) mesh.MeshId = "rbxassetid://1198393506" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.02,0.02,0.02)
  20.  
  21. headd = Instance.new("Part") headd.Size = Vector3.new(1,1,1) headd.CanCollide = false
  22. local mesh = Instance.new("SpecialMesh",headd) mesh.Scale = Vector3.new(1.25,1.25,1.25) mesh.MeshType = Enum.MeshType.Head
  23. headd.BrickColor = BrickColor.new("Pastel brown")
  24.  
  25. game:GetService("RunService").RenderStepped:connect(function()
  26. for _,grow in pairs(growingList) do
  27. local cframe = grow.CFrame
  28. grow.Size = grow.Size+Vector3.new(1,1,1)
  29. grow.Transparency = grow.Transparency+0.04
  30. end
  31. for _,degrow in pairs(degrowingList) do
  32. local cframe = degrow.CFrame
  33. degrow.Size = degrow.Size-Vector3.new(1,1,1)
  34. degrow.Transparency = degrow.Transparency+0.04
  35. end
  36. end)
  37.  
  38.  
  39.  
  40.  
  41. Basesong = Instance.new("Sound")
  42.  
  43. hair = Instance.new("Part",game.Players.LocalPlayer.Character) hair.Size = Vector3.new(1,1,1) hair.CanCollide = false
  44.  
  45. beforesong = Basesong:Clone()
  46. beforesong.Parent = game.Players.LocalPlayer.Character
  47. beforesong.Looped = true
  48. beforesong.Volume = 3
  49. beforesong.SoundId = "rbxassetid://1100971847"
  50. beforesong:Play()
  51.  
  52. if game.Players.LocalPlayer.Character:FindFirstChild("Body Colors") then
  53. game.Players.LocalPlayer.Character["Body Colors"]:remove()
  54. end
  55. if game.Players.LocalPlayer.Character:FindFirstChild("Shirt Graphic") then
  56. game.Players.LocalPlayer.Character["Shirt Graphic"]:remove()
  57. end
  58. if game.Players.LocalPlayer.Character:FindFirstChild("Shirt") then
  59. game.Players.LocalPlayer.Character["Shirt"]:remove()
  60. end
  61. if game.Players.LocalPlayer.Character:FindFirstChild("Pants") then
  62. game.Players.LocalPlayer.Character["Pants"]:remove()
  63. end
  64. for i=1,5 do
  65. wait()
  66. for _,hat in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  67. if hat.ClassName == "Accessory" then
  68. hat:remove()
  69. end
  70. if hat:IsA("BasePart") then
  71. hat.BrickColor = BrickColor.new("Pastel brown")
  72. end
  73. end
  74. end
  75. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  76. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  77.  
  78.  
  79. Basepart = Instance.new("Part")
  80.  
  81.  
  82. Baseparticle = Instance.new("ParticleEmitter")
  83. Basemesh = Instance.new("SpecialMesh")
  84. local mesh = Basemesh:Clone()
  85. mesh.Parent = hair
  86. mesh.MeshId = "rbxassetid://1143041061"
  87. Baseweld = Instance.new("Weld")
  88. local weld = Baseweld:Clone()
  89. weld.Part0 = hair
  90. weld.Part1 = game.Players.LocalPlayer.Character.Head
  91. hair.Color = Color3.fromRGB(153, 125, 61)
  92. weld.C0 = CFrame.new(0,-0.25,0)*CFrame.Angles(0,math.rad(180),0)
  93. weld.Parent = hair
  94.  
  95. shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character)
  96. shirt.ShirtTemplate = "rbxassetid://804894303"
  97. pants = Instance.new("Pants",game.Players.LocalPlayer.Character)
  98. pants.PantsTemplate = "rbxassetid://189943600"
  99.  
  100. game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=1142979747"
  101.  
  102. wait(1)
  103. game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "This can go two ways punk", "Green")
  104. wait(3)
  105. game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "You walk away", "Green")
  106. wait(3)
  107. game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "Or I walk in your, face.", "Green")
  108. wait(3)
  109.  
  110. local counter = 0
  111.  
  112. for i=1,200 do
  113. wait()
  114. counter = counter+1
  115. if counter > 2 then
  116. counter = 0
  117. local part = Basepart:Clone()
  118. part.Color = Color3.fromRGB(255,175,0)
  119. part.Shape = Enum.PartType.Cylinder
  120. part.Anchored = true
  121. part.CanCollide = false
  122. part.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  123. part.Parent = game.Workspace
  124. part.Material = Enum.Material.Neon
  125. part.Size = Vector3.new(1000000000,6,6)
  126.  
  127. game:GetService("Debris"):AddItem(part,1)
  128. table.insert(degrowingList,part)
  129. local part = Basepart:Clone()
  130. part.Color = Color3.fromRGB(255,175,0)
  131. part.Shape = Enum.PartType.Ball
  132. part.Anchored = true
  133. part.CanCollide = false
  134. part.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  135. part.Parent = game.Workspace
  136. part.Material = Enum.Material.Neon
  137. part.Size = Vector3.new(1,1,1)
  138. game:GetService("Debris"):AddItem(part,3)
  139. table.insert(growingList,part)
  140.  
  141. end
  142. for _,player in pairs(game.Workspace:GetChildren()) do
  143. if player:FindFirstChild("Humanoid") then
  144. player.Humanoid.CameraOffset = Vector3.new(math.random(-2,2),math.random(-2,2),0)
  145. end
  146. end
  147.  
  148. end
  149.  
  150. counter = counter+1
  151. for _,player in pairs(game.Workspace:GetChildren()) do
  152. if player:FindFirstChild("Humanoid") then
  153. player.Humanoid.CameraOffset = Vector3.new(0,0,0)
  154. end
  155.  
  156.  
  157. end
  158. local colorlist = {ColorSequenceKeypoint.new(0,Color3.fromRGB(0,255,255)),
  159. ColorSequenceKeypoint.new(0.148,Color3.fromRGB(0,255,255)),
  160. ColorSequenceKeypoint.new(0.193,Color3.fromRGB(72,0,255)),
  161. ColorSequenceKeypoint.new(0.366,Color3.fromRGB(72,0,255)),
  162. ColorSequenceKeypoint.new(0.4,Color3.fromRGB(0,255,255)),
  163. ColorSequenceKeypoint.new(0.63,Color3.fromRGB(0,255,255)),
  164. ColorSequenceKeypoint.new(0.8,Color3.fromRGB(72,0,255)),
  165. ColorSequenceKeypoint.new(1,Color3.fromRGB(0,0,255))
  166. }
  167. local uiParticle = Baseparticle:Clone()
  168. uiParticle.Color = ColorSequence.new(colorlist)
  169. uiParticle.LightEmission = 1
  170. uiParticle.Size = NumberSequence.new(0.8)
  171. uiParticle.LockedToPart = true
  172. uiParticle.Texture = "rbxassetid://1143059159"
  173. local transparencylist = { NumberSequenceKeypoint.new(0,1),
  174. NumberSequenceKeypoint.new(0.5,0.67),
  175. NumberSequenceKeypoint.new(1,1)
  176. }
  177.  
  178. uiParticle.Transparency = NumberSequence.new(transparencylist)
  179. uiParticle.ZOffset = -1
  180. uiParticle.LockedToPart = true
  181. uiParticle.Lifetime = NumberRange.new(0.05,0.05)
  182. uiParticle.Speed = NumberRange.new(0,0)
  183. uiParticle.Rate = math.huge
  184.  
  185. for _,hat in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  186.  
  187. if hat:IsA("BasePart") then
  188. if hat.Name ~= "Head" and hat.Name ~= "HumanoidRootPart" then
  189. uiParticle:Clone().Parent = hat
  190. end
  191. end
  192. end
  193.  
  194.  
  195.  
  196. beforesong:Stop()
  197. mainsong = Basesong:Clone()
  198. mainsong.Parent = game.Players.LocalPlayer.Character
  199. mainsong.Looped = true
  200. mainsong.Volume = 3
  201. mainsong.SoundId = "rbxassetid://1106602456"
  202. mainsong:Play()
  203.  
  204. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 80
  205. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 150
  206. game.Players.LocalPlayer.Character.Humanoid.Name = "LolFakeHumanoid"
  207.  
  208. afterimages = {}
  209.  
  210. game.Players.LocalPlayer.Character.Head.face:Clone().Parent = headd
  211.  
  212. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  213.  
  214. end)
  215. amcounter = 0
  216.  
  217. local PhysicsService = game:GetService("PhysicsService")
  218.  
  219.  
  220.  
  221.  
  222. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  223. if part:FindFirstChild("ParticleEmitter") then
  224. part.ParticleEmitter.Enabled = false
  225. end
  226. if part:IsA("BasePart") then
  227. part.Transparency = 1
  228. end
  229. end
  230. game.Players.LocalPlayer.Character.Head.face.Transparency = 1
  231.  
  232.  
  233.  
  234. game:GetService("RunService").RenderStepped:connect(function()
  235. for _,image in pairs(afterimages) do
  236. for _,part in pairs(image:GetChildren()) do
  237. if part:IsA("BasePart") then
  238. part.Transparency = part.Transparency+0.1
  239. if part:FindFirstChild("face") then
  240. part.face.Transparency = part.face.Transparency+0.1
  241. end
  242. if part.Transparency > 0.9 then
  243. image:remove()
  244. end
  245. end
  246. end
  247. end
  248.  
  249. local image = Instance.new("Model",game.Workspace)
  250. image.Name = "AfterImage"
  251.  
  252. local head = headd:Clone()
  253. head.CFrame = game.Players.LocalPlayer.Character.Head.CFrame
  254. local hairc = hair:Clone()
  255. head.Anchored = true
  256. head.Transparency = 0
  257. head.face.Transparency = 0
  258. hairc.Transparency = 0
  259. hairc.Anchored = true
  260. hairc.Weld:remove()
  261. head.Parent = image
  262. hairc.Parent = image
  263. local torsoc = torso:Clone()
  264. torsoc.Parent = image
  265. torsoc.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame*CFrame.Angles(0,math.rad(-180),0)
  266. local armc = arm:Clone()
  267. armc.Parent = image
  268. armc.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame*CFrame.Angles(0,math.rad(180),0)
  269. local armc = arm:Clone()
  270. armc.Parent = image
  271. armc.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame*CFrame.Angles(0,math.rad(180),0)
  272. local legc = leg1:Clone()
  273. legc.Parent = image
  274. legc.CFrame = game.Players.LocalPlayer.Character["Left Leg"].CFrame*CFrame.Angles(0,math.rad(-180),0)
  275. local legc = leg2:Clone()
  276. legc.Parent = image
  277. legc.CFrame = game.Players.LocalPlayer.Character["Right Leg"].CFrame*CFrame.Angles(0,math.rad(-180),0)
  278.  
  279. table.insert(afterimages,image)
  280.  
  281. game.Players.LocalPlayer.Character.Parent = game.Workspace.CurrentCamera
  282. end)
  283. --//====================================================\\--
  284. --|| CREATED BY SHACKLUSTER
  285. --\\====================================================//--
  286.  
  287. wait(0.2)
  288.  
  289. Player = game:GetService("Players").LocalPlayer
  290. PlayerGui = Player.PlayerGui
  291. Cam = workspace.CurrentCamera
  292. Backpack = Player.Backpack
  293. Character = Player.Character
  294. Humanoid = Character.Humanoid
  295. Mouse = Player:GetMouse()
  296. RootPart = Character["HumanoidRootPart"]
  297. Torso = Character["Torso"]
  298. Head = Character["Head"]
  299. RightArm = Character["Right Arm"]
  300. LeftArm = Character["Left Arm"]
  301. RightLeg = Character["Right Leg"]
  302. LeftLeg = Character["Left Leg"]
  303. RootJoint = RootPart["RootJoint"]
  304. Neck = Torso["Neck"]
  305. RightShoulder = Torso["Right Shoulder"]
  306. LeftShoulder = Torso["Left Shoulder"]
  307. RightHip = Torso["Right Hip"]
  308. LeftHip = Torso["Left Hip"]
  309.  
  310. IT = Instance.new
  311. CF = CFrame.new
  312. VT = Vector3.new
  313. RAD = math.rad
  314. C3 = Color3.new
  315. UD2 = UDim2.new
  316. BRICKC = BrickColor.new
  317. ANGLES = CFrame.Angles
  318. EULER = CFrame.fromEulerAnglesXYZ
  319. COS = math.cos
  320. ACOS = math.acos
  321. SIN = math.sin
  322. ASIN = math.asin
  323. ABS = math.abs
  324. MRANDOM = math.random
  325. FLOOR = math.floor
  326.  
  327. --//=================================\\
  328. --|| USEFUL VALUES
  329. --\\=================================//
  330.  
  331. Animation_Speed = 3
  332. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  333. local Speed = 16
  334. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  335. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  336. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  337. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  338. local DAMAGEMULTIPLIER = 1
  339. local ANIM = "Idle"
  340. local ATTACK = false
  341. local EQUIPPED = false
  342. local HOLD = false
  343. local COMBO = 1
  344. local Rooted = false
  345. local SINE = 0
  346. local KEYHOLD = false
  347. local CHANGE = 2 / Animation_Speed
  348. local WALKINGANIM = false
  349. local VALUE1 = false
  350. local VALUE2 = false
  351. local ROBLOXIDLEANIMATION = IT("Animation")
  352. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  353. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  354. --ROBLOXIDLEANIMATION.Parent = Humanoid
  355. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  356. WEAPONGUI.Name = "Weapon GUI"
  357. local Weapon = IT("Model")
  358. Weapon.Name = "Adds"
  359. local Effects = IT("Folder", Weapon)
  360. Effects.Name = "Effects"
  361. local ANIMATOR = Humanoid.Animator
  362. local ANIMATE = Character.Animate
  363. local UNANCHOR = true
  364. local ENERGYSOUND = 1417051162
  365. local BEAMSOUND = 1417056781
  366. local EXPLOSIONSOUND = 1417056081
  367.  
  368. --//=================================\\
  369. --\\=================================//
  370.  
  371.  
  372. --//=================================\\
  373. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  374. --\\=================================//
  375.  
  376. ArtificialHB = Instance.new("BindableEvent", script)
  377. ArtificialHB.Name = "ArtificialHB"
  378.  
  379. script:WaitForChild("ArtificialHB")
  380.  
  381. frame = Frame_Speed
  382. tf = 0
  383. allowframeloss = false
  384. tossremainder = false
  385. lastframe = tick()
  386. script.ArtificialHB:Fire()
  387.  
  388. game:GetService("RunService").Heartbeat:connect(function(s, p)
  389. tf = tf + s
  390. if tf >= frame then
  391. if allowframeloss then
  392. script.ArtificialHB:Fire()
  393. lastframe = tick()
  394. else
  395. for i = 1, math.floor(tf / frame) do
  396. script.ArtificialHB:Fire()
  397. end
  398. lastframe = tick()
  399. end
  400. if tossremainder then
  401. tf = 0
  402. else
  403. tf = tf - frame * math.floor(tf / frame)
  404. end
  405. end
  406. end)
  407.  
  408. --//=================================\\
  409. --\\=================================//
  410.  
  411. --//=================================\\
  412. --|| SOME FUNCTIONS
  413. --\\=================================//
  414.  
  415. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  416. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  417. end
  418.  
  419. function PositiveAngle(NUMBER)
  420. if NUMBER >= 0 then
  421. NUMBER = 0
  422. end
  423. return NUMBER
  424. end
  425.  
  426. function NegativeAngle(NUMBER)
  427. if NUMBER <= 0 then
  428. NUMBER = 0
  429. end
  430. return NUMBER
  431. end
  432.  
  433. function Swait(NUMBER)
  434. if NUMBER == 0 or NUMBER == nil then
  435. ArtificialHB.Event:wait()
  436. else
  437. for i = 1, NUMBER do
  438. ArtificialHB.Event:wait()
  439. end
  440. end
  441. end
  442.  
  443. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  444. local NEWMESH = IT(MESH)
  445. if MESH == "SpecialMesh" then
  446. NEWMESH.MeshType = MESHTYPE
  447. if MESHID ~= "nil" and MESHID ~= "" then
  448. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  449. end
  450. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  451. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  452. end
  453. end
  454. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  455. NEWMESH.Scale = SCALE
  456. NEWMESH.Parent = PARENT
  457. return NEWMESH
  458. end
  459.  
  460. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  461. local NEWPART = IT("Part")
  462. NEWPART.formFactor = FORMFACTOR
  463. NEWPART.Reflectance = REFLECTANCE
  464. NEWPART.Transparency = TRANSPARENCY
  465. NEWPART.CanCollide = false
  466. NEWPART.Locked = true
  467. NEWPART.Anchored = true
  468. if ANCHOR == false then
  469. NEWPART.Anchored = false
  470. end
  471. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  472. NEWPART.Name = NAME
  473. NEWPART.Size = SIZE
  474. NEWPART.Position = Torso.Position
  475. NEWPART.Material = MATERIAL
  476. NEWPART:BreakJoints()
  477. NEWPART.Parent = PARENT
  478. return NEWPART
  479. end
  480.  
  481. local function weldBetween(a, b)
  482. local weldd = Instance.new("ManualWeld")
  483. weldd.Part0 = a
  484. weldd.Part1 = b
  485. weldd.C0 = CFrame.new()
  486. weldd.C1 = b.CFrame:inverse() * a.CFrame
  487. weldd.Parent = a
  488. return weldd
  489. end
  490.  
  491.  
  492. function QuaternionFromCFrame(cf)
  493. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  494. local trace = m00 + m11 + m22
  495. if trace > 0 then
  496. local s = math.sqrt(1 + trace)
  497. local recip = 0.5 / s
  498. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  499. else
  500. local i = 0
  501. if m11 > m00 then
  502. i = 1
  503. end
  504. if m22 > (i == 0 and m00 or m11) then
  505. i = 2
  506. end
  507. if i == 0 then
  508. local s = math.sqrt(m00 - m11 - m22 + 1)
  509. local recip = 0.5 / s
  510. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  511. elseif i == 1 then
  512. local s = math.sqrt(m11 - m22 - m00 + 1)
  513. local recip = 0.5 / s
  514. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  515. elseif i == 2 then
  516. local s = math.sqrt(m22 - m00 - m11 + 1)
  517. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  518. end
  519. end
  520. end
  521.  
  522. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  523. local xs, ys, zs = x + x, y + y, z + z
  524. local wx, wy, wz = w * xs, w * ys, w * zs
  525. local xx = x * xs
  526. local xy = x * ys
  527. local xz = x * zs
  528. local yy = y * ys
  529. local yz = y * zs
  530. local zz = z * zs
  531. 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))
  532. end
  533.  
  534. function QuaternionSlerp(a, b, t)
  535. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  536. local startInterp, finishInterp;
  537. if cosTheta >= 0.0001 then
  538. if (1 - cosTheta) > 0.0001 then
  539. local theta = ACOS(cosTheta)
  540. local invSinTheta = 1 / SIN(theta)
  541. startInterp = SIN((1 - t) * theta) * invSinTheta
  542. finishInterp = SIN(t * theta) * invSinTheta
  543. else
  544. startInterp = 1 - t
  545. finishInterp = t
  546. end
  547. else
  548. if (1 + cosTheta) > 0.0001 then
  549. local theta = ACOS(-cosTheta)
  550. local invSinTheta = 1 / SIN(theta)
  551. startInterp = SIN((t - 1) * theta) * invSinTheta
  552. finishInterp = SIN(t * theta) * invSinTheta
  553. else
  554. startInterp = t - 1
  555. finishInterp = t
  556. end
  557. end
  558. 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
  559. end
  560.  
  561. function Clerp(a, b, t)
  562. local qa = {QuaternionFromCFrame(a)}
  563. local qb = {QuaternionFromCFrame(b)}
  564. local ax, ay, az = a.x, a.y, a.z
  565. local bx, by, bz = b.x, b.y, b.z
  566. local _t = 1 - t
  567. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  568. end
  569.  
  570. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  571. local frame = IT("Frame")
  572. frame.BackgroundTransparency = TRANSPARENCY
  573. frame.BorderSizePixel = BORDERSIZEPIXEL
  574. frame.Position = POSITION
  575. frame.Size = SIZE
  576. frame.BackgroundColor3 = COLOR
  577. frame.BorderColor3 = BORDERCOLOR
  578. frame.Name = NAME
  579. frame.Parent = PARENT
  580. return frame
  581. end
  582.  
  583. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  584. local label = IT("TextLabel")
  585. label.BackgroundTransparency = 1
  586. label.Size = UD2(1, 0, 1, 0)
  587. label.Position = UD2(0, 0, 0, 0)
  588. label.TextColor3 = TEXTCOLOR
  589. label.TextStrokeTransparency = STROKETRANSPARENCY
  590. label.TextTransparency = TRANSPARENCY
  591. label.FontSize = TEXTFONTSIZE
  592. label.Font = TEXTFONT
  593. label.BorderSizePixel = BORDERSIZEPIXEL
  594. label.TextScaled = false
  595. label.Text = TEXT
  596. label.Name = NAME
  597. label.Parent = PARENT
  598. return label
  599. end
  600.  
  601. function NoOutlines(PART)
  602. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  603. end
  604.  
  605. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  606. local NEWWELD = IT(TYPE)
  607. NEWWELD.Part0 = PART0
  608. NEWWELD.Part1 = PART1
  609. NEWWELD.C0 = C0
  610. NEWWELD.C1 = C1
  611. NEWWELD.Parent = PARENT
  612. return NEWWELD
  613. end
  614.  
  615. local S = IT("Sound")
  616. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  617. local NEWSOUND = nil
  618. coroutine.resume(coroutine.create(function()
  619. NEWSOUND = S:Clone()
  620. NEWSOUND.Parent = PARENT
  621. NEWSOUND.Volume = VOLUME
  622. NEWSOUND.Pitch = PITCH
  623. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  624. NEWSOUND:play()
  625. if DOESLOOP == true then
  626. NEWSOUND.Looped = true
  627. else
  628. repeat wait(1) until NEWSOUND.Playing == false
  629. NEWSOUND:remove()
  630. end
  631. end))
  632. return NEWSOUND
  633. end
  634.  
  635. function CFrameFromTopBack(at, top, back)
  636. local right = top:Cross(back)
  637. 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)
  638. end
  639.  
  640. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  641. function WACKYEFFECT(Table)
  642. local TYPE = (Table.EffectType or "Sphere")
  643. local SIZE = (Table.Size or VT(1,1,1))
  644. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  645. local TRANSPARENCY = (Table.Transparency or 0)
  646. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  647. local CFRAME = (Table.CFrame or Torso.CFrame)
  648. local MOVEDIRECTION = (Table.MoveToPos or nil)
  649. local ROTATION1 = (Table.RotationX or 0)
  650. local ROTATION2 = (Table.RotationY or 0)
  651. local ROTATION3 = (Table.RotationZ or 0)
  652. local MATERIAL = (Table.Material or "Neon")
  653. local COLOR = (Table.Color or C3(1,1,1))
  654. local TIME = (Table.Time or 45)
  655. local SOUNDID = (Table.SoundID or nil)
  656. local SOUNDPITCH = (Table.SoundPitch or nil)
  657. local SOUNDVOLUME = (Table.SoundVolume or nil)
  658. coroutine.resume(coroutine.create(function()
  659. local PLAYSSOUND = false
  660. local SOUND = nil
  661. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  662. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  663. PLAYSSOUND = true
  664. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  665. end
  666. EFFECT.Color = COLOR
  667. local MSH = nil
  668. if TYPE == "Sphere" then
  669. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  670. elseif TYPE == "Block" then
  671. MSH = IT("BlockMesh",EFFECT)
  672. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  673. elseif TYPE == "Wave" then
  674. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  675. elseif TYPE == "Ring" then
  676. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  677. elseif TYPE == "Slash" then
  678. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  679. elseif TYPE == "Round Slash" then
  680. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  681. elseif TYPE == "Swirl" then
  682. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  683. elseif TYPE == "Skull" then
  684. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  685. elseif TYPE == "Crystal" then
  686. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  687. end
  688. if MSH ~= nil then
  689. local MOVESPEED = nil
  690. if MOVEDIRECTION ~= nil then
  691. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  692. end
  693. local GROWTH = SIZE - ENDSIZE
  694. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  695. if TYPE == "Block" then
  696. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  697. else
  698. EFFECT.CFrame = CFRAME
  699. end
  700. for LOOP = 1, TIME+1 do
  701. Swait()
  702. MSH.Scale = MSH.Scale - GROWTH/TIME
  703. if TYPE == "Wave" then
  704. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  705. end
  706. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  707. if TYPE == "Block" then
  708. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  709. else
  710. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  711. end
  712. if MOVEDIRECTION ~= nil then
  713. local ORI = EFFECT.Orientation
  714. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  715. EFFECT.Orientation = ORI
  716. end
  717. end
  718. if PLAYSSOUND == false then
  719. EFFECT:remove()
  720. else
  721. repeat Swait() until SOUND.Playing == false
  722. EFFECT:remove()
  723. end
  724. else
  725. if PLAYSSOUND == false then
  726. EFFECT:remove()
  727. else
  728. repeat Swait() until SOUND.Playing == false
  729. EFFECT:remove()
  730. end
  731. end
  732. end))
  733. end
  734.  
  735. function MakeForm(PART,TYPE)
  736. if TYPE == "Cyl" then
  737. local MSH = IT("CylinderMesh",PART)
  738. elseif TYPE == "Ball" then
  739. local MSH = IT("SpecialMesh",PART)
  740. MSH.MeshType = "Sphere"
  741. elseif TYPE == "Wedge" then
  742. local MSH = IT("SpecialMesh",PART)
  743. MSH.MeshType = "Wedge"
  744. end
  745. end
  746.  
  747. Debris = game:GetService("Debris")
  748.  
  749. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  750. local DIRECTION = CF(StartPos,EndPos).lookVector
  751. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  752. end
  753.  
  754. function turnto(position)
  755. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  756. end
  757.  
  758. --//=================================\\
  759. --|| WEAPON CREATION
  760. --\\=================================//
  761.  
  762. local BasePart = CreatePart(3, Weapon, "Marble", 0, 0, "Institutional white", "BraceletPart", VT(1.01,0.3,1.01),false)
  763. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  764. for i = 1, 3 do
  765. local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Daisy orange", "BraceletPart", VT(0.2,1.02,0.2),false)
  766. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  767. MakeForm(Part,"Cyl")
  768. end
  769. for i = 1, 3 do
  770. local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Daisy orange", "BraceletPart", VT(0.2,1.02,0.2),false)
  771. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0))
  772. MakeForm(Part,"Cyl")
  773. end
  774. local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Institutional white", "BraceletPart", VT(0.51,0.6,0.25),false)
  775. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
  776. MakeForm(Part,"Wedge")
  777. local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Institutional white", "BraceletPart", VT(0.51,0.6,0.25),false)
  778. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
  779. MakeForm(Part,"Wedge")
  780. local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Daisy orange", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
  781. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
  782. MakeForm(Part,"Wedge")
  783. local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Daisy orange", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
  784. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
  785. MakeForm(Part,"Wedge")
  786.  
  787. for _, c in pairs(Weapon:GetChildren()) do
  788. if c.ClassName == "Part" then
  789. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  790. local AURA = c:Clone()
  791. AURA:BreakJoints()
  792. AURA.Parent = c
  793. AURA.CFrame = c.CFrame
  794. AURA.Size = AURA.Size*1.001
  795. AURA.Transparency = 0.3
  796. AURA.BrickColor = BRICKC"Gold"
  797. AURA.Material = "Neon"
  798. weldBetween(c,AURA)
  799. end
  800. end
  801.  
  802. local SKILLTEXTCOLOR = BRICKC"Gold".Color
  803. local SKILLFONT = "Bodoni"
  804. local SKILLTEXTSIZE = 7
  805.  
  806. Weapon.Parent = Character
  807.  
  808. Humanoid.Died:connect(function()
  809. ATTACK = true
  810. end)
  811.  
  812. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  813. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  814. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  815.  
  816. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Aether Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  817. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Aether Explosion", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  818. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Aether Immobilization", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
  819.  
  820. --//=================================\\
  821. --|| DAMAGE FUNCTIONS
  822. --\\=================================//
  823.  
  824. function StatLabel(CFRAME, TEXT, COLOR)
  825. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  826. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  827. local BODYGYRO = IT("BodyGyro", STATPART)
  828. game:GetService("Debris"):AddItem(STATPART ,5)
  829. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  830. BILLBOARDGUI.Adornee = STATPART
  831. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  832. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  833. BILLBOARDGUI.AlwaysOnTop = false
  834. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  835. TEXTLABEL.BackgroundTransparency = 1
  836. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  837. TEXTLABEL.Text = TEXT
  838. TEXTLABEL.Font = SKILLFONT
  839. TEXTLABEL.FontSize="Size42"
  840. TEXTLABEL.TextColor3 = COLOR
  841. TEXTLABEL.TextStrokeTransparency = 0
  842. TEXTLABEL.TextScaled = true
  843. TEXTLABEL.TextWrapped = true
  844. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  845. for i = 1, 50 do
  846. Swait()
  847. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  848. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  849. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  850. end
  851. THEPART.Parent = nil
  852. end),STATPART, TEXTLABEL)
  853. end
  854.  
  855. --//=================================\\
  856. --|| DAMAGING
  857. --\\=================================//
  858.  
  859. function ApplyDamage(Humanoid,Damage,TorsoPart)
  860. local defence = Instance.new("BoolValue",Humanoid.Parent)
  861. defence.Name = ("HitBy"..Player.Name)
  862. game:GetService("Debris"):AddItem(defence, 0.001)
  863. Damage = Damage * DAMAGEMULTIPLIER
  864. if Humanoid.Health ~= 0 then
  865. local CritChance = MRANDOM(1,100)
  866. if Damage > Humanoid.Health then
  867. Damage = math.ceil(Humanoid.Health)
  868. if Damage == 0 then
  869. Damage = 0.1
  870. end
  871. end
  872. Humanoid.Health = Humanoid.Health - Damage
  873. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  874. end
  875. end
  876.  
  877. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,STUNS)
  878. local CHILDREN = workspace:GetDescendants()
  879. for index, CHILD in pairs(CHILDREN) do
  880. if CHILD.ClassName == "Model" and CHILD ~= Character then
  881. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  882. if HUM then
  883. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  884. if TORSO then
  885. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  886. if STUNS == true then
  887. coroutine.resume(coroutine.create(function()
  888. if HUM:FindFirstChild("StunValue") == nil then
  889. StatLabel(TORSO.CFrame * CF(0, 0 + (TORSO.Size.z - 1), 0), "Stunned!", C3(1,1,1))
  890. HUM.PlatformStand = true
  891. local STUNVALUE = IT("NumberValue",HUM)
  892. STUNVALUE.Name = "StunValue"
  893. STUNVALUE.Value = 8
  894. repeat wait(1) STUNVALUE.Value = STUNVALUE.Value - 1 until STUNVALUE.Value <= 0
  895. HUM.PlatformStand = false
  896. STUNVALUE:remove()
  897. else
  898. HUM.StunValue.Value = 8
  899. end
  900. end))
  901. end
  902. local DMG = MRANDOM(MINDMG,MAXDMG)
  903. ApplyDamage(HUM,DMG,TORSO)
  904. if FLING > 0 then
  905. for _, c in pairs(CHILD:GetChildren()) do
  906. if c:IsA("BasePart") then
  907. local bv = Instance.new("BodyVelocity")
  908. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  909. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  910. bv.Parent = c
  911. Debris:AddItem(bv,0.05)
  912. end
  913. end
  914. end
  915. end
  916. end
  917. end
  918. end
  919. end
  920. end
  921.  
  922. --//=================================\\
  923. --|| ATTACK FUNCTIONS AND STUFF
  924. --\\=================================//
  925.  
  926. function Charge(TIME,GYRO)
  927. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  928. local G = nil
  929. if GYRO == true then
  930. G = IT("BodyGyro",RootPart)
  931. G.D = 250
  932. G.P = 200000
  933. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  934. end
  935. for i=0, TIME, 0.1 / Animation_Speed do
  936. Swait()
  937. if G then
  938. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  939. end
  940. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  941. 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)
  942. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  943. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  944. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  945. 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)
  946. 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)
  947. end
  948. SND:remove()
  949. if G then
  950. return G
  951. end
  952. end
  953.  
  954. function Aether_Beam()
  955. ATTACK = true
  956. Rooted = false
  957. local GRAV = IT("BodyPosition",RootPart)
  958. GRAV.D = 75
  959. GRAV.P = 20000
  960. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  961. GRAV.Position = RootPart.Position
  962. local GYRO = Charge(2,true)
  963. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Gold", "Beam", VT(15,15,0))
  964. MakeForm(BEAM,"Ball")
  965. CreateSound(BEAMSOUND,BEAM,10,1,false)
  966. CreateSound(BEAMSOUND,BEAM,10,0.9,false)
  967. CreateSound(BEAMSOUND,BEAM,10,0.8,false)
  968. for i = 1, 150 do
  969. Swait()
  970. BEAM.Size = BEAM.Size + VT(-0.1,-0.1,2)
  971. ApplyAoE(BEAM.CFrame*CF(0,0,-BEAM.Size.Z/2).p,BEAM.Size.Y/2,5,8,125,false)
  972. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2), MoveToPos = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2)*ANGLES(RAD(90),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0.3,-25).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  973. BEAM.CFrame = CF(Torso.Position,Torso.CFrame*CF(0,0,-1).p)*CF(0,0,-2-(BEAM.Size.Z/2))
  974. 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)
  975. 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)
  976. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  977. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  978. 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)
  979. 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)
  980. end
  981. GRAV:remove()
  982. BEAM:remove()
  983. GYRO:remove()
  984. ATTACK = false
  985. Rooted = false
  986. end
  987.  
  988. function Aether_Explosion()
  989. ATTACK = true
  990. Rooted = true
  991. for i=0, 1, 0.1 / Animation_Speed do
  992. Swait()
  993. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed)
  994. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed)
  995. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  996. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  997. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  998. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  999. end
  1000. for i=0, 0.4, 0.1 / Animation_Speed do
  1001. Swait()
  1002. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  1003. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  1004. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1005. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1006. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1007. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1008. end
  1009. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Gold", "Beam", VT(0,0,0))
  1010. local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Gold", "Beam", VT(0,0,0))
  1011. MakeForm(BEAM,"Ball")
  1012. MakeForm(BEAM2,"Ball")
  1013. BEAM.CFrame = CF(RootPart.Position)
  1014. BEAM2.CFrame = CF(RootPart.Position)
  1015. CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  1016. for i=1, 100 do
  1017. Swait()
  1018. BEAM.Size = BEAM.Size + VT(0.7,8,0.7)
  1019. BEAM2.Size = BEAM2.Size + VT(2,2,2)
  1020. ApplyAoE(BEAM2.Position,BEAM2.Size.Z/2,1,1,15,false)
  1021. BEAM.CFrame = CF(RootPart.Position)
  1022. BEAM2.CFrame = CF(RootPart.Position)
  1023. WACKYEFFECT({TIME = 5+i, EffectType = "Swirl", Size = BEAM2.Size*1.15, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0.8, Transparency2 = 1, CFrame = BEAM.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1024. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  1025. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  1026. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1027. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1028. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1029. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1030. end
  1031. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM.Size, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0, Transparency2 = 0, CFrame = BEAM.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1032. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM2.Size, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.6, CFrame = BEAM2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1033. BEAM2:remove()
  1034. BEAM:remove()
  1035. ATTACK = false
  1036. Rooted = false
  1037. end
  1038.  
  1039. function Aether_Immobilization()
  1040. ATTACK = true
  1041. Rooted = true
  1042. Charge(2,false)
  1043. local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  1044. local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false)
  1045. for i = 1, 60 do
  1046. Swait()
  1047. ApplyAoE(RootPart.Position,i*1.3,1,1,-200,true)
  1048. SND.Pitch = SND.Pitch - 1/60
  1049. SND2.Pitch = SND.Pitch
  1050. WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*2,10,i*2), Size2 = VT(i*2,10,i*2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1051. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,10,0), Size2 = VT(i*2,6,i*2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1052. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,6,0), Size2 = VT(i*1.6,10,i*1.6), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1053. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1054. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1055. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1056. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1057. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1058. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1059. end
  1060. SND:remove()
  1061. SND2:remove()
  1062. ATTACK = false
  1063. Rooted = false
  1064. end
  1065.  
  1066. --//=================================\\
  1067. --|| ASSIGN THINGS TO KEYS
  1068. --\\=================================//
  1069.  
  1070. function MouseDown(Mouse)
  1071. if ATTACK == false then
  1072. end
  1073. end
  1074.  
  1075. function MouseUp(Mouse)
  1076. HOLD = false
  1077. end
  1078.  
  1079. function KeyDown(Key)
  1080. KEYHOLD = true
  1081. if Key == "z" and ATTACK == false then
  1082. Aether_Beam()
  1083. end
  1084.  
  1085. if Key == "b" and ATTACK == false then
  1086. Aether_Explosion()
  1087. end
  1088.  
  1089. if Key == "c" and ATTACK == false then
  1090. Aether_Immobilization()
  1091. end
  1092. end
  1093.  
  1094. function KeyUp(Key)
  1095. KEYHOLD = false
  1096. end
  1097.  
  1098. Mouse.Button1Down:connect(function(NEWKEY)
  1099. MouseDown(NEWKEY)
  1100. end)
  1101. Mouse.Button1Up:connect(function(NEWKEY)
  1102. MouseUp(NEWKEY)
  1103. end)
  1104. Mouse.KeyDown:connect(function(NEWKEY)
  1105. KeyDown(NEWKEY)
  1106. end)
  1107. Mouse.KeyUp:connect(function(NEWKEY)
  1108. KeyUp(NEWKEY)
  1109. end)
  1110.  
  1111. --//=================================\\
  1112. --\\=================================//
  1113.  
  1114. function unanchor()
  1115. if UNANCHOR == true then
  1116. g = Character:GetChildren()
  1117. for i = 1, #g do
  1118. if g[i].ClassName == "Part" then
  1119. g[i].Anchored = false
  1120. end
  1121. end
  1122. end
  1123. end
  1124.  
  1125. --//=================================\\
  1126. --|| WRAP THE WHOLE SCRIPT UP
  1127. --\\=================================//
  1128.  
  1129. Humanoid.Changed:connect(function(Jump)
  1130. if Jump == "Jump" and (Disable_Jump == true) then
  1131. Humanoid.Jump = false
  1132. end
  1133. end)
  1134.  
  1135. while true do
  1136. Swait()
  1137. script.Parent = WEAPONGUI
  1138. ANIMATE.Parent = nil
  1139. if Humanoid then
  1140. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1141. IDLEANIMATION:Play()
  1142. end
  1143. SINE = SINE + CHANGE
  1144. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1145. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1146. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1147. local WALKSPEEDVALUE = 5 / (Humanoid.WalkSpeed / 16)
  1148. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1149. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1150. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1151. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  1152. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  1153. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1154. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1155. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1156. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1157. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1158. end
  1159. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1160. ANIM = "Jump"
  1161. if ATTACK == false then
  1162. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1163. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1164. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1165. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1166. 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)
  1167. 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)
  1168. end
  1169. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1170. ANIM = "Fall"
  1171. if ATTACK == false then
  1172. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1173. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1174. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1175. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1176. 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)
  1177. 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)
  1178. end
  1179. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1180. ANIM = "Idle"
  1181. if ATTACK == false then
  1182. 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)
  1183. 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)
  1184. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1185. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1186. 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)
  1187. 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)
  1188. end
  1189. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1190. ANIM = "Walk"
  1191. if ATTACK == false then
  1192. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1193. 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)
  1194. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1195. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1196. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1197. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1198. end
  1199. end
  1200. unanchor()
  1201. Humanoid.MaxHealth = "inf"
  1202. Humanoid.Health = "inf"
  1203. if Rooted == false then
  1204. Disable_Jump = false
  1205. Humanoid.WalkSpeed = Speed
  1206. elseif Rooted == true then
  1207. Disable_Jump = true
  1208. Humanoid.WalkSpeed = 0
  1209. end
  1210. end
  1211.  
  1212. --//=================================\\
  1213. --\\=================================//
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219. --//====================================================\\--
  1220. --|| END OF SCRIPT
  1221. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement