Advertisement
kebbyfan

nightfall

May 7th, 2019
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.85 KB | None | 0 0
  1. Player = game.Players.odyn20008
  2. Character = Player.Character
  3. local txt = Instance.new("BillboardGui", Character)
  4. txt.Adornee = Character.Head
  5. txt.Name = "_status"
  6. txt.Size = UDim2.new(2, 0, 1.2, 0)
  7. txt.StudsOffset = Vector3.new(-9, 8, 0)
  8. local text = Instance.new("TextLabel", txt)
  9. text.Size = UDim2.new(10, 0, 7, 0)
  10. text.FontSize = "Size24"
  11. text.TextScaled = true
  12. text.TextTransparency = 0
  13. text.BackgroundTransparency = 1
  14. text.TextTransparency = 0
  15. text.TextStrokeTransparency = 0
  16. text.Font = "Antique"
  17. text.TextStrokeColor3 = Color3.new(1,1,1)
  18. text.Text = "Nightfall"
  19. script.Name = "Banisher Gun V3 / 1"
  20. --//====================================================\\--
  21. --|| CREATED BY SHACKLUSTER
  22. --\\====================================================//--
  23.  
  24. script:ClearAllChildren()
  25. wait(0.2)
  26.  
  27. Player = game:GetService("Players").odyn20008
  28. PlayerGui = Player.PlayerGui
  29. Cam = workspace.CurrentCamera
  30. Backpack = Player.Backpack
  31. Character = Player.Character
  32. Humanoid = Character.Humanoid
  33. Mouse = Player:GetMouse()
  34. RootPart = Character["HumanoidRootPart"]
  35. Torso = Character["Torso"]
  36. Head = Character["Head"]
  37. RightArm = Character["Right Arm"]
  38. LeftArm = Character["Left Arm"]
  39. RightLeg = Character["Right Leg"]
  40. LeftLeg = Character["Left Leg"]
  41. RootJoint = RootPart["RootJoint"]
  42. Neck = Torso["Neck"]
  43. RightShoulder = Torso["Right Shoulder"]
  44. LeftShoulder = Torso["Left Shoulder"]
  45. RightHip = Torso["Right Hip"]
  46. LeftHip = Torso["Left Hip"]
  47. local TIME = 0
  48. local sick = Instance.new("Sound",Torso)
  49.  
  50. IT = Instance.new
  51. CF = CFrame.new
  52. VT = Vector3.new
  53. RAD = math.rad
  54. C3 = Color3.new
  55. UD2 = UDim2.new
  56. BRICKC = BrickColor.new
  57. ANGLES = CFrame.Angles
  58. EULER = CFrame.fromEulerAnglesXYZ
  59. COS = math.cos
  60. ACOS = math.acos
  61. SIN = math.sin
  62. ASIN = math.asin
  63. ABS = math.abs
  64. MRANDOM = math.random
  65. FLOOR = math.floor
  66.  
  67. --//=================================\\
  68. --|| USEFUL VALUES
  69. --\\=================================//
  70.  
  71. Animation_Speed = 3
  72. local FORCERESET = false
  73. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  74. local Speed = 16
  75. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  76. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  77. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  78. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  79. local DAMAGEMULTIPLIER = 1
  80. local ANIM = "Idle"
  81. local ATTACK = false
  82. local EQUIPPED = false
  83. local HOLD = false
  84. local COMBO = 1
  85. local Rooted = false
  86. local SINE = 0
  87. local KEYHOLD = false
  88. local CHANGE = 2 / Animation_Speed
  89. local WALKINGANIM = false
  90. local VALUE1 = false
  91. local VALUE2 = false
  92. local ROBLOXIDLEANIMATION = IT("Animation")
  93. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  94. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  95. --ROBLOXIDLEANIMATION.Parent = Humanoid
  96. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  97. WEAPONGUI.Name = "BanishV3Gui"
  98. local Weapon = IT("Model")
  99. Weapon.Name = "Adds"
  100. local Effects = IT("Folder", Weapon)
  101. Effects.Name = "Effects"
  102. local ANIMATOR = Humanoid.Animator
  103. local ANIMATE = Character:FindFirstChild("Animate")
  104. local UNANCHOR = true
  105. local TOBANISH = {}
  106. script.Parent = PlayerGui
  107. local LAUGHS = {834001699,834001752,834001797,834001828}
  108. local VOCALS_ENRAGES = {528589078,528589175,528589274,528589382}
  109. local VOCALS_TAUNT = {468973055,468973159}
  110. local VOCALS_BASIC = {468972244,468972378,468972711,468972944}
  111. local VOCAL_GROWL = 468971411
  112.  
  113. --//=================================\\
  114. --\\=================================//
  115.  
  116.  
  117. --//=================================\\
  118. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  119. --\\=================================//
  120.  
  121. ArtificialHB = Instance.new("BindableEvent", script)
  122. ArtificialHB.Name = "ArtificialHB"
  123.  
  124. script:WaitForChild("ArtificialHB")
  125.  
  126. frame = Frame_Speed
  127. tf = 0
  128. allowframeloss = false
  129. tossremainder = false
  130. lastframe = tick()
  131. script.ArtificialHB:Fire()
  132.  
  133. game:GetService("RunService").Heartbeat:connect(function(s, p)
  134. tf = tf + s
  135. if tf >= frame then
  136. if allowframeloss then
  137. script.ArtificialHB:Fire()
  138. lastframe = tick()
  139. else
  140. for i = 1, math.floor(tf / frame) do
  141. script.ArtificialHB:Fire()
  142. end
  143. lastframe = tick()
  144. end
  145. if tossremainder then
  146. tf = 0
  147. else
  148. tf = tf - frame * math.floor(tf / frame)
  149. end
  150. end
  151. end)
  152.  
  153. --//=================================\\
  154. --\\=================================//
  155.  
  156. --//=================================\\
  157. --|| SOME FUNCTIONS
  158. --\\=================================//
  159.  
  160. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  161. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  162. end
  163.  
  164. function PositiveAngle(NUMBER)
  165. if NUMBER >= 0 then
  166. NUMBER = 0
  167. end
  168. return NUMBER
  169. end
  170.  
  171. function NegativeAngle(NUMBER)
  172. if NUMBER <= 0 then
  173. NUMBER = 0
  174. end
  175. return NUMBER
  176. end
  177.  
  178. function Swait(NUMBER)
  179. if NUMBER == 0 or NUMBER == nil then
  180. ArtificialHB.Event:wait()
  181. else
  182. for i = 1, NUMBER do
  183. ArtificialHB.Event:wait()
  184. end
  185. end
  186. end
  187.  
  188. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  189. local NEWMESH = IT(MESH)
  190. if MESH == "SpecialMesh" then
  191. NEWMESH.MeshType = MESHTYPE
  192. if MESHID ~= "nil" and MESHID ~= "" then
  193. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  194. end
  195. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  196. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  197. end
  198. end
  199. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  200. NEWMESH.Scale = SCALE
  201. NEWMESH.Parent = PARENT
  202. return NEWMESH
  203. end
  204.  
  205. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  206. local NEWPART = IT("Part")
  207. NEWPART.formFactor = FORMFACTOR
  208. NEWPART.Reflectance = REFLECTANCE
  209. NEWPART.Transparency = TRANSPARENCY
  210. NEWPART.CanCollide = false
  211. NEWPART.Locked = true
  212. NEWPART.Anchored = true
  213. if ANCHOR == false then
  214. NEWPART.Anchored = false
  215. end
  216. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  217. NEWPART.Name = NAME
  218. NEWPART.Size = SIZE
  219. NEWPART.Position = Torso.Position
  220. NEWPART.Material = MATERIAL
  221. NEWPART:BreakJoints()
  222. NEWPART.Parent = PARENT
  223. return NEWPART
  224. end
  225.  
  226. local function weldBetween(a, b)
  227. local weldd = Instance.new("ManualWeld")
  228. weldd.Part0 = a
  229. weldd.Part1 = b
  230. weldd.C0 = CFrame.new()
  231. weldd.C1 = b.CFrame:inverse() * a.CFrame
  232. weldd.Parent = a
  233. return weldd
  234. end
  235.  
  236.  
  237. function QuaternionFromCFrame(cf)
  238. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  239. local trace = m00 + m11 + m22
  240. if trace > 0 then
  241. local s = math.sqrt(1 + trace)
  242. local recip = 0.5 / s
  243. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  244. else
  245. local i = 0
  246. if m11 > m00 then
  247. i = 1
  248. end
  249. if m22 > (i == 0 and m00 or m11) then
  250. i = 2
  251. end
  252. if i == 0 then
  253. local s = math.sqrt(m00 - m11 - m22 + 1)
  254. local recip = 0.5 / s
  255. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  256. elseif i == 1 then
  257. local s = math.sqrt(m11 - m22 - m00 + 1)
  258. local recip = 0.5 / s
  259. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  260. elseif i == 2 then
  261. local s = math.sqrt(m22 - m00 - m11 + 1)
  262. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  263. end
  264. end
  265. end
  266.  
  267. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  268. local xs, ys, zs = x + x, y + y, z + z
  269. local wx, wy, wz = w * xs, w * ys, w * zs
  270. local xx = x * xs
  271. local xy = x * ys
  272. local xz = x * zs
  273. local yy = y * ys
  274. local yz = y * zs
  275. local zz = z * zs
  276. 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))
  277. end
  278.  
  279. function QuaternionSlerp(a, b, t)
  280. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  281. local startInterp, finishInterp;
  282. if cosTheta >= 0.0001 then
  283. if (1 - cosTheta) > 0.0001 then
  284. local theta = ACOS(cosTheta)
  285. local invSinTheta = 1 / SIN(theta)
  286. startInterp = SIN((1 - t) * theta) * invSinTheta
  287. finishInterp = SIN(t * theta) * invSinTheta
  288. else
  289. startInterp = 1 - t
  290. finishInterp = t
  291. end
  292. else
  293. if (1 + cosTheta) > 0.0001 then
  294. local theta = ACOS(-cosTheta)
  295. local invSinTheta = 1 / SIN(theta)
  296. startInterp = SIN((t - 1) * theta) * invSinTheta
  297. finishInterp = SIN(t * theta) * invSinTheta
  298. else
  299. startInterp = t - 1
  300. finishInterp = t
  301. end
  302. end
  303. 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
  304. end
  305.  
  306. function Clerp(a, b, t)
  307. local qa = {QuaternionFromCFrame(a)}
  308. local qb = {QuaternionFromCFrame(b)}
  309. local ax, ay, az = a.x, a.y, a.z
  310. local bx, by, bz = b.x, b.y, b.z
  311. local _t = 1 - t
  312. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  313. end
  314.  
  315. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  316. local frame = IT("Frame")
  317. frame.BackgroundTransparency = TRANSPARENCY
  318. frame.BorderSizePixel = BORDERSIZEPIXEL
  319. frame.Position = POSITION
  320. frame.Size = SIZE
  321. frame.BackgroundColor3 = COLOR
  322. frame.BorderColor3 = BORDERCOLOR
  323. frame.Name = NAME
  324. frame.Parent = PARENT
  325. return frame
  326. end
  327.  
  328. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  329. local label = IT("TextLabel")
  330. label.BackgroundTransparency = 1
  331. label.Size = UD2(1, 0, 1, 0)
  332. label.Position = UD2(0, 0, 0, 0)
  333. label.TextColor3 = TEXTCOLOR
  334. label.TextStrokeTransparency = STROKETRANSPARENCY
  335. label.TextTransparency = TRANSPARENCY
  336. label.FontSize = TEXTFONTSIZE
  337. label.Font = TEXTFONT
  338. label.BorderSizePixel = BORDERSIZEPIXEL
  339. label.TextScaled = false
  340. label.Text = TEXT
  341. label.Name = NAME
  342. label.Parent = PARENT
  343. return label
  344. end
  345.  
  346. function NoOutlines(PART)
  347. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  348. end
  349.  
  350. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  351. local NEWWELD = IT(TYPE)
  352. NEWWELD.Part0 = PART0
  353. NEWWELD.Part1 = PART1
  354. NEWWELD.C0 = C0
  355. NEWWELD.C1 = C1
  356. NEWWELD.Parent = PARENT
  357. return NEWWELD
  358. end
  359.  
  360. local S = IT("Sound")
  361. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  362. local NEWSOUND = nil
  363. coroutine.resume(coroutine.create(function()
  364. NEWSOUND = S:Clone()
  365. NEWSOUND.Parent = PARENT
  366. NEWSOUND.Volume = VOLUME
  367. NEWSOUND.Pitch = PITCH
  368. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  369. NEWSOUND:play()
  370. if DOESLOOP == true then
  371. NEWSOUND.Looped = true
  372. else
  373. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  374. NEWSOUND:remove()
  375. end
  376. end))
  377. return NEWSOUND
  378. end
  379.  
  380. function CFrameFromTopBack(at, top, back)
  381. local right = top:Cross(back)
  382. 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)
  383. end
  384.  
  385. --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})
  386. function WACKYEFFECT(Table)
  387. local TYPE = (Table.EffectType or "Sphere")
  388. local SIZE = (Table.Size or VT(1,1,1))
  389. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  390. local TRANSPARENCY = (Table.Transparency or 0)
  391. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  392. local CFRAME = (Table.CFrame or Torso.CFrame)
  393. local MOVEDIRECTION = (Table.MoveToPos or nil)
  394. local ROTATION1 = (Table.RotationX or 0)
  395. local ROTATION2 = (Table.RotationY or 0)
  396. local ROTATION3 = (Table.RotationZ or 0)
  397. local MATERIAL = (Table.Material or "Neon")
  398. local COLOR = (Table.Color or C3(1,1,1))
  399. local TIME = (Table.Time or 45)
  400. local SOUNDID = (Table.SoundID or nil)
  401. local SOUNDPITCH = (Table.SoundPitch or nil)
  402. local SOUNDVOLUME = (Table.SoundVolume or nil)
  403. coroutine.resume(coroutine.create(function()
  404. local PLAYSSOUND = false
  405. local SOUND = nil
  406. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  407. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  408. PLAYSSOUND = true
  409. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  410. end
  411. EFFECT.Color = COLOR
  412. local MSH = nil
  413. if TYPE == "Sphere" then
  414. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  415. elseif TYPE == "Block" then
  416. MSH = IT("BlockMesh",EFFECT)
  417. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  418. elseif TYPE == "Wave" then
  419. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  420. elseif TYPE == "Ring" then
  421. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  422. elseif TYPE == "Slash" then
  423. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  424. elseif TYPE == "Round Slash" then
  425. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  426. elseif TYPE == "Swirl" then
  427. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  428. elseif TYPE == "Skull" then
  429. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  430. elseif TYPE == "Crystal" then
  431. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  432. end
  433. if MSH ~= nil then
  434. local MOVESPEED = nil
  435. if MOVEDIRECTION ~= nil then
  436. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  437. end
  438. local GROWTH = SIZE - ENDSIZE
  439. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  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 = CFRAME
  444. end
  445. for LOOP = 1, TIME+1 do
  446. Swait()
  447. MSH.Scale = MSH.Scale - GROWTH/TIME
  448. if TYPE == "Wave" then
  449. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  450. end
  451. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  452. if TYPE == "Block" then
  453. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  454. else
  455. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  456. end
  457. if MOVEDIRECTION ~= nil then
  458. local ORI = EFFECT.Orientation
  459. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  460. EFFECT.Orientation = ORI
  461. end
  462. end
  463. if PLAYSSOUND == false then
  464. EFFECT:remove()
  465. else
  466. SOUND.Stopped:Connect(function()
  467. EFFECT:remove()
  468. end)
  469. end
  470. else
  471. if PLAYSSOUND == false then
  472. EFFECT:remove()
  473. else
  474. repeat Swait() until SOUND.Playing == false
  475. EFFECT:remove()
  476. end
  477. end
  478. end))
  479. end
  480.  
  481. function MakeForm(PART,TYPE)
  482. if TYPE == "Cyl" then
  483. local MSH = IT("CylinderMesh",PART)
  484. elseif TYPE == "Ball" then
  485. local MSH = IT("SpecialMesh",PART)
  486. MSH.MeshType = "Sphere"
  487. elseif TYPE == "Wedge" then
  488. local MSH = IT("SpecialMesh",PART)
  489. MSH.MeshType = "Wedge"
  490. end
  491. end
  492.  
  493. function CreateDebreeRing1(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  494. if FLOOR ~= nil then
  495. coroutine.resume(coroutine.create(function()
  496. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  497. PART.CFrame = CF(POSITION)
  498. for i = 1, 45 do
  499. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  500. RingPiece.Material = FLOOR.Material
  501. RingPiece.Color = FLOOR.Color
  502. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  503. Debris:AddItem(RingPiece,SWAIT)
  504. end
  505. PART:remove()
  506. end))
  507. end
  508. end
  509.  
  510. function CreateFlyingDebree1(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  511. if FLOOR ~= nil then
  512. for i = 1, AMOUNT do
  513. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  514. DEBREE.Material = FLOOR.Material
  515. DEBREE.Color = FLOOR.Color
  516. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  517. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  518. coroutine.resume(coroutine.create(function()
  519. Swait(15)
  520. DEBREE.Parent = workspace
  521. DEBREE.CanCollide = true
  522. Debris:AddItem(DEBREE,SWAIT)
  523. end))
  524. end
  525. end
  526. end
  527.  
  528. function CreateDebreeRing2(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  529. if FLOOR ~= nil then
  530. coroutine.resume(coroutine.create(function()
  531. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really black", "DebreeCenter", VT(0,0,0))
  532. PART.CFrame = CF(POSITION)
  533. for i = 1, 45 do
  534. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really black", "DebreePart", BLOCKSIZE)
  535. RingPiece.Material = FLOOR.Material
  536. RingPiece.Color = FLOOR.Color
  537. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  538. Debris:AddItem(RingPiece,SWAIT)
  539. end
  540. PART:remove()
  541. end))
  542. end
  543. end
  544.  
  545. function CreateFlyingDebree2(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  546. if FLOOR ~= nil then
  547. for i = 1, AMOUNT do
  548. local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Debree", BLOCKSIZE, false)
  549. DEBREE.Material = FLOOR.Material
  550. DEBREE.Color = FLOOR.Color
  551. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  552. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
  553. coroutine.resume(coroutine.create(function()
  554. Swait(15)
  555. DEBREE.Parent = workspace
  556. DEBREE.CanCollide = true
  557. Debris:AddItem(DEBREE,SWAIT)
  558. end))
  559. end
  560. end
  561. end
  562.  
  563. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  564. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  565. local mesh = IT("SpecialMesh",wave)
  566. mesh.MeshType = "FileMesh"
  567. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  568. mesh.Scale = SIZE
  569. mesh.Offset = VT(0,0,0)
  570. wave.CFrame = CFRAME
  571. coroutine.resume(coroutine.create(function(PART)
  572. for i = 1, WAIT do
  573. Swait()
  574. mesh.Scale = mesh.Scale + GROW
  575. if DOESROT == true then
  576. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  577. end
  578. wave.Transparency = wave.Transparency + (0.5/WAIT)
  579. if wave.Transparency > 0.99 then
  580. wave:remove()
  581. end
  582. end
  583. end))
  584. end
  585.  
  586. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  587. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  588. local mesh = IT("SpecialMesh",wave)
  589. mesh.MeshType = "Sphere"
  590. mesh.Scale = SIZE
  591. mesh.Offset = VT(0,0,0)
  592. wave.CFrame = CFRAME
  593. coroutine.resume(coroutine.create(function(PART)
  594. for i = 1, WAIT do
  595. Swait()
  596. mesh.Scale = mesh.Scale + GROW
  597. wave.Transparency = wave.Transparency + (1/WAIT)
  598. if wave.Transparency > 0.99 then
  599. wave:remove()
  600. end
  601. end
  602. end))
  603. end
  604. function MagicSpheres(size,waitt,cframe,color)
  605. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  606. local mesh = IT("SpecialMesh",wave)
  607. mesh.MeshType = "Sphere"
  608. mesh.Scale = VT(size,size,size)
  609. mesh.Offset = VT(0,0,0)
  610. wave.CFrame = cframe
  611. coroutine.resume(coroutine.create(function(PART)
  612. for i = 1, waitt do
  613. Swait()
  614. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  615. wave.Transparency = wave.Transparency + (1/waitt)
  616. if wave.Transparency > 0.99 then
  617. wave:remove()
  618. end
  619. end
  620. end))
  621. end
  622.  
  623. function MagicSpheres2(size,waitt,cframe,color)
  624. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
  625. local mesh = IT("SpecialMesh",wave)
  626. mesh.MeshType = "Sphere"
  627. mesh.Scale = VT(size,size,size)
  628. mesh.Offset = VT(0,0,0)
  629. wave.CFrame = cframe
  630. coroutine.resume(coroutine.create(function(PART)
  631. for i = 1, waitt do
  632. Swait()
  633. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  634. wave.Transparency = wave.Transparency - (1/waitt)
  635. end
  636. wave:remove()
  637. end))
  638. end
  639.  
  640. function MagicBlock(size,waitt,part,offset,color)
  641. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  642. local mesh = IT("BlockMesh",wave)
  643. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  644. coroutine.resume(coroutine.create(function(PART)
  645. for i = 1, waitt do
  646. Swait()
  647. mesh.Scale = mesh.Scale + VT(size/15,size/15,size/15)
  648. wave.CFrame = CF(wave.Position) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  649. wave.Transparency = wave.Transparency + (1/waitt)
  650. if wave.Transparency > 0.99 then
  651. wave:remove()
  652. end
  653. end
  654. end))
  655. end
  656.  
  657. function SpawnTrail(FROM,TO,BIG)
  658. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "White", "Trail", VT(0,0,0))
  659. MakeForm(TRAIL,"Cyl")
  660. local DIST = (FROM - TO).Magnitude
  661. if BIG == true then
  662. TRAIL.Size = VT(0.5,DIST,0.5)
  663. else
  664. TRAIL.Size = VT(0.25,DIST,0.25)
  665. end
  666. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  667. coroutine.resume(coroutine.create(function()
  668. for i = 1, 5 do
  669. Swait()
  670. TRAIL.Transparency = TRAIL.Transparency + 0.1
  671. end
  672. TRAIL:remove()
  673. end))
  674. end
  675.  
  676. Debris = game:GetService("Debris")
  677.  
  678. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  679. local DIRECTION = CF(StartPos,EndPos).lookVector
  680. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  681. end
  682.  
  683. function turnto(position)
  684. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  685. end
  686.  
  687. --//=================================\\
  688. --|| WEAPON CREATION
  689. --\\=================================//
  690.  
  691. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  692. PRT.Color = C3(0,0,0)
  693. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  694. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  695. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  696. PRT.Color = C3(0,0,0)
  697. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  698. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  699. for i = 1, 16 do
  700. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
  701. FACE.Color = C3(0,0,0)
  702. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  703. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
  704. end
  705. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Institutional White", "Eye", VT(0.1,1,1)/2,false)
  706. MakeForm(Eye,"Ball")
  707. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  708. local LASTPART = Head
  709. for i = 1, 20 do
  710. local MATH = (1-(i/25))
  711. if LASTPART == Head then
  712. local Horn = CreatePart(3, Character, "Neon", 0, 0, "White", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  713. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  714. LASTPART = Horn
  715. Horn.Color = C3((i*3-3)/255,0,0)
  716. else
  717. local Horn = CreatePart(3, Character, "Neon", 0, 0, "White", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  718. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  719. LASTPART = Horn
  720. Horn.Color = C3((i*3-3)/255,0,0)
  721. end
  722. end
  723.  
  724. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  725. local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  726. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  727. MakeForm(Part,"Wedge")
  728. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  729. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  730. MakeForm(Part,"Wedge")
  731. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  732. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  733. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  734. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  735. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  736. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  737. MakeForm(Part,"Cyl")
  738. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  739. for i = 1, 8 do
  740. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  741. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  742. end
  743. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  744. MakeForm(Part,"Cyl")
  745. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  746. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  747. MakeForm(Part,"Ball")
  748. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  749. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  750. MakeForm(Part,"Wedge")
  751. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  752. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  753. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  754. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  755. MakeForm(Part,"Cyl")
  756. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  757. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  758. MakeForm(Part,"Cyl")
  759. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  760. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  761. MakeForm(Part,"Cyl")
  762. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  763. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  764. MakeForm(Part,"Wedge")
  765. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  766. local LASTPART = Handle
  767. for i = 1, 10 do
  768. if LASTPART == Handle then
  769. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  770. LASTPART = Part
  771. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  772. else
  773. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  774. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  775. LASTPART = Part
  776. end
  777. end
  778.  
  779. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  780. MakeForm(Barrel,"Cyl")
  781. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  782. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  783. MakeForm(Part,"Cyl")
  784. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  785. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  786. MakeForm(Part,"Wedge")
  787. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  788. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  789. MakeForm(Hole,"Cyl")
  790. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  791. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  792. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  793. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  794. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  795. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  796. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  797. coroutine.resume(coroutine.create(function()
  798. while wait() do
  799. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  800. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  801. end
  802. end))
  803.  
  804. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  805. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  806. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  807. MakeForm(Part,"Wedge")
  808. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  809. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  810. MakeForm(Part,"Wedge")
  811. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  812. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  813. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  814. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  815. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  816. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  817. MakeForm(Part,"Cyl")
  818. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  819. for i = 1, 8 do
  820. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  821. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  822. end
  823. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  824. MakeForm(Part,"Cyl")
  825. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  826. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  827. MakeForm(Part,"Ball")
  828. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  829. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  830. MakeForm(Part,"Wedge")
  831. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  832. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  833. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  834. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  835. MakeForm(Part,"Cyl")
  836. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  837. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  838. MakeForm(Part,"Cyl")
  839. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  840. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  841. MakeForm(Part,"Cyl")
  842. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  843. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  844. MakeForm(Part,"Wedge")
  845. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  846. local LASTPART = Handle
  847. for i = 1, 10 do
  848. if LASTPART == Handle then
  849. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  850. LASTPART = Part
  851. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  852. else
  853. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  854. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  855. LASTPART = Part
  856. end
  857. end
  858.  
  859. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  860. MakeForm(Barrel,"Cyl")
  861. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  862. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  863. MakeForm(Part,"Cyl")
  864. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  865. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  866. MakeForm(Part,"Wedge")
  867. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  868. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  869. MakeForm(Hole,"Cyl")
  870. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  871. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  872. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  873. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  874. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  875. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  876. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  877. coroutine.resume(coroutine.create(function()
  878. while wait() do
  879. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  880. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  881. end
  882. end))
  883.  
  884. for _, c in pairs(Weapon:GetDescendants()) do
  885. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  886. c.Material = "Glass"
  887. c.Color = C3(0,0,0)
  888. elseif c.ClassName == "Part" and c.Name == "Eye" then
  889. c.Color = C3(1,1,1)
  890. c.Material = "Neon"
  891. end
  892. end
  893.  
  894. Weapon.Parent = Character
  895. for _, c in pairs(Weapon:GetChildren()) do
  896. if c.ClassName == "Part" then
  897. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  898. end
  899. end
  900.  
  901. local SKILLTEXTCOLOR = C3(0,0,0)
  902. local SKILLFONT = "Antique"
  903. local SKILLTEXTSIZE = 7.3
  904.  
  905. Humanoid.Died:connect(function()
  906. ATTACK = true
  907. end)
  908.  
  909. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  910. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  911. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  912. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  913. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  914. --]]
  915. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Night Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  916. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  917. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Oblivion of Doom", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  918. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Pure Night", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  919. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Nightfall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  920. --]]
  921. function printbye(Name)
  922. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  923. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  924. end
  925.  
  926. workspace.ChildAdded:connect(function(instance)
  927. for BANISH = 1, #TOBANISH do
  928. if TOBANISH[BANISH] ~= nil then
  929. if instance.Name == TOBANISH[BANISH] then
  930. coroutine.resume(coroutine.create(function()
  931. printbye(instance.Name)
  932. instance:ClearAllChildren()
  933. Debris:AddItem(instance,0.0005)
  934. end))
  935. end
  936. end
  937. end
  938. end)
  939.  
  940. --//=================================\\
  941. --|| DAMAGING
  942. --\\=================================//
  943.  
  944. function Banish(Foe)
  945. if Foe then
  946. coroutine.resume(coroutine.create(function()
  947. --if game.Players:FindFirstChild(Foe.Name) then
  948. table.insert(TOBANISH,Foe.Name)
  949. printbye(Foe.Name)
  950. --end
  951. Foe.Archivable = true
  952. local CLONE = Foe:Clone()
  953. Foe:Destroy()
  954. CLONE.Parent = Effects
  955. CLONE:BreakJoints()
  956. local MATERIALS = {"Glass","Neon"}
  957. for _, c in pairs(CLONE:GetDescendants()) do
  958. if c:IsA("BasePart") then
  959. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  960. CreateSound(340722848, c, 10, 1, false)
  961. end
  962. c.Anchored = true
  963. c.Transparency = c.Transparency + 0.2
  964. c.Material = MATERIALS[MRANDOM(1,2)]
  965. c.Color = C3(1,1,1)
  966. if c.ClassName == "MeshPart" then
  967. c.TextureID = ""
  968. end
  969. if c:FindFirstChildOfClass("SpecialMesh") then
  970. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  971. end
  972. if c:FindFirstChildOfClass("Decal") then
  973. c:FindFirstChildOfClass("Decal"):remove()
  974. end
  975. c.Name = "Banished"
  976. c.CanCollide = false
  977. else
  978. c:remove()
  979. end
  980. end
  981. local A = false
  982. for i = 1, 35 do
  983. if A == false then
  984. A = true
  985. elseif A == true then
  986. A = false
  987. end
  988. for _, c in pairs(CLONE:GetDescendants()) do
  989. if c:IsA("BasePart") then
  990. c.Anchored = true
  991. c.Material = MATERIALS[MRANDOM(1,2)]
  992. c.Transparency = c.Transparency + 0.8/35
  993. if A == false then
  994. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  995. elseif A == true then
  996. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  997. end
  998. end
  999. end
  1000. Swait()
  1001. end
  1002. CLONE:remove()
  1003. end))
  1004. end
  1005. end
  1006.  
  1007. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1008. local CHILDREN = workspace:GetDescendants()
  1009. for index, CHILD in pairs(CHILDREN) do
  1010. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1011. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1012. if HUM then
  1013. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1014. if TORSO then
  1015. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1016. if ISBANISH == true then
  1017. Banish(CHILD)
  1018. else
  1019. if ISBANISH == "Gravity" then
  1020. HUM.PlatformStand = true
  1021. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1022. local grav = Instance.new("BodyPosition",TORSO)
  1023. grav.D = 15
  1024. grav.P = 20000
  1025. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1026. grav.position = TORSO.Position
  1027. grav.Name = "V3BanishForce"..Player.Name
  1028. else
  1029. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1030. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1031. end
  1032. else
  1033. HUM.PlatformStand = false
  1034. end
  1035. end
  1036. elseif ISBANISH == "Gravity" then
  1037. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1038. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1039. HUM.PlatformStand = false
  1040. end
  1041. end
  1042. end
  1043. end
  1044. end
  1045. end
  1046. end
  1047.  
  1048. --//=================================\\
  1049. --|| ATTACK FUNCTIONS AND STUFF
  1050. --\\=================================//
  1051.  
  1052. function Ground_Star()
  1053. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1054. if HITFLOOR then
  1055. ATTACK = true
  1056. Rooted = true
  1057. FULL = true
  1058. local GYRO = IT("BodyGyro",RootPart)
  1059. GYRO.D = 25
  1060. GYRO.P = 20000
  1061. GYRO.MaxTorque = VT(0,math.huge,0)
  1062. for i=0, 0.3, 0.1 / Animation_Speed do
  1063. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1064. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1065. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1066. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1067. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1068. 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(-35)), 1 / Animation_Speed)
  1069. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(5)), 1 / Animation_Speed)
  1070. end
  1071. GYRO:remove()
  1072. CreateSound(12222200, RightArm, 10, 1)
  1073. for i=0, 0.4, 0.1 / Animation_Speed do
  1074. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
  1075. 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)
  1076. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1077. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1078. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed)
  1079. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1080. end
  1081. CreateSound(289842971, RightArm, 10, 1)
  1082. coroutine.resume(coroutine.create(function()
  1083. local HIT,POS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(Mouse.Hit.p+VT(0,1,0), Mouse.Hit.p-VT(0,1,0))).lookVector, 45, Character)
  1084. local ECHO = POS
  1085. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1086. HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  1087. ECHO = POS
  1088. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1089. HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  1090. ECHO = POS
  1091. end
  1092. if ECHO.Y == HITPOS.Y then
  1093. local DISTANCE = (HITPOS - ECHO).Magnitude/3
  1094. local CFRAME = CF(HITPOS,ECHO)
  1095. local RANGE = math.ceil(DISTANCE)
  1096. for i = 1, RANGE-1 do
  1097. Swait(3)
  1098. local A = CFRAME*CF(0,0,-i*3)
  1099. ApplyAoE(A.p,4)
  1100. CreateFlyingDebree1(HITFLOOR,A,2,VT(2,2,2),2,65)
  1101. end
  1102. local SIZE = 3
  1103. local POS = CFRAME*CF(0,0,-RANGE*3).p
  1104. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(55,0,55)*SIZE, Size2 = VT(55,15,55)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 130972023, SoundPitch = 0.8, SoundVolume = 10})
  1105. WACKYEFFECT({EffectType = "Sphere", Size = VT(10,250,10)*SIZE, Size2 = VT(20,1000,20)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
  1106. WACKYEFFECT({EffectType = "Sphere", Size = VT(30,150,30)*SIZE, Size2 = VT(50,300,50)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
  1107. for i = 1, 9 do
  1108. WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
  1109. end
  1110. for i = 1, 9 do
  1111. WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
  1112. end
  1113. ApplyAoE(POS,30*SIZE)
  1114. CreateDebreeRing1(HITFLOOR,POS,30*SIZE,VT(8,8,8)*SIZE,5)
  1115. CreateDebreeRing1(HITFLOOR,POS,50*SIZE,VT(2,2,2)*SIZE,5)
  1116. end
  1117. end))
  1118. for i=0, 0.6, 0.1 / Animation_Speed do
  1119. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
  1120. 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)
  1121. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1122. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1123. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed)
  1124. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1125. end
  1126. FULL = false
  1127. ATTACK = false
  1128. Rooted = false
  1129. end
  1130. end
  1131.  
  1132. function Shot()
  1133. ATTACK = true
  1134. Rooted = false
  1135. for i=0, 0.4, 0.1 / Animation_Speed do
  1136. Swait()
  1137. turnto(Mouse.Hit.p)
  1138. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1139. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1140. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1141. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1142. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1143. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1144. end
  1145. repeat
  1146. for i=0, 0.2, 0.1 / Animation_Speed do
  1147. Swait()
  1148. turnto(Mouse.Hit.p)
  1149. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1150. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1151. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1152. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1153. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1154. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1155. end
  1156. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1157. SpawnTrail(Hole.Position,POS)
  1158. if HIT ~= nil then
  1159. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1160. Banish(HIT.Parent)
  1161. end
  1162. end
  1163. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1164. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1165. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1166. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1167. for i=0, 0.3, 0.1 / Animation_Speed do
  1168. Swait()
  1169. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1170. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1171. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1172. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1173. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1174. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1175. end
  1176. until KEYHOLD == false
  1177. ATTACK = false
  1178. Rooted = false
  1179. end
  1180.  
  1181. function SpawnSmite(POS)
  1182. local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
  1183. local EMITPOS = HITPOS
  1184. if HITFLOOR ~= nil then
  1185. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1186. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  1187. EMITPOS = HITPOS
  1188. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1189. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  1190. EMITPOS = HITPOS
  1191. end
  1192. end
  1193. if HITFLOOR ~= nil then
  1194. ApplyAoE(EMITPOS,10)
  1195. WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  1196. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1197. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1198. for i = 1, 5 do
  1199. local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
  1200. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  1201. end
  1202. end
  1203. end
  1204.  
  1205. function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
  1206. coroutine.resume(coroutine.create(function()
  1207. local METEOR = IT("Model",Effects)
  1208. METEOR.Name = "Meteorite"
  1209. local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  1210. METEOR.PrimaryPart = CENTER
  1211. local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  1212. PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1213. for i = 1, 15 do
  1214. local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "White", "Fire", VT(5.1,1,5.1)*SIZE)
  1215. FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1216. end
  1217. if ISDEBREE ~= true then
  1218. METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  1219. else
  1220. METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  1221. end
  1222. local IMPACT = false
  1223. CreateSound(463593339, CENTER, 10, 0.6)
  1224. if SIZE >= 3.5 then
  1225. for i = 1, MRANDOM(3,7) do
  1226. SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
  1227. end
  1228. end
  1229. for i = 1, 200 do
  1230. Swait()
  1231. local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
  1232. if HITFLOOR == nil then
  1233. local ORI = CENTER.Orientation
  1234. METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  1235. else
  1236. if HITFLOOR.Anchored == true then
  1237. CreateDebreeRing1(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
  1238. CreateFlyingDebree1(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
  1239. end
  1240. IMPACT = true
  1241. break
  1242. end
  1243. end
  1244. if IMPACT == true then
  1245. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  1246. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
  1247. WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  1248. ApplyAoE(CENTER.Position,30*SIZE)
  1249. end
  1250. METEOR:remove()
  1251. end))
  1252. end
  1253.  
  1254. function Oblivion_of_Doom()
  1255. ATTACK = true
  1256. Rooted = false
  1257. CreateSound(1368573150, RightArm, 3, 1.5)
  1258. for i=0, 0.6, 0.1 / Animation_Speed do
  1259. Swait()
  1260. WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1261. 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)
  1262. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  1263. end
  1264. local POWER = 0
  1265. repeat
  1266. Swait()
  1267. WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1268. 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)
  1269. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  1270. POWER = POWER + 0.5
  1271. if POWER >= 85 then
  1272. POWER = 85
  1273. end
  1274. until KEYHOLD == false
  1275. if POWER < 0.6 then
  1276. SpawnSmite(Mouse.Hit.p)
  1277. else
  1278. if POWER < 15 then
  1279. POWER = 15
  1280. end
  1281. SpawnMeteor(Mouse.Hit.p,POWER/15)
  1282. end
  1283. ATTACK = false
  1284. Rooted = false
  1285. end
  1286.  
  1287. function Pure_Night()
  1288. ATTACK = true
  1289. Rooted = true
  1290. local AIMPOS = Mouse.Hit.p
  1291. local AIM,AIMPOS = CastProperRay(AIMPOS+VT(0,1,0),AIMPOS,10000,Character)
  1292. coroutine.resume(coroutine.create(function()
  1293. local RAYS = {}
  1294. for i = 1, 4 do
  1295. local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Ray", VT(50,2000,50))
  1296. MakeForm(RAY,"Cyl")
  1297. RAY.Mesh.Scale = VT(1,1.1,1)
  1298. table.insert(RAYS,RAY)
  1299. end
  1300. CreateSound(348663022, Effects, 2, 1.2, false)
  1301. for i = 1, 100 do
  1302. Swait()
  1303. for e = 1, #RAYS do
  1304. if RAYS[e] ~= nil then
  1305. local RAY = RAYS[e]
  1306. RAY.CFrame = CF(AIMPOS+VT(0,1000,0))*ANGLES(RAD(0),RAD(90*e),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(50-(i/2)))*CF(0,-1000,0)
  1307. RAY.Transparency = RAY.Transparency - 0.01
  1308. end
  1309. end
  1310. end
  1311. for i = 1, 20 do
  1312. Swait()
  1313. for e = 1, #RAYS do
  1314. if RAYS[e] ~= nil then
  1315. local RAY = RAYS[e]
  1316. RAY.Mesh.Scale = RAY.Mesh.Scale - VT(1/20,0,1/20)
  1317. end
  1318. end
  1319. end
  1320. wait(0.3)
  1321. for i = 1, 16 do
  1322. local POS = CF(AIMPOS)*ANGLES(RAD(0),RAD(0,360),RAD(0))*CF(0,0,MRANDOM(0,5)).p
  1323. SpawnTrail(POS+VT(0,200,0),POS)
  1324. end
  1325. for i = 1, 4 do
  1326. CreateDebreeRing2(AIM,AIMPOS-VT(0,3,0),5*i,VT(5,5,5)*i,5)
  1327. end
  1328.  
  1329. CreateFlyingDebree2(AIM,CF(AIMPOS),7,VT(3,3,3),5,185,false)
  1330. CreateFlyingDebree2(AIM,CF(AIMPOS),7,VT(6,6,6),5,285,false)
  1331. CreateSound(130972023, Effects, 2, 1, false)
  1332. local POS = Mouse.Hit.p
  1333. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "White", "Strike", VT(0,0,0))
  1334. MakeForm(RAY,"Cyl")
  1335. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "White", "Strike", VT(130,130,130))
  1336. MakeForm(SPHERE,"Ball")
  1337. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(120,120,120))
  1338. MakeForm(SHIELD,"Ball")
  1339. SHIELD.CFrame = CF(AIMPOS)
  1340. RAY.CFrame = CF(AIMPOS)
  1341. SPHERE.CFrame = CF(AIMPOS)
  1342. local CFRAME = CF(SPHERE.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  1343. CreateSound(415700134, SPHERE, 10, 0.8, false)
  1344. for i = 1, 200 do
  1345. Swait()
  1346. WACKYEFFECT({EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(SPHERE.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = CF(RAY.Position), RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(1,1,1), SoundID = "444667859", SoundPitch = 2, SoundVolume = nil})
  1347. MagicSphere(VT(0,0,0),45,SPHERE.CFrame,"Really black",VT(5,20,5))
  1348. RAY.Size = RAY.Size + VT(0,0,0)
  1349. SPHERE.Size = SPHERE.Size + VT(0.05,0.05,0.05)
  1350. SHIELD.Size = SPHERE.Size + VT(0.05,0.05,0.05)
  1351. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  1352. end
  1353. for i = 1, 45 do
  1354. Swait()
  1355. RAY.Transparency = RAY.Transparency + 1/45
  1356. SPHERE.Transparency = RAY.Transparency
  1357. SHIELD.Transparency = SPHERE.Transparency + 1/45
  1358. end
  1359. RAY:remove()
  1360. SHIELD:remove()
  1361. SPHERE:remove()
  1362. end))
  1363. ATTACK = false
  1364. Rooted = false
  1365. end
  1366.  
  1367. function Nightfall()
  1368. ATTACK = true
  1369. Rooted = true
  1370. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 0.64, false)
  1371. for i=0, 1, 0.1 / Animation_Speed do
  1372. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1373. 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)
  1374. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1375. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1376. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1377. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1378. end
  1379. coroutine.resume(coroutine.create(function()
  1380. local POS = Mouse.Hit.p
  1381. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Black", "Strike", VT(0,2000,0))
  1382. MakeForm(RAY,"Cyl")
  1383. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "White", "Strike", VT(0,0,0))
  1384. MakeForm(SPHERE,"Ball")
  1385. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Black", "Strike", VT(0,0,0))
  1386. MakeForm(SHIELD,"Ball")
  1387. SHIELD.CFrame = CF(POS)
  1388. RAY.CFrame = CF(POS)
  1389. SPHERE.CFrame = CF(POS)
  1390. CreateSound(440145570, SPHERE, 10, 0.8, false)
  1391. CreateSound(415700134, SPHERE, 10, 0.8, false)
  1392. for i = 1, 200 do
  1393. Swait()
  1394. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1395. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  1396. SPHERE.Size = SPHERE.Size + VT(2,2,2)
  1397. SHIELD.Size = SPHERE.Size + VT(3,3,3)
  1398. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  1399. end
  1400. for i = 1, 45 do
  1401. Swait()
  1402. RAY.Transparency = RAY.Transparency + 1/45
  1403. SPHERE.Transparency = RAY.Transparency
  1404. SHIELD.Transparency = SPHERE.Transparency + 1/45
  1405. end
  1406. RAY:remove()
  1407. SHIELD:remove()
  1408. SPHERE:remove()
  1409. end))
  1410. for i=0, 1, 0.1 / Animation_Speed do
  1411. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1412. 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)
  1413. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1414. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1415. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1416. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1417. end
  1418. ATTACK = false
  1419. Rooted = false
  1420. end
  1421.  
  1422. --//=================================\\
  1423. --|| ASSIGN THINGS TO KEYS
  1424. --\\=================================//
  1425.  
  1426. function MouseDown(Mouse)
  1427. if ATTACK == false then
  1428. Click()
  1429. end
  1430. end
  1431.  
  1432. function MouseUp(Mouse)
  1433. HOLD = false
  1434. end
  1435.  
  1436. function KeyDown(Key)
  1437. KEYHOLD = true
  1438. if Key == "z" and ATTACK == false then
  1439. Shot()
  1440. end
  1441.  
  1442. if Key == "b" and ATTACK == false then
  1443. Vanish()
  1444. end
  1445.  
  1446. if Key == "c" and ATTACK == false then
  1447. Oblivion_of_Doom()
  1448. end
  1449.  
  1450. if Key == "v" and ATTACK == false then
  1451. Pure_Night()
  1452. end
  1453.  
  1454. if Key == "x" and ATTACK == false then
  1455. Nightfall()
  1456. end
  1457.  
  1458. if Key == "t" and ATTACK == false then
  1459. CreateSound(VOCALS_TAUNT[MRANDOM(1,#VOCALS_TAUNT)], Head, 20, 0.60, false)
  1460. end
  1461.  
  1462. if Key == "p" and ATTACK == false then
  1463. Ground_Star()
  1464. end
  1465.  
  1466. if Key == "1" and ATTACK == false then
  1467. CreateSound(VOCALS_ENRAGES[MRANDOM(1,#VOCALS_ENRAGES)], Head, 20, 0.70, false)
  1468. end
  1469.  
  1470. if Key == "f" and ATTACK == false then
  1471. CreateSound(VOCALS_BASIC[MRANDOM(1,#VOCALS_BASIC)], Head, 20, 0.50, false)
  1472. end
  1473.  
  1474. if Key == "2" and ATTACK == false then
  1475. CreateSound(468971411, Head, 20, 0.40, false)
  1476. end
  1477. end
  1478.  
  1479. function KeyUp(Key)
  1480. KEYHOLD = false
  1481. end
  1482.  
  1483. Mouse.Button1Down:connect(function(NEWKEY)
  1484. MouseDown(NEWKEY)
  1485. end)
  1486. Mouse.Button1Up:connect(function(NEWKEY)
  1487. MouseUp(NEWKEY)
  1488. end)
  1489. Mouse.KeyDown:connect(function(NEWKEY)
  1490. KeyDown(NEWKEY)
  1491. end)
  1492. Mouse.KeyUp:connect(function(NEWKEY)
  1493. KeyUp(NEWKEY)
  1494. end)
  1495.  
  1496. --//=================================\\
  1497. --\\=================================//
  1498.  
  1499.  
  1500. function unanchor()
  1501. if UNANCHOR == true then
  1502. g = Character:GetChildren()
  1503. for i = 1, #g do
  1504. if g[i].ClassName == "Part" then
  1505. g[i].Anchored = false
  1506. end
  1507. end
  1508. end
  1509. end
  1510.  
  1511.  
  1512. --//=================================\\
  1513. --|| WRAP THE WHOLE SCRIPT UP
  1514. --\\=================================//
  1515.  
  1516. Humanoid.Changed:connect(function(Jump)
  1517. if Jump == "Jump" and (Disable_Jump == true) then
  1518. Humanoid.Jump = false
  1519. end
  1520. end)
  1521.  
  1522. local CONNECT = nil
  1523.  
  1524. while true do
  1525. Swait()
  1526. ANIMATE.Parent = nil
  1527. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1528. Humanoid = IT("Humanoid",Character)
  1529. end
  1530. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1531. v:Stop();
  1532. end
  1533. SINE = SINE + CHANGE
  1534. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1535. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1536. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1537. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1538. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1539. 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)
  1540. 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)
  1541. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1542. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1543. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1544. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1545. 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)
  1546. 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)
  1547. 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)
  1548. end
  1549. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1550. ANIM = "Jump"
  1551. if ATTACK == false then
  1552. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1553. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1554. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1555. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, -0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(-25))* LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1556. 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)
  1557. 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)
  1558. end
  1559. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1560. ANIM = "Fall"
  1561. if ATTACK == false then
  1562. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1563. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1564. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1565. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, -0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1566. 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)
  1567. 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)
  1568. end
  1569. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1570. ANIM = "Idle"
  1571. if ATTACK == false then
  1572. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1573. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1574. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1575. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -0.4) * ANGLES(RAD(75), RAD(45), RAD(25))* LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1576. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1577. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1578. end
  1579. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1580. ANIM = "Walk"
  1581. if ATTACK == false then
  1582. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1583. 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)
  1584. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1585. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1586. 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)
  1587. 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)
  1588. end
  1589. end
  1590.  
  1591. if Head:FindFirstChild("face") then
  1592. Head.face.Texture = "rbxassetid://120463437"
  1593. end
  1594.  
  1595. unanchor()
  1596. Humanoid.MaxHealth = "inf"
  1597. Humanoid.Health = "inf"
  1598. if Rooted == false then
  1599. Disable_Jump = false
  1600. Humanoid.WalkSpeed = Speed
  1601. elseif Rooted == true then
  1602. Disable_Jump = true
  1603. Humanoid.WalkSpeed = 0
  1604. end
  1605. sick.Parent = Torso
  1606. sick:resume()
  1607. sick.Volume = 6.5
  1608. sick.Pitch = 0.40
  1609. sick.SoundId = "rbxassetid://288703954"
  1610. sick.Name = "Nightfall"
  1611. end
  1612.  
  1613. --//=================================\\
  1614. --\\=================================//
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620. --//====================================================\\--
  1621. --|| END OF SCRIPT
  1622. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement