Advertisement
TEENYCR34T0R

Untitled

Aug 5th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 115.52 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Character = Player.Character
  3. local txt = Instance.new("BillboardGui", Character)
  4. txt.Adornee = Character.Head
  5. txt.Name = "_status"
  6. txt.Size = UDim2.new(2, 0, 1.2, 0)
  7. txt.StudsOffset = Vector3.new(-9, 8, 0)
  8. local text = Instance.new("TextLabel", txt)
  9. text.Size = UDim2.new(10, 0, 7, 0)
  10. text.FontSize = "Size24"
  11. text.TextScaled = true
  12. text.TextTransparency = 0
  13. text.BackgroundTransparency = 1
  14. text.TextTransparency = 0
  15. text.TextStrokeTransparency = 0
  16. text.Font = "Antique"
  17. text.TextStrokeColor3 = Color3.new(196, 40, 28)
  18. text.Text = "NeverMore"
  19. script.Name = "NeverMore"
  20. --//====================================================\\--
  21. --|| CREATED BY SHACKLUSTER-EDITED BY PROMLG112
  22. --\\====================================================//--
  23. local chara = Character
  24.  
  25. function chat(...)
  26. local txxt = {...}
  27. local ch = coroutine.wrap(function()
  28. if chara:FindFirstChild("Chatt")~= nil then
  29. Character:FindFirstChild("Chatt"):destroy()
  30. end
  31. local txt = Instance.new("BillboardGui", chara)
  32. txt.Adornee = chara.Head
  33. txt.Name = "Chatt"
  34. txt.Size = UDim2.new(2, 0, 1.2, 0)
  35. txt.StudsOffset = Vector3.new(-9, 7, 0)
  36. local text = Instance.new("TextLabel", txt)
  37. text.Size = UDim2.new(10, 0, 7, 0)
  38. text.TextSize = 32
  39. text.Font = Enum.Font.Antique
  40. text.TextScaled = false
  41. text.BackgroundTransparency = 1
  42. text.TextColor3 = Color3.new(0,0,0)
  43. text.TextStrokeTransparency = 0
  44. text.TextStrokeColor3 = Color3.new(0/0, 0/0, 0/0)
  45. text.Text = ""
  46. txxt = table.concat(txxt,"\t")
  47. for i = 1, #txxt do
  48. text.Text = txxt:sub(1,i)
  49.  
  50. end
  51. wait(2)
  52. for trans = 0,1,00.1 do
  53. text.TextTransparency = trans
  54. text.TextStrokeTransparency = trans
  55. wait()
  56. end
  57. wait()
  58. txt:destroy()
  59. end)
  60.  
  61.  
  62. ch(...)
  63. end
  64. Player.Chatted:connect(chat)
  65.  
  66. wait(0.2)
  67.  
  68. Player = game:GetService("Players").LocalPlayer
  69. PlayerGui = Player.PlayerGui
  70. Cam = workspace.CurrentCamera
  71. Backpack = Player.Backpack
  72. Character = Player.Character
  73. Humanoid = Character.Humanoid
  74. Mouse = Player:GetMouse()
  75. RootPart = Character["HumanoidRootPart"]
  76. Torso = Character["Torso"]
  77. Head = Character["Head"]
  78. RightArm = Character["Right Arm"]
  79. LeftArm = Character["Left Arm"]
  80. RightLeg = Character["Right Leg"]
  81. LeftLeg = Character["Left Leg"]
  82. RootJoint = RootPart["RootJoint"]
  83. Neck = Torso["Neck"]
  84. RightShoulder = Torso["Right Shoulder"]
  85. LeftShoulder = Torso["Left Shoulder"]
  86. RightHip = Torso["Right Hip"]
  87. LeftHip = Torso["Left Hip"]
  88.  
  89. for i,v in pairs(Character:GetChildren()) do
  90. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "CharacterMesh" then
  91. v:Destroy()
  92. end
  93. end
  94.  
  95. Glow1 = Color3.new(169,169,169)
  96. Glow2 = Color3.new(169,169,169)
  97.  
  98. GlowParticle = Instance.new("ParticleEmitter",Character.Torso)
  99. GlowParticle.LightEmission = 1
  100. GlowParticle.Color = ColorSequence.new(Glow1,Glow2)
  101. GlowParticle.Size = NumberSequence.new(5,10)
  102. GlowParticle.Texture = "http://www.roblox.com/asset/?id=243660373"
  103. GlowParticle.Transparency = NumberSequence.new(.3,.8)
  104. GlowParticle.LockedToPart = true
  105. GlowParticle.Lifetime = NumberRange.new(2)
  106. GlowParticle.Rate= 10
  107. GlowParticle.Speed =NumberRange.new(0)
  108.  
  109. for i,v in pairs(Character:GetChildren()) do
  110. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  111. v:Destroy()
  112. end
  113. end
  114.  
  115. local Shirt = Instance.new("Shirt",Character)
  116. local Pants = Instance.new("Pants",Character)
  117. Shirt.ShirtTemplate = "rbxassetid://648758131"
  118. Pants.PantsTemplate = "rbxassetid://472675863"
  119.  
  120. local sick = Instance.new("Sound",Character)
  121. sick.SoundId = "rbxassetid://843143560"
  122. sick.Looped = true
  123. sick.Pitch = 1
  124. sick.Volume = 1.3
  125. sick:Play()
  126.  
  127. IT = Instance.new
  128. CF = CFrame.new
  129. VT = Vector3.new
  130. RAD = math.rad
  131. C3 = Color3.new
  132. UD2 = UDim2.new
  133. BRICKC = BrickColor.new
  134. ANGLES = CFrame.Angles
  135. EULER = CFrame.fromEulerAnglesXYZ
  136. COS = math.cos
  137. ACOS = math.acos
  138. SIN = math.sin
  139. ASIN = math.asin
  140. ABS = math.abs
  141. MRANDOM = math.random
  142. FLOOR = math.floor
  143. local CLOAKED = false
  144. local KILLINSTINCT = 0
  145. --//=================================\\
  146. --|| SOME OTHER STUFF
  147. --\\=================================//
  148. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  149. ff.Visible = false
  150. Humanoid.Name = "God Mode"
  151.  
  152. --//=================================\\
  153. --|| CUSTOMIZATION
  154. --\\=================================//
  155.  
  156. Player_Size = 1 --Size of the player.
  157. Animation_Speed = 3
  158. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  159.  
  160. local Speed = 16
  161. local Effects2 = {}
  162.  
  163. --//=================================\\
  164. --|| END OF CUSTOMIZATION
  165. --\\=================================//
  166.  
  167. local function weldBetween(a, b)
  168. local weldd = Instance.new("ManualWeld")
  169. weldd.Part0 = a
  170. weldd.Part1 = b
  171. weldd.C0 = CFrame.new()
  172. weldd.C1 = b.CFrame:inverse() * a.CFrame
  173. weldd.Parent = a
  174. return weldd
  175. end
  176. --//=================================\\
  177. --|| USEFUL VALUES
  178. --\\=================================//
  179.  
  180. Animation_Speed = 3
  181. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  182. local Speed = 16
  183. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  184. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  185. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  186. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  187. local DAMAGEMULTIPLIER = 1
  188. local ANIM = "Idle"
  189. local ATTACK = false
  190. local EQUIPPED = false
  191. local HOLD = false
  192. local CLOCKTARGET = nil
  193. local CLOCKSPEED = 2.5
  194. local CLOCKLOOP = 0
  195. local COMBO = 1
  196. local Rooted = false
  197. local SINE = 0
  198. local KEYHOLD = false
  199. local CHANGE = 2 / Animation_Speed
  200. local WALKINGANIM = false
  201. local VALUE1 = false
  202. local VALUE2 = false
  203. local ROBLOXIDLEANIMATION = IT("Animation")
  204. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  205. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  206. --ROBLOXIDLEANIMATION.Parent = Humanoid
  207. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  208. WEAPONGUI.Name = "Weapon GUI"
  209. local Weapon = IT("Model")
  210. Weapon.Name = "Adds"
  211. local Effects = IT("Folder", Weapon)
  212. Effects.Name = "Effects"
  213. local ANIMATOR = Humanoid.Animator
  214. local ANIMATE = Character.Animate
  215. local UNANCHOR = true
  216. local ENERGYSOUND = 1417051162
  217. local BEAMSOUND = 1417056781
  218. local EXPLOSIONSOUND = 1417056081
  219.  
  220. --//=================================\\
  221. --\\=================================//
  222.  
  223. local asd = Instance.new("ParticleEmitter")
  224. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  225. asd.LightEmission = .1
  226. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  227. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  228. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  229. asd.Transparency = bbb
  230. asd.Size = aaa
  231. asd.ZOffset = .9
  232. asd.Acceleration = Vector3.new(0, -15, 0)
  233. asd.LockedToPart = false
  234. asd.EmissionDirection = "Back"
  235. asd.Lifetime = NumberRange.new(1, 2)
  236. asd.Rotation = NumberRange.new(-100, 100)
  237. asd.RotSpeed = NumberRange.new(-100, 100)
  238. asd.Speed = NumberRange.new(10)
  239. asd.Enabled = false
  240. asd.VelocitySpread = 999
  241.  
  242. function getbloody(victim,amount)
  243. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  244. PART.CFrame = victim.CFrame
  245. local HITPLAYERSOUNDS = {"356551938","264486467"}
  246. Debris:AddItem(PART,5)
  247. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  248. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  249. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  250. local prtcl = asd:Clone()
  251. prtcl.Parent = PART
  252. prtcl:Emit(amount*10)
  253. end
  254.  
  255. --//=================================\\
  256. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  257. --\\=================================//
  258.  
  259. ArtificialHB = Instance.new("BindableEvent", script)
  260. ArtificialHB.Name = "ArtificialHB"
  261.  
  262. script:WaitForChild("ArtificialHB")
  263.  
  264. frame = Frame_Speed
  265. tf = 0
  266. allowframeloss = false
  267. tossremainder = false
  268. lastframe = tick()
  269. script.ArtificialHB:Fire()
  270.  
  271. game:GetService("RunService").Heartbeat:connect(function(s, p)
  272. tf = tf + s
  273. if tf >= frame then
  274. if allowframeloss then
  275. script.ArtificialHB:Fire()
  276. lastframe = tick()
  277. else
  278. for i = 1, math.floor(tf / frame) do
  279. script.ArtificialHB:Fire()
  280. end
  281. lastframe = tick()
  282. end
  283. if tossremainder then
  284. tf = 0
  285. else
  286. tf = tf - frame * math.floor(tf / frame)
  287. end
  288. end
  289. end)
  290.  
  291. --//=================================\\
  292. --\\=================================//
  293. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  294. ff.Visible = false
  295. Humanoid.Name = "God Mode"
  296.  
  297. local l = game.Lighting
  298. local sky = Instance.new("Sky",l)
  299. l.TimeOfDay = "00:00:00"
  300. l.Brightness = 1
  301. l.Ambient = Color3.new(0.25, 0.5, 0.75)
  302. ---
  303.  
  304.  
  305.  
  306. --//=================================\\
  307. --|| SOME FUNCTIONS
  308. --\\=================================//
  309. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  310. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  311. end
  312.  
  313. function PositiveAngle(NUMBER)
  314. if NUMBER >= 0 then
  315. NUMBER = 0
  316. end
  317. return NUMBER
  318. end
  319.  
  320. function NegativeAngle(NUMBER)
  321. if NUMBER <= 0 then
  322. NUMBER = 0
  323. end
  324. return NUMBER
  325. end
  326.  
  327. function Swait(NUMBER)
  328. if NUMBER == 0 or NUMBER == nil then
  329. ArtificialHB.Event:wait()
  330. else
  331. for i = 1, NUMBER do
  332. ArtificialHB.Event:wait()
  333. end
  334. end
  335. end
  336.  
  337. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  338. local NEWMESH = IT(MESH)
  339. if MESH == "SpecialMesh" then
  340. NEWMESH.MeshType = MESHTYPE
  341. if MESHID ~= "nil" and MESHID ~= "" then
  342. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  343. end
  344. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  345. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  346. end
  347. end
  348. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  349. NEWMESH.Scale = SCALE
  350. NEWMESH.Parent = PARENT
  351. return NEWMESH
  352. end
  353.  
  354. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  355. local NEWPART = IT("Part")
  356. NEWPART.formFactor = FORMFACTOR
  357. NEWPART.Reflectance = REFLECTANCE
  358. NEWPART.Transparency = TRANSPARENCY
  359. NEWPART.CanCollide = false
  360. NEWPART.Locked = true
  361. NEWPART.Anchored = true
  362. if ANCHOR == false then
  363. NEWPART.Anchored = false
  364. end
  365. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  366. NEWPART.Name = NAME
  367. NEWPART.Size = SIZE
  368. NEWPART.Position = Torso.Position
  369. NEWPART.Material = MATERIAL
  370. NEWPART:BreakJoints()
  371. NEWPART.Parent = PARENT
  372. return NEWPART
  373. end
  374.  
  375. local function weldBetween(a, b)
  376. local weldd = Instance.new("ManualWeld")
  377. weldd.Part0 = a
  378. weldd.Part1 = b
  379. weldd.C0 = CFrame.new()
  380. weldd.C1 = b.CFrame:inverse() * a.CFrame
  381. weldd.Parent = a
  382. return weldd
  383. end
  384.  
  385.  
  386. function QuaternionFromCFrame(cf)
  387. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  388. local trace = m00 + m11 + m22
  389. if trace > 0 then
  390. local s = math.sqrt(1 + trace)
  391. local recip = 0.5 / s
  392. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  393. else
  394. local i = 0
  395. if m11 > m00 then
  396. i = 1
  397. end
  398. if m22 > (i == 0 and m00 or m11) then
  399. i = 2
  400. end
  401. if i == 0 then
  402. local s = math.sqrt(m00 - m11 - m22 + 1)
  403. local recip = 0.5 / s
  404. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  405. elseif i == 1 then
  406. local s = math.sqrt(m11 - m22 - m00 + 1)
  407. local recip = 0.5 / s
  408. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  409. elseif i == 2 then
  410. local s = math.sqrt(m22 - m00 - m11 + 1)
  411. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  412. end
  413. end
  414. end
  415.  
  416. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  417. local xs, ys, zs = x + x, y + y, z + z
  418. local wx, wy, wz = w * xs, w * ys, w * zs
  419. local xx = x * xs
  420. local xy = x * ys
  421. local xz = x * zs
  422. local yy = y * ys
  423. local yz = y * zs
  424. local zz = z * zs
  425. 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))
  426. end
  427.  
  428. function QuaternionSlerp(a, b, t)
  429. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  430. local startInterp, finishInterp;
  431. if cosTheta >= 0.0001 then
  432. if (1 - cosTheta) > 0.0001 then
  433. local theta = ACOS(cosTheta)
  434. local invSinTheta = 1 / SIN(theta)
  435. startInterp = SIN((1 - t) * theta) * invSinTheta
  436. finishInterp = SIN(t * theta) * invSinTheta
  437. else
  438. startInterp = 1 - t
  439. finishInterp = t
  440. end
  441. else
  442. if (1 + cosTheta) > 0.0001 then
  443. local theta = ACOS(-cosTheta)
  444. local invSinTheta = 1 / SIN(theta)
  445. startInterp = SIN((t - 1) * theta) * invSinTheta
  446. finishInterp = SIN(t * theta) * invSinTheta
  447. else
  448. startInterp = t - 1
  449. finishInterp = t
  450. end
  451. end
  452. 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
  453. end
  454.  
  455. function Clerp(a, b, t)
  456. local qa = {QuaternionFromCFrame(a)}
  457. local qb = {QuaternionFromCFrame(b)}
  458. local ax, ay, az = a.x, a.y, a.z
  459. local bx, by, bz = b.x, b.y, b.z
  460. local _t = 1 - t
  461. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  462. end
  463.  
  464. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  465. local frame = IT("Frame")
  466. frame.BackgroundTransparency = TRANSPARENCY
  467. frame.BorderSizePixel = BORDERSIZEPIXEL
  468. frame.Position = POSITION
  469. frame.Size = SIZE
  470. frame.BackgroundColor3 = COLOR
  471. frame.BorderColor3 = BORDERCOLOR
  472. frame.Name = NAME
  473. frame.Parent = PARENT
  474. return frame
  475. end
  476.  
  477. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  478. local label = IT("TextLabel")
  479. label.BackgroundTransparency = 1
  480. label.Size = UD2(1, 0, 1, 0)
  481. label.Position = UD2(0, 0, 0, 0)
  482. label.TextColor3 = TEXTCOLOR
  483. label.TextStrokeTransparency = STROKETRANSPARENCY
  484. label.TextTransparency = TRANSPARENCY
  485. label.FontSize = TEXTFONTSIZE
  486. label.Font = TEXTFONT
  487. label.BorderSizePixel = BORDERSIZEPIXEL
  488. label.TextStrokeColor3 = C3(1,1,1)
  489. label.TextScaled = false
  490. label.Text = TEXT
  491. label.Name = NAME
  492. label.Parent = PARENT
  493. return label
  494. end
  495.  
  496. function NoOutlines(PART)
  497. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  498. end
  499.  
  500. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  501. local NEWWELD = IT(TYPE)
  502. NEWWELD.Part0 = PART0
  503. NEWWELD.Part1 = PART1
  504. NEWWELD.C0 = C0
  505. NEWWELD.C1 = C1
  506. NEWWELD.Parent = PARENT
  507. return NEWWELD
  508. end
  509.  
  510. local S = IT("Sound")
  511. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  512. local NEWSOUND = nil
  513. coroutine.resume(coroutine.create(function()
  514. NEWSOUND = S:Clone()
  515. NEWSOUND.Parent = PARENT
  516. NEWSOUND.Volume = VOLUME
  517. NEWSOUND.Pitch = PITCH
  518. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  519. NEWSOUND:play()
  520. if DOESLOOP == true then
  521. NEWSOUND.Looped = true
  522. else
  523. repeat wait(1) until NEWSOUND.Playing == false
  524. NEWSOUND:remove()
  525. end
  526. end))
  527. return NEWSOUND
  528. end
  529.  
  530. function CFrameFromTopBack(at, top, back)
  531. local right = top:Cross(back)
  532. 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)
  533. end
  534.  
  535. --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})
  536. function WACKYEFFECT(Table)
  537. local TYPE = (Table.EffectType or "Sphere")
  538. local SIZE = (Table.Size or VT(1,1,1))
  539. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  540. local TRANSPARENCY = (Table.Transparency or 0)
  541. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  542. local CFRAME = (Table.CFrame or Torso.CFrame)
  543. local MOVEDIRECTION = (Table.MoveToPos or nil)
  544. local ROTATION1 = (Table.RotationX or 0)
  545. local ROTATION2 = (Table.RotationY or 0)
  546. local ROTATION3 = (Table.RotationZ or 0)
  547. local MATERIAL = (Table.Material or "Neon")
  548. local COLOR = (Table.Color or C3(1,1,1))
  549. local TIME = (Table.Time or 45)
  550. local SOUNDID = (Table.SoundID or nil)
  551. local SOUNDPITCH = (Table.SoundPitch or nil)
  552. local SOUNDVOLUME = (Table.SoundVolume or nil)
  553. coroutine.resume(coroutine.create(function()
  554. local PLAYSSOUND = false
  555. local SOUND = nil
  556. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  557. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  558. PLAYSSOUND = true
  559. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  560. end
  561. EFFECT.Color = COLOR
  562. local MSH = nil
  563. if TYPE == "Sphere" then
  564. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  565. elseif TYPE == "Block" then
  566. MSH = IT("BlockMesh",EFFECT)
  567. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  568. elseif TYPE == "Wave" then
  569. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  570. elseif TYPE == "Ring" then
  571. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  572. elseif TYPE == "Slash" then
  573. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  574. elseif TYPE == "Round Slash" then
  575. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  576. elseif TYPE == "Swirl" then
  577. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  578. elseif TYPE == "Skull" then
  579. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  580. elseif TYPE == "Crystal" then
  581. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  582. end
  583. if MSH ~= nil then
  584. local MOVESPEED = nil
  585. if MOVEDIRECTION ~= nil then
  586. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  587. end
  588. local GROWTH = SIZE - ENDSIZE
  589. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  590. if TYPE == "Block" then
  591. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  592. else
  593. EFFECT.CFrame = CFRAME
  594. end
  595. for LOOP = 1, TIME+1 do
  596. Swait()
  597. MSH.Scale = MSH.Scale - GROWTH/TIME
  598. if TYPE == "Wave" then
  599. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  600. end
  601. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  602. if TYPE == "Block" then
  603. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  604. else
  605. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  606. end
  607. if MOVEDIRECTION ~= nil then
  608. local ORI = EFFECT.Orientation
  609. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  610. EFFECT.Orientation = ORI
  611. end
  612. end
  613. if PLAYSSOUND == false then
  614. EFFECT:remove()
  615. else
  616. repeat Swait() until SOUND.Playing == false
  617. EFFECT:remove()
  618. end
  619. else
  620. if PLAYSSOUND == false then
  621. EFFECT:remove()
  622. else
  623. repeat Swait() until SOUND.Playing == false
  624. EFFECT:remove()
  625. end
  626. end
  627. end))
  628. end
  629.  
  630. function MakeForm(PART,TYPE)
  631. if TYPE == "Cyl" then
  632. local MSH = IT("CylinderMesh",PART)
  633. elseif TYPE == "Ball" then
  634. local MSH = IT("SpecialMesh",PART)
  635. MSH.MeshType = "Sphere"
  636. elseif TYPE == "Wedge" then
  637. local MSH = IT("SpecialMesh",PART)
  638. MSH.MeshType = "Wedge"
  639. end
  640. end
  641.  
  642. Debris = game:GetService("Debris")
  643.  
  644. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  645. local DIRECTION = CF(StartPos,EndPos).lookVector
  646. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  647. end
  648.  
  649. function turnto(position)
  650. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  651. end
  652.  
  653. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  654. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  655. end
  656.  
  657. function PositiveAngle(NUMBER)
  658. if NUMBER >= 0 then
  659. NUMBER = 0
  660. end
  661. return NUMBER
  662. end
  663.  
  664. function NegativeAngle(NUMBER)
  665. if NUMBER <= 0 then
  666. NUMBER = 0
  667. end
  668. return NUMBER
  669. end
  670.  
  671. function Swait(NUMBER)
  672. if NUMBER == 0 or NUMBER == nil then
  673. ArtificialHB.Event:wait()
  674. else
  675. for i = 1, NUMBER do
  676. ArtificialHB.Event:wait()
  677. end
  678. end
  679. end
  680.  
  681. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  682. local NEWMESH = IT(MESH)
  683. if MESH == "SpecialMesh" then
  684. NEWMESH.MeshType = MESHTYPE
  685. if MESHID ~= "nil" and MESHID ~= "" then
  686. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  687. end
  688. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  689. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  690. end
  691. end
  692. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  693. NEWMESH.Scale = SCALE
  694. NEWMESH.Parent = PARENT
  695. return NEWMESH
  696. end
  697.  
  698. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  699. local NEWPART = IT("Part")
  700. NEWPART.formFactor = FORMFACTOR
  701. NEWPART.Reflectance = REFLECTANCE
  702. NEWPART.Transparency = TRANSPARENCY
  703. NEWPART.CanCollide = false
  704. NEWPART.Locked = true
  705. NEWPART.Anchored = true
  706. if ANCHOR == false then
  707. NEWPART.Anchored = false
  708. end
  709. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  710. NEWPART.Name = NAME
  711. NEWPART.Size = SIZE
  712. NEWPART.Position = Torso.Position
  713. NEWPART.Material = MATERIAL
  714. NEWPART:BreakJoints()
  715. NEWPART.Parent = PARENT
  716. return NEWPART
  717. end
  718.  
  719. local function weldBetween(a, b)
  720. local weldd = Instance.new("ManualWeld")
  721. weldd.Part0 = a
  722. weldd.Part1 = b
  723. weldd.C0 = CFrame.new()
  724. weldd.C1 = b.CFrame:inverse() * a.CFrame
  725. weldd.Parent = a
  726. return weldd
  727. end
  728.  
  729.  
  730. function QuaternionFromCFrame(cf)
  731. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  732. local trace = m00 + m11 + m22
  733. if trace > 0 then
  734. local s = math.sqrt(1 + trace)
  735. local recip = 0.5 / s
  736. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  737. else
  738. local i = 0
  739. if m11 > m00 then
  740. i = 1
  741. end
  742. if m22 > (i == 0 and m00 or m11) then
  743. i = 2
  744. end
  745. if i == 0 then
  746. local s = math.sqrt(m00 - m11 - m22 + 1)
  747. local recip = 0.5 / s
  748. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  749. elseif i == 1 then
  750. local s = math.sqrt(m11 - m22 - m00 + 1)
  751. local recip = 0.5 / s
  752. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  753. elseif i == 2 then
  754. local s = math.sqrt(m22 - m00 - m11 + 1)
  755. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  756. end
  757. end
  758. end
  759.  
  760. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  761. local xs, ys, zs = x + x, y + y, z + z
  762. local wx, wy, wz = w * xs, w * ys, w * zs
  763. local xx = x * xs
  764. local xy = x * ys
  765. local xz = x * zs
  766. local yy = y * ys
  767. local yz = y * zs
  768. local zz = z * zs
  769. 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))
  770. end
  771.  
  772. function QuaternionSlerp(a, b, t)
  773. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  774. local startInterp, finishInterp;
  775. if cosTheta >= 0.0001 then
  776. if (1 - cosTheta) > 0.0001 then
  777. local theta = ACOS(cosTheta)
  778. local invSinTheta = 1 / SIN(theta)
  779. startInterp = SIN((1 - t) * theta) * invSinTheta
  780. finishInterp = SIN(t * theta) * invSinTheta
  781. else
  782. startInterp = 1 - t
  783. finishInterp = t
  784. end
  785. else
  786. if (1 + cosTheta) > 0.0001 then
  787. local theta = ACOS(-cosTheta)
  788. local invSinTheta = 1 / SIN(theta)
  789. startInterp = SIN((t - 1) * theta) * invSinTheta
  790. finishInterp = SIN(t * theta) * invSinTheta
  791. else
  792. startInterp = t - 1
  793. finishInterp = t
  794. end
  795. end
  796. 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
  797. end
  798.  
  799. function Clerp(a, b, t)
  800. local qa = {QuaternionFromCFrame(a)}
  801. local qb = {QuaternionFromCFrame(b)}
  802. local ax, ay, az = a.x, a.y, a.z
  803. local bx, by, bz = b.x, b.y, b.z
  804. local _t = 1 - t
  805. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  806. end
  807.  
  808. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  809. local frame = IT("Frame")
  810. frame.BackgroundTransparency = TRANSPARENCY
  811. frame.BorderSizePixel = BORDERSIZEPIXEL
  812. frame.Position = POSITION
  813. frame.Size = SIZE
  814. frame.BackgroundColor3 = COLOR
  815. frame.BorderColor3 = BORDERCOLOR
  816. frame.Name = NAME
  817. frame.Parent = PARENT
  818. return frame
  819. end
  820.  
  821. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  822. local label = IT("TextLabel")
  823. label.BackgroundTransparency = 1
  824. label.Size = UD2(1, 0, 1, 0)
  825. label.Position = UD2(0, 0, 0, 0)
  826. label.TextColor3 = TEXTCOLOR
  827. label.TextStrokeTransparency = STROKETRANSPARENCY
  828. label.TextTransparency = TRANSPARENCY
  829. label.FontSize = TEXTFONTSIZE
  830. label.Font = TEXTFONT
  831. label.BorderSizePixel = BORDERSIZEPIXEL
  832. label.TextScaled = false
  833. label.Text = TEXT
  834. label.Name = NAME
  835. label.Parent = PARENT
  836. return label
  837. end
  838.  
  839. function NoOutlines(PART)
  840. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  841. end
  842.  
  843. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  844. local NEWWELD = IT(TYPE)
  845. NEWWELD.Part0 = PART0
  846. NEWWELD.Part1 = PART1
  847. NEWWELD.C0 = C0
  848. NEWWELD.C1 = C1
  849. NEWWELD.Parent = PARENT
  850. return NEWWELD
  851. end
  852.  
  853. local S = IT("Sound")
  854. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  855. local NEWSOUND = nil
  856. coroutine.resume(coroutine.create(function()
  857. NEWSOUND = S:Clone()
  858. NEWSOUND.Parent = PARENT
  859. NEWSOUND.Volume = VOLUME
  860. NEWSOUND.Pitch = PITCH
  861. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  862. NEWSOUND:play()
  863. if DOESLOOP == true then
  864. NEWSOUND.Looped = true
  865. else
  866. repeat wait(1) until NEWSOUND.Playing == false
  867. NEWSOUND:remove()
  868. end
  869. end))
  870. return NEWSOUND
  871. end
  872.  
  873. function CFrameFromTopBack(at, top, back)
  874. local right = top:Cross(back)
  875. 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)
  876. end
  877.  
  878. --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})
  879. function WACKYEFFECT(Table)
  880. local TYPE = (Table.EffectType or "Sphere")
  881. local SIZE = (Table.Size or VT(1,1,1))
  882. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  883. local TRANSPARENCY = (Table.Transparency or 0)
  884. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  885. local CFRAME = (Table.CFrame or Torso.CFrame)
  886. local MOVEDIRECTION = (Table.MoveToPos or nil)
  887. local ROTATION1 = (Table.RotationX or 0)
  888. local ROTATION2 = (Table.RotationY or 0)
  889. local ROTATION3 = (Table.RotationZ or 0)
  890. local MATERIAL = (Table.Material or "Neon")
  891. local COLOR = (Table.Color or C3(1,1,1))
  892. local TIME = (Table.Time or 45)
  893. local SOUNDID = (Table.SoundID or nil)
  894. local SOUNDPITCH = (Table.SoundPitch or nil)
  895. local SOUNDVOLUME = (Table.SoundVolume or nil)
  896. coroutine.resume(coroutine.create(function()
  897. local PLAYSSOUND = false
  898. local SOUND = nil
  899. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  900. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  901. PLAYSSOUND = true
  902. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  903. end
  904. EFFECT.Color = COLOR
  905. local MSH = nil
  906. if TYPE == "Sphere" then
  907. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  908. elseif TYPE == "Block" then
  909. MSH = IT("BlockMesh",EFFECT)
  910. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  911. elseif TYPE == "Wave" then
  912. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  913. elseif TYPE == "Ring" then
  914. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  915. elseif TYPE == "Slash" then
  916. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  917. elseif TYPE == "Round Slash" then
  918. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  919. elseif TYPE == "Swirl" then
  920. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  921. elseif TYPE == "Skull" then
  922. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  923. elseif TYPE == "Crystal" then
  924. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  925. end
  926. if MSH ~= nil then
  927. local MOVESPEED = nil
  928. if MOVEDIRECTION ~= nil then
  929. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  930. end
  931. local GROWTH = SIZE - ENDSIZE
  932. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  933. if TYPE == "Block" then
  934. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  935. else
  936. EFFECT.CFrame = CFRAME
  937. end
  938. for LOOP = 1, TIME+1 do
  939. Swait()
  940. MSH.Scale = MSH.Scale - GROWTH/TIME
  941. if TYPE == "Wave" then
  942. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  943. end
  944. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  945. if TYPE == "Block" then
  946. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  947. else
  948. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  949. end
  950. if MOVEDIRECTION ~= nil then
  951. local ORI = EFFECT.Orientation
  952. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  953. EFFECT.Orientation = ORI
  954. end
  955. end
  956. if PLAYSSOUND == false then
  957. EFFECT:remove()
  958. else
  959. SOUND.Stopped:Connect(function()
  960. EFFECT:remove()
  961. end)
  962. end
  963. else
  964. if PLAYSSOUND == false then
  965. EFFECT:remove()
  966. else
  967. repeat Swait() until SOUND.Playing == false
  968. EFFECT:remove()
  969. end
  970. end
  971. end))
  972. end
  973.  
  974. function MakeForm(PART,TYPE)
  975. if TYPE == "Cyl" then
  976. local MSH = IT("CylinderMesh",PART)
  977. elseif TYPE == "Ball" then
  978. local MSH = IT("SpecialMesh",PART)
  979. MSH.MeshType = "Sphere"
  980. elseif TYPE == "Wedge" then
  981. local MSH = IT("SpecialMesh",PART)
  982. MSH.MeshType = "Wedge"
  983. end
  984. end
  985.  
  986. Debris = game:GetService("Debris")
  987.  
  988. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  989. local DIRECTION = CF(StartPos,EndPos).lookVector
  990. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  991. end
  992.  
  993. local EyeSizes={
  994. NumberSequenceKeypoint.new(0,1,0),
  995. NumberSequenceKeypoint.new(1,0,0)
  996. }
  997. local EyeTrans={
  998. NumberSequenceKeypoint.new(0,0.8,0),
  999. NumberSequenceKeypoint.new(1,1,0)
  1000. }
  1001. local PE=Instance.new("ParticleEmitter",nil)
  1002. PE.LightEmission=.8
  1003. PE.Color = ColorSequence.new(BRICKC("Black").Color)
  1004. PE.Size=NumberSequence.new(EyeSizes)
  1005. PE.Transparency=NumberSequence.new(EyeTrans)
  1006. PE.Lifetime=NumberRange.new(0.35,1.5)
  1007. PE.Rotation=NumberRange.new(0,360)
  1008. PE.Rate=999
  1009. PE.VelocitySpread = 10000
  1010. PE.Acceleration = Vector3.new(0,0,0)
  1011. PE.Drag = 5
  1012. PE.Speed = NumberRange.new(0,0,0)
  1013. PE.Texture="http://www.roblox.com/asset/?id=1351966707"
  1014. PE.ZOffset = -0
  1015. PE.Name = "PE"
  1016. PE.Enabled = false
  1017.  
  1018. function particles(art)
  1019. local PARTICLES = PE:Clone()
  1020. PARTICLES.Parent = art
  1021. end
  1022.  
  1023. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  1024. if FLOOR ~= nil then
  1025. coroutine.resume(coroutine.create(function()
  1026. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  1027. PART.CFrame = CF(POSITION)
  1028. for i = 1, 45 do
  1029. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  1030. RingPiece.Material = FLOOR.Material
  1031. RingPiece.Color = FLOOR.Color
  1032. 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)))
  1033. Debris:AddItem(RingPiece,SWAIT)
  1034. end
  1035. PART:remove()
  1036. end))
  1037. end
  1038. end
  1039.  
  1040. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  1041. if FLOOR ~= nil then
  1042. for i = 1, AMOUNT do
  1043. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  1044. DEBREE.Material = FLOOR.Material
  1045. DEBREE.Color = FLOOR.Color
  1046. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1047. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  1048. coroutine.resume(coroutine.create(function()
  1049. Swait(15)
  1050. DEBREE.Parent = workspace
  1051. DEBREE.CanCollide = true
  1052. Debris:AddItem(DEBREE,SWAIT)
  1053. end))
  1054. end
  1055. end
  1056. end
  1057.  
  1058. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1059. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1060. end
  1061.  
  1062. function PositiveAngle(NUMBER)
  1063. if NUMBER >= 0 then
  1064. NUMBER = 0
  1065. end
  1066. return NUMBER
  1067. end
  1068.  
  1069. function NegativeAngle(NUMBER)
  1070. if NUMBER <= 0 then
  1071. NUMBER = 0
  1072. end
  1073. return NUMBER
  1074. end
  1075.  
  1076. function Swait(NUMBER)
  1077. if NUMBER == 0 or NUMBER == nil then
  1078. ArtificialHB.Event:wait()
  1079. else
  1080. for i = 1, NUMBER do
  1081. ArtificialHB.Event:wait()
  1082. end
  1083. end
  1084. end
  1085.  
  1086. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1087. local NEWMESH = IT(MESH)
  1088. if MESH == "SpecialMesh" then
  1089. NEWMESH.MeshType = MESHTYPE
  1090. if MESHID ~= "nil" and MESHID ~= "" then
  1091. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1092. end
  1093. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1094. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1095. end
  1096. end
  1097. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1098. NEWMESH.Scale = SCALE
  1099. NEWMESH.Parent = PARENT
  1100. return NEWMESH
  1101. end
  1102.  
  1103. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1104. local NEWPART = IT("Part")
  1105. NEWPART.formFactor = FORMFACTOR
  1106. NEWPART.Reflectance = REFLECTANCE
  1107. NEWPART.Transparency = TRANSPARENCY
  1108. NEWPART.CanCollide = false
  1109. NEWPART.Locked = true
  1110. NEWPART.Anchored = true
  1111. if ANCHOR == false then
  1112. NEWPART.Anchored = false
  1113. end
  1114. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1115. NEWPART.Name = NAME
  1116. NEWPART.Size = SIZE
  1117. NEWPART.Position = Torso.Position
  1118. NEWPART.Material = MATERIAL
  1119. NEWPART:BreakJoints()
  1120. NEWPART.Parent = PARENT
  1121. return NEWPART
  1122. end
  1123.  
  1124. local function weldBetween(a, b)
  1125. local weldd = Instance.new("ManualWeld")
  1126. weldd.Part0 = a
  1127. weldd.Part1 = b
  1128. weldd.C0 = CFrame.new()
  1129. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1130. weldd.Parent = a
  1131. return weldd
  1132. end
  1133.  
  1134.  
  1135. function QuaternionFromCFrame(cf)
  1136. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1137. local trace = m00 + m11 + m22
  1138. if trace > 0 then
  1139. local s = math.sqrt(1 + trace)
  1140. local recip = 0.5 / s
  1141. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1142. else
  1143. local i = 0
  1144. if m11 > m00 then
  1145. i = 1
  1146. end
  1147. if m22 > (i == 0 and m00 or m11) then
  1148. i = 2
  1149. end
  1150. if i == 0 then
  1151. local s = math.sqrt(m00 - m11 - m22 + 1)
  1152. local recip = 0.5 / s
  1153. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1154. elseif i == 1 then
  1155. local s = math.sqrt(m11 - m22 - m00 + 1)
  1156. local recip = 0.5 / s
  1157. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1158. elseif i == 2 then
  1159. local s = math.sqrt(m22 - m00 - m11 + 1)
  1160. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1161. end
  1162. end
  1163. end
  1164.  
  1165. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1166. local xs, ys, zs = x + x, y + y, z + z
  1167. local wx, wy, wz = w * xs, w * ys, w * zs
  1168. local xx = x * xs
  1169. local xy = x * ys
  1170. local xz = x * zs
  1171. local yy = y * ys
  1172. local yz = y * zs
  1173. local zz = z * zs
  1174. 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))
  1175. end
  1176.  
  1177. function QuaternionSlerp(a, b, t)
  1178. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1179. local startInterp, finishInterp;
  1180. if cosTheta >= 0.0001 then
  1181. if (1 - cosTheta) > 0.0001 then
  1182. local theta = ACOS(cosTheta)
  1183. local invSinTheta = 1 / SIN(theta)
  1184. startInterp = SIN((1 - t) * theta) * invSinTheta
  1185. finishInterp = SIN(t * theta) * invSinTheta
  1186. else
  1187. startInterp = 1 - t
  1188. finishInterp = t
  1189. end
  1190. else
  1191. if (1 + cosTheta) > 0.0001 then
  1192. local theta = ACOS(-cosTheta)
  1193. local invSinTheta = 1 / SIN(theta)
  1194. startInterp = SIN((t - 1) * theta) * invSinTheta
  1195. finishInterp = SIN(t * theta) * invSinTheta
  1196. else
  1197. startInterp = t - 1
  1198. finishInterp = t
  1199. end
  1200. end
  1201. 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
  1202. end
  1203.  
  1204. function Clerp(a, b, t)
  1205. local qa = {QuaternionFromCFrame(a)}
  1206. local qb = {QuaternionFromCFrame(b)}
  1207. local ax, ay, az = a.x, a.y, a.z
  1208. local bx, by, bz = b.x, b.y, b.z
  1209. local _t = 1 - t
  1210. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1211. end
  1212.  
  1213. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1214. local frame = IT("Frame")
  1215. frame.BackgroundTransparency = TRANSPARENCY
  1216. frame.BorderSizePixel = BORDERSIZEPIXEL
  1217. frame.Position = POSITION
  1218. frame.Size = SIZE
  1219. frame.BackgroundColor3 = COLOR
  1220. frame.BorderColor3 = BORDERCOLOR
  1221. frame.Name = NAME
  1222. frame.Parent = PARENT
  1223. return frame
  1224. end
  1225.  
  1226. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1227. local label = IT("TextLabel")
  1228. label.BackgroundTransparency = 1
  1229. label.Size = UD2(1, 0, 1, 0)
  1230. label.Position = UD2(0, 0, 0, 0)
  1231. label.TextColor3 = TEXTCOLOR
  1232. label.TextStrokeTransparency = STROKETRANSPARENCY
  1233. label.TextTransparency = TRANSPARENCY
  1234. label.FontSize = TEXTFONTSIZE
  1235. label.Font = TEXTFONT
  1236. label.BorderSizePixel = BORDERSIZEPIXEL
  1237. label.TextScaled = false
  1238. label.Text = TEXT
  1239. label.Name = NAME
  1240. label.Parent = PARENT
  1241. return label
  1242. end
  1243.  
  1244. function NoOutlines(PART)
  1245. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1246. end
  1247.  
  1248. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1249. local NEWWELD = IT(TYPE)
  1250. NEWWELD.Part0 = PART0
  1251. NEWWELD.Part1 = PART1
  1252. NEWWELD.C0 = C0
  1253. NEWWELD.C1 = C1
  1254. NEWWELD.Parent = PARENT
  1255. return NEWWELD
  1256. end
  1257.  
  1258. local S = IT("Sound")
  1259. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1260. local NEWSOUND = nil
  1261. coroutine.resume(coroutine.create(function()
  1262. NEWSOUND = S:Clone()
  1263. NEWSOUND.Parent = PARENT
  1264. NEWSOUND.Volume = VOLUME
  1265. NEWSOUND.Pitch = PITCH
  1266. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1267. NEWSOUND:play()
  1268. if DOESLOOP == true then
  1269. NEWSOUND.Looped = true
  1270. else
  1271. repeat wait(1) until NEWSOUND.Playing == false
  1272. NEWSOUND:remove()
  1273. end
  1274. end))
  1275. return NEWSOUND
  1276. end
  1277.  
  1278. function CFrameFromTopBack(at, top, back)
  1279. local right = top:Cross(back)
  1280. 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)
  1281. end
  1282.  
  1283. --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})
  1284. function WACKYEFFECT(Table)
  1285. local TYPE = (Table.EffectType or "Sphere")
  1286. local SIZE = (Table.Size or VT(1,1,1))
  1287. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1288. local TRANSPARENCY = (Table.Transparency or 0)
  1289. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1290. local CFRAME = (Table.CFrame or Torso.CFrame)
  1291. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1292. local ROTATION1 = (Table.RotationX or 0)
  1293. local ROTATION2 = (Table.RotationY or 0)
  1294. local ROTATION3 = (Table.RotationZ or 0)
  1295. local MATERIAL = (Table.Material or "Neon")
  1296. local COLOR = (Table.Color or C3(1,1,1))
  1297. local TIME = (Table.Time or 45)
  1298. local SOUNDID = (Table.SoundID or nil)
  1299. local SOUNDPITCH = (Table.SoundPitch or nil)
  1300. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1301. coroutine.resume(coroutine.create(function()
  1302. local PLAYSSOUND = false
  1303. local SOUND = nil
  1304. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1305. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1306. PLAYSSOUND = true
  1307. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1308. end
  1309. EFFECT.Color = COLOR
  1310. local MSH = nil
  1311. if TYPE == "Sphere" then
  1312. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1313. elseif TYPE == "Block" then
  1314. MSH = IT("BlockMesh",EFFECT)
  1315. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1316. elseif TYPE == "Wave" then
  1317. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1318. elseif TYPE == "Ring" then
  1319. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1320. elseif TYPE == "Slash" then
  1321. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1322. elseif TYPE == "Round Slash" then
  1323. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1324. elseif TYPE == "Swirl" then
  1325. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1326. elseif TYPE == "Skull" then
  1327. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1328. elseif TYPE == "Crystal" then
  1329. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1330. end
  1331. if MSH ~= nil then
  1332. local MOVESPEED = nil
  1333. if MOVEDIRECTION ~= nil then
  1334. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1335. end
  1336. local GROWTH = SIZE - ENDSIZE
  1337. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1338. if TYPE == "Block" then
  1339. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1340. else
  1341. EFFECT.CFrame = CFRAME
  1342. end
  1343. for LOOP = 1, TIME+1 do
  1344. Swait()
  1345. MSH.Scale = MSH.Scale - GROWTH/TIME
  1346. if TYPE == "Wave" then
  1347. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1348. end
  1349. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1350. if TYPE == "Block" then
  1351. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1352. else
  1353. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1354. end
  1355. if MOVEDIRECTION ~= nil then
  1356. local ORI = EFFECT.Orientation
  1357. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1358. EFFECT.Orientation = ORI
  1359. end
  1360. end
  1361. if PLAYSSOUND == false then
  1362. EFFECT:remove()
  1363. else
  1364. repeat Swait() until SOUND.Playing == false
  1365. EFFECT:remove()
  1366. end
  1367. else
  1368. if PLAYSSOUND == false then
  1369. EFFECT:remove()
  1370. else
  1371. repeat Swait() until SOUND.Playing == false
  1372. EFFECT:remove()
  1373. end
  1374. end
  1375. end))
  1376. end
  1377.  
  1378. function MakeForm(PART,TYPE)
  1379. if TYPE == "Cyl" then
  1380. local MSH = IT("CylinderMesh",PART)
  1381. elseif TYPE == "Ball" then
  1382. local MSH = IT("SpecialMesh",PART)
  1383. MSH.MeshType = "Sphere"
  1384. elseif TYPE == "Wedge" then
  1385. local MSH = IT("SpecialMesh",PART)
  1386. MSH.MeshType = "Wedge"
  1387. end
  1388. end
  1389.  
  1390. Debris = game:GetService("Debris")
  1391.  
  1392. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1393. local DIRECTION = CF(StartPos,EndPos).lookVector
  1394. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1395. end
  1396.  
  1397. function turnto(position)
  1398. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1399. end
  1400.  
  1401. --//=================================\\
  1402. --|| WEAPON CREATION
  1403. --\\=================================//
  1404. local BODY = {}
  1405.  
  1406. for _, c in pairs(Character:GetDescendants()) do
  1407. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1408. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1409. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1410. end
  1411. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1412. elseif c:IsA("JointInstance") then
  1413. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1414. end
  1415. end
  1416.  
  1417. for e = 1, #BODY do
  1418. if BODY[e] ~= nil then
  1419. local STUFF = BODY[e]
  1420. local PART = STUFF[1]
  1421. local PARENT = STUFF[2]
  1422. local MATERIAL = STUFF[3]
  1423. local COLOR = STUFF[4]
  1424. local TRANSPARENCY = STUFF[5]
  1425. if PART.ClassName == "Part" and PART ~= RootPart then
  1426. PART.Material = MATERIAL
  1427. PART.Color = COLOR
  1428. PART.Transparency = TRANSPARENCY
  1429. end
  1430. PART.AncestryChanged:Connect(function()
  1431. PART.Parent = PARENT
  1432. end)
  1433. end
  1434. end
  1435.  
  1436. -------------------------------------------------------
  1437. local Orbd = Instance.new("Part", Character)
  1438. Orbd.Name = "Orbd"
  1439. Orbd.Shape = Enum.PartType.Ball
  1440. Orbd.CanCollide = false
  1441. Orbd.BrickColor = BrickColor.new("Really black")
  1442. Orbd.Transparency = 0
  1443. Orbd.Material = "Neon"
  1444. Orbd.Size = Vector3.new(0.3, 0.3, 0.3)
  1445. Orbd.TopSurface = Enum.SurfaceType.Smooth
  1446. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  1447.  
  1448. local Weld = Instance.new("Weld", Orbd)
  1449. Weld.Part0 = Character.Head
  1450. Weld.Part1 = Orbd
  1451. Weld.C1 = CFrame.new(-0.26, -0.24, 0.55)
  1452.  
  1453. --------------------------------------------------------
  1454. local Orbvc = Instance.new("Part", Character)
  1455. Orbvc.Name = "Orbvc"
  1456. Orbvc.Shape = Enum.PartType.Ball
  1457. Orbvc.CanCollide = false
  1458. Orbvc.BrickColor = BrickColor.new("Really black")
  1459. Orbvc.Transparency = 0
  1460. Orbvc.Material = "Neon"
  1461. Orbvc.Size = Vector3.new(0.3, 0.3, 0.3)
  1462. Orbvc.TopSurface = Enum.SurfaceType.Smooth
  1463. Orbvc.BottomSurface = Enum.SurfaceType.Smooth
  1464.  
  1465. local Weld = Instance.new("Weld", Orbvc)
  1466. Weld.Part0 = Character.Head
  1467. Weld.Part1 = Orbvc
  1468. Weld.C1 = CFrame.new(0.26, -0.24, 0.55)
  1469. ---------------------------------------------------------
  1470. local Mask = Instance.new("Part", Character)
  1471. Mask.Name = "Mask"
  1472. Mask.CanCollide = false
  1473. Mask.BrickColor = BrickColor.new("Medium stone grey")
  1474. Mask.Transparency = 0
  1475. Mask.Material = "Neon"
  1476. Mask.Size = Vector3.new(0.1, 0.1, 0.1)
  1477. Mask.TopSurface = Enum.SurfaceType.Smooth
  1478. Mask.BottomSurface = Enum.SurfaceType.Smooth
  1479.  
  1480. local Weld = Instance.new("Weld", Mask)
  1481. Weld.Part0 = Character.Head
  1482. Weld.Part1 = Mask
  1483. Weld.C1 = CFrame.new(0, -0.1, 0.8)
  1484.  
  1485. local M1 = Instance.new("SpecialMesh")
  1486. M1.Parent = Mask
  1487. M1.MeshId = "http://www.roblox.com/asset/?id=62679079"
  1488. M1.Scale = Vector3.new( 1, 1, 2)
  1489. ----------------------------------------------------------
  1490. local Hood = Instance.new("Part", Character)
  1491. Hood.Name = "Hood"
  1492. Hood.CanCollide = false
  1493. Hood.BrickColor = BrickColor.new("Really black")
  1494. Hood.Transparency = 0
  1495. Hood.Material = "Plastic"
  1496. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  1497. Hood.TopSurface = Enum.SurfaceType.Smooth
  1498. Hood.BottomSurface = Enum.SurfaceType.Smooth
  1499.  
  1500. local Weld = Instance.new("Weld", Hood)
  1501. Weld.Part0 = Character.Head
  1502. Weld.Part1 = Hood
  1503. Weld.C1 = CFrame.new(0, -0.2, 0)
  1504.  
  1505. local M2 = Instance.new("SpecialMesh")
  1506. M2.Parent = Hood
  1507. M2.MeshId = "http://www.roblox.com/asset/?id=83499032"
  1508. M2.Scale = Vector3.new( 1, 1.2, 1.1)
  1509. ------------------------------------------------------
  1510. --[[
  1511. Thanks for using Build-To-Lua by jarredbcv.
  1512. ]]--
  1513.  
  1514. New = function(Object, Parent, Name, Data)
  1515. local Object = Instance.new(Object)
  1516. for Index, Value in pairs(Data or {}) do
  1517. Object[Index] = Value
  1518. end
  1519. Object.Parent = Parent
  1520. Object.Name = Name
  1521. return Object
  1522. end
  1523.  
  1524. for i = 1, 35 do
  1525. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  1526. FACE.Color = C3(0,0,0)
  1527. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1528. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  1529. end
  1530.  
  1531. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
  1532. MakeForm(Eye,"Ball")
  1533. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  1534. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.6,0.1,1)/2,false)
  1535. MakeForm(Eye,"Ball")
  1536. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  1537. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.1,1,1)/2,false)
  1538. MakeForm(Eye,"Ball")
  1539. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  1540. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.1,1,1)/2,false)
  1541. MakeForm(Eye,"Ball")
  1542. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  1543.  
  1544. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(1.01,0.3,1.01),false)
  1545. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1546. for i = 1, 3 do
  1547. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.2,1.02,0.2),false)
  1548. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  1549. MakeForm(Part,"Cyl")
  1550. end
  1551. for i = 1, 3 do
  1552. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.2,1.02,0.2),false)
  1553. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0))
  1554. MakeForm(Part,"Cyl")
  1555. end
  1556. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.51,0.6,0.25),false)
  1557. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
  1558. MakeForm(Part,"Wedge")
  1559. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.51,0.6,0.25),false)
  1560. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
  1561. MakeForm(Part,"Wedge")
  1562. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
  1563. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
  1564. MakeForm(Part,"Wedge")
  1565. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
  1566. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
  1567. MakeForm(Part,"Wedge")
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575. for _, c in pairs(Weapon:GetChildren()) do
  1576. if c.ClassName == "Part" then
  1577. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1578. local AURA = c:Clone()
  1579. AURA:BreakJoints()
  1580. AURA.Parent = c
  1581. AURA.CFrame = c.CFrame
  1582. AURA.Size = AURA.Size*1.001
  1583. AURA.Transparency = 0.8
  1584. AURA.BrickColor = BRICKC"Royal purple"
  1585. AURA.Material = "Neon"
  1586. weldBetween(c,AURA)
  1587. end
  1588. end
  1589. function refit()
  1590. Character.Parent = workspace
  1591. for e = 1, #BODY do
  1592. if BODY[e] ~= nil then
  1593. local STUFF = BODY[e]
  1594. local PART = STUFF[1]
  1595. local PARENT = STUFF[2]
  1596. local MATERIAL = STUFF[3]
  1597. local COLOR = STUFF[4]
  1598. local TRANSPARENCY = STUFF[5]
  1599. if PART.ClassName == "Part" and PART ~= RootPart then
  1600. PART.Material = MATERIAL
  1601. PART.Color = COLOR
  1602. PART.Transparency = TRANSPARENCY
  1603. end
  1604. if PART.Parent ~= PARENT then
  1605. Humanoid:remove()
  1606. PART.Parent = PARENT
  1607. Humanoid = IT("Humanoid",Character)
  1608. end
  1609. end
  1610. end
  1611. end
  1612.  
  1613. local SKILLTEXTCOLOR = BRICKC"Black".Color
  1614. local SKILLFONT = "Bodoni"
  1615. local SKILLTEXTSIZE = 7
  1616.  
  1617. Weapon.Parent = Character
  1618.  
  1619. Humanoid.Died:connect(function()
  1620.  
  1621. ATTACK = true
  1622. end)
  1623.  
  1624. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1625. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1626. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1627. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1628. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1629. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.76, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  1630.  
  1631.  
  1632. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] BEAM OF CORRUPTION", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 1")
  1633. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] EXPLOSION", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 2")
  1634. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] STUN", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 3")
  1635. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[E] SCREAM", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 4")
  1636. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[R] WARP", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 5")
  1637. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] PAIN", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 6")
  1638.  
  1639. --//=================================\\
  1640. --|| RAGDOLL STUFF
  1641. --\\=================================//
  1642.  
  1643. function recurse(root,callback,i)
  1644. i= i or 0
  1645. for _,v in pairs(root:GetChildren()) do
  1646. i = i + 1
  1647. callback(i,v)
  1648.  
  1649. if #v:GetChildren() > 0 then
  1650. i = recurse(v,callback,i)
  1651. end
  1652. end
  1653.  
  1654. return i
  1655. end
  1656.  
  1657. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  1658. attachmentName = attachmentName.."RigAttachment"
  1659. local constraint = Instance.new(className.."Constraint")
  1660. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  1661. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  1662. constraint.Name = "RagdollConstraint"..part1.Name
  1663.  
  1664. for _,propertyData in next,properties or {} do
  1665. constraint[propertyData[1]] = propertyData[2]
  1666. end
  1667.  
  1668. constraint.Parent = character
  1669. end
  1670.  
  1671. function getAttachment0(character, attachmentName)
  1672. for _,child in next,character:GetChildren() do
  1673. local attachment = child:FindFirstChild(attachmentName)
  1674. if attachment then
  1675. return attachment
  1676. end
  1677. end
  1678. end
  1679.  
  1680. function ArtificialHitbox(Part)
  1681. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  1682. HITBOX.CanCollide = true
  1683. HITBOX.CFrame = Part.CFrame
  1684. weldBetween(Part,HITBOX)
  1685. end
  1686.  
  1687. function R15Ragdoll(character,KeepArms)
  1688. character:BreakJoints()
  1689. coroutine.resume(coroutine.create(function()
  1690. recurse(character, function(_,v)
  1691. if v:IsA("Attachment") then
  1692. v.Axis = Vector3.new(0, 1, 0)
  1693. v.SecondaryAxis = Vector3.new(0, 0, 1)
  1694. v.Rotation = Vector3.new(0, 0, 0)
  1695. end
  1696. end)
  1697. for _,child in next,character:GetChildren() do
  1698. if child:IsA("Accoutrement") then
  1699. for _,part in next,child:GetChildren() do
  1700. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  1701. local attachment1 = part:FindFirstChildOfClass("Attachment")
  1702. local attachment0 = getAttachment0(character,attachment1.Name)
  1703. if attachment0 and attachment1 then
  1704. local constraint = Instance.new("HingeConstraint")
  1705. constraint.Attachment0 = attachment0
  1706. constraint.Attachment1 = attachment1
  1707. constraint.LimitsEnabled = true
  1708. constraint.UpperAngle = 0
  1709. constraint.LowerAngle = 0
  1710. constraint.Parent = character
  1711. end
  1712. ArtificialHitbox(part)
  1713. elseif part.Name == "HumanoidRootPart" then
  1714. part:remove()
  1715. end
  1716. end
  1717. end
  1718. end
  1719.  
  1720. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  1721. {"LimitsEnabled",true};
  1722. {"UpperAngle",5};
  1723. })
  1724. if character:FindFirstChild("Head") then
  1725. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  1726. {"LimitsEnabled",true};
  1727. {"UpperAngle",15};
  1728. })
  1729. end
  1730.  
  1731. local handProperties = {
  1732. {"LimitsEnabled", true};
  1733. {"UpperAngle",0};
  1734. {"LowerAngle",0};
  1735. }
  1736. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  1737. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  1738.  
  1739. local shinProperties = {
  1740. {"LimitsEnabled", true};
  1741. {"UpperAngle", 0};
  1742. {"LowerAngle", -75};
  1743. }
  1744. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  1745. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  1746.  
  1747. local footProperties = {
  1748. {"LimitsEnabled", true};
  1749. {"UpperAngle", 15};
  1750. {"LowerAngle", -45};
  1751. }
  1752. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  1753. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  1754. if KeepArms == true then
  1755. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  1756. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  1757. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  1758. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  1759. end
  1760. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  1761. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  1762. Debris:AddItem(character,5)
  1763. end))
  1764. end
  1765.  
  1766. function Ragdoll(Character2,CharTorso,KeepArms)
  1767. coroutine.resume(coroutine.create(function()
  1768. Character2:BreakJoints()
  1769. local hum = Character2:findFirstChild("Humanoid")
  1770. hum:remove()
  1771. local function Scan(ch)
  1772. local e
  1773. for e = 1,#ch do
  1774. Scan(ch[e]:GetChildren())
  1775. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1776. ch[e]:remove()
  1777. end
  1778. end
  1779. end
  1780. local NEWHUM = IT("Humanoid")
  1781. NEWHUM.Name = "Corpse"
  1782. NEWHUM.Health = 0
  1783. NEWHUM.MaxHealth = 0
  1784. NEWHUM.PlatformStand = true
  1785. NEWHUM.Parent = Character2
  1786. NEWHUM.DisplayDistanceType = "None"
  1787.  
  1788. local ch = Character2:GetChildren()
  1789. local i
  1790. for i = 1,#ch do
  1791. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1792. ch[i]:remove()
  1793. end
  1794. end
  1795.  
  1796. local Torso2 = Character2.Torso
  1797. local movevector = Vector3.new()
  1798.  
  1799. if Torso2 then
  1800. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  1801. local Head = Character2:FindFirstChild("Head")
  1802. if Head then
  1803. local Neck = Instance.new("Weld")
  1804. Neck.Name = "Neck"
  1805. Neck.Part0 = Torso2
  1806. Neck.Part1 = Head
  1807. Neck.C0 = CFrame.new(0, 1.5, 0)
  1808. Neck.C1 = CFrame.new()
  1809. Neck.Parent = Torso2
  1810.  
  1811. end
  1812. local Limb = Character2:FindFirstChild("Right Arm")
  1813. if Limb and KeepArms == true then
  1814.  
  1815. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1816. local Joint = Instance.new("Glue")
  1817. Joint.Name = "RightShoulder"
  1818. Joint.Part0 = Torso2
  1819. Joint.Part1 = Limb
  1820. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1821. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1822. Joint.Parent = Torso2
  1823.  
  1824. local B = Instance.new("Part")
  1825. B.TopSurface = 0
  1826. B.BottomSurface = 0
  1827. B.formFactor = "Symmetric"
  1828. B.Size = Vector3.new(1, 1, 1)
  1829. B.Transparency = 1
  1830. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1831. B.Parent = Character2
  1832. local W = Instance.new("Weld")
  1833. W.Part0 = Limb
  1834. W.Part1 = B
  1835. W.C0 = CFrame.new(0, -0.5, 0)
  1836. W.Parent = Limb
  1837.  
  1838. end
  1839. local Limb = Character2:FindFirstChild("Left Arm")
  1840. if Limb and KeepArms == true then
  1841.  
  1842. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1843. local Joint = Instance.new("Glue")
  1844. Joint.Name = "LeftShoulder"
  1845. Joint.Part0 = Torso2
  1846. Joint.Part1 = Limb
  1847. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1848. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1849. Joint.Parent = Torso2
  1850.  
  1851. local B = Instance.new("Part")
  1852. B.TopSurface = 0
  1853. B.BottomSurface = 0
  1854. B.formFactor = "Symmetric"
  1855. B.Size = Vector3.new(1, 1, 1)
  1856. B.Transparency = 1
  1857. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1858. B.Parent = Character2
  1859. local W = Instance.new("Weld")
  1860. W.Part0 = Limb
  1861. W.Part1 = B
  1862. W.C0 = CFrame.new(0, -0.5, 0)
  1863. W.Parent = Limb
  1864.  
  1865. end
  1866. local Limb = Character2:FindFirstChild("Right Leg")
  1867. if Limb then
  1868.  
  1869. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1870. local Joint = Instance.new("Glue")
  1871. Joint.Name = "RightHip"
  1872. Joint.Part0 = Torso2
  1873. Joint.Part1 = Limb
  1874. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1875. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1876. Joint.Parent = Torso2
  1877.  
  1878. local B = Instance.new("Part")
  1879. B.TopSurface = 0
  1880. B.BottomSurface = 0
  1881. B.formFactor = "Symmetric"
  1882. B.Size = Vector3.new(1, 1, 1)
  1883. B.Transparency = 1
  1884. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1885. B.Parent = Character2
  1886. local W = Instance.new("Weld")
  1887. W.Part0 = Limb
  1888. W.Part1 = B
  1889. W.C0 = CFrame.new(0, -0.5, 0)
  1890. W.Parent = Limb
  1891.  
  1892. end
  1893. local Limb = Character2:FindFirstChild("Left Leg")
  1894. if Limb then
  1895.  
  1896. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1897. local Joint = Instance.new("Glue")
  1898. Joint.Name = "LeftHip"
  1899. Joint.Part0 = Torso2
  1900. Joint.Part1 = Limb
  1901. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1902. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1903. Joint.Parent = Torso2
  1904.  
  1905. local B = Instance.new("Part")
  1906. B.TopSurface = 0
  1907. B.BottomSurface = 0
  1908. B.formFactor = "Symmetric"
  1909. B.Size = Vector3.new(1, 1, 1)
  1910. B.Transparency = 1
  1911. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1912. B.Parent = Character2
  1913. local W = Instance.new("Weld")
  1914. W.Part0 = Limb
  1915. W.Part1 = B
  1916. W.C0 = CFrame.new(0, -0.5, 0)
  1917. W.Parent = Limb
  1918.  
  1919. end
  1920. --[
  1921. local Bar = Instance.new("Part")
  1922. Bar.TopSurface = 0
  1923. Bar.BottomSurface = 0
  1924. Bar.formFactor = "Symmetric"
  1925. Bar.Size = Vector3.new(1, 1, 1)
  1926. Bar.Transparency = 1
  1927. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1928. Bar.Parent = Character2
  1929. local Weld = Instance.new("Weld")
  1930. Weld.Part0 = Torso2
  1931. Weld.Part1 = Bar
  1932. Weld.C0 = CFrame.new(0, 0.5, 0)
  1933. Weld.Parent = Torso2
  1934. --]]
  1935. end
  1936. Character2.Parent = workspace
  1937. Debris:AddItem(Character2,5)
  1938.  
  1939. return Character2,Torso2
  1940. end))
  1941. end
  1942.  
  1943. --//=================================\\
  1944. --|| DAMAGE FUNCTIONS
  1945. --\\=================================//
  1946. function StatLabel(CFRAME, TEXT, COLOR)
  1947. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1948. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1949. local BODYGYRO = IT("BodyGyro", STATPART)
  1950. game:GetService("Debris"):AddItem(STATPART ,5)
  1951. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1952. BILLBOARDGUI.Adornee = STATPART
  1953. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1954. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1955. BILLBOARDGUI.AlwaysOnTop = false
  1956. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1957. TEXTLABEL.BackgroundTransparency = 1
  1958. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1959. TEXTLABEL.Text = TEXT
  1960. TEXTLABEL.Font = SKILLFONT
  1961. TEXTLABEL.FontSize="Size42"
  1962. TEXTLABEL.TextColor3 = COLOR
  1963. TEXTLABEL.TextStrokeTransparency = 0
  1964. TEXTLABEL.TextScaled = true
  1965. TEXTLABEL.TextWrapped = true
  1966. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1967. for i = 1, 50 do
  1968. Swait()
  1969. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  1970. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  1971. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1972. end
  1973. THEPART.Parent = nil
  1974. end),STATPART, TEXTLABEL)
  1975. end
  1976.  
  1977. function StatLabel(CFRAME, TEXT, COLOR)
  1978. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1979. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1980. local BODYGYRO = IT("BodyGyro", STATPART)
  1981. game:GetService("Debris"):AddItem(STATPART ,5)
  1982. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1983. BILLBOARDGUI.Adornee = STATPART
  1984. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1985. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1986. BILLBOARDGUI.AlwaysOnTop = false
  1987. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1988. TEXTLABEL.BackgroundTransparency = 1
  1989. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1990. TEXTLABEL.Text = TEXT
  1991. TEXTLABEL.Font = "Fantasy"
  1992. TEXTLABEL.FontSize="Size42"
  1993. TEXTLABEL.TextColor3 = COLOR
  1994. TEXTLABEL.TextStrokeTransparency = 0
  1995. TEXTLABEL.TextScaled = true
  1996. TEXTLABEL.TextWrapped = true
  1997. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1998. for i = 1, 50 do
  1999. Swait()
  2000. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  2001. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  2002. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  2003. end
  2004. THEPART.Parent = nil
  2005. end),STATPART, TEXTLABEL)
  2006. end
  2007.  
  2008. function StatLabel(CFRAME, TEXT, COLOR)
  2009. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2010. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  2011. local BODYGYRO = IT("BodyGyro", STATPART)
  2012. game:GetService("Debris"):AddItem(STATPART ,5)
  2013. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  2014. BILLBOARDGUI.Adornee = STATPART
  2015. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  2016. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  2017. BILLBOARDGUI.AlwaysOnTop = false
  2018. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  2019. TEXTLABEL.BackgroundTransparency = 1
  2020. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  2021. TEXTLABEL.Text = TEXT
  2022. TEXTLABEL.Font = SKILLFONT
  2023. TEXTLABEL.FontSize="Size42"
  2024. TEXTLABEL.TextColor3 = COLOR
  2025. TEXTLABEL.TextStrokeTransparency = 0
  2026. TEXTLABEL.TextScaled = true
  2027. TEXTLABEL.TextWrapped = true
  2028. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  2029. for i = 1, 50 do
  2030. Swait()
  2031. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  2032. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  2033. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  2034. end
  2035. THEPART.Parent = nil
  2036. end),STATPART, TEXTLABEL)
  2037. end
  2038.  
  2039. --//=================================\\
  2040. --|| DAMAGING
  2041. --\\=================================//
  2042. function ApplyDamage(Humanoid,Damage,TorsoPart)
  2043. local defence = Instance.new("BoolValue",Humanoid.Parent)
  2044. defence.Name = ("HitBy"..Player.Name)
  2045. game:GetService("Debris"):AddItem(defence, 0.001)
  2046. Damage = Damage * DAMAGEMULTIPLIER
  2047. if Humanoid.Health ~= 0 then
  2048. local CritChance = MRANDOM(1,100)
  2049. if Damage > Humanoid.Health then
  2050. Damage = math.ceil(Humanoid.Health)
  2051. if Damage == 0 then
  2052. Damage = 0.1
  2053. end
  2054. end
  2055. Humanoid.Health = Humanoid.Health - Damage
  2056. end
  2057. end
  2058.  
  2059. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  2060. local CHILDREN = workspace:GetDescendants()
  2061. for index, CHILD in pairs(CHILDREN) do
  2062. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2063. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2064. if HUM then
  2065. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2066. if TORSO then
  2067. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2068. if INSTAKILL == false then
  2069. CHILD:BreakJoints()
  2070. else
  2071. local DMG = MRANDOM(MINDMG,MAXDMG)
  2072. ApplyDamage(HUM,DMG,TORSO)
  2073. end
  2074. if FLING > 0 then
  2075. for _, c in pairs(CHILD:GetChildren()) do
  2076. if c:IsA("BasePart") then
  2077. local bv = Instance.new("BodyVelocity")
  2078. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2079. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  2080. bv.Parent = c
  2081. Debris:AddItem(bv,0.05)
  2082. end
  2083. end
  2084. end
  2085. end
  2086. end
  2087. end
  2088. end
  2089. end
  2090. end
  2091.  
  2092. function KillChildren(v)
  2093. v:BreakJoints()
  2094. for _, c in pairs(v:GetChildren()) do
  2095. if c:IsA("BasePart") then
  2096. if c.Transparency < 1 then
  2097. if c:FindFirstChildOfClass("Decal") then
  2098. c:FindFirstChildOfClass("Decal"):remove()
  2099. end
  2100. particles(c)
  2101. c.PE.Enabled = true
  2102. c.Parent = Effects
  2103. c.CanCollide = false
  2104. c.Material = "Neon"
  2105. c.Color = C3(0,0,0)
  2106. c.Transparency = 1
  2107. local grav = Instance.new("BodyPosition",c)
  2108. grav.P = 20000
  2109. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2110. grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
  2111. grav.Name = "GravityForce"
  2112. coroutine.resume(coroutine.create(function()
  2113. for i = 1, 20 do
  2114. Swait()
  2115. c.Transparency = c.Transparency + 1/20
  2116. end
  2117. c.PE.Enabled = false
  2118. Debris:AddItem(c,2)
  2119. end))
  2120. end
  2121. end
  2122. end
  2123. end
  2124.  
  2125. function ApplyAoE(POSITION,RANGE)
  2126. local CHILDREN = workspace:GetDescendants()
  2127. for index, CHILD in pairs(CHILDREN) do
  2128. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2129. local LISTED = false
  2130. for LIST = 1, #WHITELIST do
  2131. if WHITELIST[LIST] ~= nil then
  2132. if CHILD.Name == WHITELIST[LIST] then
  2133. LISTED = true
  2134. end
  2135. end
  2136. end
  2137. if LISTED == false then
  2138. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2139. if HUM then
  2140. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2141. if TORSO then
  2142. if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
  2143. KillChildren(CHILD)
  2144. end
  2145. end
  2146. end
  2147. end
  2148. end
  2149. end
  2150. end
  2151.  
  2152. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  2153. local defence = Instance.new("BoolValue",Humanoid.Parent)
  2154. defence.Name = ("HitBy"..Player.Name)
  2155. game:GetService("Debris"):AddItem(defence, 0.001)
  2156. if Humanoid.Health ~= 0 then
  2157. local CritChance = MRANDOM(1,100)
  2158. if CritChance < CritRate + 1 then
  2159. Damage = Damage*CritMultiplier
  2160. end
  2161. if Damage > Humanoid.Health then
  2162. Damage = math.ceil(Humanoid.Health)
  2163. if Damage == 0 then
  2164. Damage = 0.1
  2165. end
  2166. end
  2167. Humanoid.Health = Humanoid.Health - Damage
  2168. if Humanoid.Parent:FindFirstChild("Head") then
  2169. CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], Humanoid.Parent.Head, 5, 1)
  2170. if CritChance < CritRate + 1 then
  2171. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  2172. else
  2173. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, SKILLTEXTCOLOR)
  2174. end
  2175. end
  2176. end
  2177. end
  2178.  
  2179. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  2180. local dmg = math.random(min,max)
  2181. for i,v in ipairs(workspace:GetChildren()) do
  2182. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  2183. local body = v:GetChildren()
  2184. for part = 1, #body do
  2185. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  2186. if(body[part].Position - position).Magnitude < radius then
  2187. if v.ClassName == "Model" then
  2188. if v:FindFirstChildOfClass("Humanoid") then
  2189. if CanBeDodgedByJumping == true then
  2190. if body[part].Position.Y < position.Y+5 then
  2191. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  2192. end
  2193. else
  2194. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  2195. end
  2196. local bv = Instance.new("BodyVelocity")
  2197. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2198. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  2199. bv.Parent = body[part]
  2200. Debris:AddItem(bv,0.2)
  2201. end
  2202. end
  2203. end
  2204. end
  2205. end
  2206. end
  2207. if v:FindFirstChild("HitBy"..Player.Name) then
  2208. v:FindFirstChild("HitBy"..Player.Name):remove()
  2209. end
  2210. end
  2211. end
  2212.  
  2213. function Kill(Char)
  2214. local NewCharacter = IT("Model",Effects)
  2215. NewCharacter.Name = "Ow im ded ;-;"
  2216. for _, c in pairs(Char:GetDescendants()) do
  2217. if c:IsA("BasePart") and c.Transparency == 0 then
  2218. if c.Parent == Char then
  2219. getbloody(c,5)
  2220. end
  2221. c:BreakJoints()
  2222. c.Material = "Glass"
  2223. c.Color = C3(0.5,0,0)
  2224. c.CanCollide = true
  2225. c.Transparency = 0.3
  2226. if c:FindFirstChildOfClass("SpecialMesh") then
  2227. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2228. end
  2229. if c.Name == "Head" then
  2230. c:ClearAllChildren()
  2231. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  2232. end
  2233. if c.ClassName == "MeshPart" then
  2234. c.TextureID = ""
  2235. end
  2236. if c:FindFirstChildOfClass("BodyPosition") then
  2237. c:FindFirstChildOfClass("BodyPosition"):remove()
  2238. end
  2239. if c:FindFirstChildOfClass("ParticleEmitter") then
  2240. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2241. end
  2242. c.Parent = NewCharacter
  2243. c.Name = "DeadPart"
  2244. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  2245. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  2246. end
  2247. end
  2248. Char:remove()
  2249. Debris:AddItem(NewCharacter,5)
  2250. end
  2251.  
  2252. function ApplyAoE(POSITION,RANGE,BRUTAL)
  2253. local CHILDREN = workspace:GetDescendants()
  2254. for index, CHILD in pairs(CHILDREN) do
  2255. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2256. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2257. if HUM then
  2258. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2259. if TORSO then
  2260. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2261. if BRUTAL == true then
  2262. Kill(CHILD)
  2263. else
  2264. CHILD:BreakJoints()
  2265. end
  2266. end
  2267. end
  2268. end
  2269. end
  2270. end
  2271. end
  2272.  
  2273. --//=================================\\
  2274. --|| ATTACK FUNCTIONS AND STUFF
  2275. --\\=================================//
  2276. function Click()
  2277. ATTACK = true
  2278. Rooted = false
  2279. local HIT = nil
  2280. OFFSET = -45
  2281. for i=0, 1, 0.1 / Animation_Speed do
  2282. Swait()
  2283. 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)
  2284. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2285. end
  2286. OFFSET = 45
  2287. local PUNCH = CreatePart(3, Effects, "Granite", 0, 1, "Really black", "Hit", VT(0.7,0.7,0.7),false)
  2288. PUNCH.CanCollide = true
  2289. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PUNCH, CF(0,-1,0), CF(0, 0, 0))
  2290. TAUNT = true
  2291. local TOUCH = PUNCH.Touched:Connect(function(hit)
  2292. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  2293. HIT = hit.Parent
  2294. end
  2295. end)
  2296. for i=0, 0.3, 0.1 / Animation_Speed do
  2297. Swait()
  2298. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3)
  2299. if HIT ~= nil then
  2300. break
  2301. end
  2302. 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)
  2303. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2304. 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)
  2305. end
  2306. PUNCH:remove()
  2307. TOUCH:disconnect()
  2308. if HIT ~= nil then
  2309. for _, c in pairs(HIT:GetChildren()) do
  2310. if c:IsA("BasePart") then
  2311. c.Anchored = true
  2312. end
  2313. end
  2314. Rooted = true
  2315. CreateSound(649634100, Torso, 10, 0.8)
  2316. CreateSound(1368573150, RightArm, 3, 1.5)
  2317. for i=0, 0.6, 0.1 / Animation_Speed do
  2318. Swait()
  2319. 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})
  2320. 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)
  2321. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2322. 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)
  2323. end
  2324. for _, c in pairs(HIT:GetChildren()) do
  2325. if c:IsA("BasePart") then
  2326. c.Anchored = false
  2327. end
  2328. end
  2329. KillChildren(HIT)
  2330. end
  2331. OFFSET = 0
  2332. ATTACK = false
  2333. Rooted = false
  2334. TAUNT = false
  2335. end
  2336.  
  2337. function Teleport()
  2338. ATTACK = true
  2339. Rooted = false
  2340. for i=0, 0.5, 0.1 / Animation_Speed do
  2341. Swait()
  2342. 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)
  2343. 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)
  2344. end
  2345. for e = 1, #BODY do
  2346. if BODY[e] ~= nil then
  2347. local STUFF = BODY[e]
  2348. local PART = STUFF[1]
  2349. if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  2350. local PRT = PART:Clone()
  2351. PRT.Anchored = true
  2352. PRT.CanCollide = false
  2353. PRT.Material = "Neon"
  2354. PRT.Color = C3(0,0,0)
  2355. PRT.Name = "WarpEffect"
  2356. PRT.Parent = Effects
  2357. PRT.CFrame = PART.CFrame
  2358. PRT:BreakJoints()
  2359. if PRT:FindFirstChildOfClass("Sound") then
  2360. PRT:FindFirstChildOfClass("Sound"):remove()
  2361. end
  2362. if PRT:FindFirstChildOfClass("Decal") then
  2363. PRT:FindFirstChildOfClass("Decal"):remove()
  2364. end
  2365. coroutine.resume(coroutine.create(function()
  2366. for i = 1, 100 do
  2367. Swait()
  2368. PRT.Transparency = PRT.Transparency + 1/100
  2369. end
  2370. PRT:remove()
  2371. end))
  2372. end
  2373. end
  2374. end
  2375. CreateSound(217767125, Torso, 10, 1)
  2376. local POS = RootPart.Orientation
  2377. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  2378. RootPart.Orientation = POS
  2379. RootJoint.Parent = RootPart
  2380. for i=0, 0.5, 0.1 / Animation_Speed do
  2381. Swait()
  2382. 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)
  2383. 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)
  2384. end
  2385. for i=0, 0.1, 0.1 / Animation_Speed do
  2386. Swait()
  2387. 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)
  2388. end
  2389. ATTACK = false
  2390. Rooted = false
  2391. end
  2392.  
  2393. function SpawnSmite(POS)
  2394. local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
  2395. local EMITPOS = HITPOS
  2396. if HITFLOOR ~= nil then
  2397. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  2398. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  2399. EMITPOS = HITPOS
  2400. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2401. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  2402. EMITPOS = HITPOS
  2403. end
  2404. end
  2405. if HITFLOOR ~= nil then
  2406. ApplyAoE(EMITPOS,10)
  2407. 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})
  2408. 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})
  2409. 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})
  2410. for i = 1, 5 do
  2411. local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
  2412. 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})
  2413. end
  2414. end
  2415. end
  2416.  
  2417. function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
  2418. coroutine.resume(coroutine.create(function()
  2419. local METEOR = IT("Model",Effects)
  2420. METEOR.Name = "Meteorite"
  2421. local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  2422. METEOR.PrimaryPart = CENTER
  2423. local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  2424. PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2425. for i = 1, 15 do
  2426. local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really black", "Fire", VT(5.1,1,5.1)*SIZE)
  2427. FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2428. end
  2429. if ISDEBREE ~= true then
  2430. 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))))
  2431. else
  2432. METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  2433. end
  2434. local IMPACT = false
  2435. CreateSound(463593339, CENTER, 10, 0.6)
  2436. if SIZE >= 3.5 then
  2437. for i = 1, MRANDOM(3,7) do
  2438. 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)
  2439. end
  2440. end
  2441. for i = 1, 200 do
  2442. Swait()
  2443. local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
  2444. if HITFLOOR == nil then
  2445. local ORI = CENTER.Orientation
  2446. METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  2447. else
  2448. if HITFLOOR.Anchored == true then
  2449. CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
  2450. CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
  2451. end
  2452. IMPACT = true
  2453. break
  2454. end
  2455. end
  2456. if IMPACT == true then
  2457. 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})
  2458. 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})
  2459. 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})
  2460. ApplyAoE(CENTER.Position,30*SIZE)
  2461. end
  2462. METEOR:remove()
  2463. end))
  2464. end
  2465. function Equivalent_Pain()
  2466. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2467. if HITFLOOR then
  2468. ATTACK = true
  2469. Rooted = true
  2470. FULL = true
  2471. local GYRO = IT("BodyGyro",RootPart)
  2472. GYRO.D = 25
  2473. GYRO.P = 20000
  2474. GYRO.MaxTorque = VT(0,math.huge,0)
  2475. for i=0, 0.3, 0.1 / Animation_Speed do
  2476. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2477. Swait()
  2478. 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)
  2479. 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)
  2480. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2481. 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)
  2482. 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)
  2483. 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)
  2484. end
  2485. GYRO:remove()
  2486. CreateSound(12222200, RightArm, 10, 1)
  2487. for i=0, 0.4, 0.1 / Animation_Speed do
  2488. Swait()
  2489. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
  2490. 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)
  2491. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2492. 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)
  2493. 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)
  2494. 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)
  2495. end
  2496. CreateSound(289842971, RightArm, 10, 1)
  2497. coroutine.resume(coroutine.create(function()
  2498. 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)
  2499. local ECHO = POS
  2500. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  2501. HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  2502. ECHO = POS
  2503. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2504. HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  2505. ECHO = POS
  2506. end
  2507. if ECHO.Y == HITPOS.Y then
  2508. local DISTANCE = (HITPOS - ECHO).Magnitude/3
  2509. local CFRAME = CF(HITPOS,ECHO)
  2510. local RANGE = math.ceil(DISTANCE)
  2511. for i = 1, RANGE-1 do
  2512. Swait(3)
  2513. local A = CFRAME*CF(0,0,-i*3)
  2514. ApplyAoE(A.p,4)
  2515. CreateFlyingDebree(HITFLOOR,A,2,VT(2,2,2),2,65)
  2516. end
  2517. local SIZE = 3
  2518. local POS = CFRAME*CF(0,0,-RANGE*3).p
  2519. 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(0,0,0), SoundID = 130972023, SoundPitch = 0.8, SoundVolume = 10})
  2520. WACKYEFFECT({EffectType = "Sphere", Size = VT(10,250,10)*SIZE, Size2 = VT(20,1000,20)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
  2521. WACKYEFFECT({EffectType = "Sphere", Size = VT(30,150,30)*SIZE, Size2 = VT(50,300,50)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
  2522. for i = 1, 9 do
  2523. 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(0,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
  2524. end
  2525. for i = 1, 9 do
  2526. WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
  2527. end
  2528. ApplyAoE(POS,30*SIZE)
  2529. CreateDebreeRing(HITFLOOR,POS,30*SIZE,VT(8,8,8)*SIZE,5)
  2530. CreateDebreeRing(HITFLOOR,POS,50*SIZE,VT(2,2,2)*SIZE,5)
  2531. end
  2532. end))
  2533. for i=0, 0.6, 0.1 / Animation_Speed do
  2534. Swait()
  2535. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
  2536. 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)
  2537. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2538. 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)
  2539. 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)
  2540. 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)
  2541. end
  2542. FULL = false
  2543. ATTACK = false
  2544. Rooted = false
  2545. end
  2546. end
  2547.  
  2548. function ReeeEEEEEE()
  2549. ATTACK = true
  2550. Rooted = false
  2551. Speed = 12
  2552. local FX = CreateSound(198165368, Head, 4, 0.5, false)
  2553. repeat
  2554. Swait()
  2555. FX.Parent = Head
  2556. local CHILDREN = workspace:GetDescendants()
  2557. for index, CHILD in pairs(CHILDREN) do
  2558. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2559. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2560. if HUM then
  2561. local TORSO = CHILD:FindFirstChild("Head")
  2562. if TORSO then
  2563. if (TORSO.Position - Head.Position).Magnitude <= 25 then
  2564. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2565. TORSO:remove()
  2566. if CHILD:FindFirstChild("Torso") then
  2567. Ragdoll(CHILD,Torso,true)
  2568. elseif CHILD:FindFirstChild("UpperTorso") then
  2569. R15Ragdoll(CHILD,true)
  2570. end
  2571. end
  2572. end
  2573. end
  2574. end
  2575. end
  2576. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed)
  2577. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed)
  2578. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2579. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2580. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-45), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2581. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-45), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2582. until FX.Playing == false
  2583. Speed = 16
  2584. ATTACK = false
  2585. Rooted = false
  2586. end
  2587.  
  2588. function Charge(TIME,GYRO)
  2589. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  2590. local G = nil
  2591. if GYRO == true then
  2592. G = IT("BodyGyro",RootPart)
  2593. G.D = 250
  2594. G.P = 200000
  2595. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  2596. end
  2597. for i=0, TIME, 0.1 / Animation_Speed do
  2598. Swait()
  2599. if G then
  2600. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2601. end
  2602. 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})
  2603. 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)
  2604. 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)
  2605. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2606. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2607. 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)
  2608. 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)
  2609. end
  2610. SND:remove()
  2611. if G then
  2612. return G
  2613. end
  2614. end
  2615.  
  2616. function Corrupted_Beam()
  2617. ATTACK = true
  2618. Rooted = false
  2619. local GRAV = IT("BodyPosition",RootPart)
  2620. GRAV.D = 75
  2621. GRAV.P = 20000
  2622. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  2623. GRAV.Position = RootPart.Position
  2624. local GYRO = Charge(2,true)
  2625. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Black", "Beam", VT(15,15,0))
  2626. MakeForm(BEAM,"Ball")
  2627. CreateSound(BEAMSOUND,BEAM,10,1,false)
  2628. CreateSound(BEAMSOUND,BEAM,10,0.9,false)
  2629. CreateSound(BEAMSOUND,BEAM,10,0.8,false)
  2630. for i = 1, 150 do
  2631. Swait()
  2632. BEAM.Size = BEAM.Size + VT(-0.1,-0.1,2)
  2633. ApplyAoE(BEAM.CFrame*CF(0,0,-BEAM.Size.Z/2).p,BEAM.Size.Y/2,50,200,0,false)
  2634. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2), MoveToPos = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2)*ANGLES(RAD(90),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0.3,-25).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2635. BEAM.CFrame = CF(Torso.Position,Torso.CFrame*CF(0,0,-1).p)*CF(0,0,-2-(BEAM.Size.Z/2))
  2636. 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)
  2637. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2638. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2639. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2640. 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)
  2641. 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)
  2642. end
  2643. GRAV:remove()
  2644. BEAM:remove()
  2645. GYRO:remove()
  2646. ATTACK = false
  2647. Rooted = false
  2648. end
  2649.  
  2650. function Corrupted_Explosion()
  2651. ATTACK = true
  2652. Rooted = true
  2653. for i=0, 1, 0.1 / Animation_Speed do
  2654. Swait()
  2655. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed)
  2656. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed)
  2657. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2658. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  2659. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2660. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2661. end
  2662. for i=0, 0.4, 0.1 / Animation_Speed do
  2663. Swait()
  2664. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  2665. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  2666. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2667. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2668. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2669. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2670. end
  2671. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Black", "Beam", VT(0,0,0))
  2672. local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Black", "Beam", VT(0,0,0))
  2673. MakeForm(BEAM,"Ball")
  2674. MakeForm(BEAM2,"Ball")
  2675. BEAM.CFrame = CF(RootPart.Position)
  2676. BEAM2.CFrame = CF(RootPart.Position)
  2677. CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  2678. for i=1, 100 do
  2679. Swait()
  2680. BEAM.Size = BEAM.Size + VT(0.7,8,0.7)
  2681. BEAM2.Size = BEAM2.Size + VT(2,2,2)
  2682. ApplyAoE(BEAM2.Position,BEAM2.Size.Z/2,5,5,15,true)
  2683. BEAM.CFrame = CF(RootPart.Position)
  2684. BEAM2.CFrame = CF(RootPart.Position)
  2685. WACKYEFFECT({TIME = 5+i, EffectType = "Swirl", Size = BEAM2.Size*1.15, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0.8, Transparency2 = 1, CFrame = BEAM.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2686. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  2687. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  2688. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2689. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2690. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2691. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2692. end
  2693. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM.Size, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0, Transparency2 = 0, CFrame = BEAM.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2694. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM2.Size, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.6, CFrame = BEAM2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2695. BEAM2:remove()
  2696. BEAM:remove()
  2697. ATTACK = false
  2698. Rooted = false
  2699. end
  2700.  
  2701. function Corrupted_Immobilization()
  2702. ATTACK = true
  2703. Rooted = true
  2704. Charge(2,false)
  2705. local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  2706. local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false)
  2707. for i = 1, 60 do
  2708. Swait()
  2709. ApplyAoE(RootPart.Position,i*1.3,10,20,-200,true)
  2710. SND.Pitch = SND.Pitch - 1/60
  2711. SND2.Pitch = SND.Pitch
  2712. 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})
  2713. 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})
  2714. 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})
  2715. 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)
  2716. 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)
  2717. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2718. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2719. 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)
  2720. 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)
  2721. end
  2722. SND:remove()
  2723. SND2:remove()
  2724. ATTACK = false
  2725. Rooted = false
  2726. end
  2727.  
  2728. --//=================================\\
  2729. --|| ASSIGN THINGS TO KEYS
  2730. --\\=================================//
  2731.  
  2732. function MouseDown(Mouse)
  2733. if ATTACK == false then
  2734. Click()
  2735. end
  2736. end
  2737.  
  2738. function MouseUp(Mouse)
  2739. HOLD = false
  2740. end
  2741.  
  2742. function KeyDown(Key)
  2743. KEYHOLD = true
  2744. if Key == "z" and ATTACK == false then
  2745. Corrupted_Beam()
  2746. end
  2747.  
  2748. if Key == "e" and ATTACK == false then
  2749. ReeeEEEEEE()
  2750. end
  2751.  
  2752. if Key == "r" and ATTACK == false then
  2753. Teleport()
  2754. end
  2755.  
  2756. if Key == "q" and ATTACK == false then
  2757. Equivalent_Pain()
  2758. end
  2759.  
  2760. if Key == "x" and ATTACK == false then
  2761. Corrupted_Explosion()
  2762. end
  2763.  
  2764. if Key == "c" and ATTACK == false then
  2765. Corrupted_Immobilization()
  2766. elseif Key == "1" and ATTACK == false then
  2767. if CHOICE ~= 1 then
  2768. CHOICE = 1
  2769. sick:Play()
  2770. end
  2771. elseif Key == "2" and ATTACK == false then
  2772. if CHOICE ~= 2 then
  2773. CHOICE = 2
  2774. sick:Play()
  2775. end
  2776. elseif Key == "3" and ATTACK == false then
  2777. if CHOICE ~= 3 then
  2778. CHOICE = 3
  2779. sick:Play()
  2780. end
  2781. elseif Key == "4" and ATTACK == false then
  2782. if CHOICE ~= 4 then
  2783. CHOICE = 4
  2784. sick:Play()
  2785. end
  2786.  
  2787. end
  2788. end
  2789.  
  2790.  
  2791.  
  2792. function KeyUp(Key)
  2793. KEYHOLD = false
  2794. end
  2795.  
  2796. Mouse.Button1Down:connect(function(NEWKEY)
  2797. MouseDown(NEWKEY)
  2798. end)
  2799. Mouse.Button1Up:connect(function(NEWKEY)
  2800. MouseUp(NEWKEY)
  2801. end)
  2802. Mouse.KeyDown:connect(function(NEWKEY)
  2803. KeyDown(NEWKEY)
  2804. end)
  2805. Mouse.KeyUp:connect(function(NEWKEY)
  2806. KeyUp(NEWKEY)
  2807. end)
  2808.  
  2809. --//=================================\\
  2810. --\\=================================//
  2811.  
  2812. function unanchor()
  2813. if UNANCHOR == true then
  2814. g = Character:GetChildren()
  2815. for i = 1, #g do
  2816. if g[i].ClassName == "Part" then
  2817. g[i].Anchored = false
  2818. end
  2819. end
  2820. end
  2821. end
  2822.  
  2823. --//=================================\\
  2824. --|| WRAP THE WHOLE SCRIPT UP
  2825. --\\=================================//
  2826.  
  2827. Humanoid.Changed:connect(function(Jump)
  2828. if Jump == "Jump" and (Disable_Jump == true) then
  2829. Humanoid.Jump = false
  2830. end
  2831. end)
  2832.  
  2833. while true do
  2834. Swait()
  2835. script.Parent = WEAPONGUI
  2836. ANIMATE.Parent = nil
  2837. if Humanoid then
  2838. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2839. IDLEANIMATION:Play()
  2840. end
  2841. SINE = SINE + CHANGE
  2842. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2843. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2844. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2845. local WALKSPEEDVALUE = 5 / (Humanoid.WalkSpeed / 16)
  2846. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2847. 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)
  2848. 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)
  2849. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  2850. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  2851. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2852. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2853. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2854. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2855. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2856. end
  2857. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2858. ANIM = "Jump"
  2859. if ATTACK == false then
  2860. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2861. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2862. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2863. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2864. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2865. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2866. end
  2867. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2868. ANIM = "Fall"
  2869. if ATTACK == false then
  2870. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2871. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2872. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2873. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2874. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2875. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2876. end
  2877. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2878. ANIM = "Idle"
  2879. if ATTACK == false then
  2880. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2881. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2882. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2883. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2884. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2885. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2886. if VALUE1 == false and MRANDOM(1,200) == 1 then
  2887. coroutine.resume(coroutine.create(function()
  2888. VALUE1 = true
  2889. for i = 1, 25 do
  2890. Swait()
  2891. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed)
  2892.  
  2893. end
  2894. VALUE1 = false
  2895. end))
  2896. end
  2897. end
  2898.  
  2899.  
  2900. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2901. ANIM = "Walk"
  2902. if ATTACK == false then
  2903. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2904. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2905. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2906. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2907. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2908. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2909. end
  2910. end
  2911.  
  2912.  
  2913. sick.Parent = Torso
  2914. sick.Playing = true
  2915.  
  2916.  
  2917. unanchor()
  2918. Humanoid.MaxHealth = "inf"
  2919. Humanoid.Health = "inf"
  2920. if Rooted == false then
  2921. Disable_Jump = false
  2922. Humanoid.WalkSpeed = Speed
  2923. elseif Rooted == true then
  2924. Disable_Jump = true
  2925. Humanoid.WalkSpeed = 0
  2926. end
  2927. end
  2928. --//=================================\\
  2929. --\\=================================//
  2930.  
  2931.  
  2932.  
  2933.  
  2934.  
  2935. --//====================================================\\--
  2936. --|| END OF SCRIPT
  2937. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement