Advertisement
Christoffer07700Extr

Bad Karma

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