Advertisement
SniperZazzy

Untitled

Jan 28th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 147.37 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. Player = owner
  146. PlayerGui = Player.PlayerGui
  147. Cam = workspace.CurrentCamera
  148. Backpack = Player.Backpack
  149. Character = Player.Character
  150. Humanoid = Character.Humanoid
  151. Mouse = Player:GetMouse()
  152. RootPart = Character["HumanoidRootPart"]
  153. Torso = Character["Torso"]
  154. Head = Character["Head"]
  155. RightArm = Character["Right Arm"]
  156. LeftArm = Character["Left Arm"]
  157. RightLeg = Character["Right Leg"]
  158. LeftLeg = Character["Left Leg"]
  159. RootJoint = RootPart["RootJoint"]
  160. Neck = Torso["Neck"]
  161. RightShoulder = Torso["Right Shoulder"]
  162. LeftShoulder = Torso["Left Shoulder"]
  163. RightHip = Torso["Right Hip"]
  164. LeftHip = Torso["Left Hip"]
  165.  
  166. Character = Player.Character
  167. Humanoid = Character.Humanoid
  168.  
  169. -------------------------------------------------------
  170.  
  171. wait(0.2)
  172.  
  173. Player = game:GetService("Players").LocalPlayer
  174. PlayerGui = Player.PlayerGui
  175. Cam = workspace.CurrentCamera
  176. Backpack = Player.Backpack
  177. Character = Player.Character
  178. Humanoid = Character.Humanoid
  179. Mouse = Player:GetMouse()
  180. RootPart = Character["HumanoidRootPart"]
  181. Torso = Character["Torso"]
  182. Head = Character["Head"]
  183. RightArm = Character["Right Arm"]
  184. LeftArm = Character["Left Arm"]
  185. RightLeg = Character["Right Leg"]
  186. LeftLeg = Character["Left Leg"]
  187. RootJoint = RootPart["RootJoint"]
  188. Neck = Torso["Neck"]
  189. RightShoulder = Torso["Right Shoulder"]
  190. LeftShoulder = Torso["Left Shoulder"]
  191. RightHip = Torso["Right Hip"]
  192. LeftHip = Torso["Left Hip"]
  193. local sick = Instance.new("Sound",Character)
  194. sick.SoundId = "rbxassetid://1427189017"
  195. sick.Looped = true
  196. sick.Pitch = 1
  197. sick.Volume = 1
  198. sick:Play()
  199.  
  200. IT = Instance.new
  201. CF = CFrame.new
  202. VT = Vector3.new
  203. RAD = math.rad
  204. C3 = Color3.new
  205. UD2 = UDim2.new
  206. BRICKC = BrickColor.new
  207. ANGLES = CFrame.Angles
  208. EULER = CFrame.fromEulerAnglesXYZ
  209. COS = math.cos
  210. ACOS = math.acos
  211. SIN = math.sin
  212. ASIN = math.asin
  213. ABS = math.abs
  214. MRANDOM = math.random
  215. FLOOR = math.floor
  216.  
  217. --//=================================\\
  218. --|| USEFUL VALUES
  219. --\\=================================//
  220.  
  221. Animation_Speed = 3
  222. Player_Size = 1 --Size of the player.
  223. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  224. local Speed = 25
  225. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  226. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  227. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  228. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  229. local DAMAGEMULTIPLIER = 1
  230. local ANIM = "Idle"
  231. local ATTACK = false
  232. local EQUIPPED = false
  233. local HOLD = false
  234. local COMBO = 1
  235. local Rooted = false
  236. local SINE = 0
  237. local KEYHOLD = false
  238. local CHANGE = 2 / Animation_Speed
  239. local WALKINGANIM = false
  240. local VALUE1 = false
  241. local VALUE2 = false
  242. local ROBLOXIDLEANIMATION = IT("Animation")
  243. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  244. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  245. --ROBLOXIDLEANIMATION.Parent = Humanoid
  246. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  247. WEAPONGUI.Name = "Weapon GUI"
  248. local Effects = IT("Folder", Character)
  249. Effects.Name = "Effects"
  250. local ANIMATOR = Humanoid.Animator
  251. local ANIMATE = Character.Animate
  252. local UNANCHOR = true
  253. local PLAYMAINANIM = true
  254. local BOLTSOUNDS = {419011101,305734380}
  255. local SIZE = 1
  256. local UNANCHOR = true
  257. local TRUEFORM = false
  258. local HITFLOOR, HITPOS = nil
  259. local FLIGHT = false
  260. --//=================================\\
  261. --\\=================================//
  262.  
  263.  
  264.  
  265. --//=================================\\
  266. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  267. --\\=================================//
  268.  
  269. ArtificialHB = Instance.new("BindableEvent", script)
  270. ArtificialHB.Name = "ArtificialHB"
  271.  
  272. script:WaitForChild("ArtificialHB")
  273.  
  274. frame = Frame_Speed
  275. tf = 0
  276. allowframeloss = false
  277. tossremainder = false
  278. lastframe = tick()
  279. script.ArtificialHB:Fire()
  280.  
  281. game:GetService("RunService").Heartbeat:connect(function(s, p)
  282. tf = tf + s
  283. if tf >= frame then
  284. if allowframeloss then
  285. script.ArtificialHB:Fire()
  286. lastframe = tick()
  287. else
  288. for i = 1, math.floor(tf / frame) do
  289. script.ArtificialHB:Fire()
  290. end
  291. lastframe = tick()
  292. end
  293. if tossremainder then
  294. tf = 0
  295. else
  296. tf = tf - frame * math.floor(tf / frame)
  297. end
  298. end
  299. end)
  300.  
  301. --//=================================\\
  302. --\\=================================//
  303.  
  304. --//=================================\\
  305. --|| SOME FUNCTIONS
  306. --\\=================================//
  307.  
  308. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  309. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  310. end
  311.  
  312. function PositiveAngle(NUMBER)
  313. if NUMBER >= 0 then
  314. NUMBER = 0
  315. end
  316. return NUMBER
  317. end
  318.  
  319. function NegativeAngle(NUMBER)
  320. if NUMBER <= 0 then
  321. NUMBER = 0
  322. end
  323. return NUMBER
  324. end
  325.  
  326. function Swait(NUMBER)
  327. if NUMBER == 0 or NUMBER == nil then
  328. ArtificialHB.Event:wait()
  329. else
  330. for i = 1, NUMBER do
  331. ArtificialHB.Event:wait()
  332. end
  333. end
  334. end
  335.  
  336. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  337. local NEWMESH = IT(MESH)
  338. if MESH == "SpecialMesh" then
  339. NEWMESH.MeshType = MESHTYPE
  340. if MESHID ~= "nil" and MESHID ~= "" then
  341. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  342. end
  343. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  344. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  345. end
  346. end
  347. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  348. NEWMESH.Scale = SCALE
  349. NEWMESH.Parent = PARENT
  350. return NEWMESH
  351. end
  352.  
  353. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  354. local NEWPART = IT("Part")
  355. NEWPART.formFactor = FORMFACTOR
  356. NEWPART.Reflectance = REFLECTANCE
  357. NEWPART.Transparency = TRANSPARENCY
  358. NEWPART.CanCollide = false
  359. NEWPART.Locked = true
  360. NEWPART.Anchored = true
  361. if ANCHOR == false then
  362. NEWPART.Anchored = false
  363. end
  364. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  365. NEWPART.Name = NAME
  366. NEWPART.Size = SIZE
  367. NEWPART.Position = Torso.Position
  368. NEWPART.Material = MATERIAL
  369. NEWPART:BreakJoints()
  370. NEWPART.Parent = PARENT
  371. return NEWPART
  372. end
  373.  
  374. local function weldBetween(a, b)
  375. local weldd = Instance.new("ManualWeld")
  376. weldd.Part0 = a
  377. weldd.Part1 = b
  378. weldd.C0 = CFrame.new()
  379. weldd.C1 = b.CFrame:inverse() * a.CFrame
  380. weldd.Parent = a
  381. return weldd
  382. end
  383.  
  384.  
  385. function QuaternionFromCFrame(cf)
  386. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  387. local trace = m00 + m11 + m22
  388. if trace > 0 then
  389. local s = math.sqrt(1 + trace)
  390. local recip = 0.5 / s
  391. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  392. else
  393. local i = 0
  394. if m11 > m00 then
  395. i = 1
  396. end
  397. if m22 > (i == 0 and m00 or m11) then
  398. i = 2
  399. end
  400. if i == 0 then
  401. local s = math.sqrt(m00 - m11 - m22 + 1)
  402. local recip = 0.5 / s
  403. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  404. elseif i == 1 then
  405. local s = math.sqrt(m11 - m22 - m00 + 1)
  406. local recip = 0.5 / s
  407. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  408. elseif i == 2 then
  409. local s = math.sqrt(m22 - m00 - m11 + 1)
  410. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  411. end
  412. end
  413. end
  414.  
  415. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  416. local xs, ys, zs = x + x, y + y, z + z
  417. local wx, wy, wz = w * xs, w * ys, w * zs
  418. local xx = x * xs
  419. local xy = x * ys
  420. local xz = x * zs
  421. local yy = y * ys
  422. local yz = y * zs
  423. local zz = z * zs
  424. 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))
  425. end
  426.  
  427. function QuaternionSlerp(a, b, t)
  428. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  429. local startInterp, finishInterp;
  430. if cosTheta >= 0.0001 then
  431. if (1 - cosTheta) > 0.0001 then
  432. local theta = ACOS(cosTheta)
  433. local invSinTheta = 1 / SIN(theta)
  434. startInterp = SIN((1 - t) * theta) * invSinTheta
  435. finishInterp = SIN(t * theta) * invSinTheta
  436. else
  437. startInterp = 1 - t
  438. finishInterp = t
  439. end
  440. else
  441. if (1 + cosTheta) > 0.0001 then
  442. local theta = ACOS(-cosTheta)
  443. local invSinTheta = 1 / SIN(theta)
  444. startInterp = SIN((t - 1) * theta) * invSinTheta
  445. finishInterp = SIN(t * theta) * invSinTheta
  446. else
  447. startInterp = t - 1
  448. finishInterp = t
  449. end
  450. end
  451. 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
  452. end
  453.  
  454. function Clerp(a, b, t)
  455. local qa = {QuaternionFromCFrame(a)}
  456. local qb = {QuaternionFromCFrame(b)}
  457. local ax, ay, az = a.x, a.y, a.z
  458. local bx, by, bz = b.x, b.y, b.z
  459. local _t = 1 - t
  460. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  461. end
  462.  
  463. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  464. local frame = IT("Frame")
  465. frame.BackgroundTransparency = TRANSPARENCY
  466. frame.BorderSizePixel = BORDERSIZEPIXEL
  467. frame.Position = POSITION
  468. frame.Size = SIZE
  469. frame.BackgroundColor3 = COLOR
  470. frame.BorderColor3 = BORDERCOLOR
  471. frame.Name = NAME
  472. frame.Parent = PARENT
  473. return frame
  474. end
  475.  
  476. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  477. local label = IT("TextLabel")
  478. label.BackgroundTransparency = 1
  479. label.Size = UD2(1, 0, 1, 0)
  480. label.Position = UD2(0, 0, 0, 0)
  481. label.TextColor3 = TEXTCOLOR
  482. label.TextStrokeTransparency = STROKETRANSPARENCY
  483. label.TextTransparency = TRANSPARENCY
  484. label.FontSize = TEXTFONTSIZE
  485. label.Font = TEXTFONT
  486. label.BorderSizePixel = BORDERSIZEPIXEL
  487. label.TextScaled = false
  488. label.Text = TEXT
  489. label.Name = NAME
  490. label.Parent = PARENT
  491. return label
  492. end
  493.  
  494. function NoOutlines(PART)
  495. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  496. end
  497.  
  498. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  499. local NEWWELD = IT(TYPE)
  500. NEWWELD.Part0 = PART0
  501. NEWWELD.Part1 = PART1
  502. NEWWELD.C0 = C0
  503. NEWWELD.C1 = C1
  504. NEWWELD.Parent = PARENT
  505. return NEWWELD
  506. end
  507.  
  508. local S = IT("Sound")
  509. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  510. local NEWSOUND = nil
  511. coroutine.resume(coroutine.create(function()
  512. NEWSOUND = S:Clone()
  513. NEWSOUND.Parent = PARENT
  514. NEWSOUND.Volume = VOLUME
  515. NEWSOUND.Pitch = PITCH
  516. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  517. NEWSOUND:play()
  518. if DOESLOOP == true then
  519. NEWSOUND.Looped = true
  520. else
  521. repeat wait(1) until NEWSOUND.Playing == false
  522. NEWSOUND:remove()
  523. end
  524. end))
  525. return NEWSOUND
  526. end
  527.  
  528. function CFrameFromTopBack(at, top, back)
  529. local right = top:Cross(back)
  530. 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)
  531. end
  532.  
  533. function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  534. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  535. local mesh = IT("SpecialMesh",wave)
  536. mesh.MeshType = "FileMesh"
  537. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  538. mesh.Scale = VT(size,size,size)
  539. mesh.Offset = VT(0,0,-size/8)
  540. wave.CFrame = cframe
  541. coroutine.resume(coroutine.create(function(PART)
  542. for i = 1, waitt do
  543. Swait()
  544. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  545. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  546. if doesrotate == true then
  547. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  548. end
  549. wave.Transparency = wave.Transparency + (0.5/waitt)
  550. if wave.Transparency > 0.99 then
  551. wave:remove()
  552. end
  553. end
  554. end))
  555. end
  556.  
  557. function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  558. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  559. local mesh = IT("SpecialMesh",wave)
  560. mesh.MeshType = "FileMesh"
  561. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  562. mesh.Scale = VT(size,size,size)
  563. wave.CFrame = cframe
  564. coroutine.resume(coroutine.create(function(PART)
  565. for i = 1, waitt do
  566. Swait()
  567. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  568. if doesrotate == true then
  569. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  570. end
  571. wave.Transparency = wave.Transparency + (0.5/waitt)
  572. if wave.Transparency > 0.99 then
  573. wave:remove()
  574. end
  575. end
  576. end))
  577. end
  578.  
  579. function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
  580. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  581. local mesh = IT("SpecialMesh",wave)
  582. mesh.MeshType = "FileMesh"
  583. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  584. mesh.Scale = VT(size,size,size)
  585. wave.CFrame = cframe
  586. coroutine.resume(coroutine.create(function(PART)
  587. for i = 1, waitt do
  588. Swait()
  589. mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
  590. if doesrotate == true then
  591. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
  592. end
  593. wave.Transparency = wave.Transparency + (0.5/waitt)
  594. if wave.Transparency > 0.99 then
  595. wave:remove()
  596. end
  597. end
  598. end))
  599. end
  600.  
  601. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  602. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  603. local mesh = IT("SpecialMesh",wave)
  604. mesh.MeshType = "FileMesh"
  605. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  606. mesh.Scale = SIZE
  607. mesh.Offset = VT(0,0,-SIZE.X/8)
  608. wave.CFrame = CFRAME
  609. coroutine.resume(coroutine.create(function(PART)
  610. for i = 1, WAIT do
  611. Swait()
  612. mesh.Scale = mesh.Scale + GROW
  613. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  614. if DOESROT == true then
  615. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  616. end
  617. wave.Transparency = wave.Transparency + (0.5/WAIT)
  618. if wave.Transparency > 0.99 then
  619. wave:remove()
  620. end
  621. end
  622. end))
  623. end
  624.  
  625. function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  626. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  627. local mesh = IT("SpecialMesh",wave)
  628. mesh.MeshType = "FileMesh"
  629. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  630. mesh.Scale = SIZE
  631. mesh.Offset = VT(0,0,0)
  632. wave.CFrame = CFRAME
  633. coroutine.resume(coroutine.create(function(PART)
  634. for i = 1, WAIT do
  635. Swait()
  636. mesh.Scale = mesh.Scale + GROW
  637. if DOESROT == true then
  638. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  639. end
  640. wave.Transparency = wave.Transparency + (0.5/WAIT)
  641. if wave.Transparency > 0.99 then
  642. wave:remove()
  643. end
  644. end
  645. end))
  646. end
  647.  
  648. function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW)
  649. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  650. local mesh = IT("SpecialMesh",wave)
  651. mesh.MeshType = "Sphere"
  652. mesh.Scale = SIZE
  653. mesh.Offset = VT(0,0,0)
  654. wave.CFrame = CFRAME
  655. coroutine.resume(coroutine.create(function(PART)
  656. for i = 1, WAIT do
  657. Swait()
  658. mesh.Scale = mesh.Scale + GROW
  659. wave.Transparency = wave.Transparency + (1/WAIT)
  660. if wave.Transparency > 0.99 then
  661. wave:remove()
  662. end
  663. end
  664. end))
  665. end
  666.  
  667.  
  668. function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color)
  669. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
  670. local mesh = IT("SpecialMesh",wave)
  671. mesh.MeshType = "FileMesh"
  672. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  673. mesh.Scale = VT(size,size,size)
  674. mesh.Offset = VT(0,0,0)
  675. wave.CFrame = cframe
  676. coroutine.resume(coroutine.create(function(PART)
  677. for i = 1, waitt do
  678. Swait()
  679. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  680. if doesrotate == true then
  681. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
  682. end
  683. wave.Transparency = wave.Transparency + (0.5/waitt)
  684. if wave.Transparency > 0.99 then
  685. wave:remove()
  686. end
  687. end
  688. end))
  689. end
  690.  
  691. function MagicSphere(size,waitt,cframe,color)
  692. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
  693. local mesh = IT("SpecialMesh",wave)
  694. mesh.MeshType = "Sphere"
  695. mesh.Scale = VT(size,size,size)
  696. mesh.Offset = VT(0,0,0)
  697. wave.CFrame = cframe
  698. coroutine.resume(coroutine.create(function(PART)
  699. for i = 1, waitt do
  700. Swait()
  701. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  702. wave.Transparency = wave.Transparency + (1/waitt)
  703. if wave.Transparency > 0.99 then
  704. wave:remove()
  705. end
  706. end
  707. end))
  708. end
  709.  
  710. function MagicSphere2(size,waitt,cframe,color)
  711. local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
  712. local mesh = IT("SpecialMesh",wave)
  713. mesh.MeshType = "Sphere"
  714. mesh.Scale = VT(size,size,size)
  715. mesh.Offset = VT(0,0,0)
  716. wave.CFrame = cframe
  717. coroutine.resume(coroutine.create(function(PART)
  718. for i = 1, waitt do
  719. Swait()
  720. mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
  721. wave.Transparency = wave.Transparency - (1/waitt)
  722. end
  723. wave:remove()
  724. end))
  725. end
  726.  
  727. function BreakEffect(brickcolor,cframe,x1,y1,z1,material)
  728. local prt=part("Custom",workspace,material,0,0,brickcolor,"Effect",VT(0.5,0.5,0.5))
  729. prt.Anchored=true
  730. prt.CFrame=cframe*EULER(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  731. local msh=mesh("SpecialMesh",prt,"Sphere","",VT(0,0,0),VT(x1,y1,z1))
  732. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  733. CF=Part.CFrame
  734. Numbb=0
  735. randnumb=math.random()-math.random()
  736. for i=0,1,0.05 do
  737. wait()
  738. CF=CF*CF(0,1,0)
  739. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  740. Part.CFrame=CF*EULER(Numbb,0,0)
  741. Part.Transparency=i
  742. Numbb=Numbb+randnumb
  743. end
  744. Part.Parent=nil
  745. end),prt)
  746. end
  747.  
  748. function MagicBlock(size,waitt,cframe,color)
  749. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  750. local mesh = IT("BlockMesh",wave)
  751. wave.CFrame = cframe
  752. coroutine.resume(coroutine.create(function(PART)
  753. for i = 1, waitt do
  754. Swait()
  755. mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
  756. wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  757. wave.Transparency = wave.Transparency + (1/waitt)
  758. if wave.Transparency > 0.99 then
  759. wave:remove()
  760. end
  761. end
  762. end))
  763. end
  764.  
  765. local EyeSizes={
  766. NumberSequenceKeypoint.new(0,2,0),
  767. NumberSequenceKeypoint.new(1,0,0)
  768. }
  769. local EyeTrans={
  770. NumberSequenceKeypoint.new(0,0.5,0),
  771. NumberSequenceKeypoint.new(1,1,0)
  772. }
  773. local PE=Instance.new("ParticleEmitter",nil)
  774. PE.LightEmission=.8
  775. PE.Color = ColorSequence.new(BRICKC("Alder").Color,BRICKC("Eggplant").Color)
  776. PE.Size=NumberSequence.new(EyeSizes)
  777. PE.Transparency=NumberSequence.new(EyeTrans)
  778. PE.Lifetime=NumberRange.new(0.35,1)
  779. PE.Rotation=NumberRange.new(0,360)
  780. PE.Rate=100
  781. PE.VelocitySpread = 10000
  782. PE.Acceleration = Vector3.new(0,85,0)
  783. PE.Drag = 5
  784. PE.Speed = NumberRange.new(0.1,5)
  785. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  786. PE.ZOffset = 0.5
  787. PE.Name = "PE"
  788. PE.Enabled = false
  789.  
  790. function Fire(art)
  791. local PARTICLES = PE:Clone()
  792. PARTICLES.Parent = art
  793. PARTICLES.Enabled = true
  794. return PARTICLES
  795. end
  796.  
  797. function CFrameFromTopBack(at, top, back)
  798. local right = top:Cross(back)
  799. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  800. end
  801.  
  802. --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})
  803. function WACKYEFFECT(Table)
  804. local TYPE = (Table.EffectType or "Sphere")
  805. local SIZE = (Table.Size or VT(1,1,1))
  806. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  807. local TRANSPARENCY = (Table.Transparency or 0)
  808. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  809. local CFRAME = (Table.CFrame or Torso.CFrame)
  810. local MOVEDIRECTION = (Table.MoveToPos or nil)
  811. local ROTATION1 = (Table.RotationX or 0)
  812. local ROTATION2 = (Table.RotationY or 0)
  813. local ROTATION3 = (Table.RotationZ or 0)
  814. local MATERIAL = (Table.Material or "Neon")
  815. local COLOR = (Table.Color or C3(1,1,1))
  816. local TIME = (Table.Time or 45)
  817. local SOUNDID = (Table.SoundID or nil)
  818. local SOUNDPITCH = (Table.SoundPitch or nil)
  819. local SOUNDVOLUME = (Table.SoundVolume or nil)
  820. coroutine.resume(coroutine.create(function()
  821. local PLAYSSOUND = false
  822. local SOUND = nil
  823. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  824. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  825. PLAYSSOUND = true
  826. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  827. end
  828. EFFECT.Color = COLOR
  829. local MSH = nil
  830. if TYPE == "Sphere" then
  831. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  832. elseif TYPE == "Block" or TYPE == "Box" then
  833. MSH = IT("BlockMesh",EFFECT)
  834. MSH.Scale = SIZE
  835. elseif TYPE == "Wave" then
  836. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  837. elseif TYPE == "Ring" then
  838. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  839. elseif TYPE == "Slash" then
  840. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  841. elseif TYPE == "Round Slash" then
  842. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  843. elseif TYPE == "Swirl" then
  844. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  845. elseif TYPE == "Skull" then
  846. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  847. elseif TYPE == "Crystal" then
  848. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  849. end
  850. if MSH ~= nil then
  851. local MOVESPEED = nil
  852. if MOVEDIRECTION ~= nil then
  853. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  854. end
  855. local GROWTH = SIZE - ENDSIZE
  856. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  857. if TYPE == "Block" then
  858. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  859. else
  860. EFFECT.CFrame = CFRAME
  861. end
  862. for LOOP = 1, TIME+1 do
  863. Swait()
  864. MSH.Scale = MSH.Scale - GROWTH/TIME
  865. if TYPE == "Wave" then
  866. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  867. end
  868. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  869. if TYPE == "Block" then
  870. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  871. else
  872. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  873. end
  874. if MOVEDIRECTION ~= nil then
  875. local ORI = EFFECT.Orientation
  876. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  877. EFFECT.Orientation = ORI
  878. end
  879. end
  880. if PLAYSSOUND == false then
  881. EFFECT:remove()
  882. else
  883. repeat wait(1) until SOUND.Playing == false
  884. EFFECT:remove()
  885. end
  886. else
  887. if PLAYSSOUND == false then
  888. EFFECT:remove()
  889. else
  890. repeat Swait() until SOUND.Playing == false
  891. EFFECT:remove()
  892. end
  893. end
  894. end))
  895. end
  896.  
  897. function MakeForm(PART,TYPE)
  898. if TYPE == "Cyl" then
  899. local MSH = IT("CylinderMesh",PART)
  900. elseif TYPE == "Ball" then
  901. local MSH = IT("SpecialMesh",PART)
  902. MSH.MeshType = "Sphere"
  903. elseif TYPE == "Wedge" then
  904. local MSH = IT("SpecialMesh",PART)
  905. MSH.MeshType = "Wedge"
  906. end
  907. end
  908.  
  909. function createaddongen(limb,position,size)
  910. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(0.25*Player_Size, size*0.8*Player_Size,size*0.8*Player_Size),false)
  911. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.45 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0))
  912. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", limb.Name.." Neon Gauntlet Part", VT(0.25*Player_Size,size*Player_Size,size*Player_Size),false)
  913. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.425 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0))
  914. end
  915.  
  916. function creategauntlet(limb)
  917. --main--
  918. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false)
  919. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  920. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false)
  921. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  922. MakeForm(part,"Wedge")
  923. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false)
  924. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
  925. MakeForm(part,"Wedge")
  926. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false)
  927. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  928. --neon addons
  929. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", limb.Name.." Neon Gauntlet Part", VT(1.05*Player_Size,2.05*Player_Size,1.05*Player_Size),false)
  930. local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  931. --misc--
  932. createaddongen(limb,0.25,0.75)
  933. createaddongen(limb,-0.2,0.25)
  934. createaddongen(limb,-0.35,0.25)
  935. createaddongen(limb,-0.65,0.45)
  936. end
  937.  
  938.  
  939. Debris = game:GetService("Debris")
  940.  
  941. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  942. local DIRECTION = CF(StartPos,EndPos).lookVector
  943. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  944. end
  945.  
  946. local HATWELD = nil
  947. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  948. PLAYMAINANIM = false
  949. if WhichPose == "Cast1" then
  950. for i=0, Time, 0.1 / Animation_Speed do
  951. Swait()
  952. if Magic == true then
  953. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  954. end
  955. if Gyro ~= nil and Gyro ~= false then
  956. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  957. end
  958. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  959. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  960. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  961. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  962. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  963. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  964. end
  965. elseif WhichPose == "Cast2" then
  966. for i=0, Time, 0.1 / Animation_Speed do
  967. Swait()
  968. if Magic == true then
  969. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  970. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  971. end
  972. if Gyro ~= nil and Gyro ~= false then
  973. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  974. end
  975. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  976. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  977. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  978. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  979. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  980. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  981. end
  982. elseif WhichPose == "RightArmUp" then
  983. for i=0, Time, 0.1 / Animation_Speed do
  984. Swait()
  985. if Magic == true then
  986. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  987. end
  988. if Gyro ~= nil and Gyro ~= false then
  989. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  990. end
  991. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  992. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  993. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  994. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  995. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  996. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  997. end
  998. elseif WhichPose == "Taunt" then
  999. for i=0, Time, 0.1 / Animation_Speed do
  1000. Swait()
  1001. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1002. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1003. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1004. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1005. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1006. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1007. end
  1008. HATWELD.Part0 = RightArm
  1009. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  1010. CreateSound(319332735,Torso,10,1,false)
  1011. for i=0, Time*2, 0.1 / Animation_Speed do
  1012. Swait()
  1013. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1014. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1015. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1016. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1017. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1018. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1019. end
  1020. for i=0, Time, 0.1 / Animation_Speed do
  1021. Swait()
  1022. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1023. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  1024. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1025. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1026. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1027. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1028. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  1029. end
  1030. HATWELD.Part0 = Head
  1031. HATWELD.C0 = CF(0,0.35,0)
  1032. elseif WhichPose == "Prepare key" then
  1033. for i=0, Time, 0.1 / Animation_Speed do
  1034. Swait()
  1035. if Gyro ~= nil and Gyro ~= false then
  1036. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1037. end
  1038. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  1039. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  1040. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1041. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1042. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1043. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1044. end
  1045. elseif WhichPose == "Turn key" then
  1046. for i=0, Time, 0.1 / Animation_Speed do
  1047. Swait()
  1048. if Gyro ~= nil and Gyro ~= false then
  1049. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1050. end
  1051. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  1052. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  1053. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1054. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1055. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1056. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1057. end
  1058. end
  1059. PLAYMAINANIM = true
  1060. end
  1061.  
  1062. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 9999, Branches = false})
  1063. function Lightning(Table)
  1064. local Color = Table.Color or C3(1,1,1)
  1065. local StartPos = Table.Start or Torso.Position
  1066. local EndPos = Table.End or Mouse.Hit.p
  1067. local SegmentLength = Table.SegmentL or 2
  1068. local Thickness = Table.Thickness or 0.1
  1069. local Dissapear = Table.DoesFade or false
  1070. local Parent = Table.Ignore or Character
  1071. local MaxDist = Table.MaxDist or 400
  1072. local Branches = Table.Branches or false
  1073. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  1074. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  1075. local LIGHTNINGMODEL = IT("Model",Effects)
  1076. LIGHTNINGMODEL.Name = "Lightning"
  1077. local LastBolt = nil
  1078. for E = 1, DISTANCE do
  1079. local ExtraSize = (DISTANCE-E)/15
  1080. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  1081. PART.Color = Color
  1082. MakeForm(PART,"Cyl")
  1083. if LastBolt == nil then
  1084. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1085. else
  1086. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1087. end
  1088. LastBolt = PART
  1089. if Branches == true then
  1090. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  1091. if CHOICE == 1 then
  1092. local LASTBRANCH = nil
  1093. for i = 1, MRANDOM(2,5) do
  1094. local ExtraSize2 = ((DISTANCE-E)/25)/i
  1095. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  1096. PART.Color = Color
  1097. MakeForm(PART,"Cyl")
  1098. if LASTBRANCH == nil then
  1099. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1100. else
  1101. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1102. end
  1103. LASTBRANCH = PART
  1104. end
  1105. end
  1106. end
  1107. end
  1108. if Dissapear == true then
  1109. coroutine.resume(coroutine.create(function()
  1110. for i = 1, 10 do
  1111. Swait()
  1112. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  1113. if c.ClassName == "Part" then
  1114. c.Transparency = i/10
  1115. end
  1116. end
  1117. end
  1118. LIGHTNINGMODEL:remove()
  1119. end))
  1120. elseif Dissapear == false then
  1121. Debris:AddItem(LIGHTNINGMODEL,0.1)
  1122. end
  1123. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  1124. end
  1125.  
  1126. --//=================================\\
  1127. --|| WEAPON CREATION
  1128. --\\=================================//
  1129. for i = 1, 15 do
  1130. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  1131. FACE.Color = C3(0,0,0)
  1132. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1133. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  1134. end
  1135. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
  1136. MakeForm(HAT1,"Cyl")
  1137. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  1138. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
  1139. BELT.Color = C3(15/255,15/255,15/255)
  1140. MakeForm(BELT,"Cyl")
  1141. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  1142. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
  1143. MakeForm(HAT2,"Cyl")
  1144. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  1145. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
  1146. BELT.Color = C3(15/255,15/255,15/255)
  1147. MakeForm(BELT,"Cyl")
  1148. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  1149. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Gem", VT(0.25,0.25,0.1),false)
  1150. MakeForm(GEM,"Ball")
  1151. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  1152. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Gem", VT(0.25,0.25,0.1),false)
  1153. MakeForm(GEM,"Ball")
  1154. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  1155. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Gem", VT(0.1,0.25,0.25),false)
  1156. MakeForm(GEM,"Ball")
  1157. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  1158. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Gem", VT(0.1,0.25,0.25),false)
  1159. MakeForm(GEM,"Ball")
  1160. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  1161. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1162. BELT.Color = C3(15/255,15/255,15/255)
  1163. MakeForm(BELT,"Cyl")
  1164. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  1165. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1166. BELT.Color = C3(15/255,15/255,15/255)
  1167. MakeForm(BELT,"Cyl")
  1168. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  1169. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1170. BELT.Color = C3(15/255,15/255,15/255)
  1171. MakeForm(BELT,"Cyl")
  1172. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  1173. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1174. BELT.Color = C3(15/255,15/255,15/255)
  1175. MakeForm(BELT,"Cyl")
  1176. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  1177. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
  1178. MakeForm(BELT,"Ball")
  1179. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  1180.  
  1181. local lightning = Instance.new("ParticleEmitter",Torso)
  1182. lightning.Texture = "http://www.roblox.com/asset/?id=348321827"
  1183. lightning.LightEmission = 0
  1184. lightning.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1))
  1185. lightning.LockedToPart = true
  1186. lightning.Rate = 20
  1187. lightning.Lifetime = NumberRange.new(0.1,0.10)
  1188. lightning.Rotation = NumberRange.new(0,360)
  1189. lightning.Size = NumberSequence.new(3,3,3)
  1190. lightning.Transparency = NumberSequence.new(0,0)
  1191. lightning.Speed = NumberRange.new(0,0)
  1192. lightning.RotSpeed = NumberRange.new(0,0)
  1193. lightning.ZOffset = 5
  1194. lightning.Parent = Character.Torso
  1195. lightning.Enabled = false
  1196.  
  1197. local eeeffecto = Instance.new("ParticleEmitter",Torso)
  1198. eeeffecto.Texture = "http://www.roblox.com/asset/?id=305943367"
  1199. eeeffecto.LightEmission = 0
  1200. eeeffecto.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1))
  1201. eeeffecto.LockedToPart = true
  1202. eeeffecto.Rate = 10
  1203. eeeffecto.Lifetime = NumberRange.new(0.1,0.1)
  1204. eeeffecto.Rotation = NumberRange.new(0,0)
  1205. eeeffecto.Size = NumberSequence.new(9,9,9)
  1206. eeeffecto.Transparency = NumberSequence.new(0,0)
  1207. eeeffecto.Speed = NumberRange.new(0,0)
  1208. eeeffecto.RotSpeed = NumberRange.new(0,0)
  1209. eeeffecto.Parent = Character.Torso
  1210. eeeffecto.Enabled = false
  1211.  
  1212. Humanoid.DisplayDistanceType = "None"
  1213. local naeeym2 = IT("BillboardGui",Character)
  1214. naeeym2.AlwaysOnTop = true
  1215. naeeym2.Size = UDim2.new(6,40,3,20)
  1216. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1217. naeeym2.MaxDistance = 200
  1218. naeeym2.Adornee = Character.Head
  1219. naeeym2.Name = "Name"
  1220. local tecks2 = IT("TextLabel",naeeym2)
  1221. tecks2.BackgroundTransparency = 1
  1222. tecks2.TextScaled = true
  1223. tecks2.BorderSizePixel = 0
  1224. tecks2.Text = "Warden of the Void"
  1225. tecks2.Font = "Antique"
  1226. tecks2.TextSize = 40
  1227. tecks2.TextStrokeTransparency = 0.5
  1228. tecks2.TextColor3 = Color3.new(0,0,0)
  1229. tecks2.TextStrokeColor3 = BRICKC"Eggplant".Color
  1230. tecks2.Size = UDim2.new(1,0,0.5,0)
  1231. tecks2.Parent = naeeym2
  1232. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "FaceGradient", VT(0.15,0.15,0.15),false)
  1233. MakeForm(EYE,"Ball")
  1234. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.55), CF(0, 0, 0))
  1235. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "FaceGradient", VT(0.05,0.14,0.05),false)
  1236. EYE.Color = C3(0,0,0)
  1237. MakeForm(EYE,"Ball")
  1238. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.6), CF(0, 0, 0))
  1239. local top = Instance.new("Shirt")
  1240. top.ShirtTemplate = "rbxassetid://476542397"
  1241. top.Parent = Character
  1242. top.Name = "Cloth"
  1243. local bottom = Instance.new("Pants")
  1244. bottom.PantsTemplate = "rbxassetid://476542637"
  1245. bottom.Parent = Character
  1246. bottom.Name = "Cloth"
  1247. for _, c in pairs(Character:GetChildren()) do
  1248. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  1249. c.Material = "Neon"
  1250. if c:FindFirstChildOfClass("ParticleEmitter") then
  1251. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1252. end
  1253. c.Color = C3(1,1,1)
  1254. if c == Head then
  1255. if c:FindFirstChild("face") then
  1256. c.face:remove()
  1257. end
  1258. end
  1259. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  1260. c:remove()
  1261. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1262. c:remove()
  1263. end
  1264. end
  1265. local BODY = {}
  1266. for _, c in pairs(Character:GetDescendants()) do
  1267. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1268. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1269. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1270. end
  1271. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1272. elseif c:IsA("JointInstance") then
  1273. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1274. end
  1275. end
  1276. for e = 1, #BODY do
  1277. if BODY[e] ~= nil then
  1278. local STUFF = BODY[e]
  1279. local PART = STUFF[1]
  1280. local PARENT = STUFF[2]
  1281. local MATERIAL = STUFF[3]
  1282. local COLOR = STUFF[4]
  1283. local TRANSPARENCY = STUFF[5]
  1284. if PART.ClassName == "Part" and PART ~= RootPart then
  1285. PART.Material = MATERIAL
  1286. PART.Color = COLOR
  1287. PART.Transparency = TRANSPARENCY
  1288. end
  1289. PART.AncestryChanged:Connect(function()
  1290. PART.Parent = PARENT
  1291. end)
  1292. end
  1293. end
  1294. function refit()
  1295. Character.Parent = workspace
  1296. for e = 1, #BODY do
  1297. if BODY[e] ~= nil then
  1298. local STUFF = BODY[e]
  1299. local PART = STUFF[1]
  1300. local PARENT = STUFF[2]
  1301. local MATERIAL = STUFF[3]
  1302. local COLOR = STUFF[4]
  1303. local TRANSPARENCY = STUFF[5]
  1304. if PART.ClassName == "Part" and PART ~= RootPart then
  1305. PART.Material = MATERIAL
  1306. PART.Color = COLOR
  1307. PART.Transparency = TRANSPARENCY
  1308. end
  1309. if PART.Parent ~= PARENT then
  1310. Humanoid:remove()
  1311. PART.Parent = PARENT
  1312. Humanoid = IT("Humanoid",Character)
  1313. end
  1314. end
  1315. end
  1316. end
  1317. local SKILLTEXTCOLOR = BRICKC"Eggplant".Color
  1318. local SKILLFONT = "Bodoni"
  1319. local SKILLTEXTSIZE = 7
  1320.  
  1321. local SKILLTEXTCOLOR2 = BRICKC"Royal purple".Color
  1322. local SKILLFONT = "Bodoni"
  1323. local SKILLTEXTSIZE = 7
  1324.  
  1325. Humanoid.Died:connect(function()
  1326. refit()
  1327. end)
  1328.  
  1329. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1330. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1331. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1332. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1333. local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1334. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.15, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  1335. local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.05, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
  1336. local SKILL8FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.10, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 8 Frame")
  1337. local SKILL9FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.10, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 9 Frame")
  1338. local SKILL10FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.10, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 10 Frame")
  1339. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Void Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  1340. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Void Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  1341. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Void Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  1342. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  1343. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Void Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  1344. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[F] Void Hop", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6")
  1345. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[G] Trap into the Void", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7")
  1346. local SKILL8TEXT = CreateLabel(SKILL8FRAME, "[P] Rift World", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 8")
  1347. local SKILL9TEXT = CreateLabel(SKILL9FRAME, "[E] Void Star", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 9")
  1348. local SKILL10TEXT = CreateLabel(SKILL10FRAME, "[Q] Void Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 10")
  1349.  
  1350. --//=================================\\
  1351. --|| DAMAGING
  1352. --\\=================================//
  1353.  
  1354. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  1355. local CHILDREN = workspace:GetDescendants()
  1356. for index, CHILD in pairs(CHILDREN) do
  1357. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1358. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1359. if HUM then
  1360. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1361. if TORSO then
  1362. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1363. CHILD:BreakJoints()
  1364. if FLING ~= 0 then
  1365. for _, c in pairs(CHILD:GetChildren()) do
  1366. if c:IsA("BasePart") and c.Transparency == 0 then
  1367. if BURN == true then
  1368. Fire(c)
  1369. end
  1370. local bv = Instance.new("BodyVelocity")
  1371. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1372. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1373. bv.Parent = c
  1374. Debris:AddItem(bv,0.05)
  1375. end
  1376. end
  1377. end
  1378. end
  1379. end
  1380. end
  1381. end
  1382. end
  1383. end
  1384.  
  1385. --//=================================\\
  1386. --|| text above head lel
  1387. --\\=================================//
  1388.  
  1389. function chatfunc(text)
  1390. local chat = coroutine.wrap(function()
  1391. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1392. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1393. end
  1394. local Bill = Instance.new("BillboardGui",Character)
  1395. Bill.Size = UDim2.new(0,100,0,40)
  1396. Bill.StudsOffset = Vector3.new(0,5.5,0)
  1397. Bill.Adornee = Character.Head
  1398. Bill.Name = "TalkingBillBoard"
  1399. local Hehe = Instance.new("TextLabel",Bill)
  1400. Hehe.BackgroundTransparency = 1
  1401. Hehe.BorderSizePixel = 0
  1402. Hehe.Text = ""
  1403. Hehe.Font = "Antique"
  1404. Hehe.TextSize = 50
  1405. Hehe.TextStrokeTransparency = 0
  1406. Hehe.Size = UDim2.new(1,0,0.5,0)
  1407. coroutine.resume(coroutine.create(function()
  1408. while Hehe ~= nil do
  1409. Swait()
  1410. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1411. Hehe.Rotation = math.random(-5,5)
  1412. Hehe.TextColor3 = Color3.new(0,0,0)
  1413. Hehe.TextStrokeColor3 = BRICKC"Eggplant".Color
  1414. end
  1415. end))
  1416. for i = 1,string.len(text),1 do
  1417. Swait()
  1418. Hehe.Text = string.sub(text,1,i)
  1419. end
  1420. Swait(90)--Re[math.random(1, 93)]
  1421. for i = 0, 1, .025 do
  1422. Swait()
  1423. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  1424. Hehe.TextStrokeTransparency = i
  1425. Hehe.TextTransparency = i
  1426. end
  1427. Bill:Destroy()
  1428. end)
  1429. chat()
  1430. end
  1431.  
  1432. function onChatted(msg)
  1433. chatfunc(msg)
  1434. end
  1435.  
  1436. Player.Chatted:connect(onChatted)
  1437.  
  1438.  
  1439. --//=================================\\
  1440. --|| ATTACK FUNCTIONS AND STUFF
  1441. --\\=================================//
  1442.  
  1443. --------------VOID BOX-------------------
  1444.  
  1445. function VoidBox()
  1446. local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  1447. if HITFLOOR ~= nil then
  1448. ATTACK = false
  1449. Rooted = false
  1450. local RINGSPIN = true
  1451. local CONSTRUCTING = true
  1452. local RING = CreatePart(3, Effects, "Neon", 0, 1, "Eggplant", "Ring", VT(0,0,0))
  1453. RING.Color = C3(0,0,0)
  1454. MakeForm(RING,"Cyl")
  1455. RING.CFrame = CF(HITPOS)
  1456. CreateSound(402981977, RING, 5, 1.2, false)
  1457. coroutine.resume(coroutine.create(function()
  1458. repeat
  1459. Swait()
  1460. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1461. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1462. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1463. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1464. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1465. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1466. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1467. until CONSTRUCTING == false
  1468. repeat
  1469. Swait()
  1470. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1471. until RINGSPIN == false
  1472. for i = 1, 25 do
  1473. Swait()
  1474. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  1475. RING.Size = RING.Size - VT(0.15,0,0.15)
  1476. --DECAL.Transparency = DECAL.Transparency + 1/25
  1477. RING.Transparency = RING.Transparency + 1/25
  1478. end
  1479. RING:remove()
  1480. end))
  1481. for i = 1, 15 do
  1482. Swait()
  1483. RING.Size = RING.Size + VT(0.75,0,0.75)
  1484. RING.Transparency = RING.Transparency - 1/15
  1485. end
  1486. local BOXSPIN = true
  1487. local PANDORASBOX = IT("Model",Effects2)
  1488. PANDORASBOX.Name = "Pandora's Box"
  1489. local BOX = IT("Model",PANDORASBOX)
  1490. BOX.Name = "Body"
  1491. local LID = IT("Model",PANDORASBOX)
  1492. LID.Name = "Lid"
  1493. --BUILDING THE BOX--
  1494. local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Eggplant", "Black", VT(2,1.8,2))
  1495. BASE.Color = C3(0,0,0)
  1496. PANDORASBOX.PrimaryPart = BASE
  1497. BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
  1498. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,1.9,0.2))
  1499. WOOD.CFrame = BASE.CFrame*CF(1,0,1)
  1500. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,1.9,0.2))
  1501. WOOD.CFrame = BASE.CFrame*CF(1,0,-1)
  1502. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,1.9,0.2))
  1503. WOOD.CFrame = BASE.CFrame*CF(-1,0,1)
  1504. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,1.9,0.2))
  1505. WOOD.CFrame = BASE.CFrame*CF(-1,0,-1)
  1506. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2))
  1507. WOOD.CFrame = BASE.CFrame*CF(0,0.9,1)
  1508. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2))
  1509. WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1)
  1510. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1))
  1511. WOOD.CFrame = BASE.CFrame*CF(1,0.9,0)
  1512. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1))
  1513. WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0)
  1514. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2))
  1515. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1)
  1516. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2))
  1517. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1)
  1518. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1))
  1519. WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0)
  1520. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1))
  1521. WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0)
  1522. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(2.1,1.9,0.1))
  1523. WOOD.CFrame = BASE.CFrame*CF(0,0,1)
  1524. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(2.1,1.9,0.1))
  1525. WOOD.CFrame = BASE.CFrame*CF(0,0,-1)
  1526. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(0.1,1.9,2.1))
  1527. WOOD.CFrame = BASE.CFrame*CF(1,0,0)
  1528. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(0.1,1.9,2.1))
  1529. WOOD.CFrame = BASE.CFrame*CF(-1,0,0)
  1530. local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(2.1,0.1,2.1))
  1531. WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0)
  1532. -------------
  1533. local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Eggplant", "Marble", VT(2.1,0.1,2.1))
  1534. LIDPART.CFrame = BASE.CFrame*CF(0,1,0)
  1535. LID.PrimaryPart = LIDPART
  1536. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2))
  1537. WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1)
  1538. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2))
  1539. WOOD.CFrame = LIDPART.CFrame*CF(0,0,1)
  1540. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1))
  1541. WOOD.CFrame = LIDPART.CFrame*CF(1,0,0)
  1542. local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1))
  1543. WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0)
  1544. local DECAL = IT("Decal",LIDPART)
  1545. DECAL.Face = "Top"
  1546. DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061"
  1547. DECAL.Color3 = C3(0,0,0)
  1548. --BUILDING THE BOX--
  1549. coroutine.resume(coroutine.create(function()
  1550. repeat
  1551. Swait()
  1552. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0)))
  1553. until BOXSPIN == false
  1554. end))
  1555. for i = 1, 25 do
  1556. Swait()
  1557. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0))
  1558. end
  1559. wait(0.5)
  1560. BOXSPIN = false
  1561. CONSTRUCTING = false
  1562. coroutine.resume(coroutine.create(function()
  1563. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6})
  1564. --[[for i = 1, 45 do
  1565. Swait()
  1566. LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0)))
  1567. end-
  1568. LID:remove()]]--
  1569. for _, c in pairs(LID:GetChildren()) do
  1570. if c.ClassName == "Part" then
  1571. c.Anchored = false
  1572. c.CanCollide = true
  1573. if c ~= LIDPART then
  1574. weldBetween(LIDPART,c)
  1575. end
  1576. end
  1577. end
  1578. LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65
  1579. Debris:AddItem(LID,15)
  1580. wait(0.5)
  1581. local RANDOMEFFECT = MRANDOM(1,4)
  1582. if RANDOMEFFECT == 1 then
  1583. for i = 1, 45 do
  1584. wait((2-(i/15))/15)
  1585. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,MRANDOM(12,15),0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(1,5)), MoveToPos = BASE.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.8, SoundVolume = 6})
  1586. end
  1587. wait(1)
  1588. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
  1589. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6})
  1590. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  1591. for i = 1, 5 do
  1592. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1593. end
  1594. ApplyAoE(BASE.Position,50,1,200,375,false)
  1595. ApplyAoE(BASE.Position,250,35,75,175,false)
  1596. elseif RANDOMEFFECT == 2 then
  1597. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Field", VT(0.3,0.3,0.3))
  1598. FIELD.CFrame = BASE.CFrame
  1599. MakeForm(FIELD,"Ball")
  1600. for i = 1, 50 do
  1601. Swait()
  1602. FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
  1603. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  1604. end
  1605. wait(0.2)
  1606. local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true)
  1607. coroutine.resume(coroutine.create(function()
  1608. for i = 1, 75 do
  1609. Swait()
  1610. LOOP.Volume = LOOP.Volume + 10/75
  1611. LOOP.Parent = FIELD
  1612. local CHILDREN = workspace:GetDescendants()
  1613. for index, CHILD in pairs(CHILDREN) do
  1614. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1615. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1616. if HUM then
  1617. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1618. if TORSO then
  1619. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  1620. HUM.Health = HUM.Health - 0.1
  1621. TORSO.Velocity = VT(0,5,0)
  1622. HUM.PlatformStand = true
  1623. if TORSO.RotVelocity.Magnitude < 15 then
  1624. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  1625. end
  1626. end
  1627. end
  1628. end
  1629. end
  1630. end
  1631. FIELD.Size = FIELD.Size + VT(3,3,3)
  1632. FIELD.Transparency = FIELD.Transparency + 0.8/75
  1633. end
  1634. for i = 1, 500 do
  1635. Swait()
  1636. LOOP.Parent = FIELD
  1637. local CHILDREN = workspace:GetDescendants()
  1638. for index, CHILD in pairs(CHILDREN) do
  1639. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1640. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1641. if HUM then
  1642. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1643. if TORSO then
  1644. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  1645. TORSO.Velocity = VT(0,5,0)
  1646. HUM.Health = HUM.Health - 0.1
  1647. HUM.PlatformStand = true
  1648. if TORSO.RotVelocity.Magnitude < 15 then
  1649. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  1650. end
  1651. end
  1652. end
  1653. end
  1654. end
  1655. end
  1656. end
  1657. for i = 1, 25 do
  1658. Swait()
  1659. LOOP.Volume = LOOP.Volume + 10/25
  1660. LOOP.Parent = FIELD
  1661. local CHILDREN = workspace:GetDescendants()
  1662. for index, CHILD in pairs(CHILDREN) do
  1663. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1664. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1665. if HUM then
  1666. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1667. if TORSO then
  1668. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
  1669. TORSO.Velocity = VT(0,5,0)
  1670. HUM.Health = HUM.Health - 0.1
  1671. HUM.PlatformStand = false
  1672. if TORSO.RotVelocity.Magnitude < 15 then
  1673. TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
  1674. end
  1675. end
  1676. end
  1677. end
  1678. end
  1679. end
  1680. FIELD.Size = FIELD.Size - VT(3,3,3)
  1681. FIELD.Transparency = FIELD.Transparency + 0.2/25
  1682. end
  1683. FIELD:remove()
  1684. end))
  1685. elseif RANDOMEFFECT == 3 then
  1686. for i = 1, 10 do
  1687. wait(0.15)
  1688. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6})
  1689. coroutine.resume(coroutine.create(function()
  1690. local MINION = CLONE:Clone()
  1691. MINION.Parent = Effects
  1692. MINION.Name = "Shadow"
  1693. MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
  1694. MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100)
  1695. for _, c in pairs(MINION:GetChildren()) do
  1696. if c.ClassName == "Part" then
  1697. c.Material = "Neon"
  1698. c.Color = C3(0,0,0)
  1699. c.Transparency = 0.25
  1700. if c.Name == "Head" then
  1701. c:ClearAllChildren()
  1702. local MSH = IT("BlockMesh",c)
  1703. MSH.Scale = VT(0.5,1,1)
  1704. end
  1705. end
  1706. end
  1707. local TORSO = MINION.Torso
  1708. local HUMAN = MINION.Humanoid
  1709. HUMAN.WalkSpeed = 100
  1710. HUMAN.MaxHealth = math.huge
  1711. HUMAN.Health = math.huge
  1712. HUMAN.DisplayDistanceType = "None"
  1713. HUMAN.Died:connect(function()
  1714. MINION:remove()
  1715. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
  1716. end)
  1717. wait(1)
  1718. local findNearestTorso = function(POS)
  1719. local list = game.Workspace:GetDescendants()
  1720. local torso = nil
  1721. local dist = 9999
  1722. local temp = nil
  1723. local human = nil
  1724. local temp2 = nil
  1725. for x = 1, #list do
  1726. temp2 = list[x]
  1727. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
  1728. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1729. human = temp2:findFirstChildOfClass("Humanoid")
  1730. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1731. if (temp.Position - POS).magnitude < dist then
  1732. torso = temp
  1733. dist = (temp.Position - POS).magnitude
  1734. end
  1735. end
  1736. end
  1737. end
  1738. return torso, dist
  1739. end
  1740. for i = 1, 40 do
  1741. if HUMAN.Health == 0 then
  1742. break
  1743. end
  1744. wait(0.3)
  1745. local target,dist= findNearestTorso(TORSO.Position)
  1746. if target then
  1747. HUMAN:MoveTo(target.Position)
  1748. if dist < 999 then
  1749. CreateSound(348663022, TORSO, 10, 1, true)
  1750. wait(0.5)
  1751. --local ANIM = HUMAN:LoadAnimation(ATANIM)
  1752. --ANIM:Play()
  1753. --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
  1754. ApplyAoE(TORSO.Position,10,0,0,85,false)
  1755. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10})
  1756. for i = 1, 5 do
  1757. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1758. end
  1759. break
  1760. end
  1761. end
  1762. end
  1763. MINION:remove()
  1764. end))
  1765. end
  1766. elseif RANDOMEFFECT == 4 then
  1767. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
  1768. FIELD.Color = C3(0,0,0)
  1769. FIELD.CFrame = BASE.CFrame
  1770. MakeForm(FIELD,"Ball")
  1771. FIELD.CanCollide = true
  1772. for i = 1, 50 do
  1773. Swait()
  1774. FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
  1775. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  1776. end
  1777. wait(0.2)
  1778. local LOOP = CreateSound(487214658, FIELD, 0, 1, true)
  1779. coroutine.resume(coroutine.create(function()
  1780. local E = 0
  1781. for i = 1, 75 do
  1782. E = E + 1
  1783. Swait()
  1784. if E >= 35 then
  1785. E = 0
  1786. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
  1787. end
  1788. LOOP.Volume = LOOP.Volume + 10/75
  1789. LOOP.Parent = FIELD
  1790. local CHILDREN = workspace:GetDescendants()
  1791. for index, CHILD in pairs(CHILDREN) do
  1792. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1793. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1794. if HUM then
  1795. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1796. if TORSO then
  1797. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  1798. for _, c in pairs(CHILD:GetChildren()) do
  1799. if c:IsA("BasePart") then
  1800. local bv = Instance.new("BodyVelocity")
  1801. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1802. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  1803. bv.Parent = c
  1804. Debris:AddItem(bv,0.05)
  1805. end
  1806. end
  1807. HUM.Health = HUM.Health - 0.3
  1808. end
  1809. end
  1810. end
  1811. end
  1812. end
  1813. FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5
  1814. end
  1815. for i = 1, 180 do
  1816. E = E + 1
  1817. Swait()
  1818. if E >= 35 then
  1819. E = 0
  1820. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
  1821. end
  1822. LOOP.Parent = FIELD
  1823. local CHILDREN = workspace:GetDescendants()
  1824. for index, CHILD in pairs(CHILDREN) do
  1825. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1826. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1827. if HUM then
  1828. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1829. if TORSO then
  1830. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
  1831. for _, c in pairs(CHILD:GetChildren()) do
  1832. if c:IsA("BasePart") then
  1833. local bv = Instance.new("BodyVelocity")
  1834. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1835. bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
  1836. bv.Parent = c
  1837. Debris:AddItem(bv,0.05)
  1838. end
  1839. end
  1840. HUM.Health = HUM.Health - 0.3
  1841. end
  1842. end
  1843. end
  1844. end
  1845. end
  1846. end
  1847. ApplyAoE(FIELD.Position,40,15,20,375,false)
  1848. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6})
  1849. for i = 1, 5 do
  1850. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1851. end
  1852. FIELD:remove()
  1853. end))
  1854. elseif RANDOMEFFECT == 5 then
  1855. end
  1856. wait(0.5)
  1857. for i = 1, 25 do
  1858. Swait()
  1859. PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0))
  1860. end
  1861. PANDORASBOX:remove()
  1862. RINGSPIN = false
  1863. end))
  1864. ATTACK = false
  1865. Rooted = false
  1866. end
  1867. end
  1868. --------------VOID STAR-------------------
  1869.  
  1870. --Explosion--
  1871. function Expld(rad,pos)
  1872. local ex = Instance.new("Explosion",game.Workspace)
  1873. ex.BlastRadius = rad
  1874. ex.BlastPressure = 0
  1875. ex.Position = pos
  1876. ex.Visible = false
  1877. ex.Hit:connect(function(hit)
  1878. if hit.Parent ~= chara and hit.Parent:FindFirstChild("Humanoid")~= nil then
  1879. hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - rad
  1880. end
  1881. end)
  1882. end
  1883.  
  1884. local asd = Instance.new("ParticleEmitter")
  1885. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  1886. asd.LightEmission = .1
  1887. asd.Texture = "http://www.roblox.com/asset/?ID=249481494"
  1888. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  1889. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1890. asd.Transparency = bbb
  1891. asd.Size = aaa
  1892. asd.ZOffset = .9
  1893. asd.Acceleration = Vector3.new(0, -15, 0)
  1894. asd.LockedToPart = false
  1895. asd.EmissionDirection = "Back"
  1896. asd.Lifetime = NumberRange.new(1, 2)
  1897. asd.Rotation = NumberRange.new(-100, 100)
  1898. asd.RotSpeed = NumberRange.new(-100, 100)
  1899. asd.Speed = NumberRange.new(10)
  1900. asd.Enabled = false
  1901. asd.VelocitySpread = 999
  1902.  
  1903. function getbloody(victim,amount)
  1904. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  1905. PART.CFrame = victim.CFrame
  1906. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1907. Debris:AddItem(PART,5)
  1908. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1909. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1910. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1911. local prtcl = asd:Clone()
  1912. prtcl.Parent = PART
  1913. prtcl:Emit(amount*10)
  1914. end
  1915.  
  1916. function Kill(Char)
  1917. local NewCharacter = IT("Model",Effects)
  1918. NewCharacter.Name = "Ow im ded lul ;-;"
  1919. for _, c in pairs(Char:GetDescendants()) do
  1920. if c:IsA("BasePart") and c.Transparency == 0 then
  1921. if c.Parent == Char then
  1922. getbloody(c,5)
  1923. end
  1924. c:BreakJoints()
  1925. c.Material = "Glass"
  1926. c.Color = C3(0.5,0,0)
  1927. c.CanCollide = true
  1928. c.Transparency = 0.3
  1929. if c:FindFirstChildOfClass("SpecialMesh") then
  1930. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1931. end
  1932. if c.Name == "Head" then
  1933. c:ClearAllChildren()
  1934. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1935. end
  1936. if c.ClassName == "MeshPart" then
  1937. c.TextureID = ""
  1938. end
  1939. if c:FindFirstChildOfClass("BodyPosition") then
  1940. c:FindFirstChildOfClass("BodyPosition"):remove()
  1941. end
  1942. if c:FindFirstChildOfClass("ParticleEmitter") then
  1943. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1944. end
  1945. c.Parent = NewCharacter
  1946. c.Name = "DeadPart"
  1947. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1948. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1949. end
  1950. end
  1951. Char:remove()
  1952. Debris:AddItem(NewCharacter,5)
  1953. end
  1954.  
  1955.  
  1956. function ApplyAoE3(POSITION,RANGE,BRUTAL)
  1957. local CHILDREN = workspace:GetDescendants()
  1958. for index, CHILD in pairs(CHILDREN) do
  1959. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1960. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1961. if HUM then
  1962. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1963. if TORSO then
  1964. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1965. if BRUTAL == true then
  1966. Kill(CHILD)
  1967. else
  1968. CHILD:BreakJoints()
  1969. end
  1970. end
  1971. end
  1972. end
  1973. end
  1974. end
  1975. end
  1976.  
  1977. function VoidStar()
  1978. ATTACK = true
  1979. Rooted = true
  1980. for i=0, 1, 0.1 / Animation_Speed do
  1981. Swait()
  1982. 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)
  1983. 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)
  1984. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1985. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1986. 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)
  1987. 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)
  1988. end
  1989. coroutine.resume(coroutine.create(function()
  1990. local POS = Mouse.Hit.p
  1991. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Eggplant", "Strike", VT(0,2000,0))
  1992. MakeForm(RAY,"Cyl")
  1993. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Eggplant", "Strike", VT(0,0,0))
  1994. MakeForm(SPHERE,"Ball")
  1995. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
  1996. MakeForm(SHIELD,"Ball")
  1997. SHIELD.CFrame = CF(POS)
  1998. RAY.CFrame = CF(POS)
  1999. SPHERE.CFrame = CF(POS)
  2000. CreateSound(440145570, SPHERE, 10, 0.8, false)
  2001. CreateSound(415700134, SPHERE, 10, 0.8, false)
  2002. for i = 1, 200 do
  2003. Swait()
  2004. 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(123,0,123), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2005. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  2006. SPHERE.Size = SPHERE.Size + VT(2,2,2)
  2007. SHIELD.Size = SPHERE.Size + VT(3,3,3)
  2008. ApplyAoE3(SPHERE.Position,SPHERE.Size.X/2,true)
  2009. end
  2010. for i = 1, 45 do
  2011. Swait()
  2012. RAY.Transparency = RAY.Transparency + 1/45
  2013. SPHERE.Transparency = RAY.Transparency
  2014. SHIELD.Transparency = SPHERE.Transparency + 1/45
  2015. end
  2016. RAY:remove()
  2017. SHIELD:remove()
  2018. SPHERE:remove()
  2019. end))
  2020. for i=0, 1, 0.1 / Animation_Speed do
  2021. Swait()
  2022. 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)
  2023. 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)
  2024. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2025. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2026. 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)
  2027. 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)
  2028. end
  2029. ATTACK = false
  2030. Rooted = false
  2031. end
  2032.  
  2033. --------------RIFT WORLD-------------------
  2034.  
  2035. function RiftForm()
  2036. ATTACK = true
  2037. Rooted = false
  2038. UNANCHOR = false
  2039. RootPart.Anchored = true
  2040. for i=0, 5, 0.1 / Animation_Speed do
  2041. Swait()
  2042. RootPart.CFrame = RootPart.CFrame * CF(0,0.2,0)
  2043. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2044. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2045. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2046. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2047. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
  2048. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
  2049. end
  2050. CreateSound("1368598393", Effects, 10, 1)
  2051. for i=0, 2, 0.1 / Animation_Speed do
  2052. Swait()
  2053. local CFRAME = CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2054. MagicSphere3(VT(0,0,0),15,CFRAME,"Really black",VT(0.1,0.1,5))
  2055. MagicSphere3(VT(0.1,0.1,0.1),15,CFRAME,"Really black",VT(0.1,0.1,5))
  2056. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2057. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2058. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2059. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2060. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  2061. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  2062. end
  2063. CreateSound("1368583274", Effects, 10, 1)
  2064. for i=0, 6, 0.1 / Animation_Speed do
  2065. Swait()
  2066. CreateRing2(VT(45,5,0)*2,false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-1,0,0))
  2067. CreateRing2(VT(45,5,0)*3,false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-1,0,0)*3)
  2068. local CFRAME = CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))
  2069. MagicSphere3(VT(0,0,0),15,CFRAME,"Really black",VT(0.1,0.1,55))
  2070. MagicSphere3(VT(0,0,0),15,CFRAME,"Really black",VT(2,2,2))
  2071. MagicSphere3(VT(0.1,0.1,0.1),15,CFRAME,"Really black",VT(0.1,0.1,55))
  2072. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2073. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2074. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2075. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2076. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  2077. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  2078. end
  2079. CreateSound("907329532", Effects, 10, 0.9)
  2080. Swait(175)
  2081. CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(7,7,0))
  2082. CreateSound("1368605755", Effects, 10, 1)
  2083. CreateSound("1368637781", Effects, 10, 1)
  2084. MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Really black",VT(5,5,5))
  2085. TRUEFORM = true
  2086. for i=0, 1, 0.1 / Animation_Speed do
  2087. CreateRing2(VT(0,0,0),false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(4,4,0))
  2088. CreateRing2(VT(0,0,0),false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(5,5,0))
  2089. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2090. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed)
  2091. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2092. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2093. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-50)), 2 / Animation_Speed)
  2094. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 2 / Animation_Speed)
  2095. end
  2096. UNANCHOR = true
  2097. RootPart.Anchored = false
  2098. ATTACK = false
  2099. Rooted = false
  2100. end
  2101.  
  2102. -- LIMIT BROKEN
  2103.  
  2104. local DECAL = IT("Decal")
  2105. function MakeRing()
  2106. local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "MagicRing", VT(0, 0, 0), true)
  2107. local MSH = IT("BlockMesh", RING)
  2108. local TOP = DECAL:Clone()
  2109. local BOTTOM = DECAL:Clone()
  2110. TOP.Parent = RING
  2111. BOTTOM.Parent = RING
  2112. TOP.Face = "Top"
  2113. BOTTOM.Face = "Bottom"
  2114. TOP.Texture = "http://www.roblox.com/asset/?id=1259031636"
  2115. BOTTOM.Texture = "http://www.roblox.com/asset/?id=1259031636"
  2116. local function REMOVE()
  2117. coroutine.resume(coroutine.create(function()
  2118. local SIZE = MSH.Scale.X
  2119. for i = 1, 35 do
  2120. Swait()
  2121. MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60
  2122. TOP.Transparency = TOP.Transparency + 0.02857142857142857
  2123. BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857
  2124. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
  2125. end
  2126. RING:remove()
  2127. end))
  2128. end
  2129. return RING, MSH, REMOVE
  2130. end
  2131.  
  2132. function SHAKECAM(POSITION, RANGE, INTENSITY, TIME)
  2133. local TORSO = Torso
  2134. local HUM = Humanoid
  2135. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  2136. coroutine.wrap(function()
  2137. VT = Vector3.new
  2138. MRANDOM = math.random
  2139. local A = TIME
  2140. local B = INTENSITY
  2141. local C = true
  2142. local HUMANOID = Humanoid
  2143. local TIMER = A or 35
  2144. local SHAKE = B or 5
  2145. local FADE = C or true
  2146. if HUMANOID then
  2147. local FADER = SHAKE / TIMER
  2148. for i = 1, TIMER do
  2149. wait()
  2150. HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10)
  2151. end
  2152. HUMANOID.CameraOffset = VT(0, 0, 0)
  2153. end
  2154.  
  2155. end)()
  2156. end
  2157. end
  2158.  
  2159. function NS(...)
  2160. local tab = {...}
  2161. local fat = {}
  2162. for i = 1, #tab do
  2163. local v = tab[i]
  2164. table.insert(fat,NumberSequenceKeypoint.new(v[1],v[2]))
  2165. end
  2166. return NumberSequence.new(fat);
  2167. end
  2168.  
  2169. local hed = Character:WaitForChild("Head")
  2170.  
  2171. cors = {}
  2172. mas = Instance.new("Model",game:GetService("Lighting"))
  2173. ParticleEmitter1 = Instance.new("ParticleEmitter")
  2174. ParticleEmitter1.Name = "Death"
  2175. ParticleEmitter1.Texture = "rbxassetid://249481494"
  2176. ParticleEmitter1.Color = ColorSequence.new(Color3.fromRGB(0, 0, 255))
  2177. ParticleEmitter1.EmissionDirection = "Top"
  2178. ParticleEmitter1.Parent = mas
  2179. ParticleEmitter1.Enabled = false
  2180. ParticleEmitter1.Speed = NumberRange.new(8)
  2181. ParticleEmitter1.Size = NumberSequence.new(8,0)
  2182. ParticleEmitter1.Transparency = NumberSequence.new(0,1)
  2183. ParticleEmitter1.Drag = 1.2
  2184. ParticleEmitter1.LockedToPart = true
  2185. ParticleEmitter1.Lifetime = NumberRange.new(0, 1)
  2186. ParticleEmitter1.Rate = 195
  2187. ParticleEmitter1.RotSpeed = NumberRange.new(-56, 56)
  2188. ParticleEmitter1.LightEmission = 0
  2189. ParticleEmitter1.Rotation = NumberRange.new(-360,360)
  2190. ParticleEmitter1.VelocitySpread = 100.2
  2191. ParticleEmitter1.ZOffset = 2.5
  2192.  
  2193.  
  2194. for i,v in pairs(mas:GetChildren()) do
  2195. v.Parent = script
  2196. pcall(function() v:MakeJoints() end)
  2197. end
  2198. mas:Destroy()
  2199. for i,v in pairs(cors) do
  2200. spawn(function()
  2201. pcall(v)
  2202. end)
  2203. end
  2204.  
  2205. local DParticles = script.Death
  2206. DParticles:remove()
  2207. DParticles.Name = "ArchangelDeathParticles"
  2208. local BODY = {}
  2209. for _, c in pairs(Character:GetDescendants()) do
  2210. if c:IsA("BasePart") and c.Name ~= "Handle" then
  2211. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  2212. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2213. end
  2214. table.insert(BODY, {
  2215. c,
  2216. c.Parent,
  2217. c.Material,
  2218. c.Color,
  2219. c.Transparency
  2220. })
  2221. elseif c:IsA("JointInstance") then
  2222. table.insert(BODY, {
  2223. c,
  2224. c.Parent,
  2225. nil,
  2226. nil,
  2227. nil
  2228. })
  2229. end
  2230. end
  2231.  
  2232. function ApplyAoE2(POSITION, RANGE)
  2233. local PARTS = {}
  2234. for index, CHILD in pairs(workspace:GetDescendants()) do
  2235. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2236. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2237. if HUM then
  2238. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2239. if TORSO and HUM.Health > 0 and RANGE >= (TORSO.Position - POSITION).Magnitude then
  2240. CHILD:BreakJoints()
  2241. for index, PART in pairs(CHILD:GetChildren()) do
  2242. if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" then
  2243. local P = DParticles:Clone()
  2244. P.Parent = PART
  2245. P.Enabled = true
  2246. P.Color = ColorSequence.new(PART.Color, C3(1, 1, 1))
  2247. PART.Anchored = true
  2248. table.insert(PARTS, {PART, P})
  2249. end
  2250. end
  2251. end
  2252. end
  2253. elseif CHILD:IsA("BasePart") and CHILD.Parent.Parent ~= Character and CHILD.Parent:FindFirstChildOfClass("Humanoid") == nil and CHILD:FindFirstChild("ewdfrfgrwefd") == nil and CHILD.Size.Magnitude < RANGE * 2 and CHILD.Size.Magnitude < 200 and RANGE > (CHILD.Position - POSITION).Magnitude then
  2254. local FOLDER = IT("Folder", CHILD)
  2255. FOLDER.Name = "ewdfrfgrwefd"
  2256. local P = DParticles:Clone()
  2257. P.Parent = CHILD
  2258. P.Enabled = true
  2259. CHILD:BreakJoints()
  2260. CHILD.CanCollide = false
  2261. CHILD.Anchored = true
  2262. P.Rate = math.ceil(CHILD.Size.Magnitude / 2)
  2263. P.Color = ColorSequence.new(CHILD.Color, C3(1, 1, 1))
  2264. table.insert(PARTS, {CHILD, P})
  2265. end
  2266. end
  2267. coroutine.resume(coroutine.create(function()
  2268. if #PARTS > 0 then
  2269. for i = 1, 85 do
  2270. Swait()
  2271. for E = 1, #PARTS do
  2272. local F = PARTS[E]
  2273. local A = F[1]
  2274. local B = F[2]
  2275. A.Transparency = A.Transparency + 0.011764705882352941
  2276. B.Rate = math.ceil(B.Rate * 1.2)
  2277. for index, E in pairs(A:GetChildren()) do
  2278. if E:IsA("Decal") or E:IsA("Texture") then
  2279. E.Transparency = E.Transparency + 0.011764705882352941
  2280. elseif E:IsA("JointInstance") then
  2281. E:remove()
  2282. elseif E:IsA("Light") or E:IsA("ParticleEmitter") and E ~= B and E.Name ~= "ArchangelDeathParticles" or E:IsA("Fire") or E:IsA("Sparkles") or E:IsA("Smoke") then
  2283. E.Enabled = false
  2284. end
  2285. end
  2286. end
  2287. end
  2288. for E = 1, #PARTS do
  2289. local F = PARTS[E]
  2290. local A = F[1]
  2291. local B = F[2]
  2292. B.Enabled = false
  2293. Debris:AddItem(A, 3)
  2294. end
  2295. end
  2296. end))
  2297. end
  2298.  
  2299. function VoidThunder2()
  2300. ATTACK = true
  2301. Rooted = true
  2302. local GYRO = IT("BodyGyro", RootPart)
  2303. GYRO.D = 20
  2304. GYRO.P = 4000
  2305. GYRO.MaxTorque = VT(0, 40000, 0)
  2306. local RING, MESH, DELET = MakeRing()
  2307. local HITFLOOR, HITPOS = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character)
  2308. RING.CFrame = CF(HITPOS)
  2309. for i = 0, 0.6, 0.1 / Animation_Speed do
  2310. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  2311. Swait()
  2312. MESH.Scale = MESH.Scale + VT(53, 0, 53)
  2313. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  2314. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2315. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  2316. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25 - 7.5 * SIN(SINE / 12)), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2317. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2318. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2319. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2320. end
  2321. coroutine.resume(coroutine.create(function()
  2322. local CFRAME = RootPart.CFrame
  2323. for i = 1, 100 do
  2324. CFRAME = CFRAME * CF(0, 0, -35)
  2325. do
  2326. local HITFLOOR, HITPOS = Raycast(CFRAME.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character)
  2327. if HITFLOOR then
  2328. Swait()
  2329. do
  2330. local OFFSET = CFRAME * CF(MRANDOM(-25, 25), 0, 0)
  2331. coroutine.resume(coroutine.create(function()
  2332. local RING, MESH, DELET = MakeRing()
  2333. RING.CFrame = CF(OFFSET.p.X, HITPOS.Y, OFFSET.p.Z)
  2334. for i = 1, 25 do
  2335. Swait()
  2336. MESH.Scale = MESH.Scale + VT(42, 0, 42)
  2337. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  2338. end
  2339. ApplyAoE2(RING.Position, 65)
  2340. SHAKECAM(RING.Position, 80, 12, 15)
  2341. local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0))
  2342. WACKYEFFECT({
  2343. Time = 25,
  2344. EffectType = "Sphere",
  2345. Size = VT(22, 22, 22),
  2346. Size2 = VT(85, 85, 85),
  2347. Transparency = 0,
  2348. Transparency2 = 1,
  2349. CFrame = CF(RING.Position),
  2350. MoveToPos = nil,
  2351. RotationX = 0,
  2352. RotationY = 0,
  2353. RotationZ = 0,
  2354. Material = "Neon",
  2355. Color = C3(0,0,0),
  2356. })
  2357. for e = 1, 3 do
  2358. WACKYEFFECT({
  2359. EffectType = "Wave",
  2360. Size = VT(25, 0, 25),
  2361. Size2 = VT(40, 0, 40) + VT(e * 6, e / 5, e * 6),
  2362. Transparency = 0,
  2363. Transparency2 = 1,
  2364. CFrame = CF(RING.Position) * ANGLES(RAD(0), RAD(72 * i), RAD(0)),
  2365. MoveToPos = nil,
  2366. RotationX = 0,
  2367. RotationY = 3,
  2368. RotationZ = 0,
  2369. Material = "Neon",
  2370. Color = C3(0,0,0),
  2371. SoundID = nil,
  2372. SoundPitch = nil,
  2373. SoundVolume = nil
  2374. })
  2375. WACKYEFFECT({
  2376. Time = 35,
  2377. EffectType = "Sphere",
  2378. Size = VT(22, 45, 22),
  2379. Size2 = VT(25, 45 + e * 75, 25),
  2380. Transparency = 0,
  2381. Transparency2 = 1,
  2382. CFrame = CF(RING.Position) * TURN,
  2383. MoveToPos = nil,
  2384. RotationX = 0,
  2385. RotationY = 0,
  2386. RotationZ = 0,
  2387. Material = "Neon",
  2388. Color = C3(0,0,0),
  2389. SoundID = nil,
  2390. SoundPitch = MRANDOM(9, 12) / 10,
  2391. SoundVolume = 10
  2392. })
  2393. end
  2394. wait(0.3)
  2395. DELET()
  2396. end))
  2397. end
  2398. end
  2399. end
  2400. end
  2401. end))
  2402. Rooted = false
  2403. for i = 0, 0.2, 0.1 / Animation_Speed do
  2404. Swait()
  2405. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(75)), 1 / Animation_Speed)
  2406. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), 1 / Animation_Speed)
  2407. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(145 - 7.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2408. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2409. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2410. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2411. end
  2412. DELET()
  2413. GYRO:remove()
  2414. ATTACK = false
  2415. Rooted = false
  2416. end
  2417.  
  2418. function Nuke()
  2419. ATTACK = true
  2420. Rooted = true
  2421. local CHARGE = false
  2422. local BLASTS = {468991944, 468991990}
  2423. coroutine.resume(coroutine.create(function()
  2424. repeat
  2425. Swait()
  2426. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 0.1 / Animation_Speed)
  2427. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed)
  2428. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  2429. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  2430. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  2431. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  2432. until CHARGE == true
  2433. for i = 0, 0.4, 0.1 / Animation_Speed do
  2434. Swait()
  2435. WACKYEFFECT({
  2436. Time = 15,
  2437. EffectType = "Sphere",
  2438. Size = VT(120, 120, 120),
  2439. Size2 = VT(0, 0, 0),
  2440. Transparency = 1,
  2441. Transparency2 = 0.7,
  2442. CFrame = CF(RootPart.Position),
  2443. MoveToPos = nil,
  2444. RotationX = 0,
  2445. RotationY = 0,
  2446. RotationZ = 0,
  2447. Material = "Neon",
  2448. Color = C3(123, 0, 123),
  2449. SoundID = nil,
  2450. SoundPitch = nil,
  2451. SoundVolume = nil
  2452. })
  2453. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed)
  2454. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2455. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(160 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-50 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2456. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(160 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(50 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2457. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(35 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2458. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(35 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2459. end
  2460. coroutine.resume(coroutine.create(function()
  2461. local POS = RootPart.Position
  2462. wait(0.2)
  2463. for i = 1, 5 do
  2464. WACKYEFFECT({
  2465. Time = 65,
  2466. EffectType = "Sphere",
  2467. Size = VT(4, 4, 4),
  2468. Size2 = VT(0, 0, 1000),
  2469. Transparency = 1,
  2470. Transparency2 = 0,
  2471. CFrame = CF(POS),
  2472. MoveToPos = nil,
  2473. RotationX = MRANDOM(-2, 2),
  2474. RotationY = MRANDOM(-12, 12),
  2475. RotationZ = MRANDOM(-2, 2),
  2476. Material = "Neon",
  2477. Color = C3(123, 0, 123),
  2478. SoundID = nil,
  2479. SoundPitch = nil,
  2480. SoundVolume = nil
  2481. })
  2482. end
  2483. wait(1)
  2484. SHAKECAM(POS, 9999999999, 25, 25)
  2485. ApplyAoE2(POS, 450)
  2486. WACKYEFFECT({
  2487. Time = 85,
  2488. EffectType = "Sphere",
  2489. Size = VT(240, 240, 240),
  2490. Size2 = VT(700, 700, 700),
  2491. Transparency = 0,
  2492. Transparency2 = 1,
  2493. CFrame = CF(POS),
  2494. MoveToPos = nil,
  2495. RotationX = 0,
  2496. RotationY = 0,
  2497. RotationZ = 0,
  2498. Material = "Neon",
  2499. Color = C3(123, 0, 123),
  2500. SoundID = nil,
  2501. SoundPitch = 1,
  2502. SoundVolume = 10
  2503. })
  2504. for i = 1, 20 do
  2505. WACKYEFFECT({
  2506. Time = 85,
  2507. EffectType = "Sphere",
  2508. Size = VT(240, 240, 240),
  2509. Size2 = VT(240, 240, 288) + VT(i * 3, i * 3, i * 3),
  2510. Transparency = 0.8,
  2511. Transparency2 = 1,
  2512. CFrame = CF(POS),
  2513. MoveToPos = nil,
  2514. RotationX = 0,
  2515. RotationY = 0,
  2516. RotationZ = 0,
  2517. Material = "Neon",
  2518. Color = C3(123, 0, 123),
  2519. SoundID = nil,
  2520. SoundPitch = 1,
  2521. SoundVolume = 10
  2522. })
  2523. WACKYEFFECT({
  2524. Time = 100,
  2525. EffectType = "Wave",
  2526. Size = VT(50, 4, 50),
  2527. Size2 = VT(800, 0, 800) * 1.2,
  2528. Transparency = 0,
  2529. Transparency2 = 1,
  2530. CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  2531. MoveToPos = nil,
  2532. RotationX = 0,
  2533. RotationY = 0,
  2534. RotationZ = 0,
  2535. Material = "Neon",
  2536. Color = C3(123, 0, 123),
  2537. SoundID = nil,
  2538. SoundPitch = nil,
  2539. SoundVolume = nil
  2540. })
  2541. end
  2542. local HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character)
  2543. for i = 1, 5 do
  2544. CreateSound(438666077, Effects, 15, 1 - i / 15, false)
  2545. WACKYEFFECT({
  2546. Time = 120,
  2547. EffectType = "Wave",
  2548. Size = VT(300, 2, 300),
  2549. Size2 = VT(600 + i * 340, 0, 600 + i * 340) * 1.2,
  2550. Transparency = 0,
  2551. Transparency2 = 1,
  2552. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  2553. MoveToPos = nil,
  2554. RotationX = 0,
  2555. RotationY = 0,
  2556. RotationZ = 0,
  2557. Material = "Neon",
  2558. Color = C3(123, 0, 123),
  2559. SoundID = nil,
  2560. SoundPitch = nil,
  2561. SoundVolume = nil
  2562. })
  2563. end
  2564. end))
  2565. for i = 0, 1, 0.1 / Animation_Speed do
  2566. Swait()
  2567. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed)
  2568. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2569. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(45 - 7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2570. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(45 - 7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2571. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2572. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2573. end
  2574. ATTACK = false
  2575. Rooted = false
  2576. end))
  2577. for i = 1, 30 do
  2578. wait(0.01)
  2579. local POS = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * CF(0, 0, MRANDOM(10, 150))
  2580. local HITFLOOR, HITPOS = Raycast(POS.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character)
  2581. if HITFLOOR then
  2582. ApplyAoE2(HITPOS, 65)
  2583. local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0))
  2584. WACKYEFFECT({
  2585. Time = 25,
  2586. EffectType = "Sphere",
  2587. Size = VT(44, 44, 44),
  2588. Size2 = VT(170, 170, 170),
  2589. Transparency = 0,
  2590. Transparency2 = 1,
  2591. CFrame = CF(HITPOS),
  2592. MoveToPos = nil,
  2593. RotationX = 0,
  2594. RotationY = 0,
  2595. RotationZ = 0,
  2596. Material = "Neon",
  2597. Color = C3(123, 0, 123),
  2598. SoundID = BLASTS[MRANDOM(1, #BLASTS)],
  2599. SoundPitch = MRANDOM(9, 12) / 10,
  2600. SoundVolume = 10
  2601. })
  2602. for e = 1, 3 do
  2603. WACKYEFFECT({
  2604. EffectType = "Wave",
  2605. Size = VT(50, 0, 50),
  2606. Size2 = VT(80, 0, 80) + VT(e * 6, e / 5, e * 6),
  2607. Transparency = 0,
  2608. Transparency2 = 1,
  2609. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(72 * i), RAD(0)),
  2610. MoveToPos = nil,
  2611. RotationX = 0,
  2612. RotationY = 3,
  2613. RotationZ = 0,
  2614. Material = "Neon",
  2615. Color = C3(123, 0, 123),
  2616. SoundID = nil,
  2617. SoundPitch = nil,
  2618. SoundVolume = nil
  2619. })
  2620. WACKYEFFECT({
  2621. Time = 35,
  2622. EffectType = "Sphere",
  2623. Size = VT(44, 90, 44),
  2624. Size2 = VT(50, 90 + e * 150, 50),
  2625. Transparency = 0,
  2626. Transparency2 = 1,
  2627. CFrame = CF(HITPOS) * TURN,
  2628. MoveToPos = nil,
  2629. RotationX = 0,
  2630. RotationY = 0,
  2631. RotationZ = 0,
  2632. Material = "Neon",
  2633. Color = C3(123, 0, 123),
  2634. SoundID = nil,
  2635. SoundPitch = MRANDOM(9, 12) / 10,
  2636. SoundVolume = 10
  2637. })
  2638. end
  2639. end
  2640. end
  2641. CHARGE = true
  2642. end
  2643.  
  2644. function Beam()
  2645. ATTACK = true
  2646. Rooted = true
  2647. local GYRO = IT("BodyGyro", RootPart)
  2648. GYRO.D = 20
  2649. GYRO.P = 4000
  2650. GYRO.MaxTorque = VT(0, 40000, 0)
  2651. local RING, MESH, DELET = MakeRing()
  2652. local POS = RootPart.Position + VT(0, 25, 0)
  2653. RING.CFrame = CF(POS, Mouse.Hit.p) * ANGLES(RAD(90), RAD(0), RAD(0))
  2654. CreateSound(459523787, RING, 8, 1, false)
  2655. local BLASTS = {468991944, 468991990}
  2656. coroutine.resume(coroutine.create(function()
  2657. local E = 0
  2658. repeat
  2659. E = E + 5
  2660. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  2661. Swait()
  2662. RING.CFrame = CF(POS, Mouse.Hit.p) * ANGLES(RAD(90), RAD(E), RAD(0))
  2663. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed)
  2664. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 1 / Animation_Speed)
  2665. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2666. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2667. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2668. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2669. until ATTACK == false
  2670. GYRO:remove()
  2671. DELET()
  2672. end))
  2673. for i = 1, 50 do
  2674. Swait()
  2675. MESH.Scale = MESH.Scale + VT(33, 0, 33)
  2676. end
  2677. for i = 1, 25 do
  2678. Swait()
  2679. WACKYEFFECT({
  2680. Time = 15,
  2681. EffectType = "Sphere",
  2682. Size = VT(16, 16, 16),
  2683. Size2 = VT(0, 0, 0),
  2684. Transparency = 1,
  2685. Transparency2 = 0,
  2686. CFrame = CF(RING.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, 35),
  2687. MoveToPos = RING.Position,
  2688. RotationX = 0,
  2689. RotationY = 0,
  2690. RotationZ = 0,
  2691. Material = "Neon",
  2692. Color = C3(123, 0, 123),
  2693. SoundID = nil,
  2694. SoundPitch = nil,
  2695. SoundVolume = nil
  2696. })
  2697. end
  2698. local LOOP = 0
  2699. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Eggplant"), "Beam", VT(0, 0, 0), true)
  2700. MakeForm(BEAM, "Cyl")
  2701. CreateSound(BLASTS[MRANDOM(1, #BLASTS)], RING, 5, MRANDOM(9, 11) / 10, false)
  2702. repeat
  2703. local DISTANCE = (RING.Position - Mouse.Hit.p).Magnitude
  2704. if DISTANCE < 2000 then
  2705. BEAM.Size = VT(40 + 8 * COS(SINE / 4), DISTANCE, 40 + 8 * COS(SINE / 4))
  2706. BEAM.CFrame = CF(RING.Position, Mouse.Hit.p) * CF(0, 0, -DISTANCE / 2) * ANGLES(RAD(90), RAD(0), RAD(0))
  2707. ApplyAoE2(Mouse.Hit.p, 35)
  2708. WACKYEFFECT({
  2709. Time = 35,
  2710. EffectType = "Sphere",
  2711. Size = VT(40 + 8 * COS(SINE / 4), 40 + 8 * COS(SINE / 4), 40 + 8 * COS(SINE / 4)) * 2,
  2712. Size2 = VT(20, 300, 20),
  2713. Transparency = 0,
  2714. Transparency2 = 1,
  2715. CFrame = CF(Mouse.Hit.p) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  2716. MoveToPos = nil,
  2717. RotationX = 0,
  2718. RotationY = 0,
  2719. RotationZ = 0,
  2720. Material = "Neon",
  2721. Color = C3(123, 0, 123),
  2722. SoundID = nil,
  2723. SoundPitch = MRANDOM(9, 12) / 10,
  2724. SoundVolume = 10
  2725. })
  2726. Swait()
  2727. LOOP = LOOP + 1
  2728. end
  2729. until KEYHOLD == false and LOOP >= 35 or DISTANCE >= 2000
  2730. coroutine.resume(coroutine.create(function()
  2731. for i = 1, 15 do
  2732. Swait()
  2733. BEAM.Size = BEAM.Size - VT(0.8, 0, 0.8)
  2734. BEAM.Transparency = BEAM.Transparency + 0.06666666666666667
  2735. end
  2736. BEAM:remove()
  2737. end))
  2738. ATTACK = false
  2739. Rooted = false
  2740. end
  2741. --
  2742.  
  2743. function RiftWorld()
  2744. local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  2745. CHOICE = 6
  2746. back = CreateSound(395371531, Character, 9999, 0.7, true)
  2747. chatfunc("Welcome to my w o r l d...")
  2748. local sillsky = Instance.new('Sky', game:GetService'Lighting')
  2749. sillsky.SkyboxBk = "rbxassetid://149397692"
  2750. sillsky.SkyboxDn = "rbxassetid://149397686"
  2751. sillsky.SkyboxFt = "rbxassetid://149397697"
  2752. sillsky.SkyboxLf = "rbxassetid://149397684"
  2753. sillsky.SkyboxRt = "rbxassetid://149397688"
  2754. sillsky.SkyboxUp = "rbxassetid://149397702"
  2755. sillsky.StarCount = 0
  2756. sillsky.SunAngularSize = 0
  2757. sillsky.MoonAngularSize = 0
  2758. sillsky.MoonTextureId = ""
  2759. sillsky.CelestialBodiesShown = false
  2760. game.Lighting.FogColor = Color3.new(0,0,0)
  2761. game.Lighting.FogEnd = 1400
  2762. if HITFLOOR ~= nil then
  2763. ATTACK = false
  2764. Rooted = false
  2765. local RINGSPIN = true
  2766. local CONSTRUCTING = true
  2767. local RING = CreatePart(3, Effects, "Neon", 0, 1, "Eggplant", "Ring", VT(0,0,0))
  2768. RING.Color = C3(0,0,0)
  2769. MakeForm(RING,"Cyl")
  2770. RING.CFrame = CF(HITPOS)
  2771. coroutine.resume(coroutine.create(function()
  2772. repeat
  2773. Swait()
  2774. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  2775. until CONSTRUCTING == false
  2776. repeat
  2777. Swait()
  2778. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  2779. until RINGSPIN == false
  2780. for i = 1, 25 do
  2781. Swait()
  2782. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
  2783. RING.Size = RING.Size - VT(0.15,0,0.15)
  2784. --DECAL.Transparency = DECAL.Transparency + 1/25
  2785. RING.Transparency = RING.Transparency + 1/25
  2786. end
  2787. RING:remove()
  2788. end))
  2789. for i = 1, 15 do
  2790. Swait()
  2791. RING.Size = RING.Size + VT(0,0,0)
  2792. RING.Transparency = RING.Transparency - 1/15
  2793. end
  2794. end
  2795. local RANDOMEFFECT = MRANDOM(1)
  2796. local BASE = CreatePart(3, Character, "Neon", 0, 0, "Eggplant", "Black", VT(2,1.8,2))
  2797. BASE.Color = C3(0,0,0)
  2798. BASE.Transparency = 1
  2799. BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
  2800. if RANDOMEFFECT == 1 then
  2801. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Eggplant", "Field", VT(0.3,0.3,0.3))
  2802. FIELD.CFrame = BASE.CFrame
  2803. MakeForm(FIELD,"Ball")
  2804. for i = 1, 50 do
  2805. Swait()
  2806. FIELD.Size = VT(0,0,0)
  2807. FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
  2808. end
  2809. end
  2810. wait(0.2)
  2811. local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Eggplant", "Field", VT(0.3,0.3,0.3))
  2812. FIELD.CFrame = BASE.CFrame
  2813. local LOOP = CreateSound(1393698948, Character, 0, 1, true)
  2814. coroutine.resume(coroutine.create(function()
  2815. for i = 1, 75 do
  2816. Swait()
  2817. LOOP.Volume = LOOP.Volume + 10/75
  2818. LOOP.Parent = FIELD
  2819. local CHILDREN = workspace:GetDescendants()
  2820. for index, CHILD in pairs(CHILDREN) do
  2821. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2822. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2823. if HUM then
  2824. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2825. if TORSO then
  2826. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  2827. HUM.Health = HUM.Health - 0
  2828. TORSO.Velocity = VT(0,5,0)
  2829. HUM.PlatformStand = true
  2830. if TORSO.RotVelocity.Magnitude < 15 then
  2831. TORSO.Anchored = true
  2832. end
  2833. end
  2834. end
  2835. end
  2836. end
  2837. end
  2838. FIELD.Size = FIELD.Size + VT(90,90,90)
  2839. FIELD.Transparency = FIELD.Transparency + 0.8/75
  2840. end
  2841. for i = 1, 500 do
  2842. Swait()
  2843. LOOP.Parent = FIELD
  2844. local CHILDREN = workspace:GetDescendants()
  2845. for index, CHILD in pairs(CHILDREN) do
  2846. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2847. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2848. if HUM then
  2849. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2850. if TORSO then
  2851. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
  2852. TORSO.Velocity = VT(0,5,0)
  2853. HUM.Health = HUM.Health - 0
  2854. HUM.PlatformStand = true
  2855. if TORSO.RotVelocity.Magnitude < 15 then
  2856. TORSO.Anchored = false
  2857. end
  2858. end
  2859. end
  2860. end
  2861. end
  2862. end
  2863. end
  2864. CHOICE = MRANDOM (1,5)
  2865. for i = 1, 25 do
  2866. Swait()
  2867. LOOP.Volume = LOOP.Volume + 10/25
  2868. LOOP.Parent = FIELD
  2869. local CHILDREN = workspace:GetDescendants()
  2870. for index, CHILD in pairs(CHILDREN) do
  2871. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2872. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2873. if HUM then
  2874. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2875. if TORSO then
  2876. if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
  2877. TORSO.Velocity = VT(0,5,0)
  2878. HUM.Health = HUM.Health - 0
  2879. HUM.PlatformStand = false
  2880. if TORSO.RotVelocity.Magnitude < 15 then
  2881. TORSO.Anchored = false
  2882. end
  2883. end
  2884. end
  2885. end
  2886. end
  2887. FIELD.Size = FIELD.Size - VT(3,3,3)
  2888. FIELD.Transparency = FIELD.Transparency + 0.2/25
  2889. end
  2890. end
  2891. end))
  2892. FIELD:Remove()
  2893. ATTACK = false
  2894. Rooted = false
  2895. end
  2896.  
  2897. --------------VOID BEAM-------------------
  2898.  
  2899. function killnearest(position,range,maxstrength)
  2900. for i,v in ipairs(workspace:GetChildren()) do
  2901. local body = v:GetChildren()
  2902. for part = 1, #body do
  2903. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  2904. if(body[part].Position - position).Magnitude < range then
  2905. if v.ClassName == "Model" then
  2906. v:BreakJoints()
  2907. end
  2908. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  2909. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  2910. end
  2911. end
  2912. end
  2913. if v.ClassName == "Part" then
  2914. if v.Anchored == false and (v.Position - position).Magnitude < range then
  2915. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  2916. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  2917. end
  2918. end
  2919. end
  2920. end
  2921.  
  2922. function CheckTableForString(Table, String)
  2923. for i, v in pairs(Table) do
  2924. if string.find(string.lower(String), string.lower(v)) then
  2925. return true
  2926. end
  2927. end
  2928. return false
  2929. end
  2930.  
  2931. function CheckIntangible(Hit)
  2932. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  2933. if Hit and Hit.Parent then
  2934. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  2935. return true
  2936. end
  2937. end
  2938. return false
  2939. end
  2940.  
  2941. Debris = game:GetService("Debris")
  2942.  
  2943. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  2944. local Direction = CFrame.new(StartPos, Vec).lookVector
  2945. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  2946. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  2947. if RayHit and CheckIntangible(RayHit) then
  2948. if DelayIfHit then
  2949. wait()
  2950. end
  2951. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  2952. end
  2953. return RayHit, RayPos, RayNormal
  2954. end
  2955.  
  2956. function turnto(position)
  2957. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  2958. end
  2959.  
  2960. function VoidBeam()
  2961. ATTACK = true
  2962. Rooted = true
  2963. for i=0, 1, 0.1 / Animation_Speed do
  2964. Swait()
  2965. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2966. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2967. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2968. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2969. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2970. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2971. end
  2972. CreateSound("348663022", Torso, 5, 1)
  2973. local StartPos = RootPart.CFrame * CF(0,10,0).p
  2974. for i = 1, 5 do
  2975. MagicSphere2(25,25,CF(StartPos),"Eggplant")
  2976. Swait(15)
  2977. end
  2978. local soundeffect = IT("Sound",Torso)
  2979. soundeffect.SoundId = "rbxassetid://487186990"
  2980. soundeffect.Looped = true
  2981. soundeffect.Volume = 10
  2982. soundeffect.Playing = true
  2983. repeat
  2984. turnto(Mouse.Hit.p)
  2985. MagicSphere2(25,25,CF(StartPos),"Eggplant")
  2986. MagicSphere(25/10,25,CF(StartPos),"Eggplant")
  2987. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false)
  2988. local distance = (StartPos - RayPos).magnitude
  2989. local RayBeam = IT("Part",Effects)
  2990. RayBeam.Material = "Neon"
  2991. RayBeam.Anchored = true
  2992. RayBeam.BrickColor = BRICKC"Eggplant"
  2993. local mesh = IT("SpecialMesh",RayBeam)
  2994. mesh.MeshType = "Cylinder"
  2995. RayBeam.Size = Vector3.new(distance+10, 5, 5)
  2996. RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0))
  2997. MagicSphere(15,5,CF(RayPos),"Eggplant")
  2998. killnearest(RayPos,15,100)
  2999. for i = 1, 3 do
  3000. CreateSwirl(0,25,true,-0.2,5,CF(RayPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black")
  3001. end
  3002. Swait()
  3003. if KEYHOLD == false then
  3004. coroutine.resume(coroutine.create(function()
  3005. for i = 1, 5 do
  3006. RayBeam.Transparency = RayBeam.Transparency + 1/5
  3007. Swait()
  3008. end
  3009. RayBeam:remove()
  3010. end))
  3011. else
  3012. RayBeam:remove()
  3013. end
  3014. until KEYHOLD == false
  3015. soundeffect:remove()
  3016. ATTACK = false
  3017. Rooted = false
  3018. end
  3019. ----------------------------------
  3020. function Teleport()
  3021. ATTACK = true
  3022. Rooted = false
  3023. for i=0, 0.5, 0.1 / Animation_Speed do
  3024. Swait()
  3025. 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)
  3026. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  3027. end
  3028. for e = 1, #BODY do
  3029. if BODY[e] ~= nil then
  3030. local STUFF = BODY[e]
  3031. local PART = STUFF[1]
  3032. if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  3033. local PRT = PART:Clone()
  3034. PRT.Anchored = true
  3035. PRT.CanCollide = false
  3036. PRT.Material = "Neon"
  3037. PRT.Color = C3(123,0,123)
  3038. PRT.Name = "WarpEffect"
  3039. PRT.Parent = Effects
  3040. PRT.CFrame = PART.CFrame
  3041. PRT:BreakJoints()
  3042. if PRT:FindFirstChildOfClass("Sound") then
  3043. PRT:FindFirstChildOfClass("Sound"):remove()
  3044. end
  3045. if PRT:FindFirstChildOfClass("Decal") then
  3046. PRT:FindFirstChildOfClass("Decal"):remove()
  3047. end
  3048. coroutine.resume(coroutine.create(function()
  3049. for i = 1, 100 do
  3050. Swait()
  3051. PRT.Transparency = PRT.Transparency + 1/100
  3052. end
  3053. PRT:remove()
  3054. end))
  3055. end
  3056. end
  3057. end
  3058. CreateSound(289556450, Torso, 10, 1)
  3059. local POS = RootPart.Orientation
  3060. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  3061. RootPart.Orientation = POS
  3062. RootJoint.Parent = RootPart
  3063. for i=0, 0.5, 0.1 / Animation_Speed do
  3064. Swait()
  3065. 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)
  3066. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  3067. end
  3068. for i=0, 0.1, 0.1 / Animation_Speed do
  3069. Swait()
  3070. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  3071. end
  3072. ATTACK = false
  3073. Rooted = false
  3074. end
  3075.  
  3076. function Warden_Zap()
  3077. ATTACK = true
  3078. Rooted = false
  3079. local GYRO = IT("BodyGyro",RootPart)
  3080. GYRO.D = 750
  3081. GYRO.P = 20000
  3082. GYRO.MaxTorque = VT(0,40000000,0)
  3083. CreateSound(348663022,RightArm,1.5,2,false)
  3084. Pose("Cast1",0.8,1,true,GYRO)
  3085. local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = RightArm.CFrame*CF(0,-1,0).p, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.2, DoesFade = true, Ignore = Character, MaxDist = 9999, Branches = false})
  3086. local Hitpos = LightningTable.End
  3087. ApplyAoE(Hitpos,10,35)
  3088. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  3089. for i = 1, 4 do
  3090. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,45,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3091. end
  3092. Pose("Cast1",0.8,1,true)
  3093. GYRO:remove()
  3094. ATTACK = false
  3095. Rooted = false
  3096. end
  3097.  
  3098. function VoidThunder()
  3099. ATTACK = true
  3100. Rooted = false
  3101. local GYRO = IT("BodyGyro",RootPart)
  3102. GYRO.D = 750
  3103. GYRO.P = 20000
  3104. GYRO.MaxTorque = VT(0,40000000,0)
  3105. CreateSound(469345336,Torso,3,2,false)
  3106. Pose("Cast2",1.5,2,true,GYRO)
  3107. coroutine.resume(coroutine.create(function()
  3108. local FRAME = RootPart.CFrame
  3109. for i = 1, 25 do
  3110. local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
  3111. local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = POS*CF(0,85,0).p, End = POS*CF(0,-15,0).p, SegmentL = 3, Thickness = 0.4, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = true})
  3112. local Hitpos = LightningTable.End
  3113. ApplyAoE(Hitpos,20,15)
  3114. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  3115. for i = 1, 4 do
  3116. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,75,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3117. end
  3118. wait(0.05)
  3119. end
  3120. end))
  3121. Pose("Cast2",1.5,0.7,true)
  3122. GYRO:remove()
  3123. ATTACK = false
  3124. Rooted = false
  3125. end
  3126.  
  3127. function Inferno_Ring()
  3128. ATTACK = true
  3129. Rooted = false
  3130. local GYRO = IT("BodyGyro",RootPart)
  3131. GYRO.D = 750
  3132. GYRO.P = 20000
  3133. GYRO.MaxTorque = VT(0,40000000,0)
  3134. local FIRE = IT("Model",Effects)
  3135. FIRE.Name = "Fire"
  3136. local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Magenta", "Center", VT(0,0,0))
  3137. FIRE.PrimaryPart = MAIN
  3138. local FIRES = {}
  3139. for i = 1, 45 do
  3140. local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Dark indigo", "RingPart", VT(3,3,3))
  3141. PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
  3142. local F = Fire(PRT)
  3143. table.insert(FIRES,F)
  3144. end
  3145. repeat
  3146. FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
  3147. Pose("Cast1",1.5,0.01,false,GYRO)
  3148. until HOLD == true
  3149. coroutine.resume(coroutine.create(function()
  3150. for i = 1, 4 do
  3151. ApplyAoE(MAIN.Position,21,-15,true)
  3152. CreateSound(463598785,MAIN,3,1,false)
  3153. for E = 1, #FIRES do
  3154. if FIRES[E] ~= nil then
  3155. FIRES[E].Acceleration = VT(0,300,0)
  3156. FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
  3157. end
  3158. end
  3159. wait(0.3)
  3160. end
  3161. for E = 1, #FIRES do
  3162. if FIRES[E] ~= nil then
  3163. FIRES[E].Enabled = false
  3164. end
  3165. end
  3166. Debris:AddItem(FIRE,5)
  3167. end))
  3168. CreateSound(138474143,RightArm,3,1,false)
  3169. Pose("RightArmUp",1.5,0.5,true)
  3170. GYRO:remove()
  3171. ATTACK = false
  3172. Rooted = false
  3173. end
  3174.  
  3175. function Warden_Wall()
  3176. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  3177. if HITFLOOR ~= nil then
  3178. if HITFLOOR.Anchored == true then
  3179. local WALL = HITFLOOR:Clone()
  3180. WALL.Size = VT(45,45,5)
  3181. WALL.Parent = Effects
  3182. WALL.Name = "Wall"
  3183. WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
  3184. CreateSound(130972023,WALL,5,0.8,false)
  3185. ATTACK = true
  3186. Rooted = true
  3187. local HIT = WALL.Touched:Connect(function(hit)
  3188. if hit.Parent ~= Character then
  3189. hit:BreakJoints()
  3190. end
  3191. end)
  3192. coroutine.resume(coroutine.create(function()
  3193. WACKYEFFECT({Time = 35, EffectType = "Box", Size = WALL.Size, Size2 = WALL.Size*2, Transparency = 0, Transparency2 = 1, CFrame = WALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3194. for i = 1, 90 do
  3195. Swait()
  3196. WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
  3197. end
  3198. HIT:disconnect()
  3199. wait(5)
  3200. for i = 1, 46 do
  3201. Swait()
  3202. WALL.CFrame = WALL.CFrame*CF(0,-1,0)
  3203. end
  3204. WALL:remove()
  3205. end))
  3206. Pose("RightArmUp",1.5,1.2,true)
  3207. ATTACK = false
  3208. Rooted = false
  3209. end
  3210. end
  3211. end
  3212.  
  3213. function Prison_Key()
  3214. if Mouse.Target ~= nil then
  3215. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3216. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  3217. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  3218. local GYRO = IT("BodyGyro",RootPart)
  3219. GYRO.D = 750
  3220. GYRO.P = 20000
  3221. GYRO.MaxTorque = VT(0,40000000,0)
  3222. local grav = Instance.new("BodyPosition",TORSO)
  3223. grav.D = 15
  3224. grav.P = 20000
  3225. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3226. grav.position = TORSO.Position
  3227. local GYRO2 = IT("BodyGyro",TORSO)
  3228. GYRO2.D = 750
  3229. GYRO2.P = 20000
  3230. GYRO2.MaxTorque = VT(0,40000000,0)
  3231. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  3232. grav.Name = "Jail"
  3233. local LOCKPARTS = {}
  3234. ATTACK = true
  3235. Rooted = false
  3236. local LOCK = IT("Model",Effects)
  3237. LOCK.Name = "Lock"
  3238. local LOCK2 = IT("Model",LOCK)
  3239. LOCK2.Name = "Metal"
  3240. --CREATE LOCK--
  3241. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  3242. LOCK.PrimaryPart = BASE
  3243. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  3244. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  3245. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  3246. MakeForm(PRT,"Cyl")
  3247. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  3248. PRT.Color = C3(0,0,0)
  3249. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  3250. MakeForm(PRT,"Cyl")
  3251. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  3252. PRT.Color = C3(0,0,0)
  3253. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  3254. for i = 1, 45 do
  3255. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  3256. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  3257. end
  3258. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  3259. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  3260. LOCK2.PrimaryPart = PRT
  3261. ---------------
  3262. local CHILDREN = LOCK:GetDescendants()
  3263. for index, CHILD in pairs(CHILDREN) do
  3264. if CHILD:IsA("BasePart") then
  3265. CHILD.Transparency = 1
  3266. end
  3267. end
  3268. for i = 1, 75 do
  3269. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  3270. Swait()
  3271. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  3272. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  3273. local CHILDREN = LOCK:GetDescendants()
  3274. for index, CHILD in pairs(CHILDREN) do
  3275. if CHILD:IsA("BasePart") then
  3276. CHILD.Transparency = CHILD.Transparency - 1/75
  3277. end
  3278. end
  3279. end
  3280. HUM.DisplayDistanceType = "None"
  3281. local KEY = IT("Model",Effects)
  3282. KEY.Name = "Key"
  3283. --CREATE KEY--
  3284. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Eggplant", "KeyBase", VT(0.1, 1, 0.1),false)
  3285. KEY.PrimaryPart = KBASE
  3286. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  3287. local WLD = weldBetween(RightArm,KBASE)
  3288. for i = 1, 45 do
  3289. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Eggplant", "Key", VT(0.1, 0.1, 0.1),false)
  3290. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  3291. weldBetween(KBASE,PRT)
  3292. end
  3293. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Eggplant", "Key", VT(0.3, 0.1, 0.1),false)
  3294. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  3295. weldBetween(KBASE,PRT)
  3296. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Eggplant", "Key", VT(0.3, 0.1, 0.1),false)
  3297. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  3298. weldBetween(KBASE,PRT)
  3299. --------------
  3300. Rooted = true
  3301. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  3302. coroutine.resume(coroutine.create(function()
  3303. for i = 1, 10 do
  3304. Swait()
  3305. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  3306. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  3307. end
  3308. CreateSound(1149318312,BASE,5,1,false)
  3309. CreateSound(160772554,BASE,3,1,false)
  3310. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  3311. for i = 1, 4 do
  3312. WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3313. end
  3314. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Eggplant".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  3315. wait(1)
  3316. TORSO.Parent.Parent = LOCK
  3317. for i = 1, 75 do
  3318. Swait()
  3319. local CHILDREN = KEY:GetDescendants()
  3320. for index, CHILD in pairs(CHILDREN) do
  3321. if CHILD:IsA("BasePart") then
  3322. CHILD.Transparency = i/25
  3323. end
  3324. end
  3325. local CHILDREN = LOCK:GetDescendants()
  3326. for index, CHILD in pairs(CHILDREN) do
  3327. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  3328. CHILD.Transparency = CHILD.Transparency + 1/75
  3329. elseif CHILD.ClassName == "Decal" then
  3330. CHILD.Transparency = CHILD.Transparency + 1/75
  3331. end
  3332. end
  3333. end
  3334. TORSO.Parent:ClearAllChildren()
  3335. KEY:remove()
  3336. LOCK:remove()
  3337. end))
  3338. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  3339. GYRO:remove()
  3340. ATTACK = false
  3341. Rooted = false
  3342. end
  3343. end
  3344. end
  3345.  
  3346. function Hat()
  3347. ATTACK = true
  3348. Rooted = false
  3349. Pose("Taunt",0.4,1.2,false)
  3350. ATTACK = false
  3351. Rooted = false
  3352. end
  3353.  
  3354. --//=================================\\
  3355. --|| ASSIGN THINGS TO KEYS
  3356. --\\=================================//
  3357.  
  3358. function MouseDown(Mouse)
  3359. HOLD = true
  3360. if ATTACK == false then
  3361. end
  3362. end
  3363.  
  3364. function CastProperRay2(StartPos, Vec, Length, Ignore)
  3365. local Direction = CFrame.new(StartPos, Vec).lookVector
  3366. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  3367. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  3368. return RayHit, RayPos, RayNormal
  3369. end
  3370.  
  3371. function MouseUp(Mouse)
  3372. HOLD = false
  3373. end
  3374.  
  3375. function KeyDown(Key)
  3376. KEYHOLD = true
  3377. if TRUEFORM == false then
  3378.  
  3379. if Key == "z" and ATTACK == false then
  3380. Warden_Zap()
  3381. end
  3382.  
  3383. if Key == "f" and ATTACK == false then
  3384. Teleport()
  3385. end
  3386.  
  3387. if Key == "g" and ATTACK == false then
  3388. Prison_Key()
  3389. end
  3390.  
  3391. if Key == "e" and ATTACK == false then
  3392. VoidStar()
  3393. end
  3394.  
  3395. if Key == "q" and ATTACK == false then
  3396. VoidBox()
  3397. end
  3398.  
  3399. if Key == "b" and ATTACK == false then
  3400. VoidThunder()
  3401. end
  3402.  
  3403. if Key == "c" and ATTACK == false then
  3404. Inferno_Ring()
  3405. end
  3406.  
  3407. if Key == "v" and ATTACK == false then
  3408. Warden_Wall()
  3409. end
  3410.  
  3411. if Key == "x" and ATTACK == false then
  3412. VoidBeam()
  3413. end
  3414.  
  3415. if Key == "t" and ATTACK == false then
  3416. Hat()
  3417. end
  3418.  
  3419. if Key == "p" and ATTACK == false then
  3420. RiftForm()
  3421. lightning.Enabled = true
  3422. eeeffecto.Enabled = true
  3423. SKILL2TEXT:remove()
  3424. SKILL5TEXT:remove()
  3425. SKILL9TEXT:remove()
  3426. SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Rift Thunder", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  3427. SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Rift Beam", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  3428. SKILL9TEXT = CreateLabel(SKILL9FRAME, "[E] Rift Star", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 9")
  3429. RiftWorld()
  3430. end
  3431. else
  3432. if Key == "p" and ATTACK == false then
  3433. TRUEFORM = false
  3434. lightning.Enabled = false
  3435. eeeffecto.Enabled = false
  3436. SKILL2TEXT:remove()
  3437. SKILL5TEXT:remove()
  3438. SKILL9TEXT:remove()
  3439. SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Void Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  3440. SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Void Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  3441. SKILL9TEXT = CreateLabel(SKILL9FRAME, "[E] Void Star", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 9")
  3442. local sillsky = Instance.new('Sky', game:GetService'Lighting')
  3443. back:remove()
  3444. sillsky:remove()
  3445. game.Lighting.FogEnd = 90000000
  3446. CreateSound(464600985, Character, 99999, 0.8, false)
  3447. end
  3448.  
  3449. if Key == "z" and ATTACK == false then
  3450. Warden_Zap()
  3451. end
  3452.  
  3453. if Key == "f" and ATTACK == false then
  3454. Teleport()
  3455. end
  3456.  
  3457. if Key == "g" and ATTACK == false then
  3458. Prison_Key()
  3459. end
  3460.  
  3461. if Key == "e" and ATTACK == false then
  3462. Nuke()
  3463. end
  3464.  
  3465. if Key == "q" and ATTACK == false then
  3466. VoidBox()
  3467. end
  3468.  
  3469. if Key == "b" and ATTACK == false then
  3470. VoidThunder2()
  3471. end
  3472.  
  3473. if Key == "c" and ATTACK == false then
  3474. Inferno_Ring()
  3475. end
  3476.  
  3477. if Key == "v" and ATTACK == false then
  3478. Warden_Wall()
  3479. end
  3480.  
  3481. if Key == "x" and ATTACK == false then
  3482. Beam()
  3483. end
  3484.  
  3485. if Key == "t" and ATTACK == false then
  3486. Hat()
  3487. end
  3488. end
  3489. end
  3490.  
  3491. function KeyUp(Key)
  3492. KEYHOLD = false
  3493. end
  3494.  
  3495. Mouse.Button1Down:connect(function(NEWKEY)
  3496. MouseDown(NEWKEY)
  3497. end)
  3498. Mouse.Button1Up:connect(function(NEWKEY)
  3499. MouseUp(NEWKEY)
  3500. end)
  3501. Mouse.KeyDown:connect(function(NEWKEY)
  3502. KeyDown(NEWKEY)
  3503. end)
  3504. Mouse.KeyUp:connect(function(NEWKEY)
  3505. KeyUp(NEWKEY)
  3506. end)
  3507.  
  3508. --//=================================\\
  3509. --\\=================================//
  3510.  
  3511.  
  3512. function unanchor()
  3513. if UNANCHOR == true then
  3514. g = Character:GetChildren()
  3515. for i = 1, #g do
  3516. if g[i].ClassName == "Part" then
  3517. g[i].Anchored = false
  3518. end
  3519. end
  3520. end
  3521. end
  3522.  
  3523.  
  3524.  
  3525. --//=================================\\
  3526. --|| WRAP THE WHOLE SCRIPT UP
  3527. --\\=================================//
  3528.  
  3529. local FF = IT("ForceField",Character)
  3530. FF.Visible = false
  3531.  
  3532. Humanoid.Changed:connect(function(Jump)
  3533. if Jump == "Jump" and (Disable_Jump == true) then
  3534. Humanoid.Jump = false
  3535. end
  3536. end)
  3537.  
  3538. while true do
  3539. Swait()
  3540. script.Parent = WEAPONGUI
  3541. Humanoid.Parent = Character
  3542. if Humanoid then
  3543. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  3544. IDLEANIMATION:Play()
  3545. end
  3546. if ANIMATE.Parent == Character then
  3547. ANIMATE:Destroy()
  3548. end
  3549. SINE = SINE + CHANGE
  3550. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3551. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3552. Humanoid.HipHeight = 1
  3553. Humanoid.Name = "VoidWarden"
  3554. Humanoid.PlatformStand = false
  3555. if PLAYMAINANIM == true then
  3556. if TORSOVELOCITY < 1 then
  3557. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3558. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3559. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3560. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  3561. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  3562. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3563. elseif TORSOVELOCITY > 1 then
  3564. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3565. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3566. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3567. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  3568. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  3569. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(10)), 0.15 / Animation_Speed)
  3570. end
  3571. end
  3572. unanchor()
  3573. Humanoid.MaxHealth = 1.0E298
  3574. Humanoid.Health = 1.0E298
  3575. if Rooted == false then
  3576. Disable_Jump = false
  3577. Humanoid.WalkSpeed = Speed
  3578. elseif Rooted == true then
  3579. Disable_Jump = true
  3580. Humanoid.WalkSpeed = 0
  3581. end
  3582. for _, c in pairs(Character:GetChildren()) do
  3583. if c.ClassName == "Part" and c.Name ~= "Eye" then
  3584. c.Material = "Neon"
  3585. if c:FindFirstChildOfClass("ParticleEmitter") then
  3586. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  3587. end
  3588. c.Color = C3(1,1,1)
  3589. if c == Head then
  3590. if c:FindFirstChild("face") then
  3591. c.face:remove()
  3592. end
  3593. end
  3594. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  3595. c:remove()
  3596. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  3597. c:remove()
  3598. end
  3599. end
  3600. sick.SoundId = "rbxassetid://1427189017"
  3601. sick.Looped = true
  3602. sick.Pitch = 1
  3603. sick.Volume = 3
  3604. sick:Resume()
  3605. sick.Parent = Torso
  3606. refit()
  3607. if Head:FindFirstChildOfClass("Sound") then
  3608. Head:FindFirstChildOfClass("Sound"):remove()
  3609. end
  3610. end
  3611.  
  3612. if Humanoid.Health < 1.0E298 then
  3613. refit()
  3614. Humanoid.MaxHealth = 1.0E298
  3615. Humanoid.Health = Humanoid.Health + 1.0E298
  3616.  
  3617. end
  3618.  
  3619.  
  3620. --//=================================\\
  3621. --\\=================================//
  3622.  
  3623.  
  3624.  
  3625.  
  3626.  
  3627. --//====================================================\\--
  3628. --|| END OF SCRIPT
  3629. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement