Advertisement
Toey8415

FE

Aug 8th, 2018
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 119.78 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5.  
  6. --//====================================================\\--
  7. --|| CREATED BY SHACKLUSTER EDITED BY DUCKILES
  8. --\\====================================================//--
  9. script.Name = "Your dark side or Hell creation"
  10. wait(0.2)
  11.  
  12. Player = game:GetService("Players").LocalPlayer
  13. PlayerGui = Player.PlayerGui
  14. Cam = workspace.CurrentCamera
  15. Backpack = Player.Backpack
  16. Character = Player.Character
  17. Humanoid = Character.Humanoid
  18. Mouse = Player:GetMouse()
  19. RootPart = Character["HumanoidRootPart"]
  20. Torso = Character["Torso"]
  21. Head = Character["Head"]
  22. RightArm = Character["Right Arm"]
  23. LeftArm = Character["Left Arm"]
  24. RightLeg = Character["Right Leg"]
  25. LeftLeg = Character["Left Leg"]
  26. RootJoint = RootPart["RootJoint"]
  27. Neck = Torso["Neck"]
  28. RightShoulder = Torso["Right Shoulder"]
  29. LeftShoulder = Torso["Left Shoulder"]
  30. RightHip = Torso["Right Hip"]
  31. LeftHip = Torso["Left Hip"]
  32. local sick = Instance.new("Sound", Character)
  33. sick.SoundId = "rbxassetid://885591406"
  34. sick.Looped = true
  35. sick.Pitch = 1
  36. sick.Volume = 1
  37. sick:Play()
  38.  
  39. local ULTTAUNTS = {
  40. "907332997",
  41. "907332670",
  42. "907330103"
  43. }
  44.  
  45. IT = Instance.new
  46. CF = CFrame.new
  47. VT = Vector3.new
  48. RAD = math.rad
  49. C3 = Color3.new
  50. UD2 = UDim2.new
  51. BRICKC = BrickColor.new
  52. ANGLES = CFrame.Angles
  53. EULER = CFrame.fromEulerAnglesXYZ
  54. COS = math.cos
  55. ACOS = math.acos
  56. SIN = math.sin
  57. ASIN = math.asin
  58. ABS = math.abs
  59. MRANDOM = math.random
  60. FLOOR = math.floor
  61. local CLOAKED = false
  62. local KILLINSTINCT = 0
  63.  
  64.  
  65. --//=================================\\
  66. --|| SOME OTHER STUFF
  67. --\\=================================//
  68. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  69. ff.Visible = false
  70. Humanoid.Name = "God Mode"
  71. local EXTRATRANS = 0
  72. --//=================================\\
  73. --|| USEFUL VALUES
  74. --\\=================================//
  75. Player_Size = 1
  76. Animation_Speed = 3
  77. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  78. local Speed = 16
  79. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  80. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  81. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  82. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  83. local DAMAGEMULTIPLIER = 1
  84. local ANIM = "Idle"
  85. local ATTACK = false
  86. local EQUIPPED = false
  87. local HOLD = false
  88. local COMBO = 1
  89. local EYE, PUPIL
  90. local EYES = {}
  91. local Rooted = false
  92. local SINE = 0
  93. local KEYHOLD = false
  94. local CHANGE = 2 / Animation_Speed
  95. local WALKINGANIM = false
  96. local ROBLOXIDLEANIMATION = IT("Animation")
  97. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  98. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  99. --ROBLOXIDLEANIMATION.Parent = Humanoid
  100. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  101. WEAPONGUI.Name = "Weapon GUI"
  102. local Weapon = IT("Model")
  103. Weapon.Name = "Adds"
  104. local Effects = IT("Folder", Weapon)
  105. Effects.Name = "Effects"
  106. local ANIMATOR = Humanoid.Animator
  107. local ANIMATE = Character.Animate
  108. local UNANCHOR = true
  109. local ENERGYSOUND = 1417051162
  110. local BEAMSOUND = 1417056781
  111. local EXPLOSIONSOUND = 1417056081
  112. local BOLTSOUNDS = {168586621,168586586,178452241}
  113. --//=================================\\
  114. --\\=================================//
  115.  
  116. local asd = Instance.new("ParticleEmitter")
  117. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  118. asd.LightEmission = .1
  119. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  120. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  121. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  122. asd.Transparency = bbb
  123. asd.Size = aaa
  124. asd.ZOffset = .9
  125. asd.Acceleration = Vector3.new(0, -15, 0)
  126. asd.LockedToPart = false
  127. asd.EmissionDirection = "Back"
  128. asd.Lifetime = NumberRange.new(1, 2)
  129. asd.Rotation = NumberRange.new(-100, 100)
  130. asd.RotSpeed = NumberRange.new(-100, 100)
  131. asd.Speed = NumberRange.new(10)
  132. asd.Enabled = false
  133. asd.VelocitySpread = 999
  134.  
  135. function getbloody(victim,amount)
  136. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  137. PART.CFrame = victim.CFrame
  138. local HITPLAYERSOUNDS = {"356551938","264486467"}
  139. Debris:AddItem(PART,5)
  140. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  141. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  142. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  143. local prtcl = asd:Clone()
  144. prtcl.Parent = PART
  145. prtcl:Emit(amount*10)
  146. end
  147.  
  148. --//=================================\\
  149. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  150. --\\=================================//
  151.  
  152. ArtificialHB = Instance.new("BindableEvent", script)
  153. ArtificialHB.Name = "ArtificialHB"
  154.  
  155. script:WaitForChild("ArtificialHB")
  156.  
  157. frame = Frame_Speed
  158. tf = 0
  159. allowframeloss = false
  160. tossremainder = false
  161. lastframe = tick()
  162. script.ArtificialHB:Fire()
  163.  
  164. game:GetService("RunService").Heartbeat:connect(function(s, p)
  165. tf = tf + s
  166. if tf >= frame then
  167. if allowframeloss then
  168. script.ArtificialHB:Fire()
  169. lastframe = tick()
  170. else
  171. for i = 1, math.floor(tf / frame) do
  172. script.ArtificialHB:Fire()
  173. end
  174. lastframe = tick()
  175. end
  176. if tossremainder then
  177. tf = 0
  178. else
  179. tf = tf - frame * math.floor(tf / frame)
  180. end
  181. end
  182. end)
  183.  
  184. --//=================================\\
  185. --\\=================================//
  186. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  187. ff.Visible = false
  188. Humanoid.Name = "God Mode"
  189.  
  190. local l = game.Lighting
  191. local sky = Instance.new("Sky",l)
  192. l.TimeOfDay = "00:00:00"
  193. l.Brightness = 1
  194. l.Ambient = Color3.new(0.25, 0.5, 0.75)
  195. ---
  196.  
  197.  
  198.  
  199. --//=================================\\
  200. --|| SOME FUNCTIONS
  201. --\\=================================//
  202.  
  203. function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  204. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  205. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  206. wave.CFrame = CFRAME
  207. coroutine.resume(coroutine.create(function(PART)
  208. for i = 1, WAIT do
  209. Swait()
  210. mesh.Scale = mesh.Scale + GROW
  211. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  212. if DOESROT == true then
  213. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  214. end
  215. wave.Transparency = wave.Transparency + 0.5 / WAIT
  216. if wave.Transparency > 0.99 then
  217. wave:remove()
  218. end
  219. end
  220. end))
  221. end
  222. function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  223. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  224. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
  225. wave.CFrame = CFRAME
  226. coroutine.resume(coroutine.create(function(PART)
  227. for i = 1, WAIT do
  228. Swait()
  229. mesh.Scale = mesh.Scale + GROW
  230. if DOESROT == true then
  231. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  232. end
  233. wave.Transparency = wave.Transparency + 0.5 / WAIT
  234. if wave.Transparency > 0.99 then
  235. wave:remove()
  236. end
  237. end
  238. end))
  239. end
  240. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  241. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  242. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
  243. wave.CFrame = CFRAME
  244. coroutine.resume(coroutine.create(function(PART)
  245. for i = 1, WAIT do
  246. Swait()
  247. mesh.Scale = mesh.Scale + GROW
  248. wave.Transparency = wave.Transparency + 1 / WAIT
  249. if wave.Transparency > 0.99 then
  250. wave:remove()
  251. end
  252. end
  253. end))
  254. end
  255. function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
  256. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  257. local mesh
  258. if KIND == "Base" then
  259. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
  260. elseif KIND == "Thin" then
  261. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  262. elseif KIND == "Round" then
  263. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  264. end
  265. wave.CFrame = CFRAME
  266. coroutine.resume(coroutine.create(function(PART)
  267. for i = 1, WAIT do
  268. Swait()
  269. mesh.Scale = mesh.Scale + GROW / 10
  270. wave.Transparency = wave.Transparency + 0.5 / WAIT
  271. if wave.Transparency > 0.99 then
  272. wave:remove()
  273. end
  274. end
  275. end))
  276. end
  277. function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
  278. for _, c in pairs(PARENT:GetChildren()) do
  279. if c.ClassName == "Model" then
  280. if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  281. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  282. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  283. if DIST > (TORSO.Position - FROM).Magnitude then
  284. table.insert(TABLE, c)
  285. end
  286. AddChildrenToTable(FROM, c, DIST, TABLE)
  287. elseif c.ClassName == "Folder" then
  288. AddChildrenToTable(FROM, c, DIST, TABLE)
  289. end
  290. end
  291. end
  292. end
  293. function MakeForm(PART, TYPE)
  294. if TYPE == "Cyl" then
  295. local MSH = IT("CylinderMesh", PART)
  296. elseif TYPE == "Ball" then
  297. local MSH = IT("SpecialMesh", PART)
  298. MSH.MeshType = "Sphere"
  299. elseif TYPE == "Wedge" then
  300. local MSH = IT("SpecialMesh", PART)
  301. MSH.MeshType = "Wedge"
  302. end
  303. end
  304. function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine)
  305. if DoesCourontine == false then
  306. local Direction = CF(Part.Position, ToLocation)
  307. local Distance = (Part.Position - ToLocation).magnitude
  308. for i = 1, AmountOfTime do
  309. Swait()
  310. Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
  311. Direction = Part.CFrame
  312. end
  313. Part:remove()
  314. elseif DoesCourontine == true then
  315. coroutine.resume(coroutine.create(function()
  316. local Direction = CF(Part.Position, ToLocation)
  317. local Distance = (Part.Position - ToLocation).magnitude
  318. for i = 1, AmountOfTime do
  319. Swait()
  320. Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
  321. Direction = Part.CFrame
  322. end
  323. Part:remove()
  324. end))
  325. end
  326. end
  327. function R_RANDOM(CFRAME,DIST)
  328. return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST)
  329. end
  330. --------------------------------------------------------------------
  331. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  332. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  333. end
  334.  
  335. function PositiveAngle(NUMBER)
  336. if NUMBER >= 0 then
  337. NUMBER = 0
  338. end
  339. return NUMBER
  340. end
  341.  
  342. function NegativeAngle(NUMBER)
  343. if NUMBER <= 0 then
  344. NUMBER = 0
  345. end
  346. return NUMBER
  347. end
  348.  
  349. function Swait(NUMBER)
  350. if NUMBER == 0 or NUMBER == nil then
  351. ArtificialHB.Event:wait()
  352. else
  353. for i = 1, NUMBER do
  354. ArtificialHB.Event:wait()
  355. end
  356. end
  357. end
  358.  
  359. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  360. local NEWMESH = IT(MESH)
  361. if MESH == "SpecialMesh" then
  362. NEWMESH.MeshType = MESHTYPE
  363. if MESHID ~= "nil" and MESHID ~= "" then
  364. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  365. end
  366. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  367. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  368. end
  369. end
  370. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  371. NEWMESH.Scale = SCALE
  372. NEWMESH.Parent = PARENT
  373. return NEWMESH
  374. end
  375.  
  376. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  377. local NEWPART = IT("Part")
  378. NEWPART.formFactor = FORMFACTOR
  379. NEWPART.Reflectance = REFLECTANCE
  380. NEWPART.Transparency = TRANSPARENCY
  381. NEWPART.CanCollide = false
  382. NEWPART.Locked = true
  383. NEWPART.Anchored = true
  384. if ANCHOR == false then
  385. NEWPART.Anchored = false
  386. end
  387. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  388. NEWPART.Name = NAME
  389. NEWPART.Size = SIZE
  390. NEWPART.Position = Torso.Position
  391. NEWPART.Material = MATERIAL
  392. NEWPART:BreakJoints()
  393. NEWPART.Parent = PARENT
  394. return NEWPART
  395. end
  396.  
  397. local function weldBetween(a, b)
  398. local weldd = Instance.new("ManualWeld")
  399. weldd.Part0 = a
  400. weldd.Part1 = b
  401. weldd.C0 = CFrame.new()
  402. weldd.C1 = b.CFrame:inverse() * a.CFrame
  403. weldd.Parent = a
  404. return weldd
  405. end
  406.  
  407.  
  408. function QuaternionFromCFrame(cf)
  409. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  410. local trace = m00 + m11 + m22
  411. if trace > 0 then
  412. local s = math.sqrt(1 + trace)
  413. local recip = 0.5 / s
  414. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  415. else
  416. local i = 0
  417. if m11 > m00 then
  418. i = 1
  419. end
  420. if m22 > (i == 0 and m00 or m11) then
  421. i = 2
  422. end
  423. if i == 0 then
  424. local s = math.sqrt(m00 - m11 - m22 + 1)
  425. local recip = 0.5 / s
  426. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  427. elseif i == 1 then
  428. local s = math.sqrt(m11 - m22 - m00 + 1)
  429. local recip = 0.5 / s
  430. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  431. elseif i == 2 then
  432. local s = math.sqrt(m22 - m00 - m11 + 1)
  433. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  434. end
  435. end
  436. end
  437.  
  438. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  439. local xs, ys, zs = x + x, y + y, z + z
  440. local wx, wy, wz = w * xs, w * ys, w * zs
  441. local xx = x * xs
  442. local xy = x * ys
  443. local xz = x * zs
  444. local yy = y * ys
  445. local yz = y * zs
  446. local zz = z * zs
  447. 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))
  448. end
  449.  
  450. function QuaternionSlerp(a, b, t)
  451. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  452. local startInterp, finishInterp;
  453. if cosTheta >= 0.0001 then
  454. if (1 - cosTheta) > 0.0001 then
  455. local theta = ACOS(cosTheta)
  456. local invSinTheta = 1 / SIN(theta)
  457. startInterp = SIN((1 - t) * theta) * invSinTheta
  458. finishInterp = SIN(t * theta) * invSinTheta
  459. else
  460. startInterp = 1 - t
  461. finishInterp = t
  462. end
  463. else
  464. if (1 + cosTheta) > 0.0001 then
  465. local theta = ACOS(-cosTheta)
  466. local invSinTheta = 1 / SIN(theta)
  467. startInterp = SIN((t - 1) * theta) * invSinTheta
  468. finishInterp = SIN(t * theta) * invSinTheta
  469. else
  470. startInterp = t - 1
  471. finishInterp = t
  472. end
  473. end
  474. 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
  475. end
  476.  
  477. function Clerp(a, b, t)
  478. local qa = {QuaternionFromCFrame(a)}
  479. local qb = {QuaternionFromCFrame(b)}
  480. local ax, ay, az = a.x, a.y, a.z
  481. local bx, by, bz = b.x, b.y, b.z
  482. local _t = 1 - t
  483. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  484. end
  485.  
  486. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  487. local frame = IT("Frame")
  488. frame.BackgroundTransparency = TRANSPARENCY
  489. frame.BorderSizePixel = BORDERSIZEPIXEL
  490. frame.Position = POSITION
  491. frame.Size = SIZE
  492. frame.BackgroundColor3 = COLOR
  493. frame.BorderColor3 = BORDERCOLOR
  494. frame.Name = NAME
  495. frame.Parent = PARENT
  496. return frame
  497. end
  498.  
  499. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  500. local label = IT("TextLabel")
  501. label.BackgroundTransparency = 1
  502. label.Size = UD2(1, 0, 1, 0)
  503. label.Position = UD2(0, 0, 0, 0)
  504. label.TextColor3 = TEXTCOLOR
  505. label.TextStrokeTransparency = STROKETRANSPARENCY
  506. label.TextTransparency = TRANSPARENCY
  507. label.FontSize = TEXTFONTSIZE
  508. label.Font = TEXTFONT
  509. label.BorderSizePixel = BORDERSIZEPIXEL
  510. label.TextScaled = false
  511. label.Text = TEXT
  512. label.Name = NAME
  513. label.Parent = PARENT
  514. return label
  515. end
  516.  
  517. function NoOutlines(PART)
  518. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  519. end
  520.  
  521. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  522. local NEWWELD = IT(TYPE)
  523. NEWWELD.Part0 = PART0
  524. NEWWELD.Part1 = PART1
  525. NEWWELD.C0 = C0
  526. NEWWELD.C1 = C1
  527. NEWWELD.Parent = PARENT
  528. return NEWWELD
  529. end
  530.  
  531. local S = IT("Sound")
  532. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  533. local NEWSOUND = nil
  534. coroutine.resume(coroutine.create(function()
  535. NEWSOUND = S:Clone()
  536. NEWSOUND.Parent = PARENT
  537. NEWSOUND.Volume = VOLUME
  538. NEWSOUND.Pitch = PITCH
  539. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  540. NEWSOUND:play()
  541. if DOESLOOP == true then
  542. NEWSOUND.Looped = true
  543. else
  544. repeat wait(1) until NEWSOUND.Playing == false
  545. NEWSOUND:remove()
  546. end
  547. end))
  548. return NEWSOUND
  549. end
  550.  
  551. function CFrameFromTopBack(at, top, back)
  552. local right = top:Cross(back)
  553. 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)
  554. end
  555.  
  556. --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})
  557. function WACKYEFFECT(Table)
  558. local TYPE = (Table.EffectType or "Sphere")
  559. local SIZE = (Table.Size or VT(1,1,1))
  560. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  561. local TRANSPARENCY = (Table.Transparency or 0)
  562. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  563. local CFRAME = (Table.CFrame or Torso.CFrame)
  564. local MOVEDIRECTION = (Table.MoveToPos or nil)
  565. local ROTATION1 = (Table.RotationX or 0)
  566. local ROTATION2 = (Table.RotationY or 0)
  567. local ROTATION3 = (Table.RotationZ or 0)
  568. local MATERIAL = (Table.Material or "Neon")
  569. local COLOR = (Table.Color or C3(1,1,1))
  570. local TIME = (Table.Time or 45)
  571. local SOUNDID = (Table.SoundID or nil)
  572. local SOUNDPITCH = (Table.SoundPitch or nil)
  573. local SOUNDVOLUME = (Table.SoundVolume or nil)
  574. coroutine.resume(coroutine.create(function()
  575. local PLAYSSOUND = false
  576. local SOUND = nil
  577. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  578. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  579. PLAYSSOUND = true
  580. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  581. end
  582. EFFECT.Color = COLOR
  583. local MSH = nil
  584. if TYPE == "Sphere" then
  585. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  586. elseif TYPE == "Block" then
  587. MSH = IT("BlockMesh",EFFECT)
  588. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  589. elseif TYPE == "Wave" then
  590. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  591. elseif TYPE == "Ring" then
  592. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  593. elseif TYPE == "Slash" then
  594. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  595. elseif TYPE == "Round Slash" then
  596. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  597. elseif TYPE == "Swirl" then
  598. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  599. elseif TYPE == "Skull" then
  600. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  601. elseif TYPE == "Crystal" then
  602. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  603. end
  604. if MSH ~= nil then
  605. local MOVESPEED = nil
  606. if MOVEDIRECTION ~= nil then
  607. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  608. end
  609. local GROWTH = SIZE - ENDSIZE
  610. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  611. if TYPE == "Block" then
  612. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  613. else
  614. EFFECT.CFrame = CFRAME
  615. end
  616. for LOOP = 1, TIME+1 do
  617. Swait()
  618. MSH.Scale = MSH.Scale - GROWTH/TIME
  619. if TYPE == "Wave" then
  620. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  621. end
  622. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  623. if TYPE == "Block" then
  624. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  625. else
  626. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  627. end
  628. if MOVEDIRECTION ~= nil then
  629. local ORI = EFFECT.Orientation
  630. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  631. EFFECT.Orientation = ORI
  632. end
  633. end
  634. if PLAYSSOUND == false then
  635. EFFECT:remove()
  636. else
  637. repeat Swait() until SOUND.Playing == false
  638. EFFECT:remove()
  639. end
  640. else
  641. if PLAYSSOUND == false then
  642. EFFECT:remove()
  643. else
  644. repeat Swait() until SOUND.Playing == false
  645. EFFECT:remove()
  646. end
  647. end
  648. end))
  649. end
  650. ---------------------------------
  651. function Ragdoll(Character2, CharTorso, Headless, Velocity)
  652. local svch = Character2
  653. Character2:BreakJoints()
  654. local hum = Character2:findFirstChild("Humanoid")
  655. local q = Character2:GetChildren()
  656. local CLONE = IT("Model", Effects)
  657. for i = 1, #q do
  658. if q[i].ClassName == "Accessory" and Headless == true then
  659. q[i]:remove()
  660. elseif q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then
  661. q[i].Parent = CLONE
  662. elseif q[i].ClassName ~= "Humanoid" then
  663. q[i]:remove()
  664. end
  665. end
  666. local chrclone = CLONE
  667. local ch = chrclone:GetChildren()
  668. local i
  669. for i = 1, #ch do
  670. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  671. ch[i]:remove()
  672. end
  673. end
  674. local function Scan(ch)
  675. local e
  676. for e = 1, #ch do
  677. Scan(ch[e]:GetChildren())
  678. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  679. ch[e]:remove()
  680. end
  681. end
  682. end
  683. Character2:remove()
  684. local NEWHUM = IT("Humanoid")
  685. NEWHUM.Name = "Corpse"
  686. NEWHUM.Health = 0
  687. NEWHUM.MaxHealth = 0
  688. NEWHUM.PlatformStand = true
  689. NEWHUM.Parent = CLONE
  690. NEWHUM.DisplayDistanceType = "None"
  691. Scan(chrclone:GetChildren())
  692. local ch = Character2:GetChildren()
  693. local i
  694. for i = 1, #ch do
  695. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  696. ch[i]:remove()
  697. end
  698. end
  699. local ch = Character2:GetChildren()
  700. local i
  701. for i = 1, #ch do
  702. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  703. ch[i]:remove()
  704. end
  705. end
  706. Character2 = chrclone
  707. local Torso2 = Character2.Torso
  708. local movevector = Vector3.new()
  709. if Torso2 then
  710. movevector = CFrame.new(CharTorso.Position, Torso2.Position).lookVector
  711. local Head = Character2:FindFirstChild("Head")
  712. if Head then
  713. local Neck = Instance.new("Weld")
  714. Neck.Name = "Neck"
  715. Neck.Part0 = Torso2
  716. Neck.Part1 = Head
  717. Neck.C0 = CFrame.new(0, 1.5, 0)
  718. Neck.C1 = CFrame.new()
  719. Neck.Parent = Torso2
  720. if Headless == true then
  721. Head.Transparency = 1
  722. Head:ClearAllChildren()
  723. end
  724. end
  725. local Limb = Character2:FindFirstChild("Right Arm")
  726. if Limb then
  727. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  728. local Joint = Instance.new("Glue")
  729. Joint.Name = "RightShoulder"
  730. Joint.Part0 = Torso2
  731. Joint.Part1 = Limb
  732. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  733. Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  734. Joint.Parent = Torso2
  735. local B = Instance.new("Part")
  736. B.TopSurface = 0
  737. B.BottomSurface = 0
  738. B.formFactor = "Symmetric"
  739. B.Size = Vector3.new(1, 1, 1)
  740. B.Transparency = 1
  741. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  742. B.Parent = Character2
  743. local W = Instance.new("Weld")
  744. W.Part0 = Limb
  745. W.Part1 = B
  746. W.C0 = CFrame.new(0, -0.5, 0)
  747. W.Parent = Limb
  748. end
  749. local Limb = Character2:FindFirstChild("Left Arm")
  750. if Limb then
  751. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  752. local Joint = Instance.new("Glue")
  753. Joint.Name = "LeftShoulder"
  754. Joint.Part0 = Torso2
  755. Joint.Part1 = Limb
  756. Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  757. Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  758. Joint.Parent = Torso2
  759. local B = Instance.new("Part")
  760. B.TopSurface = 0
  761. B.BottomSurface = 0
  762. B.formFactor = "Symmetric"
  763. B.Size = Vector3.new(1, 1, 1)
  764. B.Transparency = 1
  765. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  766. B.Parent = Character2
  767. local W = Instance.new("Weld")
  768. W.Part0 = Limb
  769. W.Part1 = B
  770. W.C0 = CFrame.new(0, -0.5, 0)
  771. W.Parent = Limb
  772. end
  773. local Limb = Character2:FindFirstChild("Right Leg")
  774. if Limb then
  775. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  776. local Joint = Instance.new("Glue")
  777. Joint.Name = "RightHip"
  778. Joint.Part0 = Torso2
  779. Joint.Part1 = Limb
  780. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  781. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  782. Joint.Parent = Torso2
  783. local B = Instance.new("Part")
  784. B.TopSurface = 0
  785. B.BottomSurface = 0
  786. B.formFactor = "Symmetric"
  787. B.Size = Vector3.new(1, 1, 1)
  788. B.Transparency = 1
  789. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  790. B.Parent = Character2
  791. local W = Instance.new("Weld")
  792. W.Part0 = Limb
  793. W.Part1 = B
  794. W.C0 = CFrame.new(0, -0.5, 0)
  795. W.Parent = Limb
  796. end
  797. local Limb = Character2:FindFirstChild("Left Leg")
  798. if Limb then
  799. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  800. local Joint = Instance.new("Glue")
  801. Joint.Name = "LeftHip"
  802. Joint.Part0 = Torso2
  803. Joint.Part1 = Limb
  804. Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  805. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  806. Joint.Parent = Torso2
  807. local B = Instance.new("Part")
  808. B.TopSurface = 0
  809. B.BottomSurface = 0
  810. B.formFactor = "Symmetric"
  811. B.Size = Vector3.new(1, 1, 1)
  812. B.Transparency = 1
  813. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  814. B.Parent = Character2
  815. local W = Instance.new("Weld")
  816. W.Part0 = Limb
  817. W.Part1 = B
  818. W.C0 = CFrame.new(0, -0.5, 0)
  819. W.Parent = Limb
  820. end
  821. local Bar = Instance.new("Part")
  822. Bar.TopSurface = 0
  823. Bar.BottomSurface = 0
  824. Bar.formFactor = "Symmetric"
  825. Bar.Size = Vector3.new(1, 1, 1)
  826. Bar.Transparency = 1
  827. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  828. Bar.Parent = Character2
  829. local Weld = Instance.new("Weld")
  830. Weld.Part0 = Torso2
  831. Weld.Part1 = Bar
  832. Weld.C0 = CFrame.new(0, 0.5, 0)
  833. Weld.Parent = Torso2
  834. end
  835. Character2.Parent = Weapon
  836. if movevector ~= Vector3.new() then
  837. for i = 1, 10 do
  838. Torso2.Velocity = movevector * Velocity
  839. end
  840. end
  841. Character2.Name = "Corpse"
  842. return Character2, Torso2
  843. end
  844. function PuddleOfBlood(Position, MaxDrop, Model, MaxSize)
  845. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, CF(Position, Position + VT(0, -1, 0)).lookVector, MaxDrop, Model)
  846. if HITFLOOR ~= nil and HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  847. if HITFLOOR.Name == "BloodPuddle" then
  848. local DIST = (Position - HITFLOOR.Position).Magnitude
  849. if HITFLOOR.Size.Z <= 5 and MaxSize > HITFLOOR.Size.Z or HITFLOOR.Size.Z > 5 and MaxSize > HITFLOOR.Size.Z and DIST < HITFLOOR.Size.Z / 3 then
  850. HITFLOOR.Size = HITFLOOR.Size + VT(0.1, 0, 0.1)
  851. end
  852. elseif HITFLOOR.Anchored == true then
  853. do
  854. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2, 0, 2))
  855. BLOOD.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))
  856. MakeForm(BLOOD, "Cyl")
  857. coroutine.resume(coroutine.create(function()
  858. Swait(75)
  859. while true do
  860. Swait()
  861. BLOOD.Size = BLOOD.Size - VT(0.02, 0, 0.02)
  862. if BLOOD.Size.Z < 0.051 then
  863. BLOOD:remove()
  864. break
  865. end
  866. end
  867. end))
  868. end
  869. end
  870. end
  871. end
  872. function SprayBlood(POSITION, DIRECTION, BloodSize)
  873. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(1, 1, 1), false)
  874. BLOOD.CFrame = CF(POSITION)
  875. MakeForm(BLOOD, "Ball")
  876. local bv = Instance.new("BodyVelocity", BLOOD)
  877. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  878. bv.velocity = CF(POSITION, DIRECTION + VT(MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30)).lookVector * 25
  879. bv.Name = "MOVE"
  880. Debris:AddItem(bv, 0.05)
  881. coroutine.resume(coroutine.create(function()
  882. local HASTOUCHEDGROUND = false
  883. local HIT = BLOOD.Touched:Connect(function(hit)
  884. if hit.Anchored == true then
  885. HASTOUCHEDGROUND = true
  886. PuddleOfBlood(BLOOD.Position + VT(0, 1, 0), 2, BLOOD, BloodSize)
  887. end
  888. end)
  889. wait(5)
  890. if HASTOUCHEDGROUND == false then
  891. BLOOD:remove()
  892. end
  893. end))
  894. end
  895. function ApplyDamage(Humanoid, Damage, TorsoPart)
  896. local defence = Instance.new("BoolValue", Humanoid.Parent)
  897. defence.Name = "HitBy" .. Player.Name
  898. game:GetService("Debris"):AddItem(defence, 0.001)
  899. Damage = Damage * DAMAGEMULTIPLIER
  900. if Humanoid.Health ~= 0 then
  901. local CritChance = MRANDOM(1, 100)
  902. if Damage > Humanoid.Health then
  903. Damage = math.ceil(Humanoid.Health)
  904. if Damage == 0 then
  905. Damage = 0.1
  906. end
  907. end
  908. Humanoid.Health = Humanoid.Health - Damage
  909. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  910. end
  911. end
  912. ---------------------------------
  913. --Lightning({Material = "Neon", FadeIn = false, Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 15, Thicken = false})
  914. function Lightning(Table)
  915. local Color = Table.Color or C3(1,1,1)
  916. local StartPos = Table.Start or Torso.Position
  917. local EndPos = Table.End or Mouse.Hit.p
  918. local SegmentLength = Table.SegmentL or 2
  919. local Thickness = Table.Thickness or 0.1
  920. local Dissapear = Table.DoesFade or false
  921. local Parent = Table.Ignore or Character
  922. local MaxDist = Table.MaxDist or 400
  923. local Branches = Table.Branches or false
  924. local Thicken = Table.Thicken or false
  925. local FadeTime = Table.FadeTime or 15
  926. local FadeIn = Table.FadeIn or false
  927. local Material = Table.Material or "Neon"
  928. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  929. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/((SegmentLength/SegmentLength)/1.5))
  930. local LIGHTNINGMODEL = IT("Model",Effects)
  931. LIGHTNINGMODEL.Name = "Lightning"
  932. local LastBolt = nil
  933. for E = 1, DISTANCE do
  934. local ExtraSize = 0
  935. if Thicken == true then
  936. ExtraSize = (DISTANCE-E)/15
  937. end
  938. local TRANSPARENCY = 0
  939. if FadeIn == true then
  940. TRANSPARENCY = 1-(E/(DISTANCE/1.5))
  941. if TRANSPARENCY < 0 then
  942. TRANSPARENCY = 0
  943. end
  944. end
  945. local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  946. PART.Color = Color
  947. MakeForm(PART,"Cyl")
  948. if LastBolt == nil then
  949. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  950. else
  951. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,DISTANCE-E).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  952. end
  953. LastBolt = PART
  954. if Branches == true and E < (DISTANCE-5) then
  955. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  956. if CHOICE == 1 then
  957. local LASTBRANCH = nil
  958. for i = 1, MRANDOM(2,5) do
  959. local ExtraSize2 = 0
  960. if Thicken == true then
  961. ExtraSize = ((DISTANCE-E)/25)/i
  962. end
  963. local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  964. PART.Color = Color
  965. MakeForm(PART,"Cyl")
  966. if LASTBRANCH == nil then
  967. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  968. else
  969. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  970. end
  971. LASTBRANCH = PART
  972. end
  973. end
  974. end
  975. end
  976. if Dissapear == true then
  977. coroutine.resume(coroutine.create(function()
  978. for i = 1, FadeTime do
  979. Swait()
  980. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  981. if c.ClassName == "Part" then
  982. c.Transparency = c.Transparency + (i/FadeTime)/10
  983. end
  984. end
  985. end
  986. LIGHTNINGMODEL:remove()
  987. end))
  988. elseif Dissapear == false then
  989. Debris:AddItem(LIGHTNINGMODEL,0.1)
  990. end
  991. return {Hit = HIT,Pos = HITPOS,End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  992. end
  993. function MakeForm(PART,TYPE)
  994. if TYPE == "Cyl" then
  995. local MSH = IT("CylinderMesh",PART)
  996. elseif TYPE == "Ball" then
  997. local MSH = IT("SpecialMesh",PART)
  998. MSH.MeshType = "Sphere"
  999. elseif TYPE == "Wedge" then
  1000. local MSH = IT("SpecialMesh",PART)
  1001. MSH.MeshType = "Wedge"
  1002. end
  1003. end
  1004. function MagicBlock(size,waitt,part,offset,color)
  1005. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size))
  1006. local mesh = IT("BlockMesh",wave)
  1007. wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0))
  1008. coroutine.resume(coroutine.create(function(PART)
  1009. for i = 1, waitt do
  1010. Swait()
  1011. mesh.Scale = mesh.Scale + VT(size/15,size/15,size/15)
  1012. wave.CFrame = CF(wave.Position) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1013. wave.Transparency = wave.Transparency + (1/waitt)
  1014. if wave.Transparency > 0.99 then
  1015. wave:remove()
  1016. end
  1017. end
  1018. end))
  1019. end
  1020. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  1021. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1022. local mesh = nil
  1023. if KIND == "Base" then
  1024. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  1025. elseif KIND == "Thin" then
  1026. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  1027. elseif KIND == "Round" then
  1028. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  1029. end
  1030. wave.CFrame = CFRAME
  1031. coroutine.resume(coroutine.create(function(PART)
  1032. for i = 1, WAIT do
  1033. Swait()
  1034. mesh.Scale = mesh.Scale + GROW/10
  1035. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1036. if wave.Transparency > 0.99 then
  1037. wave:remove()
  1038. end
  1039. end
  1040. end))
  1041. end
  1042. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1043. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1044. local mesh = IT("SpecialMesh",wave)
  1045. mesh.MeshType = "Sphere"
  1046. mesh.Scale = SIZE
  1047. mesh.Offset = VT(0,0,0)
  1048. wave.CFrame = CFRAME
  1049. coroutine.resume(coroutine.create(function(PART)
  1050. for i = 1, WAIT do
  1051. Swait()
  1052. mesh.Scale = mesh.Scale + GROW
  1053. wave.Transparency = wave.Transparency + (1/WAIT)
  1054. if wave.Transparency > 0.99 then
  1055. wave:remove()
  1056. end
  1057. end
  1058. end))
  1059. end
  1060.  
  1061. Debris = game:GetService("Debris")
  1062.  
  1063. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1064. local DIRECTION = CF(StartPos,EndPos).lookVector
  1065. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1066. end
  1067.  
  1068. function turnto(position)
  1069. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1070. end
  1071. local Particle = IT("ParticleEmitter",nil)
  1072. Particle.Enabled = false
  1073. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  1074. Particle.LightEmission = 0.5
  1075. Particle.Rate = 150
  1076. Particle.ZOffset = 1
  1077. Particle.Rotation = NumberRange.new(-180, 180)
  1078. Particle.RotSpeed = NumberRange.new(-180, 180)
  1079. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1080. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  1081. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1082. function ParticleEmitter(Table)
  1083. local PRTCL = Particle:Clone()
  1084. local Speed = Table.Speed or 5
  1085. local Drag = Table.Drag or 0
  1086. local Size1 = Table.Size1 or 1
  1087. local Size2 = Table.Size2 or 5
  1088. local Lifetime1 = Table.Lifetime1 or 1
  1089. local Lifetime2 = Table.Lifetime2 or 1.5
  1090. local Parent = Table.Parent or Torso
  1091. local Emit = Table.Emit or 100
  1092. local Offset = Table.Offset or 360
  1093. local Acel = Table.Acel or VT(0,0,0)
  1094. local Enabled = Table.Enabled or false
  1095. PRTCL.Parent = Parent
  1096. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1097. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1098. PRTCL.Speed = NumberRange.new(Speed)
  1099. PRTCL.VelocitySpread = Offset
  1100. PRTCL.Drag = Drag
  1101. PRTCL.Acceleration = Acel
  1102. if Enabled == false then
  1103. PRTCL:Emit(Emit)
  1104. Debris:AddItem(PRTCL,Lifetime2)
  1105. else
  1106. PRTCL.Enabled = true
  1107. end
  1108. return PRTCL
  1109. end
  1110. --//=================================\\
  1111. --|| WEAPON CREATION
  1112. --\\=================================//
  1113.  
  1114. --[[
  1115. Thanks for using Build-To-Lua by jarredbcv.
  1116. ]]--
  1117. local BODY = {}
  1118.  
  1119. for _, c in pairs(Character:GetDescendants()) do
  1120. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1121. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1122. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1123. end
  1124. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1125. elseif c:IsA("JointInstance") then
  1126. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1127. end
  1128. end
  1129. New = function(Object, Parent, Name, Data)
  1130. local Object = Instance.new(Object)
  1131. for Index, Value in pairs(Data or {}) do
  1132. Object[Index] = Value
  1133. end
  1134. Object.Parent = Parent
  1135. Object.Name = Name
  1136. return Object
  1137. end
  1138. for i = 1, 35 do
  1139. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  1140. FACE.Color = C3(0,0,0)
  1141. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1142. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  1143. end
  1144.  
  1145. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
  1146. MakeForm(Eye,"Ball")
  1147. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  1148. Humanoid.Died:connect(function()
  1149. ATTACK = true
  1150. end)
  1151.  
  1152. for _, c in pairs(Weapon:GetChildren()) do
  1153. if c.ClassName == "Part" then
  1154. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1155. local AURA = c:Clone()
  1156. AURA:BreakJoints()
  1157. AURA.Parent = c
  1158. AURA.CFrame = c.CFrame
  1159. AURA.Size = AURA.Size*1.001
  1160. AURA.Transparency = 0.8
  1161. AURA.BrickColor = BRICKC"Royal purple"
  1162. AURA.Material = "Neon"
  1163. weldBetween(c,AURA)
  1164. end
  1165. end
  1166. local BODY = {}
  1167. for _, c in pairs(Character:GetDescendants()) do
  1168. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1169. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1170. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1171. end
  1172. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1173. elseif c:IsA("JointInstance") then
  1174. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1175. end
  1176. end
  1177. for e = 1, #BODY do
  1178. if BODY[e] ~= nil then
  1179. local STUFF = BODY[e]
  1180. local PART = STUFF[1]
  1181. local PARENT = STUFF[2]
  1182. local MATERIAL = STUFF[3]
  1183. local COLOR = STUFF[4]
  1184. local TRANSPARENCY = STUFF[5]
  1185. if PART.ClassName == "Part" and PART ~= RootPart then
  1186. PART.Material = MATERIAL
  1187. PART.Color = COLOR
  1188. PART.Transparency = TRANSPARENCY
  1189. end
  1190. PART.AncestryChanged:Connect(function()
  1191. PART.Parent = PARENT
  1192. end)
  1193. end
  1194. end
  1195. function refit()
  1196. Character.Parent = workspace
  1197. for e = 1, #BODY do
  1198. if BODY[e] ~= nil then
  1199. local STUFF = BODY[e]
  1200. local PART = STUFF[1]
  1201. local PARENT = STUFF[2]
  1202. local MATERIAL = STUFF[3]
  1203. local COLOR = STUFF[4]
  1204. local TRANSPARENCY = STUFF[5]
  1205. if PART:IsA("BasePart") and PART ~= RootPart then
  1206. PART.Material = MATERIAL
  1207. PART.Color = COLOR
  1208. PART.Transparency = TRANSPARENCY+EXTRATRANS
  1209. end
  1210. if PART.Parent ~= PARENT then
  1211. Humanoid:remove()
  1212. PART.Parent = PARENT
  1213. Humanoid = IT("Humanoid",Character)
  1214. end
  1215. end
  1216. end
  1217. end
  1218.  
  1219. Humanoid.Died:connect(function()
  1220. refit()
  1221. end)
  1222. local SKILLTEXTCOLOR = BRICKC"Really red".Color
  1223. local SKILLTEXTCOLOR2 = BRICKC"Light gray".Color
  1224. local SKILLFONT = "Bodoni"
  1225. local SKILLTEXTSIZE = 7
  1226.  
  1227. Weapon.Parent = Character
  1228.  
  1229. Humanoid.Died:connect(function()
  1230.  
  1231. ATTACK = true
  1232. end)
  1233.  
  1234. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1235. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1236. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1237.  
  1238. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Blood Strike", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  1239. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Hell Gate", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  1240. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Corrupt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
  1241.  
  1242. local DECAL = IT("Decal")
  1243. function MagicRing()
  1244. local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0,0,0),true)
  1245. local MESH = IT("BlockMesh",RING)
  1246. local BOTTOMTEXTURE = DECAL:Clone()
  1247. BOTTOMTEXTURE.Parent = RING
  1248. BOTTOMTEXTURE.Face = "Bottom"
  1249. BOTTOMTEXTURE.Name = "BottomTexture"
  1250. local TOPTEXTURE = DECAL:Clone()
  1251. TOPTEXTURE.Parent = RING
  1252. TOPTEXTURE.Face = "Top"
  1253. TOPTEXTURE.Name = "TopTexture"
  1254. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1208118228"
  1255. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1208118228"
  1256. BOTTOMTEXTURE.Color3 = C3(0,0,0)
  1257. TOPTEXTURE.Color3 = C3(0,0,0)
  1258. return RING,MESH,TOPTEXTURE,BOTTOMTEXTURE
  1259. end
  1260.  
  1261. function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT)
  1262. coroutine.resume(coroutine.create(function()
  1263. local FADE = IT("Model",Effects)
  1264. if PARENT ~= nil then
  1265. FADE.Parent = PARENT
  1266. end
  1267. FADE.Name = "FadingEffect"
  1268. for _, c in pairs(Character:GetChildren()) do
  1269. if c.ClassName == "Part" then
  1270. c.CanCollide = false
  1271. local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Pearl"), c.Name, c.Size, true)
  1272. FADER.CFrame = c.CFrame
  1273. FADER.Color = COLOR
  1274. if FADER.Name == "Head" then
  1275. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
  1276. elseif FADER.Name == "HumanoidRootPart" then
  1277. FADE.PrimaryPart = FADER
  1278. FADER.Transparency = 1
  1279. end
  1280. end
  1281. end
  1282. local TRANS = 0.25/TIMER
  1283. local DIST = nil
  1284. if MOVEDIRECTION ~= nil then
  1285. DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude
  1286. end
  1287. for i = 1, TIMER do
  1288. Swait()
  1289. for _, c in pairs(FADE:GetChildren()) do
  1290. if c.ClassName == "Part" then
  1291. c.Transparency = c.Transparency + TRANS
  1292. end
  1293. end
  1294. if MOVEDIRECTION ~= nil then
  1295. local ORI = FADE.PrimaryPart.Orientation
  1296. FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z)))
  1297. end
  1298. end
  1299. FADE:remove()
  1300. end))
  1301. end
  1302. --//=================================\\
  1303. --|| GUIS AND MISC
  1304. --\\=================================//
  1305.  
  1306. local EYE = CreatePart(3, Character, "Neon", 0, 0, BRICKC("Really black"), "TheEye", VT(0.16,0.16,0.16), true)
  1307. MakeForm(EYE,"Ball")
  1308. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(-0.15, 0.2, -0.57) * ANGLES(RAD(0), RAD(15), RAD(0)) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1309.  
  1310.  
  1311. local SKILLTEXTCOLOR = C3(0,0,0)
  1312. local SKILLFONT = "Fantasy"
  1313. local SKILLTEXTSIZE = 4
  1314. local SKILLTEXTSIZE2 = 12
  1315.  
  1316. local ATTACKS = {"Shadow Cloak - C","Black Blast - V"}
  1317.  
  1318. for i = 1, #ATTACKS do
  1319. local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.74, 0, 0.97-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame")
  1320. local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKS[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Skill text")
  1321. SKILLTEXT.TextXAlignment = "Right"
  1322. SKILLTEXT.Rotation = i*3
  1323. end
  1324. --//=================================\\
  1325. --|| DAMAGE FUNCTIONS
  1326. --\\=================================//
  1327.  
  1328. function StatLabel(CFRAME, TEXT, COLOR)
  1329. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1330. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1331. local BODYGYRO = IT("BodyGyro", STATPART)
  1332. game:GetService("Debris"):AddItem(STATPART ,5)
  1333. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1334. BILLBOARDGUI.Adornee = STATPART
  1335. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1336. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1337. BILLBOARDGUI.AlwaysOnTop = false
  1338. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1339. TEXTLABEL.BackgroundTransparency = 1
  1340. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1341. TEXTLABEL.Text = TEXT
  1342. TEXTLABEL.Font = SKILLFONT
  1343. TEXTLABEL.FontSize="Size42"
  1344. TEXTLABEL.TextColor3 = COLOR
  1345. TEXTLABEL.TextStrokeTransparency = 0
  1346. TEXTLABEL.TextScaled = true
  1347. TEXTLABEL.TextWrapped = true
  1348. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1349. for i = 1, 50 do
  1350. Swait()
  1351. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  1352. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  1353. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1354. end
  1355. THEPART.Parent = nil
  1356. end),STATPART, TEXTLABEL)
  1357. end
  1358.  
  1359. --//=================================\\
  1360. --|| DAMAGING
  1361. --\\=================================//
  1362.  
  1363.  
  1364. function Kill(Char)
  1365. local NewCharacter = IT("Model",Effects)
  1366. NewCharacter.Name = "Ow im ded ;-;"
  1367. for _, c in pairs(Char:GetDescendants()) do
  1368. if c:IsA("BasePart") and c.Transparency == 0 then
  1369. if c.Parent == Char then
  1370. getbloody(c,5)
  1371. end
  1372. c:BreakJoints()
  1373. c.Material = "Glass"
  1374. c.Color = C3(0.5,0,0)
  1375. c.CanCollide = true
  1376. c.Transparency = 0.3
  1377. if c:FindFirstChildOfClass("SpecialMesh") then
  1378. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1379. end
  1380. if c.Name == "Head" then
  1381. c:ClearAllChildren()
  1382. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1383. end
  1384. if c.ClassName == "MeshPart" then
  1385. c.TextureID = ""
  1386. end
  1387. if c:FindFirstChildOfClass("BodyPosition") then
  1388. c:FindFirstChildOfClass("BodyPosition"):remove()
  1389. end
  1390. if c:FindFirstChildOfClass("ParticleEmitter") then
  1391. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1392. end
  1393. c.Parent = NewCharacter
  1394. c.Name = "DeadPart"
  1395. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1396. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1397. end
  1398. end
  1399. Char:remove()
  1400. Debris:AddItem(NewCharacter,5)
  1401. end
  1402.  
  1403. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1404. local CHILDREN = workspace:GetDescendants()
  1405. for index, CHILD in pairs(CHILDREN) do
  1406. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1407. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1408. if HUM then
  1409. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1410. if TORSO then
  1411. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1412. if BRUTAL == true then
  1413. Kill(CHILD)
  1414. else
  1415. CHILD:BreakJoints()
  1416. end
  1417. end
  1418. end
  1419. end
  1420. end
  1421. end
  1422. end
  1423. local EyeSizes={
  1424. NumberSequenceKeypoint.new(0,1,0),
  1425. NumberSequenceKeypoint.new(1,0,0)
  1426. }
  1427. local EyeTrans={
  1428. NumberSequenceKeypoint.new(0,0.8,0),
  1429. NumberSequenceKeypoint.new(1,1,0)
  1430. }
  1431. local PE=Instance.new("ParticleEmitter",nil)
  1432. PE.LightEmission=.8
  1433. PE.Color = ColorSequence.new(BRICKC("Really red").Color)
  1434. PE.Size=NumberSequence.new(EyeSizes)
  1435. PE.Transparency=NumberSequence.new(EyeTrans)
  1436. PE.Lifetime=NumberRange.new(0.35,1.5)
  1437. PE.Rotation=NumberRange.new(0,360)
  1438. PE.Rate=999
  1439. PE.VelocitySpread = 10000
  1440. PE.Acceleration = Vector3.new(0,0,0)
  1441. PE.Drag = 5
  1442. PE.Speed = NumberRange.new(0,0,0)
  1443. PE.Texture="http://www.roblox.com/asset/?id=1351966707"
  1444. PE.ZOffset = -0
  1445. PE.Name = "PE"
  1446. PE.Enabled = false
  1447.  
  1448. function particles(art)
  1449. local PARTICLES = PE:Clone()
  1450. PARTICLES.Parent = art
  1451. end
  1452. function KillChildren(v)
  1453. v:BreakJoints()
  1454. for _, c in pairs(v:GetChildren()) do
  1455. if c:IsA("BasePart") then
  1456. if c.Transparency < 1 then
  1457. if c:FindFirstChildOfClass("Decal") then
  1458. c:FindFirstChildOfClass("Decal"):remove()
  1459. end
  1460. particles(c)
  1461. c.PE.Enabled = true
  1462. c.Parent = Effects
  1463. c.CanCollide = false
  1464. c.Material = "Neon"
  1465. c.Color = C3(1,0,0)
  1466. c.Transparency = 1
  1467. local grav = Instance.new("BodyPosition",c)
  1468. grav.P = 20000
  1469. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1470. grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
  1471. grav.Name = "GravityForce"
  1472. coroutine.resume(coroutine.create(function()
  1473. for i = 1, 20 do
  1474. Swait()
  1475. c.Transparency = c.Transparency + 1/20
  1476. end
  1477. c.PE.Enabled = false
  1478. Debris:AddItem(c,2)
  1479. end))
  1480. end
  1481. end
  1482. end
  1483. end
  1484. function ApplyBlood(POSITION,RANGE)
  1485. local CHILDREN = workspace:GetDescendants()
  1486. for index, CHILD in pairs(CHILDREN) do
  1487. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1488. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1489. if HUM then
  1490. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1491. if TORSO then
  1492. if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
  1493. KillChildren(CHILD)
  1494. end
  1495. end
  1496. end
  1497. end
  1498. end
  1499. end
  1500. --//=================================\\
  1501. --|| ATTACK FUNCTIONS AND STUFF
  1502. --\\=================================//
  1503.  
  1504. function Charge(TIME,GYRO)
  1505. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  1506. local G = nil
  1507. if GYRO == true then
  1508. G = IT("BodyGyro",RootPart)
  1509. G.D = 250
  1510. G.P = 200000
  1511. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  1512. end
  1513. for i=0, TIME, 0.1 / Animation_Speed do
  1514. Swait()
  1515. if G then
  1516. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1517. end
  1518. 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})
  1519. 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)
  1520. 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)
  1521. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1522. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1523. 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)
  1524. 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)
  1525. end
  1526. SND:remove()
  1527. if G then
  1528. return G
  1529. end
  1530. end
  1531. ------------------
  1532. function Neck_Snap()
  1533. ATTACK = true
  1534. Rooted = false
  1535. local TARGET, HUM, WLD
  1536. local HIT = RightArm.Touched:Connect(function(hit)
  1537. if hit.Parent ~= nil and hit.Parent:FindFirstChildOfClass("Humanoid") then
  1538. local H = hit.Parent:FindFirstChildOfClass("Humanoid")
  1539. if H.Health > 0 then
  1540. local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1541. if TORSO then
  1542. HUM = H
  1543. TARGET = TORSO
  1544. H.PlatformStand = true
  1545. CreateSound("260411131", TORSO, 10, 1)
  1546. WLD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, TORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  1547. end
  1548. end
  1549. end
  1550. end)
  1551. for i = 0, 1, 0.1 / Animation_Speed do
  1552. Swait()
  1553. if TARGET ~= nil then
  1554. break
  1555. end
  1556. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1557. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  1558. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.45, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1559. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1560. if ANIM == "Idle" then
  1561. 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.5 / Animation_Speed)
  1562. 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.5 / Animation_Speed)
  1563. elseif ANIM == "Walk" then
  1564. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1565. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1566. elseif ANIM == "Jump" or ANIM == "Fall" then
  1567. 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)
  1568. 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)
  1569. end
  1570. end
  1571. HIT:disconnect()
  1572. if TARGET ~= nil then
  1573. if TARGET.Name == "Torso" then
  1574. for i = 0, 2, 0.1 / Animation_Speed do
  1575. Swait()
  1576. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1577. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1578. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(65), RAD(25), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1579. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1580. if ANIM == "Idle" then
  1581. 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.5 / Animation_Speed)
  1582. 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.5 / Animation_Speed)
  1583. elseif ANIM == "Walk" then
  1584. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1585. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1586. elseif ANIM == "Jump" or ANIM == "Fall" then
  1587. 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)
  1588. 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)
  1589. end
  1590. end
  1591. WLD:remove()
  1592. local HEAD = TARGET.Parent:FindFirstChild("Head")
  1593. if HEAD then
  1594. UNANCHOR = false
  1595. RootPart.Anchored = true
  1596. local HD = HEAD:Clone()
  1597. HD.Name = "FakeHead"
  1598. for i = 1, 7 do
  1599. SprayBlood(TARGET.CFrame * CF(0, TARGET.Size.Y / 2, 0).p, TARGET.CFrame * CF(MRANDOM(25, 55), MRANDOM(-25, 25), MRANDOM(25, 55)).p, 15)
  1600. end
  1601. local RAGDOLL, RAGTORSO = Ragdoll(TARGET.Parent, Torso, true, 0)
  1602. local RAGWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RAGTORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  1603. HD.Parent = RAGDOLL
  1604. CreateSound("264486467", RAGTORSO, 10, 1)
  1605. local HEADWELD = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, HD, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  1606. for i = 0, 2, 0.1 / Animation_Speed do
  1607. Swait()
  1608. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1609. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1610. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1611. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1612. if ANIM == "Idle" then
  1613. 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.5 / Animation_Speed)
  1614. 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.5 / Animation_Speed)
  1615. elseif ANIM == "Walk" then
  1616. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1617. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1618. elseif ANIM == "Jump" or ANIM == "Fall" then
  1619. 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)
  1620. 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)
  1621. end
  1622. end
  1623. HEADWELD:remove()
  1624. for i = 0, 0.5, 0.1 / Animation_Speed do
  1625. Swait()
  1626. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1627. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1628. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1629. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1630. if ANIM == "Idle" then
  1631. 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.5 / Animation_Speed)
  1632. 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.5 / Animation_Speed)
  1633. elseif ANIM == "Walk" then
  1634. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1635. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1636. elseif ANIM == "Jump" or ANIM == "Fall" then
  1637. 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)
  1638. 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)
  1639. end
  1640. end
  1641. CreateSound("907333406", Torso, 10, 1)
  1642. for i = 0, 0.25, 0.1 / Animation_Speed do
  1643. Swait()
  1644. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1645. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1646. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1647. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1648. if ANIM == "Idle" then
  1649. 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.5 / Animation_Speed)
  1650. 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.5 / Animation_Speed)
  1651. elseif ANIM == "Walk" then
  1652. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1653. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1654. elseif ANIM == "Jump" or ANIM == "Fall" then
  1655. 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)
  1656. 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)
  1657. end
  1658. end
  1659. RAGWELD:remove()
  1660. local bv = Instance.new("BodyVelocity")
  1661. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1662. bv.velocity = CF(Torso.Position, RAGTORSO.Position).lookVector * 75
  1663. bv.Parent = RAGTORSO
  1664. Debris:AddItem(bv, 0.05)
  1665. Debris:AddItem(RAGDOLL, 5)
  1666. for i = 0, 0.15, 0.1 / Animation_Speed do
  1667. Swait()
  1668. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1669. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1670. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1671. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1672. if ANIM == "Idle" then
  1673. 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.5 / Animation_Speed)
  1674. 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.5 / Animation_Speed)
  1675. elseif ANIM == "Walk" then
  1676. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1677. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1678. elseif ANIM == "Jump" or ANIM == "Fall" then
  1679. 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)
  1680. 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)
  1681. end
  1682. end
  1683. UNANCHOR = true
  1684. RootPart.Anchored = false
  1685. end
  1686. else
  1687. UNANCHOR = false
  1688. RootPart.Anchored = true
  1689. for i = 0, 0.5, 0.1 / Animation_Speed do
  1690. Swait()
  1691. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1692. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1693. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1694. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1695. if ANIM == "Idle" then
  1696. 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.5 / Animation_Speed)
  1697. 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.5 / Animation_Speed)
  1698. elseif ANIM == "Walk" then
  1699. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1700. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1701. elseif ANIM == "Jump" or ANIM == "Fall" then
  1702. 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)
  1703. 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)
  1704. end
  1705. end
  1706. for i = 0, 0.25, 0.1 / Animation_Speed do
  1707. Swait()
  1708. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1709. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1710. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1711. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1712. if ANIM == "Idle" then
  1713. 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.5 / Animation_Speed)
  1714. 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.5 / Animation_Speed)
  1715. elseif ANIM == "Walk" then
  1716. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1717. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1718. elseif ANIM == "Jump" or ANIM == "Fall" then
  1719. 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)
  1720. 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)
  1721. end
  1722. end
  1723. WLD:remove()
  1724. TARGET.Parent:BreakJoints()
  1725. for _, c in pairs(TARGET.Parent:GetChildren()) do
  1726. if c:IsA("BasePart") then
  1727. local bv = Instance.new("BodyVelocity")
  1728. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1729. bv.velocity = CF(Torso.Position, c.Position).lookVector * 75
  1730. bv.Parent = c
  1731. Debris:AddItem(bv, 0.05)
  1732. end
  1733. end
  1734. for i = 0, 0.15, 0.1 / Animation_Speed do
  1735. Swait()
  1736. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1737. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1738. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1739. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1740. if ANIM == "Idle" then
  1741. 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.5 / Animation_Speed)
  1742. 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.5 / Animation_Speed)
  1743. elseif ANIM == "Walk" then
  1744. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1745. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1746. elseif ANIM == "Jump" or ANIM == "Fall" then
  1747. 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)
  1748. 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)
  1749. end
  1750. end
  1751. UNANCHOR = true
  1752. RootPart.Anchored = false
  1753. end
  1754. end
  1755. ATTACK = false
  1756. Rooted = false
  1757. end
  1758. function ShadowCloak()
  1759. if ANIM ~= "Fall" and ANIM ~= "Jump" then
  1760. ATTACK = true
  1761. Rooted = false
  1762. UNANCHOR = false
  1763. FADERS = false
  1764. coroutine.resume(coroutine.create(function()
  1765. coroutine.resume(coroutine.create(function()
  1766. for i=1, 25 do
  1767. Swait()
  1768. RootPart.CFrame = RootPart.CFrame*CF(0,(25-i)/25,0)
  1769. end
  1770. end))
  1771. repeat
  1772. Swait()
  1773. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1774. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1 / Animation_Speed)
  1775. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(-15+MRANDOM(-5,5)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1776. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(15+MRANDOM(-5,5)), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1777. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.1) * ANGLES(RAD(0), RAD(85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(-12)), 1 / Animation_Speed)
  1778. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.1) * ANGLES(RAD(0), RAD(-85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(12)), 1 / Animation_Speed)
  1779. until ATTACK == false
  1780. end))
  1781. WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 0.6, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 12})
  1782. WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1783. for i = 1, 50 do
  1784. Swait()
  1785. CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p)
  1786. for index, CHILD in pairs(Character:GetChildren()) do
  1787. if CHILD:IsA("BasePart") then
  1788. CHILD.Transparency = CHILD.Transparency + 1/50
  1789. elseif CHILD:IsA("Accessory") then
  1790. CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1/50
  1791. end
  1792. end
  1793. end
  1794. for i = 1, 25 do
  1795. Swait()
  1796. CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p)
  1797. end
  1798. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,12,0)) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0))
  1799. for i = 1, 5 do
  1800. WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(0.3,0,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
  1801. end
  1802. ApplyAoE(Torso.Position,15,12,22,150,false)
  1803. CreateSound(331666014,Torso,5,1,false)
  1804. for i = 1, 12 do
  1805. Swait()
  1806. CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p)
  1807. end
  1808. for i = 1, 50 do
  1809. Swait()
  1810. CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p)
  1811. for index, CHILD in pairs(Character:GetChildren()) do
  1812. if CHILD:IsA("BasePart") then
  1813. CHILD.Transparency = CHILD.Transparency - 1/50
  1814. elseif CHILD:IsA("Accessory") then
  1815. CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1/50
  1816. end
  1817. end
  1818. end
  1819. UNANCHOR = true
  1820. ATTACK = false
  1821. Rooted = false
  1822. FADERS = true
  1823. end
  1824. end
  1825. function BlackBlast()
  1826. if ANIM ~= "Fall" and ANIM ~= "Jump" then
  1827. ATTACK = true
  1828. Rooted = true
  1829. local GYRO = IT("BodyGyro",RootPart)
  1830. GYRO.D = 25
  1831. GYRO.P = 20000
  1832. GYRO.MaxTorque = VT(0,4000000,0)
  1833. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1834. CreateSound(429459101,Torso,5,1.5,false)
  1835. local GYROING = true
  1836. coroutine.resume(coroutine.create(function()
  1837. repeat
  1838. Swait()
  1839. GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
  1840. until GYROING == false
  1841. GYRO:Remove()
  1842. end))
  1843. for i=0, 1, 0.1 / Animation_Speed do
  1844. Swait()
  1845. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1846. 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)
  1847. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1848. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1849. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1850. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(15)), 1 / Animation_Speed)
  1851. end
  1852. for i = 1, 13 do
  1853. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(i,0,i)*2, Transparency = 0.8, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,7.5-i) * ANGLES(RAD(-90), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  1854. end
  1855. CreateSound(1368637781,Torso,5,1.5,false)
  1856. WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(12,12,12), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 331666014, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1857. for index, CHILD in pairs(Character:GetChildren()) do
  1858. if CHILD:IsA("BasePart") then
  1859. CHILD.Transparency = CHILD.Transparency + 1
  1860. elseif CHILD:IsA("Accessory") then
  1861. CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1
  1862. end
  1863. end
  1864. GYROING = false
  1865. coroutine.resume(coroutine.create(function()
  1866. coroutine.resume(coroutine.create(function()
  1867. for i=1, 25 do
  1868. Swait()
  1869. RootPart.CFrame = RootPart.CFrame*CF(0,0,(25-i)/25)
  1870. end
  1871. end))
  1872. repeat
  1873. Swait()
  1874. CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p)
  1875. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1876. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1 / Animation_Speed)
  1877. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(-15+MRANDOM(-5,5)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1878. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(15+MRANDOM(-5,5)), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1879. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.1) * ANGLES(RAD(0), RAD(85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(-12)), 1 / Animation_Speed)
  1880. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.1) * ANGLES(RAD(0), RAD(-85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(12)), 1 / Animation_Speed)
  1881. until ATTACK == false
  1882. end))
  1883. coroutine.resume(coroutine.create(function()
  1884. local BULLETCFRAME = RootPart.CFrame
  1885. local EXPLODED = false
  1886. coroutine.resume(coroutine.create(function()
  1887. repeat
  1888. Swait()
  1889. WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(10,10,10), Transparency = 0.3, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1890. WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(25,25,25), Transparency = 0.8, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1891. until EXPLODED == true
  1892. end))
  1893. for i=1, 50 do
  1894. Swait()
  1895. BULLETCFRAME = BULLETCFRAME*CF(0,0,-((50-i)/15))
  1896. local RAY,HIT,NORM = Raycast(BULLETCFRAME.p,BULLETCFRAME.lookVector,7,Character)
  1897. if RAY then
  1898. ApplyAoE(BULLETCFRAME.p,25,12,54,350,false)
  1899. WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(160,0,160), Transparency = 0.6, Transparency2 = 1, CFrame = CF(HIT,HIT+NORM) * ANGLES(RAD(-90), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 765590102, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 10})
  1900. break
  1901. end
  1902. end
  1903. wait(0.5)
  1904. WACKYEFFECT({Time = 85, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(75,75,75), Transparency = 0, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 401056199, SoundPitch = 0.7, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1905. WACKYEFFECT({Time = 85, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(50,50,50), Transparency = 0, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 401056199, SoundPitch = 1, SoundVolume = 10, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1906. for E = 1, 3 do
  1907. for i = 1, 5 do
  1908. WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(E,0,E)/2, Transparency = 0, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
  1909. end
  1910. end
  1911. ApplyAoE(BULLETCFRAME.p,125,25,75,250,false)
  1912. EXPLODED = true
  1913. for i = 1, 15 do
  1914. Swait()
  1915. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(160,0,160), Transparency = 0.6, Transparency2 = 1, CFrame = BULLETCFRAME * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 1, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  1916. end
  1917. end))
  1918. wait(0.5)
  1919. for index, CHILD in pairs(Character:GetChildren()) do
  1920. if CHILD:IsA("BasePart") then
  1921. CHILD.Transparency = CHILD.Transparency - 1
  1922. elseif CHILD:IsA("Accessory") then
  1923. CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1
  1924. end
  1925. end
  1926. ATTACK = false
  1927. Rooted = false
  1928. end
  1929. end
  1930. ------------------
  1931. function Beam()
  1932. ATTACK = true
  1933. Rooted = false
  1934. local GYRO = IT("BodyGyro",RootPart)
  1935. GYRO.D = 750
  1936. GYRO.P = 20000
  1937. GYRO.MaxTorque = VT(0,40000000,0)
  1938. CreateSound(348663022,Eye,1.5,2,false)
  1939. local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = Eye.CFrame*CF(0,-1,0).p, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.2, DoesFade = true, Ignore = Character, MaxDist = 100, Branches = false})
  1940. local Hitpos = LightningTable.End
  1941. ApplyBlood(Hitpos,10,35)
  1942. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,3,1), Size2 = VT(1,3,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1943. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eye.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  1944. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eye.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  1945. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eye.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  1946. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eye.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  1947. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eye.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  1948. for i = 1, 4 do
  1949. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(2,2,2), Size2 = VT(0,45,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1950. end
  1951. GYRO:remove()
  1952. ATTACK = false
  1953. Rooted = false
  1954. end
  1955.  
  1956. function Vanish()
  1957. g = Character:GetChildren()
  1958. for i = 1, #g do
  1959. if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then
  1960. g[i].Transparency = 1
  1961. elseif g[i].ClassName == "Accessory" then
  1962. g[i].Handle.Transparency = 1
  1963. end
  1964. end
  1965. g = Weapon:GetChildren()
  1966. for i = 1, #g do
  1967. if g[i].ClassName == "Part" then
  1968. g[i].Transparency = 1
  1969. end
  1970. end
  1971. end
  1972.  
  1973. function HellWrath()
  1974. ATTACK = true
  1975. Rooted = true
  1976. for i=0, 1, 0.1 / Animation_Speed do
  1977. Swait()
  1978. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1979. 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)
  1980. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1981. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1982. 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)
  1983. 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)
  1984. end
  1985. for i=0, 0.4, 0.1 / Animation_Speed do
  1986. Swait()
  1987. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1988. 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)
  1989. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1990. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1991. 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)
  1992. 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)
  1993. end
  1994. local POS = Mouse.Hit.p
  1995. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Beam", VT(0,0,0))
  1996. MakeForm(BEAM,"Ball")
  1997. BEAM.CFrame = CF(POS)
  1998. CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  1999. for i = 1, 60 do
  2000. Swait()
  2001. BEAM.Size = BEAM.Size + VT(0.7,8,0.7)
  2002. BEAM.CFrame = CF(POS)
  2003. ApplyBlood(BEAM.Position,BEAM.Size.Z/1,4,4,14,true)
  2004. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(i*2,6,i*2), Transparency = 0, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(0), RAD(1), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2005. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,100,5), Size2 = VT(5,100,5), Transparency = 0, Transparency2 = 1, CFrame = CF(BEAM.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2006. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,100,5), Size2 = VT(5,100,5), Transparency = 0, Transparency2 = 1, CFrame = CF(BEAM.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2007. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,100,5), Size2 = VT(5,100,5), Transparency = 0, Transparency2 = 1, CFrame = CF(BEAM.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2008. WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(25,25,25), Transparency = 0.25, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2009. WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(35,35,35), Transparency = 0.5, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2010. Swait()
  2011. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2012. 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)
  2013. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2014. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2015. 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)
  2016. 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)
  2017. end
  2018. for i = 1, 60 do
  2019. Swait()
  2020. 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})
  2021. WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*2,6,i*2), Size2 = VT(i*2,6,i*2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(BEAM.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})
  2022. BEAM:remove()
  2023. ATTACK = false
  2024. Rooted = false
  2025. end
  2026. end
  2027. function ROOOOAR()
  2028. ATTACK = true
  2029. Rooted = true
  2030. for i=0, 1, 0.1 / Animation_Speed do
  2031. 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)
  2032. 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)
  2033. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2034. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2035. 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)
  2036. 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)
  2037. end
  2038. for i = 1, 25 do
  2039. Swait()
  2040. CreateSound("1487452733", Torso, 1, MRANDOM(11,13)/10)
  2041. Slice("Round",1,15,RootPart.CFrame * CF(MRANDOM(-10,10),MRANDOM(-10,10),MRANDOM(-10,10)) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),SKILLTEXTCOLOR2,VT(-0.2,0,-0.2))
  2042. Slice("Round",2,15,RootPart.CFrame * CF(MRANDOM(-10,10),MRANDOM(-10,10),MRANDOM(-10,10)) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),SKILLTEXTCOLOR2,VT(-0.2,0,-0.2))
  2043. Slice("Round",1,15,RootPart.CFrame * CF(MRANDOM(-10,10),MRANDOM(-10,10),MRANDOM(-10,10)) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),SKILLTEXTCOLOR2,VT(-0.2,0,-0.2))
  2044. Slice("Round",2,15,RootPart.CFrame * CF(MRANDOM(-10,10),MRANDOM(-10,10),MRANDOM(-10,10)) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),SKILLTEXTCOLOR2,VT(-0.2,0,-0.2))
  2045. end
  2046. ATTACK = false
  2047. Rooted = false
  2048. end
  2049.  
  2050. function BrainKiller()
  2051. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2052. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2053. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2054. if TORSO and HUM.Health > 0 then
  2055. ATTACK = true
  2056. Rooted = false
  2057. local GYRO = IT("BodyGyro",RootPart)
  2058. GYRO.D = 275
  2059. GYRO.P = 20000
  2060. GYRO.MaxTorque = VT(0,40000,0)
  2061. for i=0, 0.8, 0.1 / Animation_Speed do
  2062. Swait()
  2063. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2064. 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)
  2065. 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)
  2066. 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)
  2067. 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)
  2068. end
  2069. local oof = MagicBlock(5,50,TORSO,0,BRICKC("Really red").Color)
  2070. local oof = MagicBlock(2.5,50,TORSO,0,BRICKC("Really red").Color)
  2071. local POS = Mouse.Hit.p
  2072. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(30,50,30), Size2 = VT(30,50,30), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2073. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(30,50,30), Size2 = VT(30,50,30), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2074. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(30,50,30), Size2 = VT(30,50,30), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2075. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(30,50,30), Size2 = VT(30,50,30), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2076. WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(25,25,25), Transparency = 0.25, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 0.6, SoundVolume = 6})
  2077. Debris:AddItem(oof,1)
  2078. CreateSound(429459101, Torso, 7, 1, false)
  2079. CreateSound(429459101, TORSO, 7, 1, false)
  2080. local oof = Lightning({Material = "Neon", FadeIn = true, Color = C3(1,0,0), Start = Eye.CFrame*CF(0, 1, 0.045).p, End = POS, SegmentL = 1, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 22, Thicken = false})
  2081. local oof = Lightning({Material = "Neon", FadeIn = true, Color = C3(1,0,0), Start = Eye.CFrame*CF(0, 1, 0.045).p, End = POS, SegmentL = 1, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 22, Thicken = false})
  2082. local oof = Lightning({Material = "Neon", FadeIn = true, Color = C3(1,0,0), Start = Eye.CFrame*CF(0, 1, 0.045).p, End = POS, SegmentL = 1, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 22, Thicken = false})
  2083. ApplyAoE(TORSO.Position,TORSO.Size.X/2,true)
  2084. GYRO:remove()
  2085. ATTACK = false
  2086. Rooted = false
  2087. end
  2088. end
  2089. end
  2090.  
  2091. function Absoluteum()
  2092. local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
  2093. if HITFLOOR ~= nil then
  2094. do
  2095. local HITBODIES = {}
  2096. ATTACK = true
  2097. Rooted = true
  2098. local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "ABSOLUTEUM", VT(0, 0, 0))
  2099. MakeForm(ABSOLUTE, "Ball")
  2100. CreateSound("416200578", RootPart, 10, 1)
  2101. for i = 0, 8, 0.1 / Animation_Speed do
  2102. Swait()
  2103. ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2, 0.2, 0.2)
  2104. ABSOLUTE.CFrame = RootPart.CFrame * CF(0, 5 + ABSOLUTE.Size.Y / 2, 0)
  2105. ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01
  2106. local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "ABSOLUTEUM", VT(2, 2, 2))
  2107. MakeForm(CHARGE, "Ball")
  2108. CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15))
  2109. FireArc(CHARGE, ABSOLUTE.Position, 45, 45, true)
  2110. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2111. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2112. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2113. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2114. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2115. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2116. end
  2117. CreateSound(ULTTAUNTS[MRANDOM(1, #ULTTAUNTS)], Head, 10, 0.9)
  2118. CreateSound("160772554", ABSOLUTE, 10, MRANDOM(5, 7) / 10)
  2119. for i = 1, 45 do
  2120. Swait()
  2121. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2122. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  2123. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2124. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2125. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2126. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2127. end
  2128. coroutine.resume(coroutine.create(function()
  2129. local IMPACT = false
  2130. local BULLET = ABSOLUTE
  2131. MakeForm(BULLET, "Ball")
  2132. BULLET.CFrame = CF(BULLET.Position, Mouse.Hit.p)
  2133. for i = 1, 500 do
  2134. Swait()
  2135. BULLET.CFrame = BULLET.CFrame * CF(0, 0, -2)
  2136. local HIT = Raycast(BULLET.Position, BULLET.CFrame.lookVector, BULLET.Size.X / 2, Character)
  2137. MagicSphere(VT(10, 10, 10), 55, CF(BULLET.CFrame * CF(MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5)).p), "Really red", VT(-10, -10, -10) / 55)
  2138. if HIT ~= nil then
  2139. IMPACT = true
  2140. break
  2141. end
  2142. end
  2143. if IMPACT == false then
  2144. for i = 1, 40 do
  2145. Swait()
  2146. BULLET.Size = BULLET.Size * 0.9
  2147. end
  2148. BULLET:remove()
  2149. else
  2150. CreateSound("1127492102", BULLET, 10, MRANDOM(8, 13) / 10)
  2151. for i = 1, 175 do
  2152. Swait()
  2153. BULLET.Size = BULLET.Size * 0.99
  2154. Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(i, 0, i) / 85)
  2155. end
  2156. CreateSound("438666001", BULLET, 10, 3)
  2157. Swait(35)
  2158. BULLET.Transparency = 1
  2159. for i = 1, 20 do
  2160. for e = 1, 5 do
  2161. MagicSphere(VT(0.2, 0.2, 0.2), 50, CF(BULLET.CFrame * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, BULLET.Position), "Really black", VT(1, 1, i * 4), 0)
  2162. Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(i, 0, i) / 3)
  2163. end
  2164. AddChildrenToTable(BULLET.Position, workspace, i * 25, HITBODIES)
  2165. CreateSound("178452241", BULLET, 10, MRANDOM(8, 13) / 10)
  2166. CreateSound("178452243", BULLET, 10, MRANDOM(8, 13) / 10)
  2167. MagicSphere(BULLET.Size, 35, BULLET.CFrame, C3(MRANDOM(0, 10) / 10, 0, 0), VT(i, i, i) * 2)
  2168. Swait(5)
  2169. for e = 1, #HITBODIES do
  2170. if HITBODIES[e] ~= nil then
  2171. local BOD = HITBODIES[e]
  2172. local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
  2173. if TORS then
  2174. BOD:BreakJoints()
  2175. for _, c in pairs(BOD:GetChildren()) do
  2176. if c.ClassName == "Part" or c.ClassName == "MeshPart" then
  2177. local bv = Instance.new("BodyVelocity")
  2178. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  2179. bv.velocity = CF(BULLET.Position, c.Position).lookVector * 250
  2180. bv.Parent = c
  2181. Debris:AddItem(bv, 0.2)
  2182. end
  2183. end
  2184. end
  2185. end
  2186. end
  2187. CreateWave(VT(0, 2, 0), 75, CF(BULLET.Position), true, -15, "Really red", VT(i, 0, i) * 2)
  2188. end
  2189. MagicSphere(BULLET.Size, 100, BULLET.CFrame, C3(1, 0, 0), VT(12, 12, 12))
  2190. Debris:AddItem(BULLET, 10)
  2191. end
  2192. end))
  2193. ATTACK = false
  2194. Rooted = false
  2195. end
  2196. end
  2197. end
  2198. local Decal = IT("Decal")
  2199. function Behind()
  2200. ATTACK = true
  2201. Rooted = false
  2202. for e = 1, #BODY do
  2203. if BODY[e] ~= nil then
  2204. local STUFF = BODY[e]
  2205. local PART = STUFF[1]
  2206. if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  2207. local PRT = PART:Clone()
  2208. PRT.Anchored = true
  2209. PRT.CanCollide = false
  2210. PRT.Material = "Neon"
  2211. PRT.Color = C3(1,0,0)
  2212. PRT.Name = "WarpEffect"
  2213. PRT.Parent = Effects
  2214. PRT.CFrame = PART.CFrame
  2215. PRT:BreakJoints()
  2216. if PRT:FindFirstChildOfClass("Sound") then
  2217. PRT:FindFirstChildOfClass("Sound"):remove()
  2218. end
  2219. if PRT:FindFirstChildOfClass("Decal") then
  2220. PRT:FindFirstChildOfClass("Decal"):remove()
  2221. end
  2222. coroutine.resume(coroutine.create(function()
  2223. for i = 1, 100 do
  2224. Swait()
  2225. PRT.Transparency = PRT.Transparency + 1/100
  2226. end
  2227. PRT:remove()
  2228. end))
  2229. end
  2230. end
  2231. end
  2232. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(30,70,30), Size2 = VT(30,70,30), Transparency = 0, Transparency2 = 1, CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2233. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(30,70,30), Size2 = VT(30,70,30), Transparency = 0, Transparency2 = 1, CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2234. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(30,70,30), Size2 = VT(30,70,30), Transparency = 0, Transparency2 = 1, CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2235. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(30,70,30), Size2 = VT(30,70,30), Transparency = 0, Transparency2 = 1, CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2236. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(30,70,30), Size2 = VT(30,70,30), Transparency = 0, Transparency2 = 1, CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10})
  2237. CreateSound(217767125, Torso, 10, 1)
  2238. local POS = RootPart.Orientation
  2239. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  2240. RootPart.Orientation = POS
  2241. RootJoint.Parent = RootPart
  2242. ATTACK = false
  2243. Rooted = false
  2244. end
  2245.  
  2246.  
  2247. --//=================================\\
  2248. --|| ASSIGN THINGS TO KEYS
  2249. --\\=================================//
  2250.  
  2251. function MouseDown(Mouse)
  2252. if ATTACK == false then
  2253. end
  2254. end
  2255.  
  2256. function MouseUp(Mouse)
  2257. HOLD = false
  2258. end
  2259.  
  2260. function KeyDown(Key)
  2261. KEYHOLD = true
  2262. if Key == "z" and ATTACK == false then
  2263. Beam()
  2264. end
  2265.  
  2266. if Key == "m" and ATTACK == false then
  2267. Neck_Snap()
  2268. end
  2269. if Key == "p" and ATTACK == false then
  2270. Absoluteum()
  2271. end
  2272. if Key == "z" and ATTACK == false then
  2273. Beam()
  2274. end
  2275.  
  2276. if Key == "z" and ATTACK == false then
  2277. Beam()
  2278. end
  2279.  
  2280. if Key == "z" and ATTACK == false then
  2281. Beam()
  2282. end
  2283.  
  2284. if Key == "z" and ATTACK == false then
  2285. Beam()
  2286. end
  2287. if Key == "k" and ATTACK == false then
  2288. ShadowCloak()
  2289. end
  2290.  
  2291. if Key == "v" and ATTACK == false then
  2292. BlackBlast()
  2293. end
  2294.  
  2295. if Key == "t" and ATTACK == false then
  2296. ROOOOAR()
  2297. end
  2298.  
  2299. if Key == "x" and ATTACK == false then
  2300. HellWrath()
  2301. end
  2302.  
  2303. if Key == "c" and ATTACK == false then
  2304. BrainKiller()
  2305. end
  2306. if Key == "f" and ATTACK == false then
  2307. Vanish()
  2308. end
  2309. end
  2310.  
  2311.  
  2312.  
  2313. function KeyUp(Key)
  2314. KEYHOLD = false
  2315. end
  2316.  
  2317. Mouse.Button1Down:connect(function(NEWKEY)
  2318. MouseDown(NEWKEY)
  2319. end)
  2320. Mouse.Button1Up:connect(function(NEWKEY)
  2321. MouseUp(NEWKEY)
  2322. end)
  2323. Mouse.KeyDown:connect(function(NEWKEY)
  2324. KeyDown(NEWKEY)
  2325. end)
  2326. Mouse.KeyUp:connect(function(NEWKEY)
  2327. KeyUp(NEWKEY)
  2328. end)
  2329.  
  2330. --//=================================\\
  2331. --\\=================================//
  2332.  
  2333. function unanchor()
  2334. if UNANCHOR == true then
  2335. g = Character:GetChildren()
  2336. for i = 1, #g do
  2337. if g[i].ClassName == "Part" then
  2338. g[i].Anchored = false
  2339. end
  2340. end
  2341. end
  2342. end
  2343.  
  2344. --//=================================\\
  2345. --|| WRAP THE WHOLE SCRIPT UP
  2346. --\\=================================//
  2347.  
  2348. Humanoid.Changed:connect(function(Jump)
  2349. if Jump == "Jump" and (Disable_Jump == true) then
  2350. Humanoid.Jump = false
  2351. end
  2352. end)
  2353.  
  2354. while true do
  2355. Swait()
  2356. script.Parent = WEAPONGUI
  2357. ANIMATE.Parent = nil
  2358. if Humanoid then
  2359. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2360. IDLEANIMATION:Play()
  2361. end
  2362. SINE = SINE + CHANGE
  2363. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2364. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2365. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2366. local WALKSPEEDVALUE = 5 / (Humanoid.WalkSpeed / 16)
  2367. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2368. 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)
  2369. 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)
  2370. 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)
  2371. 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)
  2372. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2373. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2374. 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)
  2375. 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)
  2376. 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)
  2377. end
  2378. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2379. ANIM = "Jump"
  2380. if ATTACK == false then
  2381. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2382. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2383. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2384. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2385. 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)
  2386. 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)
  2387. end
  2388. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2389. ANIM = "Fall"
  2390. if ATTACK == false then
  2391. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2392. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2393. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2394. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2395. 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)
  2396. 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)
  2397. end
  2398. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2399. ANIM = "Idle"
  2400. if ATTACK == false then
  2401. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2402. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2403. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2404. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2405. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2406. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2407. if VALUE1 == false and MRANDOM(1,200) == 1 then
  2408. coroutine.resume(coroutine.create(function()
  2409. VALUE1 = true
  2410. for i = 1, 25 do
  2411. Swait()
  2412. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed)
  2413.  
  2414. end
  2415. VALUE1 = false
  2416. end))
  2417. end
  2418. end
  2419.  
  2420. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2421. ANIM = "Walk"
  2422. if ATTACK == false then
  2423. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2424. 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)
  2425. 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)
  2426. 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)
  2427. 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)
  2428. 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)
  2429. end
  2430. end
  2431.  
  2432. unanchor()
  2433. Humanoid.MaxHealth = "inf"
  2434. Humanoid.Health = "inf"
  2435. if Rooted == false then
  2436. Disable_Jump = false
  2437. Humanoid.WalkSpeed = Speed
  2438. elseif Rooted == true then
  2439. Disable_Jump = true
  2440. Humanoid.WalkSpeed = 0
  2441. end
  2442. if Player.Name == "neonsamgames11" then
  2443. local FRAME = CF(VT(Torso.Position.X+MRANDOM(-15,15),Torso.Position.Y,Torso.Position.Z+MRANDOM(-15,15)))
  2444. ApplyAoE(FRAME.p,4,3,6,0,false,3,1.2,false)
  2445. MagicSphere(VT(0.6,0.6,0.6),15,FRAME,"Crimson",VT(0.1,6,0.1),0)
  2446. end
  2447. if Player.Name == "duckiles" then
  2448. local FRAME = CF(VT(Torso.Position.X+MRANDOM(-15,15),Torso.Position.Y,Torso.Position.Z+MRANDOM(-15,15)))
  2449. MagicSphere(VT(0.2,0.2,0.2),15,CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),"Crimson",VT(0.001,0.001,0.6),0)
  2450. end
  2451. if Player.Name == "Jav181MR" then
  2452. local FRAME = CF(VT(Torso.Position.X+MRANDOM(-15,15),Torso.Position.Y,Torso.Position.Z+MRANDOM(-15,15)))
  2453. MagicSphere(VT(0.2,0.2,0.2),15,CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),"Crimson",VT(0.001,0.001,0.6),0)
  2454. end
  2455. Humanoid.PlatformStand = false
  2456. Humanoid.Name = "Dark side"
  2457. refit()
  2458. for _, c in pairs(Character:GetDescendants()) do
  2459. if c == Head then
  2460. if c:FindFirstChild("face") then
  2461. c.face:remove()
  2462. end
  2463. end
  2464. end
  2465. end
  2466.  
  2467.  
  2468. --//=================================\\
  2469. --\\=================================//
  2470.  
  2471.  
  2472.  
  2473.  
  2474.  
  2475. --//====================================================\\--
  2476. --|| END OF SCRIPT
  2477. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement