Advertisement
wamandnj

Untitled

Sep 20th, 2018
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 99.00 KB | None | 0 0
  1. --//===============================================================\\--
  2. --||EDITED BY HANKTHESKELETON | CREATED BY SHACKLUSTER | EDITED BY SHYIME
  3. --||. HARD EDIt BY ADELPVP123 | EDITED BY PLANETARYVOID
  4. --\\===============================================================//--
  5. -- This script has been converted to FE by iPxter
  6.  
  7.  
  8. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  9. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  10. do
  11. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  12. script.Parent = Player.Character
  13.  
  14. --RemoteEvent for communicating
  15. local Event = Instance.new("RemoteEvent")
  16. Event.Name = "UserInput_Event"
  17.  
  18. --Fake event to make stuff like Mouse.KeyDown work
  19. local function fakeEvent()
  20. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  21. t.connect = t.Connect
  22. return t
  23. end
  24.  
  25. --Creating fake input objects with fake variables
  26. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  27. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  28. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  29. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  30. end}
  31. --Merged 2 functions into one by checking amount of arguments
  32. CAS.UnbindAction = CAS.BindAction
  33.  
  34. --This function will trigger the events that have been :Connect()'ed
  35. local function te(self,ev,...)
  36. local t = m[ev]
  37. if t and t._fakeEvent and t.Function then
  38. t.Function(...)
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=Player then return end
  46. if io.isMouse then
  47. m.Target = io.Target
  48. m.Hit = io.Hit
  49. else
  50. local b = io.UserInputState == Enum.UserInputState.Begin
  51. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  52. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local Mouse = Player:GetMouse()
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  89. end
  90.  
  91. wait(0.2)
  92.  
  93. Player = owner
  94. PlayerGui = Player.PlayerGui
  95. Cam = workspace.CurrentCamera
  96. Backpack = Player.Backpack
  97. Character = Player.Character
  98. Humanoid = Character.Humanoid
  99. RootPart = Character["HumanoidRootPart"]
  100. Torso = Character["Torso"]
  101. Head = Character["Head"]
  102. RightArm = Character["Right Arm"]
  103. LeftArm = Character["Left Arm"]
  104. RightLeg = Character["Right Leg"]
  105. LeftLeg = Character["Left Leg"]
  106. RootJoint = RootPart["RootJoint"]
  107. Neck = Torso["Neck"]
  108. RightShoulder = Torso["Right Shoulder"]
  109. LeftShoulder = Torso["Left Shoulder"]
  110. RightHip = Torso["Right Hip"]
  111. LeftHip = Torso["Left Hip"]
  112. local sick = Instance.new("Sound",Torso)
  113. sick.SoundId = "rbxassetid://1118967006"
  114. sick.Looped = true
  115. sick.Pitch = 1
  116. sick.Volume = 3
  117. sick:Play()
  118.  
  119. IT = Instance.new
  120. CF = CFrame.new
  121. VT = Vector3.new
  122. RAD = math.rad
  123. C3 = Color3.new
  124. UD2 = UDim2.new
  125. BRICKC = BrickColor.new
  126. ANGLES = CFrame.Angles
  127. EULER = CFrame.fromEulerAnglesXYZ
  128. COS = math.cos
  129. ACOS = math.acos
  130. SIN = math.sin
  131. ASIN = math.asin
  132. ABS = math.abs
  133. MRANDOM = math.random
  134. FLOOR = math.floor
  135.  
  136. --//=================================\\
  137. --|| USEFUL VALUES
  138. --\\=================================//
  139.  
  140. Animation_Speed = 3
  141. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  142. local Speed = 35
  143. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  144. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  145. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  146. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  147. local DAMAGEMULTIPLIER = 1
  148. local ANIM = "Idle"
  149. local ATTACK = false
  150. local EQUIPPED = false
  151. local HOLD = false
  152. local COMBO = 1
  153. local Rooted = false
  154. local SINE = 0
  155. local KEYHOLD = false
  156. local CHANGE = 2 / Animation_Speed
  157. local WALKINGANIM = false
  158. local VALUE1 = false
  159. local VALUE2 = false
  160. local ROBLOXIDLEANIMATION = IT("Animation")
  161. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  162. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  163. --ROBLOXIDLEANIMATION.Parent = Humanoid
  164. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  165. WEAPONGUI.Name = "Weapon GUI"
  166. local Effects = IT("Folder", Character)
  167. Effects.Name = "Effects"
  168. local ANIMATOR = Humanoid.Animator
  169. local ANIMATE = Character.Animate
  170. local UNANCHOR = true
  171. local LAUGHS = {834001699,834001752,834001797,834001828}
  172. local SONGS = {1118967006}
  173. local CHOICE = MRANDOM(1,4)
  174. local ENERGYSOUND = 1417051162
  175. local BEAMSOUND = 1417056781
  176. local EXPLOSIONSOUND = 1417056081
  177.  
  178. --//=================================\\
  179. --\\=================================//
  180.  
  181. --//=================================\\
  182. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  183. --\\=================================//
  184.  
  185. ArtificialHB = Instance.new("BindableEvent", script)
  186. ArtificialHB.Name = "ArtificialHB"
  187.  
  188. script:WaitForChild("ArtificialHB")
  189.  
  190. frame = Frame_Speed
  191. tf = 0
  192. allowframeloss = false
  193. tossremainder = false
  194. lastframe = tick()
  195. script.ArtificialHB:Fire()
  196.  
  197. game:GetService("RunService").Heartbeat:connect(function(s, p)
  198. tf = tf + s
  199. if tf >= frame then
  200. if allowframeloss then
  201. script.ArtificialHB:Fire()
  202. lastframe = tick()
  203. else
  204. for i = 1, math.floor(tf / frame) do
  205. script.ArtificialHB:Fire()
  206. end
  207. lastframe = tick()
  208. end
  209. if tossremainder then
  210. tf = 0
  211. else
  212. tf = tf - frame * math.floor(tf / frame)
  213. end
  214. end
  215. end)
  216.  
  217. --//=================================\\
  218. --\\=================================//
  219.  
  220. local toggleTag = true
  221. local txt = Instance.new("BillboardGui", Head)
  222. txt.Adornee = nil
  223. txt.Name = "NameDetect"
  224. txt.Size = UDim2.new(4, 0, 1.2, 0)
  225. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  226. local text = Instance.new("TextLabel", txt)
  227. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  228. text.FontSize = "Size8"
  229. text.TextScaled = true
  230. text.TextTransparency = 0
  231. text.BackgroundTransparency = 1
  232. text.TextTransparency = 0
  233. text.TextStrokeTransparency = 0
  234. text.Font = "Fantasy"
  235. text.TextStrokeColor3 = Color3.new(0,0,0)
  236. text.TextColor3 = Color3.new(0,0,0)
  237. text.Text = "The Lost Devil"
  238.  
  239. function RecolorTextAndRename(name,col1,col2)
  240. text.TextStrokeColor3 = col2
  241. text.TextColor3 = col1
  242. text.Text = name
  243. end
  244.  
  245. RecolorTextAndRename("The Lost Devil",Color3.new(0,0,0),Color3.new(0,0,0))
  246. --//=================================\\
  247. --|| SOME FUNCTIONS
  248. --\\=================================//
  249.  
  250. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  251. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  252. end
  253.  
  254. function PositiveAngle(NUMBER)
  255. if NUMBER >= 0 then
  256. NUMBER = 0
  257. end
  258. return NUMBER
  259. end
  260.  
  261. function NegativeAngle(NUMBER)
  262. if NUMBER <= 0 then
  263. NUMBER = 0
  264. end
  265. return NUMBER
  266. end
  267.  
  268. function Swait(NUMBER)
  269. if NUMBER == 0 or NUMBER == nil then
  270. ArtificialHB.Event:wait()
  271. else
  272. for i = 1, NUMBER do
  273. ArtificialHB.Event:wait()
  274. end
  275. end
  276. end
  277.  
  278. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  279. local NEWMESH = IT(MESH)
  280. if MESH == "SpecialMesh" then
  281. NEWMESH.MeshType = MESHTYPE
  282. if MESHID ~= "nil" and MESHID ~= "" then
  283. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  284. end
  285. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  286. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  287. end
  288. end
  289. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  290. NEWMESH.Scale = SCALE
  291. NEWMESH.Parent = PARENT
  292. return NEWMESH
  293. end
  294.  
  295. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  296. local NEWPART = IT("Part")
  297. NEWPART.formFactor = FORMFACTOR
  298. NEWPART.Reflectance = REFLECTANCE
  299. NEWPART.Transparency = TRANSPARENCY
  300. NEWPART.CanCollide = false
  301. NEWPART.Locked = true
  302. NEWPART.Anchored = true
  303. if ANCHOR == false then
  304. NEWPART.Anchored = false
  305. end
  306. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  307. NEWPART.Name = NAME
  308. NEWPART.Size = SIZE
  309. NEWPART.Position = Torso.Position
  310. NEWPART.Material = MATERIAL
  311. NEWPART:BreakJoints()
  312. NEWPART.Parent = PARENT
  313. return NEWPART
  314. end
  315.  
  316. local function weldBetween(a, b)
  317. local weldd = IT("Weld")
  318. weldd.Part0 = a
  319. weldd.Part1 = b
  320. weldd.C0 = CF()
  321. weldd.C1 = b.CFrame:inverse() * a.CFrame
  322. weldd.Parent = a
  323. return weldd
  324. end
  325.  
  326.  
  327. function QuaternionFromCFrame(cf)
  328. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  329. local trace = m00 + m11 + m22
  330. if trace > 0 then
  331. local s = math.sqrt(1 + trace)
  332. local recip = 0.5 / s
  333. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  334. else
  335. local i = 0
  336. if m11 > m00 then
  337. i = 1
  338. end
  339. if m22 > (i == 0 and m00 or m11) then
  340. i = 2
  341. end
  342. if i == 0 then
  343. local s = math.sqrt(m00 - m11 - m22 + 1)
  344. local recip = 0.5 / s
  345. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  346. elseif i == 1 then
  347. local s = math.sqrt(m11 - m22 - m00 + 1)
  348. local recip = 0.5 / s
  349. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  350. elseif i == 2 then
  351. local s = math.sqrt(m22 - m00 - m11 + 1)
  352. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  353. end
  354. end
  355. end
  356.  
  357. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  358. local xs, ys, zs = x + x, y + y, z + z
  359. local wx, wy, wz = w * xs, w * ys, w * zs
  360. local xx = x * xs
  361. local xy = x * ys
  362. local xz = x * zs
  363. local yy = y * ys
  364. local yz = y * zs
  365. local zz = z * zs
  366. 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))
  367. end
  368.  
  369. function QuaternionSlerp(a, b, t)
  370. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  371. local startInterp, finishInterp;
  372. if cosTheta >= 0.0001 then
  373. if (1 - cosTheta) > 0.0001 then
  374. local theta = ACOS(cosTheta)
  375. local invSinTheta = 1 / SIN(theta)
  376. startInterp = SIN((1 - t) * theta) * invSinTheta
  377. finishInterp = SIN(t * theta) * invSinTheta
  378. else
  379. startInterp = 1 - t
  380. finishInterp = t
  381. end
  382. else
  383. if (1 + cosTheta) > 0.0001 then
  384. local theta = ACOS(-cosTheta)
  385. local invSinTheta = 1 / SIN(theta)
  386. startInterp = SIN((t - 1) * theta) * invSinTheta
  387. finishInterp = SIN(t * theta) * invSinTheta
  388. else
  389. startInterp = t - 1
  390. finishInterp = t
  391. end
  392. end
  393. 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
  394. end
  395.  
  396. function Clerp(a, b, t)
  397. local qa = {QuaternionFromCFrame(a)}
  398. local qb = {QuaternionFromCFrame(b)}
  399. local ax, ay, az = a.x, a.y, a.z
  400. local bx, by, bz = b.x, b.y, b.z
  401. local _t = 1 - t
  402. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  403. end
  404.  
  405. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  406. local frame = IT("Frame")
  407. frame.BackgroundTransparency = TRANSPARENCY
  408. frame.BorderSizePixel = BORDERSIZEPIXEL
  409. frame.Position = POSITION
  410. frame.Size = SIZE
  411. frame.BackgroundColor3 = COLOR
  412. frame.BorderColor3 = BORDERCOLOR
  413. frame.Name = NAME
  414. frame.Parent = PARENT
  415. return frame
  416. end
  417.  
  418. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  419. local label = IT("TextLabel")
  420. label.BackgroundTransparency = 1
  421. label.Size = UD2(1, 0, 1, 0)
  422. label.Position = UD2(0, 0, 0, 0)
  423. label.TextColor3 = TEXTCOLOR
  424. label.TextStrokeTransparency = STROKETRANSPARENCY
  425. label.TextTransparency = TRANSPARENCY
  426. label.FontSize = TEXTFONTSIZE
  427. label.Font = TEXTFONT
  428. label.BorderSizePixel = BORDERSIZEPIXEL
  429. label.TextScaled = false
  430. label.Text = TEXT
  431. label.Name = NAME
  432. label.Parent = PARENT
  433. return label
  434. end
  435.  
  436. function NoOutlines(PART)
  437. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  438. end
  439.  
  440. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  441. local NEWWELD = IT(TYPE)
  442. NEWWELD.Part0 = PART0
  443. NEWWELD.Part1 = PART1
  444. NEWWELD.C0 = C0
  445. NEWWELD.C1 = C1
  446. NEWWELD.Parent = PARENT
  447. return NEWWELD
  448. end
  449.  
  450. local S = IT("Sound")
  451. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  452. local NEWSOUND = nil
  453. coroutine.resume(coroutine.create(function()
  454. NEWSOUND = S:Clone()
  455. NEWSOUND.Parent = PARENT
  456. NEWSOUND.Volume = VOLUME
  457. NEWSOUND.Pitch = PITCH
  458. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  459. NEWSOUND:play()
  460. if DOESLOOP == true then
  461. NEWSOUND.Looped = true
  462. else
  463. repeat wait(1) until NEWSOUND.Playing == false
  464. NEWSOUND:remove()
  465. end
  466. end))
  467. return NEWSOUND
  468. end
  469.  
  470. function CFrameFromTopBack(at, top, back)
  471. local right = top:Cross(back)
  472. 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)
  473. end
  474.  
  475. --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})
  476. function WACKYEFFECT(Table)
  477. local TYPE = (Table.EffectType or "Sphere")
  478. local SIZE = (Table.Size or VT(1,1,1))
  479. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  480. local TRANSPARENCY = (Table.Transparency or 0)
  481. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  482. local CFRAME = (Table.CFrame or Torso.CFrame)
  483. local MOVEDIRECTION = (Table.MoveToPos or nil)
  484. local ROTATION1 = (Table.RotationX or 0)
  485. local ROTATION2 = (Table.RotationY or 0)
  486. local ROTATION3 = (Table.RotationZ or 0)
  487. local MATERIAL = (Table.Material or "Neon")
  488. local COLOR = (Table.Color or C3(1,1,1))
  489. local TIME = (Table.Time or 45)
  490. local SOUNDID = (Table.SoundID or nil)
  491. local SOUNDPITCH = (Table.SoundPitch or nil)
  492. local SOUNDVOLUME = (Table.SoundVolume or nil)
  493. coroutine.resume(coroutine.create(function()
  494. local PLAYSSOUND = false
  495. local SOUND = nil
  496. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  497. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  498. PLAYSSOUND = true
  499. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  500. end
  501. EFFECT.Color = COLOR
  502. local MSH = nil
  503. if TYPE == "Sphere" then
  504. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  505. elseif TYPE == "Block" then
  506. MSH = IT("BlockMesh",EFFECT)
  507. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  508. elseif TYPE == "Wave" then
  509. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  510. elseif TYPE == "Ring" then
  511. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  512. elseif TYPE == "Slash" then
  513. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  514. elseif TYPE == "Round Slash" then
  515. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  516. elseif TYPE == "Swirl" then
  517. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  518. elseif TYPE == "Skull" then
  519. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  520. elseif TYPE == "Crystal" then
  521. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  522. end
  523. if MSH ~= nil then
  524. local MOVESPEED = nil
  525. if MOVEDIRECTION ~= nil then
  526. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  527. end
  528. local GROWTH = SIZE - ENDSIZE
  529. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  530. if TYPE == "Block" then
  531. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  532. else
  533. EFFECT.CFrame = CFRAME
  534. end
  535. for LOOP = 1, TIME+1 do
  536. Swait()
  537. MSH.Scale = MSH.Scale - GROWTH/TIME
  538. if TYPE == "Wave" then
  539. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  540. end
  541. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  542. if TYPE == "Block" then
  543. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  544. else
  545. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  546. end
  547. if MOVEDIRECTION ~= nil then
  548. local ORI = EFFECT.Orientation
  549. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  550. EFFECT.Orientation = ORI
  551. end
  552. end
  553. if PLAYSSOUND == false then
  554. EFFECT:remove()
  555. else
  556. SOUND.Stopped:Connect(function()
  557. EFFECT:remove()
  558. end)
  559. end
  560. else
  561. if PLAYSSOUND == false then
  562. EFFECT:remove()
  563. else
  564. repeat Swait() until SOUND.Playing == false
  565. EFFECT:remove()
  566. end
  567. end
  568. end))
  569. end
  570.  
  571. local LEFTWINGS = {}
  572. local RIGHTWINGS = {}
  573. local BODY = {}
  574.  
  575. local Back = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Wing", VT(1,1,0.35),false)
  576. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
  577.  
  578. local ANGLE = 35
  579. for i = 1, 5 do
  580. local Wing = CreatePart(3, Character, "Neon", 0, 0, "New Yeller", "Wing", VT(0.15,2+(i/2),0.15),false)
  581. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  582. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Crimson", "Wing", VT(0.25,1,0.25),false)
  583. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  584. ANGLE = ANGLE - 15
  585. table.insert(LEFTWINGS,WingWeld)
  586. end
  587.  
  588. ANGLE = 35
  589. for i = 1, 5 do
  590. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Crimson", "Wing", VT(0.15,2+(i/2),0.15),false)
  591. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  592. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Wing", VT(0.25,1,0.25),false)
  593. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  594. ANGLE = ANGLE - 15
  595. table.insert(RIGHTWINGS,WingWeld)
  596. end
  597.  
  598. function MakeForm(PART,TYPE)
  599. if TYPE == "Cyl" then
  600. local MSH = IT("CylinderMesh",PART)
  601. elseif TYPE == "Ball" then
  602. local MSH = IT("SpecialMesh",PART)
  603. MSH.MeshType = "Sphere"
  604. elseif TYPE == "Wedge" then
  605. local MSH = IT("SpecialMesh",PART)
  606. MSH.MeshType = "Wedge"
  607. end
  608. end
  609.  
  610. Debris = game:GetService("Debris")
  611.  
  612. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  613. local DIRECTION = CF(StartPos,EndPos).lookVector
  614. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  615. end
  616.  
  617. function turnto(position)
  618. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  619. end
  620.  
  621. function SpawnTrail(FROM,TO,BIG)
  622. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(0,0,0))
  623. MakeForm(TRAIL,"Cyl")
  624. local DIST = (FROM - TO).Magnitude
  625. if BIG == true then
  626. TRAIL.Size = VT(0.5,DIST,0.5)
  627. else
  628. TRAIL.Size = VT(0.25,DIST,0.25)
  629. end
  630. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  631. coroutine.resume(coroutine.create(function()
  632. for i = 1, 5 do
  633. Swait()
  634. TRAIL.Transparency = TRAIL.Transparency + 0.1
  635. end
  636. TRAIL:remove()
  637. end))
  638. end
  639.  
  640. local asd = Instance.new("ParticleEmitter")
  641. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  642. asd.LightEmission = .1
  643. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  644. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  645. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  646. asd.Transparency = bbb
  647. asd.Size = aaa
  648. asd.ZOffset = .9
  649. asd.Acceleration = Vector3.new(0, -15, 0)
  650. asd.LockedToPart = false
  651. asd.EmissionDirection = "Back"
  652. asd.Lifetime = NumberRange.new(1, 2)
  653. asd.Rotation = NumberRange.new(-100, 100)
  654. asd.RotSpeed = NumberRange.new(-100, 100)
  655. asd.Speed = NumberRange.new(10)
  656. asd.Enabled = false
  657. asd.VelocitySpread = 999
  658.  
  659. function getbloody(victim,amount)
  660. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  661. PART.CFrame = victim.CFrame
  662. local HITPLAYERSOUNDS = {"356551938","264486467"}
  663. Debris:AddItem(PART,5)
  664. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  665. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  666. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  667. local prtcl = asd:Clone()
  668. prtcl.Parent = PART
  669. prtcl:Emit(amount*10)
  670. end
  671.  
  672. local Particle = IT("ParticleEmitter",nil)
  673. Particle.Enabled = false
  674. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  675. Particle.LightEmission = 0.5
  676. Particle.Rate = 150
  677. Particle.ZOffset = 1
  678. Particle.Rotation = NumberRange.new(-180, 180)
  679. Particle.RotSpeed = NumberRange.new(-180, 180)
  680. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  681. Particle.Color = ColorSequence.new(C3(58,125,21),C3(0.4,0,0))
  682.  
  683. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  684. function ParticleEmitter(Table)
  685. local PRTCL = Particle:Clone()
  686. local Speed = Table.Speed or 5
  687. local Drag = Table.Drag or 0
  688. local Size1 = Table.Size1 or 1
  689. local Size2 = Table.Size2 or 5
  690. local Lifetime1 = Table.Lifetime1 or 1
  691. local Lifetime2 = Table.Lifetime2 or 1.5
  692. local Parent = Table.Parent or Torso
  693. local Emit = Table.Emit or 100
  694. local Offset = Table.Offset or 360
  695. local Acel = Table.Acel or VT(0,0,0)
  696. local Enabled = Table.Enabled or false
  697. PRTCL.Parent = Parent
  698. PRTCL.Size = NumberSequence.new(Size1,Size2)
  699. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  700. PRTCL.Speed = NumberRange.new(Speed)
  701. PRTCL.VelocitySpread = Offset
  702. PRTCL.Drag = Drag
  703. PRTCL.Acceleration = Acel
  704. if Enabled == false then
  705. PRTCL:Emit(Emit)
  706. Debris:AddItem(PRTCL,Lifetime2)
  707. else
  708. PRTCL.Enabled = true
  709. end
  710. return PRTCL
  711. end
  712.  
  713. --//=================================\\
  714. --|| WEAPON CREATION
  715. --\\=================================//
  716. if Character:FindFirstChildOfClass("Accessory") then
  717. Character:FindFirstChildOfClass("Accessory"):remove()
  718. elseif Character:FindFirstChildOfClass("Hat") then
  719. Character:FindFirstChildOfClass("Hat"):remove()
  720. end
  721. if Head:FindFirstChild("face") then
  722. Head.face.Texture = "rbxassetid://"
  723. end
  724.  
  725. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  726. PRT.Color = C3(0,0,0)
  727. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  728. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  729. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  730. PRT.Color = C3(0,0,0)
  731. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  732. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  733.  
  734. local LASTPART = Head
  735. for i = 1, 20 do
  736. local MATH = (1-(i/25))
  737. if LASTPART == Head then
  738. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  739. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  740. LASTPART = Horn
  741. Horn.Color = C3((i*3-3)/255,0,0)
  742. else
  743. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  744. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  745. LASTPART = Horn
  746. Horn.Color = C3((i*3-3)/255,0,0)
  747. end
  748. end
  749. local LASTPART = Head
  750. for i = 1, 20 do
  751. local MATH = (1-(i/25))
  752. if LASTPART == Head then
  753. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  754. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  755. LASTPART = Horn
  756. Horn.Color = C3((i*3-3)/255,0,0)
  757. else
  758. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  759. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  760. LASTPART = Horn
  761. Horn.Color = C3((i*3-3)/255,0,0)
  762. end
  763. end
  764.  
  765. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eye", VT(0.6,0.1,1)/2,false)
  766. MakeForm(Eye,"Ball")
  767. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  768. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eye", VT(0.6,0.1,1)/2,false)
  769. MakeForm(Eye,"Ball")
  770. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  771. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eye", VT(0.1,1,1)/2,false)
  772. MakeForm(Eye,"Ball")
  773. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  774. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eye", VT(0.1,1,1)/2,false)
  775. MakeForm(Eye,"Ball")
  776. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  777.  
  778. local A = IT("Attachment",Torso)
  779. A.Position = VT(1,1.3,0)
  780. A.Orientation = VT(-0.098, -89.999, 0.227)
  781. local B = IT("Attachment",Torso)
  782. B.Position = VT(-1.3,-0.6,0)
  783. B.Orientation = VT(-88.911, -68.808, 158.782)
  784. local ChainLink = IT("Beam",Torso)
  785. ChainLink.Texture = "rbxassetid://73042633"
  786. ChainLink.Color = ColorSequence.new(C3(58,125,21))
  787. ChainLink.TextureSpeed = 1
  788. ChainLink.FaceCamera = true
  789. ChainLink.Width0 = 1
  790. ChainLink.Width1 = 1
  791. ChainLink.TextureLength = 3
  792. ChainLink.Attachment0 = A
  793. ChainLink.Attachment1 = B
  794. ChainLink.CurveSize0 = 1.6
  795. ChainLink.CurveSize1 = 1.6
  796. ChainLink.FaceCamera = true
  797. ChainLink.Transparency = NumberSequence.new(0)
  798. local ChainLink = IT("Beam",Torso)
  799. ChainLink.Texture = "rbxassetid://73042633"
  800. ChainLink.Color = ColorSequence.new(C3(58,125,21))
  801. ChainLink.TextureSpeed = 1
  802. ChainLink.FaceCamera = true
  803. ChainLink.Width0 = 1
  804. ChainLink.Width1 = 1
  805. ChainLink.TextureLength = 3
  806. ChainLink.Attachment0 = B
  807. ChainLink.Attachment1 = A
  808. ChainLink.CurveSize0 = 1.6
  809. ChainLink.CurveSize1 = 1.6
  810. ChainLink.FaceCamera = true
  811. ChainLink.Transparency = NumberSequence.new(0)
  812. local A = IT("Attachment",Torso)
  813. A.Position = VT(1.3,-0.85,0)
  814. A.Orientation = VT(-0.098, -89.999, 0.227)
  815. local B = IT("Attachment",Torso)
  816. B.Position = VT(-1,2,0)
  817. B.Orientation = VT(-88.911, -68.808, 158.782)
  818. local ChainLink = IT("Beam",Torso)
  819. ChainLink.Texture = "rbxassetid://73042633"
  820. ChainLink.Color = ColorSequence.new(C3(58,125,21))
  821. ChainLink.TextureSpeed = 1
  822. ChainLink.FaceCamera = true
  823. ChainLink.Width0 = 1
  824. ChainLink.Width1 = 1
  825. ChainLink.TextureLength = 3
  826. ChainLink.Attachment0 = A
  827. ChainLink.Attachment1 = B
  828. ChainLink.CurveSize0 = 1.3
  829. ChainLink.CurveSize1 = 1.3
  830. ChainLink.FaceCamera = true
  831. ChainLink.Transparency = NumberSequence.new(0)
  832. local ChainLink = IT("Beam",Torso)
  833. ChainLink.Texture = "rbxassetid://73042633"
  834. ChainLink.Color = ColorSequence.new(C3(58,125,21))
  835. ChainLink.TextureSpeed = 1
  836. ChainLink.FaceCamera = true
  837. ChainLink.Width0 = 1
  838. ChainLink.Width1 = 1
  839. ChainLink.TextureLength = 3
  840. ChainLink.Attachment0 = B
  841. ChainLink.Attachment1 = A
  842. ChainLink.CurveSize0 = 1.3
  843. ChainLink.CurveSize1 = 1.3
  844. ChainLink.FaceCamera = true
  845. ChainLink.Transparency = NumberSequence.new(0)
  846.  
  847. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightLeg, Emit = 100, Offset = 360, Enabled = true})
  848. PRT.LockedToPart = true
  849. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftLeg, Emit = 100, Offset = 360, Enabled = true})
  850. PRT.LockedToPart = true
  851. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true})
  852. PRT.LockedToPart = true
  853. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true})
  854. PRT.LockedToPart = true
  855. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true})
  856. PRT.LockedToPart = true
  857.  
  858. for _, c in pairs(Character:GetDescendants()) do
  859. if c and c.Parent then
  860. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  861. local ACCESSORY = c.Parent
  862. c.Parent = Character
  863. if c then
  864. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  865. weldBetween(Head,c)
  866. else
  867. weldBetween(Torso,c)
  868. end
  869. end
  870. ACCESSORY:remove()
  871. elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  872. c.Material = "Neon"
  873. c.Color = C3(0,0,0)
  874. if c:FindFirstChildOfClass("SpecialMesh") then
  875. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  876. end
  877. if c == Head then
  878. if c:FindFirstChild("face") then
  879. c.face:remove()
  880. end
  881. end
  882. elseif c.ClassName == "Part" and c.Name == "Eye" then
  883. c.Color = C3(58,125,21)
  884. c.Material = "Neon"
  885. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  886. c:remove()
  887. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  888. c:remove()
  889. end
  890. end
  891. end
  892. local BODY = {}
  893. for _, c in pairs(Character:GetDescendants()) do
  894. if c:IsA("BasePart") and c.Name ~= "Handle" then
  895. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  896. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  897. end
  898. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
  899. elseif c:IsA("JointInstance") then
  900. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
  901. end
  902. end
  903. function refit()
  904. Character.Parent = workspace
  905. for e = 1, #BODY do
  906. if BODY[e] ~= nil then
  907. local STUFF = BODY[e]
  908. local PART = STUFF[1]
  909. local PARENT = STUFF[2]
  910. local MATERIAL = STUFF[3]
  911. local COLOR = STUFF[4]
  912. local TRANSPARENCY = STUFF[5]
  913. --local SIZE = STUFF[6]
  914. local NAME = STUFF[7]
  915. if PART.ClassName == "Part" and PART ~= RootPart then
  916. PART.Material = MATERIAL
  917. PART.Transparency = TRANSPARENCY
  918. PART.Name = NAME
  919. end
  920. if PART.Parent ~= PARENT then
  921. Humanoid:remove()
  922. PART.Parent = PARENT
  923. Humanoid = IT("Humanoid",Character)
  924. end
  925. end
  926. end
  927. end
  928.  
  929. local SKILLTEXTCOLOR = C3(0,0,0)
  930. local SKILLFONT = "Fantasy"
  931. local SKILLTEXTSIZE = 6
  932.  
  933. Humanoid.Died:connect(function()
  934. refit()
  935. end)
  936.  
  937. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  938. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  939. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  940. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  941. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  942. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  943. local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
  944.  
  945. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Shadow Meteor", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0, "Text 1")
  946. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Soul Wave", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0, "Text 2")
  947. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Nightmare Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  948. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Dark Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  949. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Black Star", SKILLTEXTCOLOR, SKILLTEXTSIZE+1, SKILLFONT, 0, 2, 0, "Text 5")
  950. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] Shadow Prison", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6")
  951. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[CLICK] Attack", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7")
  952.  
  953. function swait(NUMBER)
  954. if NUMBER == 0 or NUMBER == nil then
  955. ArtificialHB.Event:wait()
  956. else
  957. for i = 1, NUMBER do
  958. ArtificialHB.Event:wait()
  959. end
  960. end
  961. end
  962.  
  963. function chatfunc(text)
  964. local chat = coroutine.wrap(function()
  965. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  966. Character:FindFirstChild("TalkingBillBoard"):destroy()
  967. end
  968. local Bill = Instance.new("BillboardGui",Character)
  969. Bill.Size = UDim2.new(0,100,0,40)
  970. Bill.StudsOffset = Vector3.new(0,3,0)
  971. Bill.Adornee = Character.Head
  972. Bill.Name = "TalkingBillBoard"
  973. local Hehe = Instance.new("TextLabel",Bill)
  974. Hehe.BackgroundTransparency = 1
  975. Hehe.BorderSizePixel = 0
  976. Hehe.Text = ""
  977. Hehe.Font = "Garamond"
  978. Hehe.TextSize = 40
  979. Hehe.TextStrokeTransparency = 0
  980. Hehe.Size = UDim2.new(1,0,0.5,0)
  981. coroutine.resume(coroutine.create(function()
  982. while Hehe ~= nil do
  983. swait()
  984. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  985. Hehe.Rotation = math.random(-5,5)
  986. Hehe.TextColor3 = Color3.new(0,0,0)
  987. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  988. end
  989. end))
  990. for i = 1,string.len(text),1 do
  991. swait()
  992. Hehe.Text = string.sub(text,1,i)
  993. end
  994. swait(90)--Re[math.random(1, 93)]
  995. for i = 0, 1, .025 do
  996. swait()
  997. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  998. Hehe.TextStrokeTransparency = i
  999. Hehe.TextTransparency = i
  1000. end
  1001. Bill:Destroy()
  1002. end)
  1003. chat()
  1004. end
  1005.  
  1006. function onChatted(msg)
  1007. chatfunc(msg)
  1008. end
  1009.  
  1010. Player.Chatted:connect(onChatted)
  1011.  
  1012. chatfunc("Welcome to the void my friend")
  1013. wait(4)
  1014. chatfunc("There is only one thing promised here...")
  1015. wait(4)
  1016. chatfunc("YOU WILL DIE TODAY")
  1017. --//=================================\\
  1018. --|| DAMAGE FUNCTIONS
  1019. --\\=================================//
  1020.  
  1021. function StatLabel(CFRAME, TEXT, COLOR)
  1022. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1023. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1024. local BODYGYRO = IT("BodyGyro", STATPART)
  1025. game:GetService("Debris"):AddItem(STATPART ,5)
  1026. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1027. BILLBOARDGUI.Adornee = STATPART
  1028. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1029. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1030. BILLBOARDGUI.AlwaysOnTop = false
  1031. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1032. TEXTLABEL.BackgroundTransparency = 1
  1033. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1034. TEXTLABEL.Text = TEXT
  1035. TEXTLABEL.Font = SKILLFONT
  1036. TEXTLABEL.FontSize="Size42"
  1037. TEXTLABEL.TextColor3 = COLOR
  1038. TEXTLABEL.TextStrokeTransparency = 0
  1039. TEXTLABEL.TextScaled = true
  1040. TEXTLABEL.TextWrapped = true
  1041. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1042. for i = 1, 50 do
  1043. Swait()
  1044. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  1045. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  1046. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1047. end
  1048. THEPART.Parent = nil
  1049. end),STATPART, TEXTLABEL)
  1050. end
  1051.  
  1052. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  1053. if FLOOR ~= nil then
  1054. coroutine.resume(coroutine.create(function()
  1055. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  1056. PART.CFrame = CF(POSITION)
  1057. for i = 1, 45 do
  1058. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  1059. RingPiece.Material = FLOOR.Material
  1060. RingPiece.Color = FLOOR.Color
  1061. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1062. Debris:AddItem(RingPiece,SWAIT)
  1063. end
  1064. PART:remove()
  1065. end))
  1066. end
  1067. end
  1068.  
  1069. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  1070. if FLOOR ~= nil then
  1071. for i = 1, AMOUNT do
  1072. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  1073. DEBREE.Material = FLOOR.Material
  1074. DEBREE.Color = FLOOR.Color
  1075. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1076. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  1077. coroutine.resume(coroutine.create(function()
  1078. Swait(15)
  1079. DEBREE.Parent = workspace
  1080. DEBREE.CanCollide = true
  1081. Debris:AddItem(DEBREE,SWAIT)
  1082. end))
  1083. end
  1084. end
  1085. end
  1086. --//=================================\\
  1087. --|| DAMAGING
  1088. --\\=================================//
  1089. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  1090. local CHILDREN = workspace:GetDescendants()
  1091. for index, CHILD in pairs(CHILDREN) do
  1092. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1093. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1094. if HUM then
  1095. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1096. if TORSO then
  1097. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1098. CHILD:BreakJoints()
  1099. if FLING ~= 0 then
  1100. for _, c in pairs(CHILD:GetChildren()) do
  1101. if c:IsA("BasePart") and c.Transparency == 0 then
  1102. if BURN == true then
  1103. Fire(c)
  1104. end
  1105. local bv = Instance.new("BodyVelocity")
  1106. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1107. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1108. bv.Parent = c
  1109. Debris:AddItem(bv,0.05)
  1110. end
  1111. end
  1112. end
  1113. end
  1114. end
  1115. end
  1116. end
  1117. end
  1118. end
  1119.  
  1120. function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
  1121. coroutine.resume(coroutine.create(function()
  1122. local METEOR = IT("Model",Effects)
  1123. METEOR.Name = "Meteorite"
  1124. local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  1125. METEOR.PrimaryPart = CENTER
  1126. local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  1127. PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1128. for i = 1, 15 do
  1129. local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really black", "Fire", VT(5.1,1,5.1)*SIZE)
  1130. FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1131. end
  1132. if ISDEBREE ~= true then
  1133. METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  1134. else
  1135. METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  1136. end
  1137. local IMPACT = false
  1138. CreateSound(463593339, CENTER, 10, 0.6)
  1139. if SIZE >= 3.5 then
  1140. for i = 1, MRANDOM(3,7) do
  1141. SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
  1142. end
  1143. end
  1144. for i = 1, 200 do
  1145. Swait()
  1146. local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
  1147. if HITFLOOR == nil then
  1148. local ORI = CENTER.Orientation
  1149. METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  1150. else
  1151. if HITFLOOR.Anchored == true then
  1152. CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
  1153. CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
  1154. end
  1155. IMPACT = true
  1156. break
  1157. end
  1158. end
  1159. if IMPACT == true then
  1160. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  1161. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
  1162. WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  1163. ApplyAoE(CENTER.Position,30*SIZE)
  1164.  
  1165. end
  1166. METEOR:remove()
  1167. end))
  1168. end
  1169.  
  1170. function KillChildren(Char)
  1171. local NewCharacter = IT("Model",Effects)
  1172. NewCharacter.Name = "Ow im ded ;-;"
  1173. for _, c in pairs(Char:GetDescendants()) do
  1174. if c:IsA("BasePart") and c.Transparency == 0 then
  1175. if c.Parent == Char then
  1176. getbloody(c,5)
  1177. end
  1178. c:BreakJoints()
  1179. c.Material = "Glass"
  1180. c.Color = C3(0.5,0,0)
  1181. c.CanCollide = true
  1182. c.Transparency = 0.3
  1183. if c:FindFirstChildOfClass("SpecialMesh") then
  1184. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1185. end
  1186. if c.Name == "Head" then
  1187. c:ClearAllChildren()
  1188. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1189. end
  1190. if c.ClassName == "MeshPart" then
  1191. c.TextureID = ""
  1192. end
  1193. if c:FindFirstChildOfClass("BodyPosition") then
  1194. c:FindFirstChildOfClass("BodyPosition"):remove()
  1195. end
  1196. if c:FindFirstChildOfClass("ParticleEmitter") then
  1197. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1198. end
  1199. c.Parent = NewCharacter
  1200. c.Name = "DeadPart"
  1201. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1202. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1203. end
  1204. end
  1205. Char:remove()
  1206. Debris:AddItem(NewCharacter,5)
  1207. end
  1208.  
  1209. function Kill(Char)
  1210. local NewCharacter = IT("Model",Effects)
  1211. NewCharacter.Name = "Ow im ded ;-;"
  1212. for _, c in pairs(Char:GetDescendants()) do
  1213. if c:IsA("BasePart") and c.Transparency == 0 then
  1214. if c.Parent == Char then
  1215. getbloody(c,5)
  1216. end
  1217. c:BreakJoints()
  1218. c.Material = "Glass"
  1219. c.Color = C3(0.5,0,0)
  1220. c.CanCollide = true
  1221. c.Transparency = 0.3
  1222. if c:FindFirstChildOfClass("SpecialMesh") then
  1223. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1224. end
  1225. if c.Name == "Head" then
  1226. c:ClearAllChildren()
  1227. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1228. end
  1229. if c.ClassName == "MeshPart" then
  1230. c.TextureID = ""
  1231. end
  1232. if c:FindFirstChildOfClass("BodyPosition") then
  1233. c:FindFirstChildOfClass("BodyPosition"):remove()
  1234. end
  1235. if c:FindFirstChildOfClass("ParticleEmitter") then
  1236. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1237. end
  1238. c.Parent = NewCharacter
  1239. c.Name = "DeadPart"
  1240. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1241. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1242. end
  1243. end
  1244. Char:remove()
  1245. Debris:AddItem(NewCharacter,5)
  1246. end
  1247.  
  1248. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1249. local CHILDREN = workspace:GetDescendants()
  1250. for index, CHILD in pairs(CHILDREN) do
  1251. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1252. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1253. if HUM then
  1254. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1255. if TORSO then
  1256. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1257. if BRUTAL == true then
  1258. Kill(CHILD)
  1259. else
  1260. CHILD:BreakJoints()
  1261. end
  1262. end
  1263. end
  1264. end
  1265. end
  1266. end
  1267. end
  1268.  
  1269. function BulletDetection(FROM,TO,BRUTAL)
  1270. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1271. coroutine.resume(coroutine.create(function()
  1272. if AIMHIT ~= nil then
  1273. if AIMHIT.Parent ~= Character then
  1274. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1275. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1276. if BRUTAL == true then
  1277. Kill(AIMHIT.Parent)
  1278. else
  1279. getbloody(AIMHIT,15)
  1280. AIMHIT.Parent:BreakJoints()
  1281. if AIMHIT.Name == "Head" then
  1282. AIMHIT.Name = "HEADSHOT"
  1283. AIMHIT:remove()
  1284. end
  1285. end
  1286. else
  1287. if BRUTAL == true then
  1288. Kill(AIMHIT.Parent.Parent)
  1289. else
  1290. AIMHIT.Parent.Parent:BreakJoints()
  1291. end
  1292. end
  1293. end
  1294. end
  1295. end
  1296. end))
  1297. SpawnTrail(FROM,AIMPOS)
  1298. return AIMHIT,AIMPOS,NORMAL
  1299. end
  1300.  
  1301. local Weapon = nil
  1302. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really black", "BraceletPart", VT(1.01,0.3,1.01),false)
  1303. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1304.  
  1305. function Charge(TIME,GYRO)
  1306. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  1307. local G = nil
  1308. if GYRO == true then
  1309. G = IT("BodyGyro",RootPart)
  1310. G.D = 250
  1311. G.P = 200000
  1312. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  1313. end
  1314. for i=0, TIME, 0.1 / Animation_Speed do
  1315. Swait()
  1316. if G then
  1317. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1318. end
  1319. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1320. 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)
  1321. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1322. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1323. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1324. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1325. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1326. end
  1327. SND:remove()
  1328. if G then
  1329. return G
  1330. end
  1331. end
  1332. --//=================================\\
  1333. --|| ATTACK FUNCTIONS AND STUFF
  1334. --\\=================================//
  1335.  
  1336. function Warden_Wall()
  1337. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  1338. if HITFLOOR ~= nil then
  1339. if HITFLOOR.Anchored == true then
  1340. local WALL = HITFLOOR:Clone()
  1341. WALL.Size = VT(45,45,5)
  1342. WALL.Parent = Effects
  1343. WALL.Name = "Wall"
  1344. WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
  1345. CreateSound(130972023,WALL,5,0.8,false)
  1346. ATTACK = true
  1347. Rooted = true
  1348. local HIT = WALL.Touched:Connect(function(hit)
  1349. if hit.Parent ~= Character then
  1350. hit:BreakJoints()
  1351. end
  1352. end)
  1353. coroutine.resume(coroutine.create(function()
  1354. 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"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1355. for i = 1, 90 do
  1356. Swait()
  1357. WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
  1358. end
  1359. HIT:disconnect()
  1360. wait(5)
  1361. for i = 1, 46 do
  1362. Swait()
  1363. WALL.CFrame = WALL.CFrame*CF(0,-1,0)
  1364. end
  1365. WALL:remove()
  1366. end))
  1367. Pose("RightArmUp",1.5,1.2,true)
  1368. ATTACK = false
  1369. Rooted = false
  1370. end
  1371. end
  1372. end
  1373.  
  1374. function Prison_Key()
  1375. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  1376. PLAYMAINANIM = false
  1377. if WhichPose == "Cast1" then
  1378. for i=0, Time, 0.1 / Animation_Speed do
  1379. Swait()
  1380. if Magic == true then
  1381. 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"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1382. end
  1383. if Gyro ~= nil and Gyro ~= false then
  1384. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1385. end
  1386. 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)
  1387. 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)
  1388. 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)
  1389. 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)
  1390. 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)
  1391. 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)
  1392. end
  1393. elseif WhichPose == "Cast2" then
  1394. for i=0, Time, 0.1 / Animation_Speed do
  1395. Swait()
  1396. if Magic == true then
  1397. 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"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1398. 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"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1399. end
  1400. if Gyro ~= nil and Gyro ~= false then
  1401. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1402. end
  1403. 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)
  1404. 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)
  1405. 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)
  1406. 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)
  1407. 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)
  1408. 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)
  1409. end
  1410. elseif WhichPose == "RightArmUp" then
  1411. for i=0, Time, 0.1 / Animation_Speed do
  1412. Swait()
  1413. if Magic == true then
  1414. 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"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1415. end
  1416. if Gyro ~= nil and Gyro ~= false then
  1417. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1418. end
  1419. 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)
  1420. 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)
  1421. 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)
  1422. 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)
  1423. 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)
  1424. 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)
  1425. end
  1426. elseif WhichPose == "Taunt" then
  1427. for i=0, Time, 0.1 / Animation_Speed do
  1428. Swait()
  1429. 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)
  1430. 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)
  1431. 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)
  1432. 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)
  1433. 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)
  1434. 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)
  1435. end
  1436. HATWELD.Part0 = RightArm
  1437. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  1438. CreateSound(221057812,Torso,10,1,false)
  1439. for i=0, Time*2, 0.1 / Animation_Speed do
  1440. Swait()
  1441. 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)
  1442. 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)
  1443. 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)
  1444. 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)
  1445. 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)
  1446. 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)
  1447. end
  1448. for i=0, Time, 0.1 / Animation_Speed do
  1449. Swait()
  1450. 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)
  1451. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  1452. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1453. 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)
  1454. 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)
  1455. 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)
  1456. 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)
  1457. end
  1458. HATWELD.Part0 = Head
  1459. HATWELD.C0 = CF(0,0.35,0)
  1460. elseif WhichPose == "Prepare key" then
  1461. for i=0, Time, 0.1 / Animation_Speed do
  1462. Swait()
  1463. if Gyro ~= nil and Gyro ~= false then
  1464. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1465. end
  1466. 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)
  1467. 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)
  1468. 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)
  1469. 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)
  1470. 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)
  1471. 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)
  1472. end
  1473. elseif WhichPose == "Turn key" then
  1474. for i=0, Time, 0.1 / Animation_Speed do
  1475. Swait()
  1476. if Gyro ~= nil and Gyro ~= false then
  1477. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1478. end
  1479. 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)
  1480. 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)
  1481. 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)
  1482. 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)
  1483. 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)
  1484. 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)
  1485. end
  1486. end
  1487. PLAYMAINANIM = true
  1488. end
  1489. if Mouse.Target ~= nil then
  1490. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1491. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1492. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1493. local GYRO = IT("BodyGyro",RootPart)
  1494. GYRO.D = 750
  1495. GYRO.P = 20000
  1496. GYRO.MaxTorque = VT(0,40000000,0)
  1497. local grav = Instance.new("BodyPosition",TORSO)
  1498. grav.D = 15
  1499. grav.P = 20000
  1500. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1501. grav.position = TORSO.Position
  1502. local GYRO2 = IT("BodyGyro",TORSO)
  1503. GYRO2.D = 750
  1504. GYRO2.P = 20000
  1505. GYRO2.MaxTorque = VT(0,40000000,0)
  1506. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1507. grav.Name = "Jail"
  1508. local LOCKPARTS = {}
  1509. ATTACK = true
  1510. Rooted = false
  1511. local LOCK = IT("Model",Effects)
  1512. LOCK.Name = "Lock"
  1513. local LOCK2 = IT("Model",LOCK)
  1514. LOCK2.Name = "Metal"
  1515. --CREATE LOCK--
  1516. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  1517. LOCK.PrimaryPart = BASE
  1518. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1519. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  1520. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1521. MakeForm(PRT,"Cyl")
  1522. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  1523. PRT.Color = C3(0,0,0)
  1524. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1525. MakeForm(PRT,"Cyl")
  1526. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  1527. PRT.Color = C3(0,0,0)
  1528. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1529. for i = 1, 45 do
  1530. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1531. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1532. end
  1533. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1534. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1535. LOCK2.PrimaryPart = PRT
  1536. ---------------
  1537. local CHILDREN = LOCK:GetDescendants()
  1538. for index, CHILD in pairs(CHILDREN) do
  1539. if CHILD:IsA("BasePart") then
  1540. CHILD.Transparency = 1
  1541. end
  1542. end
  1543. for i = 1, 75 do
  1544. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1545. Swait()
  1546. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1547. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1548. local CHILDREN = LOCK:GetDescendants()
  1549. for index, CHILD in pairs(CHILDREN) do
  1550. if CHILD:IsA("BasePart") then
  1551. CHILD.Transparency = CHILD.Transparency - 1/75
  1552. end
  1553. end
  1554. end
  1555. HUM.DisplayDistanceType = "None"
  1556. local KEY = IT("Model",Effects)
  1557. KEY.Name = "Key"
  1558. --CREATE KEY--
  1559. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "KeyBase", VT(0.1, 1, 0.1),false)
  1560. KEY.PrimaryPart = KBASE
  1561. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1562. local WLD = weldBetween(RightArm,KBASE)
  1563. for i = 1, 45 do
  1564. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "Key", VT(0.1, 0.1, 0.1),false)
  1565. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1566. weldBetween(KBASE,PRT)
  1567. end
  1568. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "Key", VT(0.3, 0.1, 0.1),false)
  1569. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1570. weldBetween(KBASE,PRT)
  1571. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really black", "Key", VT(0.3, 0.1, 0.1),false)
  1572. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1573. weldBetween(KBASE,PRT)
  1574. --------------
  1575. Rooted = true
  1576. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  1577. coroutine.resume(coroutine.create(function()
  1578. for i = 1, 10 do
  1579. Swait()
  1580. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1581. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1582. end
  1583. CreateSound(1149318312,BASE,5,1,false)
  1584. CreateSound(160772554,BASE,3,1,false)
  1585. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1586. for i = 1, 4 do
  1587. 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"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1588. end
  1589. 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"Really black".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1590. wait(1)
  1591. TORSO.Parent.Parent = LOCK
  1592. for i = 1, 75 do
  1593. Swait()
  1594. local CHILDREN = KEY:GetDescendants()
  1595. for index, CHILD in pairs(CHILDREN) do
  1596. if CHILD:IsA("BasePart") then
  1597. CHILD.Transparency = i/25
  1598. end
  1599. end
  1600. local CHILDREN = LOCK:GetDescendants()
  1601. for index, CHILD in pairs(CHILDREN) do
  1602. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1603. CHILD.Transparency = CHILD.Transparency + 1/75
  1604. elseif CHILD.ClassName == "Decal" then
  1605. CHILD.Transparency = CHILD.Transparency + 1/75
  1606. end
  1607. end
  1608. end
  1609. TORSO.Parent:ClearAllChildren()
  1610. KEY:remove()
  1611. LOCK:remove()
  1612. end))
  1613. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  1614. GYRO:remove()
  1615. ATTACK = false
  1616. Rooted = false
  1617. end
  1618. end
  1619. end
  1620.  
  1621. function Corrupted_Immobilization()
  1622. ATTACK = true
  1623. Rooted = true
  1624. Charge(2,false)
  1625. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,3,1)
  1626. local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  1627. local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false)
  1628. for i = 1, 60 do
  1629. Swait()
  1630. ApplyAoE(RootPart.Position,i*1.3,10,20,-200,true)
  1631. SND.Pitch = SND.Pitch - 1/60
  1632. SND2.Pitch = SND.Pitch
  1633. WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*2,10,i*2), Size2 = VT(i*2,10,i*2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1634. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,10,0), Size2 = VT(i*2,6,i*2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1635. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,6,0), Size2 = VT(i*1.6,10,i*1.6), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1636. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1637. 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)
  1638. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1639. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1640. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1641. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1642. end
  1643. SND:remove()
  1644. SND2:remove()
  1645. ATTACK = false
  1646. Rooted = false
  1647. end
  1648.  
  1649. local OFFSET = 0
  1650. local TAUNT = false
  1651.  
  1652. function Taunt()
  1653. ATTACK = true
  1654. Rooted = false
  1655. TAUNT = true
  1656. for i=0, 0.1, 0.1 / Animation_Speed do
  1657. Swait()
  1658. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1659. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1660. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1661. end
  1662. for i=0, 3, 0.1 / Animation_Speed do
  1663. Swait()
  1664. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1665. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1666. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1667. end
  1668. CreateSound(363808674, Torso, 10, 1.3)
  1669. for i=0, 1, 0.1 / Animation_Speed do
  1670. Swait()
  1671. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(120)), 3 / Animation_Speed)
  1672. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 3/ Animation_Speed)
  1673. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(230), RAD(0), RAD(35)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1674. end
  1675. WACKYEFFECT({EffectType = "Block", Size = VT(6,6,6), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Really black").Color, SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1676. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 0.8)
  1677. for i=0, 0.01, 0.1 / Animation_Speed do
  1678. Swait()
  1679. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1680. 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, 3 / Animation_Speed)
  1681. LeftShoulder.C0 = Clerp(LeftShoulder.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)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1682. end
  1683. ATTACK = false
  1684. Rooted = false
  1685. TAUNT = false
  1686. end
  1687.  
  1688. function Click()
  1689. ATTACK = true
  1690. Rooted = false
  1691. local HIT = nil
  1692. OFFSET = -45
  1693. for i=0, 1, 0.1 / Animation_Speed do
  1694. Swait()
  1695. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1696. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1697. end
  1698. OFFSET = 45
  1699. local PUNCH = CreatePart(3, Effects, "Granite", 0, 1, "Really black", "Hit", VT(0.7,0.7,0.7),false)
  1700. PUNCH.CanCollide = true
  1701. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PUNCH, CF(0,-1,0), CF(0, 0, 0))
  1702. TAUNT = true
  1703. local TOUCH = PUNCH.Touched:Connect(function(hit)
  1704. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  1705. HIT = hit.Parent
  1706. end
  1707. end)
  1708. for i=0, 0.3, 0.1 / Animation_Speed do
  1709. Swait()
  1710. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3)
  1711. if HIT ~= nil then
  1712. break
  1713. end
  1714. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1715. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1716. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1717. end
  1718. PUNCH:remove()
  1719. TOUCH:disconnect()
  1720. if HIT ~= nil then
  1721. for _, c in pairs(HIT:GetChildren()) do
  1722. if c:IsA("BasePart") then
  1723. c.Anchored = true
  1724. end
  1725. end
  1726. Rooted = true
  1727. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 0.8)
  1728. CreateSound(1368573150, RightArm, 3, 1.5)
  1729. for i=0, 0.6, 0.1 / Animation_Speed do
  1730. Swait()
  1731. WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1732. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(25), RAD(-45)), 0.05 / Animation_Speed)
  1733. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1734. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1735. end
  1736. for _, c in pairs(HIT:GetChildren()) do
  1737. if c:IsA("BasePart") then
  1738. c.Anchored = false
  1739. end
  1740. end
  1741. KillChildren(HIT)
  1742. end
  1743. OFFSET = 0
  1744. ATTACK = false
  1745. Rooted = false
  1746. TAUNT = false
  1747. end
  1748.  
  1749. function SpawnSmite(POS)
  1750. local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
  1751. local EMITPOS = HITPOS
  1752. if HITFLOOR ~= nil then
  1753. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1754. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  1755. EMITPOS = HITPOS
  1756. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1757. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  1758. EMITPOS = HITPOS
  1759. end
  1760. end
  1761. if HITFLOOR ~= nil then
  1762. ApplyAoE(EMITPOS,10)
  1763. WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  1764. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1765. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1766. for i = 1, 5 do
  1767. local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
  1768. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  1769. end
  1770. end
  1771. end
  1772.  
  1773. function Corrupted_Explosion()
  1774. ATTACK = true
  1775. Rooted = false
  1776. CreateSound(1368573150, RightArm, 3, 1.5)
  1777. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 3, 1)
  1778. for i=0, 0.6, 0.1 / Animation_Speed do
  1779. Swait()
  1780. WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1781. 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)
  1782. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  1783. end
  1784. local POWER = 0
  1785. repeat
  1786. Swait()
  1787. WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1788. 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)
  1789. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  1790. POWER = POWER + 0.5
  1791. if POWER >= 85 then
  1792. POWER = 85
  1793. end
  1794. until KEYHOLD == false
  1795. if POWER < 0.6 then
  1796. SpawnMeteor(Mouse.Hit.p)
  1797. else
  1798. if POWER < 15 then
  1799. POWER = 15
  1800. end
  1801. SpawnMeteor(Mouse.Hit.p,POWER/15)
  1802. end
  1803. ATTACK = false
  1804. Rooted = false
  1805. end
  1806.  
  1807. function Psyo()
  1808.  
  1809. end
  1810.  
  1811. function Cleve()
  1812.  
  1813. end
  1814. function Lock_n_Load()
  1815.  
  1816. end
  1817. function Morning_Star()
  1818. ATTACK = true
  1819. Rooted = true
  1820. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false)
  1821. for i=0, 0.5, 0.1 / Animation_Speed do
  1822. Swait()
  1823. 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)
  1824. 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)
  1825. end
  1826. coroutine.resume(coroutine.create(function()
  1827. local POS = Mouse.Hit.p
  1828. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,2000,0))
  1829. MakeForm(RAY,"Cyl")
  1830. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
  1831. MakeForm(SPHERE,"Ball")
  1832. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
  1833. MakeForm(SHIELD,"Ball")
  1834. SHIELD.CFrame = CF(POS)
  1835. RAY.CFrame = CF(POS)
  1836. SPHERE.CFrame = CF(POS)
  1837. CreateSound(144699494, SPHERE, 10, 0.8, false)
  1838. CreateSound(1146688617, SPHERE, 10, 0.8, false)
  1839. for i = 1, 200 do
  1840. Swait()
  1841. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1842. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  1843. SPHERE.Size = SPHERE.Size + VT(2,2,2)
  1844. SHIELD.Size = SPHERE.Size + VT(3,3,3)
  1845. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  1846. end
  1847. for i = 1, 45 do
  1848. Swait()
  1849. RAY.Transparency = RAY.Transparency + 1/45
  1850. SPHERE.Transparency = RAY.Transparency
  1851. SHIELD.Transparency = SPHERE.Transparency + 1/45
  1852. end
  1853. RAY:remove()
  1854. SHIELD:remove()
  1855. SPHERE:remove()
  1856. end))
  1857. for i=0, 0.1, 0.1 / Animation_Speed do
  1858. Swait()
  1859. 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)
  1860. end
  1861. ATTACK = false
  1862. Rooted = false
  1863. end
  1864. function Deathbound()
  1865.  
  1866. end
  1867. function Execute()
  1868.  
  1869. end
  1870.  
  1871. function Teleport()
  1872. ATTACK = true
  1873. Rooted = false
  1874. for i=0, 0.5, 0.1 / Animation_Speed do
  1875. Swait()
  1876. 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)
  1877. 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)
  1878. end
  1879. for e = 1, #BODY do
  1880. if BODY[e] ~= nil then
  1881. local STUFF = BODY[e]
  1882. local PART = STUFF[1]
  1883. if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  1884. local PRT = PART:Clone()
  1885. PRT.Anchored = true
  1886. PRT.CanCollide = false
  1887. PRT.Material = "Neon"
  1888. PRT.Color = C3(0,0,0)
  1889. PRT.Name = "WarpEffect"
  1890. PRT.Parent = Effects
  1891. PRT.CFrame = PART.CFrame
  1892. PRT:BreakJoints()
  1893. if PRT:FindFirstChildOfClass("Sound") then
  1894. PRT:FindFirstChildOfClass("Sound"):remove()
  1895. end
  1896. if PRT:FindFirstChildOfClass("Decal") then
  1897. PRT:FindFirstChildOfClass("Decal"):remove()
  1898. end
  1899. coroutine.resume(coroutine.create(function()
  1900. for i = 1, 100 do
  1901. Swait()
  1902. PRT.Transparency = PRT.Transparency + 1/100
  1903. end
  1904. PRT:remove()
  1905. end))
  1906. end
  1907. end
  1908. end
  1909. CreateSound(217767125, Torso, 10, 1)
  1910. local POS = RootPart.Orientation
  1911. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  1912. RootPart.Orientation = POS
  1913. RootJoint.Parent = RootPart
  1914. for i=0, 0.5, 0.1 / Animation_Speed do
  1915. Swait()
  1916. 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)
  1917. 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)
  1918. end
  1919. for i=0, 0.1, 0.1 / Animation_Speed do
  1920. Swait()
  1921. 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)
  1922. end
  1923. ATTACK = false
  1924. Rooted = false
  1925. end
  1926.  
  1927. function Equivalent_Pain()
  1928. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1929. if HITFLOOR then
  1930. ATTACK = true
  1931. Rooted = true
  1932. FULL = true
  1933. local GYRO = IT("BodyGyro",RootPart)
  1934. GYRO.D = 25
  1935. GYRO.P = 20000
  1936. GYRO.MaxTorque = VT(0,math.huge,0)
  1937. for i=0, 0.3, 0.1 / Animation_Speed do
  1938. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1939. Swait()
  1940. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1941. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1942. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1943. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1944. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-35)), 1 / Animation_Speed)
  1945. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(5)), 1 / Animation_Speed)
  1946. end
  1947. GYRO:remove()
  1948. CreateSound(12222200, RightArm, 10, 1)
  1949. for i=0, 0.4, 0.1 / Animation_Speed do
  1950. Swait()
  1951. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
  1952. 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)
  1953. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1954. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1955. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed)
  1956. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1957. end
  1958. CreateSound(289842971, RightArm, 10, 1)
  1959. coroutine.resume(coroutine.create(function()
  1960. local HIT,POS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(Mouse.Hit.p+VT(0,1,0), Mouse.Hit.p-VT(0,1,0))).lookVector, 45, Character)
  1961. local ECHO = POS
  1962. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1963. HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  1964. ECHO = POS
  1965. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1966. HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  1967. ECHO = POS
  1968. end
  1969. if ECHO.Y == HITPOS.Y then
  1970. local DISTANCE = (HITPOS - ECHO).Magnitude/3
  1971. local CFRAME = CF(HITPOS,ECHO)
  1972. local RANGE = math.ceil(DISTANCE)
  1973. for i = 1, RANGE-1 do
  1974. Swait(3)
  1975. local A = CFRAME*CF(0,0,-i*3)
  1976. ApplyAoE(A.p,4)
  1977. CreateFlyingDebree(HITFLOOR,A,2,VT(2,2,2),2,65)
  1978. end
  1979. local SIZE = 3
  1980. local POS = CFRAME*CF(0,0,-RANGE*3).p
  1981. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(55,0,55)*SIZE, Size2 = VT(55,15,55)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 0.8, SoundVolume = 10})
  1982. WACKYEFFECT({EffectType = "Sphere", Size = VT(10,250,10)*SIZE, Size2 = VT(20,1000,20)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
  1983. WACKYEFFECT({EffectType = "Sphere", Size = VT(30,150,30)*SIZE, Size2 = VT(50,300,50)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
  1984. for i = 1, 9 do
  1985. WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
  1986. end
  1987. for i = 1, 9 do
  1988. WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
  1989. end
  1990. ApplyAoE(POS,30*SIZE)
  1991. CreateDebreeRing(HITFLOOR,POS,30*SIZE,VT(8,8,8)*SIZE,5)
  1992. CreateDebreeRing(HITFLOOR,POS,50*SIZE,VT(2,2,2)*SIZE,5)
  1993. end
  1994. end))
  1995. for i=0, 0.6, 0.1 / Animation_Speed do
  1996. Swait()
  1997. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
  1998. 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)
  1999. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2000. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2001. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed)
  2002. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed)
  2003. end
  2004. FULL = false
  2005. ATTACK = false
  2006. Rooted = false
  2007. end
  2008. end
  2009.  
  2010. --//=================================\\
  2011. --|| ASSIGN THINGS TO KEYS
  2012. --\\=================================//
  2013.  
  2014. function MouseDown(Mouse)
  2015. if ATTACK == false then
  2016. Click()
  2017. end
  2018. end
  2019.  
  2020. function MouseUp(Mouse)
  2021. HOLD = false
  2022. end
  2023.  
  2024. function KeyDown(Key)
  2025. KEYHOLD = true
  2026. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  2027. if Key == "z" and ATTACK == false then
  2028. Corrupted_Explosion()
  2029.  
  2030. elseif Key == "c" and ATTACK == false then
  2031. Warden_Wall()
  2032.  
  2033. elseif Key == "q" and ATTACK == false then
  2034. Prison_Key()
  2035.  
  2036. elseif Key == "b" and ATTACK == false then
  2037. Corrupted_Immobilization()
  2038.  
  2039. elseif Key == "c" and ATTACK == false then
  2040. Cleave()
  2041.  
  2042. elseif Key == "v" and ATTACK == false then
  2043. Teleport()
  2044.  
  2045. elseif Key == "g" and ATTACK == false then
  2046. Deathbound()
  2047.  
  2048. elseif Key == "x" and ATTACK == false then
  2049. Morning_Star()
  2050.  
  2051. elseif Key == "t" then
  2052. Taunt()
  2053. end
  2054. end
  2055. end
  2056.  
  2057. function KeyUp(Key)
  2058. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  2059. KEYHOLD = false
  2060. end
  2061. end
  2062.  
  2063. Mouse.Button1Down:connect(function(NEWKEY)
  2064. MouseDown(NEWKEY)
  2065. end)
  2066. Mouse.Button1Up:connect(function(NEWKEY)
  2067. MouseUp(NEWKEY)
  2068. end)
  2069. Mouse.KeyDown:connect(function(NEWKEY)
  2070. KeyDown(NEWKEY)
  2071. end)
  2072. Mouse.KeyUp:connect(function(NEWKEY)
  2073. KeyUp(NEWKEY)
  2074. end)
  2075.  
  2076. --//=================================\\
  2077. --\\=================================//
  2078.  
  2079.  
  2080. function unanchor()
  2081. if UNANCHOR == true then
  2082. g = Character:GetChildren()
  2083. for i = 1, #g do
  2084. if g[i].ClassName == "Part" then
  2085. g[i].Anchored = false
  2086. end
  2087. end
  2088. end
  2089. end
  2090.  
  2091.  
  2092. --//=================================\\
  2093. --|| WRAP THE WHOLE SCRIPT UP
  2094. --\\=================================//
  2095.  
  2096. Humanoid.Changed:connect(function(Jump)
  2097. if Jump == "Jump" and (Disable_Jump == true) then
  2098. Humanoid.Jump = false
  2099. end
  2100. end)
  2101.  
  2102. local SIZE = 1
  2103. while true do
  2104. Swait()
  2105. script.Parent = WEAPONGUI
  2106. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2107. v:Stop();
  2108. end
  2109. ANIMATE.Parent = nil
  2110. SINE = SINE + CHANGE*1.5
  2111. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2112. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2113. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  2114. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  2115. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2116. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2117. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2118. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2119. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2120. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2121. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2122. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2123. RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2124. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2125. end
  2126. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2127. ANIM = "Jump"
  2128. if ATTACK == false then
  2129. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2130. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2131. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2132. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2133. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  2134. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed)
  2135. end
  2136. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2137. ANIM = "Fall"
  2138. if ATTACK == false then
  2139. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2140. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2141. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2142. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2143. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  2144. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
  2145. end
  2146. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2147. ANIM = "Idle"
  2148. if ATTACK == false then
  2149. 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)
  2150. 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)
  2151. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(35), RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(-85 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2152. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(35), RAD(15 - 2.5 * SIN(SINE / 12)), RAD(85 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2153. 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)
  2154. 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)
  2155. end
  2156. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2157. ANIM = "Walk"
  2158. if ATTACK == false then
  2159. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2160. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed)
  2161. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2162. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2163. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2164. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2165. end
  2166. end
  2167. unanchor()
  2168. Humanoid.MaxHealth = "inf"
  2169. Humanoid.Health = "inf"
  2170. if Rooted == false then
  2171. Disable_Jump = false
  2172. Humanoid.WalkSpeed = Speed
  2173. elseif Rooted == true then
  2174. Disable_Jump = true
  2175. Humanoid.WalkSpeed = 0
  2176. end
  2177. for _, c in pairs(Character:GetDescendants()) do
  2178. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  2179. c.Material = "Neon"
  2180. c.Color = C3(0,0,0)
  2181. if c:FindFirstChildOfClass("SpecialMesh") then
  2182. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2183. end
  2184. if c == Head then
  2185. if c:FindFirstChild("face") then
  2186. c.face:remove()
  2187. end
  2188. end
  2189. elseif c.ClassName == "Part" and c.Name == "Eye" then
  2190. c.Color = C3(58,125,21)
  2191. c.Material = "Neon"
  2192. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  2193. c:remove()
  2194. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2195. c:remove()
  2196. end
  2197. end
  2198. refit()
  2199. Humanoid.Name = "Deadeyes"
  2200. sick.Parent = Torso
  2201. sick:resume()
  2202. sick.Volume = 5
  2203. sick.Pitch = 1
  2204. if Head:FindFirstChildOfClass("Sound") then
  2205. Head:FindFirstChildOfClass("Sound"):remove()
  2206. end
  2207. end
  2208.  
  2209. --//=================================\\
  2210. --\\=================================//
  2211.  
  2212.  
  2213. --//====================================================\\--
  2214. --|| END OF SCRIPT
  2215. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement