Advertisement
copra50

abyslum

Mar 28th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.22 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. 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(),Button2Up=c(),Button2Down=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;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")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 typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u 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 rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},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")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. wait(1)
  8.  
  9.  
  10.  
  11.  
  12. wait(0.2)
  13. Player = game:GetService("Players").LocalPlayer
  14. PlayerGui = Player.PlayerGui
  15. Cam = workspace.CurrentCamera
  16. Backpack = Player.Backpack
  17. Character = Player.Character
  18. Humanoid = Character.Humanoid
  19. Mouse = Player:GetMouse()
  20. RootPart = Character.HumanoidRootPart
  21. Torso = Character.Torso
  22. Head = Character.Head
  23. RightArm = Character["Right Arm"]
  24. LeftArm = Character["Left Arm"]
  25. RightLeg = Character["Right Leg"]
  26. LeftLeg = Character["Left Leg"]
  27. RootJoint = RootPart.RootJoint
  28. Neck = Torso.Neck
  29. RightShoulder = Torso["Right Shoulder"]
  30. LeftShoulder = Torso["Left Shoulder"]
  31. RightHip = Torso["Right Hip"]
  32. LeftHip = Torso["Left Hip"]
  33. local sick = Instance.new("Sound", Character)
  34. IT = Instance.new
  35. CF = CFrame.new
  36. VT = Vector3.new
  37. RAD = math.rad
  38. C3 = Color3.new
  39. UD2 = UDim2.new
  40. BRICKC = BrickColor.new
  41. ANGLES = CFrame.Angles
  42. EULER = CFrame.fromEulerAnglesXYZ
  43. COS = math.cos
  44. ACOS = math.acos
  45. SIN = math.sin
  46. ASIN = math.asin
  47. ABS = math.abs
  48. MRANDOM = math.random
  49. FLOOR = math.floor
  50. Animation_Speed = 3
  51. Frame_Speed = 0.016666666666666666
  52. local Speed = 22
  53. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  54. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  55. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  56. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  57. local DAMAGEMULTIPLIER = 1
  58. local ANIM = "Idle"
  59. local ATTACK = false
  60. local HOLE = false
  61. local HOLD = false
  62. local COMBO = 1
  63. local Rooted = false
  64. local SINE = 0
  65. local KEYHOLD = false
  66. local CHANGE = 2 / Animation_Speed
  67. local WALKINGANIM = false
  68. local VALUE1 = false
  69. local VALUE2 = false
  70. local ROBLOXIDLEANIMATION = IT("Animation")
  71. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  72. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  73. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  74. WEAPONGUI.Name = "Absylum GUI"
  75. local Effects = IT("Folder", Character)
  76. Effects.Name = "Effects"
  77. local ANIMATOR = Humanoid.Animator
  78. local ANIMATE = Character.Animate
  79. for _, v in next, Humanoid:GetPlayingAnimationTracks() do
  80. v:Stop()
  81. end
  82. ANIMATE:Destroy()
  83. local UNANCHOR = true
  84. local HITFLOOR, HITPOS
  85. local SIZE = 15
  86. wait(0.2)
  87. ArtificialHB = Instance.new("BindableEvent", script)
  88. ArtificialHB.Name = "ArtificialHB"
  89. script:WaitForChild("ArtificialHB")
  90. frame = Frame_Speed
  91. tf = 0
  92. allowframeloss = false
  93. tossremainder = false
  94. lastframe = tick()
  95. script.ArtificialHB:Fire()
  96. game:GetService("RunService").Heartbeat:connect(function(s, p)
  97. tf = tf + s
  98. if tf >= frame then
  99. if allowframeloss then
  100. script.ArtificialHB:Fire()
  101. lastframe = tick()
  102. else
  103. for i = 1, math.floor(tf / frame) do
  104. script.ArtificialHB:Fire()
  105. end
  106. lastframe = tick()
  107. end
  108. if tossremainder then
  109. tf = 0
  110. else
  111. tf = tf - frame * math.floor(tf / frame)
  112. end
  113. end
  114. end)
  115. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  116. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  117. end
  118. function PositiveAngle(NUMBER)
  119. if NUMBER >= 0 then
  120. NUMBER = 0
  121. end
  122. return NUMBER
  123. end
  124. function NegativeAngle(NUMBER)
  125. if NUMBER <= 0 then
  126. NUMBER = 0
  127. end
  128. return NUMBER
  129. end
  130. function Swait(NUMBER)
  131. if NUMBER == 0 or NUMBER == nil then
  132. ArtificialHB.Event:wait()
  133. else
  134. for i = 1, NUMBER do
  135. ArtificialHB.Event:wait()
  136. end
  137. end
  138. end
  139. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  140. local NEWMESH = IT(MESH)
  141. if MESH == "SpecialMesh" then
  142. NEWMESH.MeshType = MESHTYPE
  143. if MESHID ~= "nil" and MESHID ~= "" then
  144. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  145. end
  146. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  147. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  148. end
  149. end
  150. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  151. NEWMESH.Scale = SCALE
  152. NEWMESH.Parent = PARENT
  153. return NEWMESH
  154. end
  155. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  156. local NEWPART = IT("Part")
  157. NEWPART.formFactor = FORMFACTOR
  158. NEWPART.Reflectance = REFLECTANCE
  159. NEWPART.Transparency = TRANSPARENCY
  160. NEWPART.CanCollide = false
  161. NEWPART.Locked = true
  162. NEWPART.Anchored = true
  163. if ANCHOR == false then
  164. NEWPART.Anchored = false
  165. end
  166. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  167. NEWPART.Name = NAME
  168. NEWPART.Size = SIZE
  169. NEWPART.Position = Torso.Position
  170. NEWPART.Material = MATERIAL
  171. NEWPART:BreakJoints()
  172. NEWPART.Parent = PARENT
  173. return NEWPART
  174. end
  175. local weldBetween = function(a, b)
  176. local weldd = Instance.new("ManualWeld")
  177. weldd.Part0 = a
  178. weldd.Part1 = b
  179. weldd.C0 = CFrame.new()
  180. weldd.C1 = b.CFrame:inverse() * a.CFrame
  181. weldd.Parent = a
  182. return weldd
  183. end
  184. function QuaternionFromCFrame(cf)
  185. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  186. local trace = m00 + m11 + m22
  187. if trace > 0 then
  188. local s = math.sqrt(1 + trace)
  189. local recip = 0.5 / s
  190. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  191. else
  192. local i = 0
  193. if m00 < m11 then
  194. i = 1
  195. end
  196. if m22 > (i == 0 and m00 or m11) then
  197. i = 2
  198. end
  199. if i == 0 then
  200. local s = math.sqrt(m00 - m11 - m22 + 1)
  201. local recip = 0.5 / s
  202. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  203. elseif i == 1 then
  204. local s = math.sqrt(m11 - m22 - m00 + 1)
  205. local recip = 0.5 / s
  206. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  207. elseif i == 2 then
  208. local s = math.sqrt(m22 - m00 - m11 + 1)
  209. local recip = 0.5 / s
  210. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  211. end
  212. end
  213. end
  214. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  215. local xs, ys, zs = x + x, y + y, z + z
  216. local wx, wy, wz = w * xs, w * ys, w * zs
  217. local xx = x * xs
  218. local xy = x * ys
  219. local xz = x * zs
  220. local yy = y * ys
  221. local yz = y * zs
  222. local zz = z * zs
  223. 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))
  224. end
  225. function QuaternionSlerp(a, b, t)
  226. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  227. local startInterp, finishInterp
  228. if cosTheta >= 1.0E-4 then
  229. if 1 - cosTheta > 1.0E-4 then
  230. local theta = ACOS(cosTheta)
  231. local invSinTheta = 1 / SIN(theta)
  232. startInterp = SIN((1 - t) * theta) * invSinTheta
  233. finishInterp = SIN(t * theta) * invSinTheta
  234. else
  235. startInterp = 1 - t
  236. finishInterp = t
  237. end
  238. elseif 1 + cosTheta > 1.0E-4 then
  239. local theta = ACOS(-cosTheta)
  240. local invSinTheta = 1 / SIN(theta)
  241. startInterp = SIN((t - 1) * theta) * invSinTheta
  242. finishInterp = SIN(t * theta) * invSinTheta
  243. else
  244. startInterp = t - 1
  245. finishInterp = t
  246. end
  247. 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
  248. end
  249. function Clerp(a, b, t)
  250. local qa = {
  251. QuaternionFromCFrame(a)
  252. }
  253. local qb = {
  254. QuaternionFromCFrame(b)
  255. }
  256. local ax, ay, az = a.x, a.y, a.z
  257. local bx, by, bz = b.x, b.y, b.z
  258. local _t = 1 - t
  259. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  260. end
  261. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  262. local frame = IT("Frame")
  263. frame.BackgroundTransparency = TRANSPARENCY
  264. frame.BorderSizePixel = BORDERSIZEPIXEL
  265. frame.Position = POSITION
  266. frame.Size = SIZE
  267. frame.BackgroundColor3 = COLOR
  268. frame.BorderColor3 = BORDERCOLOR
  269. frame.Name = NAME
  270. frame.Parent = PARENT
  271. return frame
  272. end
  273. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  274. local label = IT("TextLabel")
  275. label.BackgroundTransparency = 1
  276. label.Size = UD2(1, 0, 1, 0)
  277. label.Position = UD2(0, 0, 0, 0)
  278. label.TextColor3 = TEXTCOLOR
  279. label.TextStrokeTransparency = STROKETRANSPARENCY
  280. label.TextTransparency = TRANSPARENCY
  281. label.FontSize = TEXTFONTSIZE
  282. label.Font = TEXTFONT
  283. label.BorderSizePixel = BORDERSIZEPIXEL
  284. label.TextScaled = false
  285. label.Text = TEXT
  286. label.Name = NAME
  287. label.Parent = PARENT
  288. return label
  289. end
  290. function NoOutlines(PART)
  291. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  292. end
  293. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  294. local NEWWELD = IT(TYPE)
  295. NEWWELD.Part0 = PART0
  296. NEWWELD.Part1 = PART1
  297. NEWWELD.C0 = C0
  298. NEWWELD.C1 = C1
  299. NEWWELD.Parent = PARENT
  300. return NEWWELD
  301. end
  302. local S = IT("Sound")
  303. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  304. local NEWSOUND
  305. coroutine.resume(coroutine.create(function()
  306. NEWSOUND = S:Clone()
  307. NEWSOUND.Parent = PARENT
  308. NEWSOUND.Volume = VOLUME
  309. NEWSOUND.Pitch = PITCH
  310. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  311. NEWSOUND:play()
  312. if DOESLOOP == true then
  313. NEWSOUND.Looped = true
  314. else
  315. repeat
  316. wait(1)
  317. until NEWSOUND.Playing == false
  318. NEWSOUND:remove()
  319. end
  320. end))
  321. return NEWSOUND
  322. end
  323. function CFrameFromTopBack(at, top, back)
  324. local right = top:Cross(back)
  325. 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)
  326. end
  327. function WACKYEFFECT(Table)
  328. local TYPE = Table.EffectType or "Sphere"
  329. local SIZE = Table.Size or VT(1, 1, 1)
  330. local ENDSIZE = Table.Size2 or VT(0, 0, 0)
  331. local TRANSPARENCY = Table.Transparency or 0
  332. local ENDTRANSPARENCY = Table.Transparency2 or 1
  333. local CFRAME = Table.CFrame or Torso.CFrame
  334. local MOVEDIRECTION = Table.MoveToPos or nil
  335. local ROTATION1 = Table.RotationX or 0
  336. local ROTATION2 = Table.RotationY or 0
  337. local ROTATION3 = Table.RotationZ or 0
  338. local MATERIAL = Table.Material or "Neon"
  339. local COLOR = Table.Color or C3(1, 1, 1)
  340. local TIME = Table.Time or 45
  341. local SOUNDID = Table.SoundID or nil
  342. local SOUNDPITCH = Table.SoundPitch or nil
  343. local SOUNDVOLUME = Table.SoundVolume or nil
  344. coroutine.resume(coroutine.create(function()
  345. local PLAYSSOUND = false
  346. local SOUND
  347. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
  348. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  349. PLAYSSOUND = true
  350. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  351. end
  352. EFFECT.Color = COLOR
  353. local MSH
  354. if TYPE == "Sphere" then
  355. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
  356. elseif TYPE == "Block" then
  357. MSH = IT("BlockMesh", EFFECT)
  358. MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X)
  359. elseif TYPE == "Wave" then
  360. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  361. elseif TYPE == "Ring" then
  362. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
  363. elseif TYPE == "Slash" then
  364. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  365. elseif TYPE == "Round Slash" then
  366. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  367. elseif TYPE == "Swirl" then
  368. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0))
  369. elseif TYPE == "Skull" then
  370. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
  371. elseif TYPE == "Crystal" then
  372. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0))
  373. end
  374. if MSH ~= nil then
  375. local MOVESPEED
  376. if MOVEDIRECTION ~= nil then
  377. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME
  378. end
  379. local GROWTH = SIZE - ENDSIZE
  380. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  381. if TYPE == "Block" then
  382. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  383. else
  384. EFFECT.CFrame = CFRAME
  385. end
  386. for LOOP = 1, TIME + 1 do
  387. Swait()
  388. MSH.Scale = MSH.Scale - GROWTH / TIME
  389. if TYPE == "Wave" then
  390. MSH.Offset = VT(0, 0, -MSH.Scale.X / 8)
  391. end
  392. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  393. if TYPE == "Block" then
  394. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  395. else
  396. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  397. end
  398. if MOVEDIRECTION ~= nil then
  399. local ORI = EFFECT.Orientation
  400. EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED)
  401. EFFECT.Orientation = ORI
  402. end
  403. end
  404. if PLAYSSOUND == false then
  405. EFFECT:remove()
  406. else
  407. repeat
  408. Swait()
  409. until SOUND.Playing == false
  410. EFFECT:remove()
  411. end
  412. elseif PLAYSSOUND == false then
  413. EFFECT:remove()
  414. else
  415. repeat
  416. Swait()
  417. until SOUND.Playing == false
  418. EFFECT:remove()
  419. end
  420. end))
  421. end
  422. function MakeForm(PART, TYPE)
  423. if TYPE == "Cyl" then
  424. local MSH = IT("CylinderMesh", PART)
  425. elseif TYPE == "Ball" then
  426. local MSH = IT("SpecialMesh", PART)
  427. MSH.MeshType = "Sphere"
  428. elseif TYPE == "Wedge" then
  429. local MSH = IT("SpecialMesh", PART)
  430. MSH.MeshType = "Wedge"
  431. end
  432. end
  433. Debris = game:GetService("Debris")
  434. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  435. local DIRECTION = CF(StartPos, EndPos).lookVector
  436. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  437. end
  438. function turnto(position)
  439. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  440. end
  441. local SKILLTEXTCOLOR = C3(0, 0, 0)
  442. local SKILLFONT = "SciFi"
  443. local SKILLTEXTSIZE = 7
  444. local FLOOR = CreatePart(3, Effects, "Neon", 0, 0, "White", "Floor", VT(15, 0, 15), true)
  445. FLOOR.Color = C3(0, 0, 0)
  446. MakeForm(FLOOR, "Cyl")
  447. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3, 0.2, 0.1), false)
  448. MakeForm(EYE, "Ball")
  449. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.2, 0, -0.5) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  450. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3, 0.2, 0.1), false)
  451. MakeForm(EYE, "Ball")
  452. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(-0.2, 0, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
  453. function Soul(POS)
  454. coroutine.resume(coroutine.create(function()
  455. local SOULMODEL = IT("Model", Effects)
  456. SOULMODEL.Name = "Soul"
  457. local SOUL = CreatePart(3, SOULMODEL, "Neon", 0, 0, "Really red", "Part", VT(0.5, 0.5, 0.5))
  458. SOUL.Color = C3(0, 0, 0)
  459. SOUL.CFrame = CF(POS)
  460. local A1 = IT("Attachment", SOUL)
  461. A1.Position = Vector3.new(0, 0.25, 0)
  462. local A2 = IT("Attachment", SOUL)
  463. A2.Position = Vector3.new(0, -0.25, 0)
  464. local Trail = IT("Trail", SOUL)
  465. Trail.LightEmission = 0
  466. Trail.FaceCamera = true
  467. Trail.Texture = "rbxassetid://945758042"
  468. Trail.Attachment0 = A1
  469. Trail.Attachment1 = A2
  470. Trail.Lifetime = 0.5
  471. Trail.MinLength = 0
  472. Trail.Transparency = NumberSequence.new(0)
  473. Trail.Color = ColorSequence.new(SOUL.Color)
  474. MakeForm(SOUL, "Ball")
  475. local DISTANCE
  476. local HUM = IT("Humanoid", SOULMODEL)
  477. repeat
  478. Swait()
  479. SOUL.CFrame = Clerp(SOUL.CFrame, Torso.CFrame, 0.03)
  480. DISTANCE = (SOUL.Position - Torso.Position).Magnitude
  481. until DISTANCE < 0.4
  482. SOUL.Transparency = 1
  483. A1.Parent = Torso
  484. A2.Parent = Torso
  485. Trail.Parent = Torso
  486. SOULMODEL:remove()
  487. for i = 1, 100 do
  488. Swait()
  489. Trail.Transparency = NumberSequence.new(i / 100)
  490. end
  491. A1:remove()
  492. A2:remove()
  493. Trail:remove()
  494. end))
  495. end
  496. Humanoid.Died:connect(function()
  497. ATTACK = true
  498. end)
  499. function Blob(POSITION, RANGE)
  500. for index, CHILD in pairs(workspace:GetChildren()) do
  501. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD:FindFirstChild("AbsylumDrag") == nil then
  502. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  503. if HUM then
  504. do
  505. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  506. if TORSO and HUM.Health > 0 and RANGE >= (TORSO.Position - POSITION).Magnitude then
  507. do
  508. local HITFLOOR, HITPOS = Raycast(TORSO.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, TORSO.Size.Y * 3, CHILD)
  509. if HITFLOOR and HITFLOOR.Anchored == true then
  510. TORSO.Anchored = true
  511. CHILD.PrimaryPart = TORSO
  512. coroutine.resume(coroutine.create(function()
  513. local FLOOR = CreatePart(3, Effects, "Neon", 0, 0, "White", "AbsylumFloor", VT(0, 0, 0), true)
  514. FLOOR.Color = C3(0, 0, 0)
  515. MakeForm(FLOOR, "Cyl")
  516. FLOOR.CFrame = CF(HITPOS)
  517. local E = IT("Folder", CHILD)
  518. E.Name = "AbsylumDrag"
  519. for i = 1, 35 do
  520. Swait()
  521. FLOOR.Size = FLOOR.Size + VT(0.2 * TORSO.Size.Z, 0, 0.2 * TORSO.Size.Z)
  522. end
  523. local SOUND = CreateSound(838038142, FLOOR, 0, MRANDOM(8, 12) / 10, false)
  524. repeat
  525. Swait()
  526. SOUND.Parent = FLOOR
  527. SOUND.Volume = SOUND.Volume + 0.08888888888888889
  528. CHILD:SetPrimaryPartCFrame(TORSO.CFrame * CF(0, -0.05, 0))
  529. until TORSO.Position.Y < FLOOR.Position.Y - 2.3 * TORSO.Size.Z
  530. for _, c in pairs(CHILD:GetChildren()) do
  531. if c.ClassName == "Accessory" or c.ClassName == "Tool" or c.ClassName == "Hat" then
  532. local H = c:FindFirstChild("Handle")
  533. if H then
  534. H.CanCollide = true
  535. H.Parent = workspace
  536. H.CFrame = TORSO.CFrame * CF(0, TORSO.Size.Y * 1.2, 0)
  537. Debris:AddItem(H, 5)
  538. end
  539. end
  540. end
  541. CHILD:Remove()
  542. local VOLUME = SOUND.Volume
  543. for i = 1, 35 do
  544. Swait()
  545. SOUND.Volume = SOUND.Volume - VOLUME / 35
  546. FLOOR.Size = FLOOR.Size - VT(0.2 * TORSO.Size.Z, 0, 0.2 * TORSO.Size.Z)
  547. end
  548. Soul(FLOOR.Position)
  549. SOUND:Stop()
  550. FLOOR:remove()
  551. end))
  552. end
  553. end
  554. end
  555. end
  556. end
  557. end
  558. end
  559. end
  560. function Wave()
  561. ATTACK = true
  562. Rooted = false
  563. for i = 0, 0.2, 0.1 / Animation_Speed do
  564. Swait()
  565. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  566. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  567. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(160), RAD(35 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  568. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  569. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  570. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  571. end
  572. HITFLOOR, HITPOS = Raycast(Mouse.Hit.p + VT(0, 1, 0), CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character)
  573. if HITFLOOR and HITFLOOR.Anchored == true then
  574. do
  575. local NEWFLOOR = CreatePart(3, Effects, "Neon", 0, 0, "White", "Floor", VT(0, 0, 0), true)
  576. NEWFLOOR.Color = C3(0, 0, 0)
  577. MakeForm(NEWFLOOR, "Cyl")
  578. NEWFLOOR.CFrame = CF(HITPOS)
  579. CreateSound(1110489303, NEWFLOOR, 4, 1, false)
  580. coroutine.resume(coroutine.create(function()
  581. for i = 1, 25 do
  582. Swait()
  583. Blob(NEWFLOOR.Position, NEWFLOOR.Size.X / 2)
  584. NEWFLOOR.Size = NEWFLOOR.Size + VT(0.6, 0, 0.6)
  585. end
  586. for i = 1, 450 do
  587. Swait()
  588. Blob(NEWFLOOR.Position, NEWFLOOR.Size.X / 2)
  589. NEWFLOOR.Size = VT(15, 0, 15) + VT(0.1 * SIN(SINE / 12), 0, 0.1 * SIN(SINE / 12))
  590. end
  591. local SIZE = NEWFLOOR.Size.X
  592. for i = 1, 70 do
  593. Swait()
  594. Blob(NEWFLOOR.Position, NEWFLOOR.Size.X / 2)
  595. NEWFLOOR.Size = NEWFLOOR.Size - VT(SIZE / 70, 0, SIZE / 70)
  596. end
  597. NEWFLOOR:remove()
  598. end))
  599. end
  600. end
  601. for i = 0, 0.3, 0.1 / Animation_Speed do
  602. Swait()
  603. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(65 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  604. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  605. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(45), RAD(35 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  606. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  607. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  608. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  609. end
  610. ATTACK = false
  611. Rooted = false
  612. end
  613. function Teleport()
  614. local POS = Mouse.Hit.p + VT(0, 4, 0)
  615. HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character)
  616. if HITFLOOR and HITFLOOR.Anchored == true then
  617. ATTACK = true
  618. Rooted = true
  619. do
  620. local CLERPTO = CF(POS, VT(RootPart.Position.X, POS.Y, RootPart.Position.Z))
  621. UNANCHOR = false
  622. for i = 0, 0.3, 0.1 / Animation_Speed do
  623. Swait()
  624. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  625. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  626. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  627. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(25 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  628. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  629. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  630. end
  631. for i = 1, 70 do
  632. Swait()
  633. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(180), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), i / 70 / 2 / Animation_Speed)
  634. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  635. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 1, 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, i / 70 / 2 / Animation_Speed)
  636. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 1, 0) * ANGLES(RAD(180), RAD(0), RAD(45)) * LEFTSHOULDERC0, i / 70 / 2 / Animation_Speed)
  637. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), i / 70 / 2 / Animation_Speed)
  638. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), i / 70 / 2 / Animation_Speed)
  639. end
  640. for i = 0, 0.6, 0.1 / Animation_Speed do
  641. Swait()
  642. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -7) * ANGLES(RAD(180), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 0.5 / Animation_Speed)
  643. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  644. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 1, 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  645. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 1, 0) * ANGLES(RAD(180), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  646. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  647. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  648. end
  649. CreateSound(1110489303, FLOOR, 7, 0.7, false)
  650. local NEWFLOOR = CreatePart(3, Effects, "Neon", 0, 0, "White", "Floor", VT(15, 0, 15), true)
  651. NEWFLOOR.Color = C3(0, 0, 0)
  652. MakeForm(NEWFLOOR, "Cyl")
  653. NEWFLOOR.CFrame = FLOOR.CFrame
  654. coroutine.resume(coroutine.create(function()
  655. for i = 1, 450 do
  656. Swait()
  657. Blob(NEWFLOOR.Position, NEWFLOOR.Size.X / 2)
  658. NEWFLOOR.Size = VT(15, 0, 15) + VT(0.1 * SIN(SINE / 12), 0, 0.1 * SIN(SINE / 12))
  659. end
  660. local SIZE = NEWFLOOR.Size.X
  661. for i = 1, 70 do
  662. Swait()
  663. Blob(NEWFLOOR.Position, NEWFLOOR.Size.X / 2)
  664. NEWFLOOR.Size = NEWFLOOR.Size - VT(SIZE / 70, 0, SIZE / 70)
  665. end
  666. NEWFLOOR:remove()
  667. end))
  668. for _, c in pairs(Character:GetChildren()) do
  669. if c:IsA("BasePart") and c ~= RootPart then
  670. c.Transparency = 1
  671. end
  672. end
  673. for i = 1, 170 do
  674. Swait()
  675. RootPart.CFrame = Clerp(RootPart.CFrame, CLERPTO, 0.05)
  676. end
  677. for _, c in pairs(Character:GetChildren()) do
  678. if c:IsA("BasePart") and c ~= RootPart then
  679. c.Transparency = 0
  680. end
  681. end
  682. CreateSound(649634100, Head, 4, 0.8, false)
  683. for i = 0, 0.3, 0.1 / Animation_Speed do
  684. Swait()
  685. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 0.3 / Animation_Speed)
  686. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 0.3 / Animation_Speed)
  687. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  688. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  689. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-33 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  690. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-33 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  691. end
  692. for i = 0, 0.6, 0.1 / Animation_Speed do
  693. Swait()
  694. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 0.3 / Animation_Speed)
  695. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 0.3 / Animation_Speed)
  696. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  697. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  698. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  699. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  700. end
  701. UNANCHOR = true
  702. ATTACK = false
  703. Rooted = false
  704. end
  705. end
  706. end
  707. function Open()
  708. ATTACK = true
  709. Rooted = true
  710. HOLE = true
  711. CreateSound(649634100, Head, 4, 0.8, false)
  712. for i = 0, 1, 0.1 / Animation_Speed do
  713. Swait()
  714. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -2) * ANGLES(RAD(65 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(35 + 2.5 * SIN(SINE / 12))), 0.3 / Animation_Speed)
  715. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  716. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(35 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  717. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  718. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  719. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  720. end
  721. coroutine.resume(coroutine.create(function()
  722. for i = 1, 280 do
  723. Swait()
  724. SIZE = SIZE + 0.5
  725. WACKYEFFECT({
  726. Time = 15,
  727. EffectType = "Wave",
  728. Size = FLOOR.Size / 2,
  729. Size2 = FLOOR.Size * 1.02,
  730. Transparency = 0.8,
  731. Transparency2 = 1,
  732. CFrame = CF(FLOOR.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  733. MoveToPos = nil,
  734. RotationX = 0,
  735. RotationY = 2,
  736. RotationZ = 0,
  737. Material = "Neon",
  738. Color = C3(0, 0, 0),
  739. SoundID = nil,
  740. SoundPitch = nil,
  741. SoundVolume = nil
  742. })
  743. end
  744. wait(10)
  745. for i = 1, 560 do
  746. Swait()
  747. SIZE = SIZE - 0.25
  748. end
  749. HOLE = false
  750. end))
  751. for i = 0, 0.2, 0.1 / Animation_Speed do
  752. Swait()
  753. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -2) * ANGLES(RAD(65 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(35 + 2.5 * SIN(SINE / 12))), 0.3 / Animation_Speed)
  754. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  755. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(35 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  756. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  757. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  758. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(17 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  759. end
  760. ATTACK = false
  761. Rooted = false
  762. end
  763. function Laugh()
  764. ATTACK = true
  765. Rooted = false
  766. CreateSound(649634100, Head, 4, 0.8, false)
  767. for i = 0, 1, 0.1 / Animation_Speed do
  768. Swait()
  769. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  770. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  771. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(180), RAD(35 - 2.5 * SIN(SINE / 12)), RAD(-35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  772. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(35 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  773. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  774. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  775. end
  776. ATTACK = false
  777. Rooted = false
  778. end
  779. function MouseDown(Mouse)
  780. if ATTACK == false then
  781. end
  782. end
  783. function MouseUp(Mouse)
  784. HOLD = false
  785. end
  786. function KeyDown(Key)
  787. KEYHOLD = true
  788. if Key == "z" and ATTACK == false then
  789. Wave()
  790. end
  791. if Key == "b" and ATTACK == false and HOLE == false then
  792. Teleport()
  793. end
  794. if Key == "c" and ATTACK == false and HOLE == false then
  795. Open()
  796. end
  797. if Key == "t" and ATTACK == false then
  798. Laugh()
  799. end
  800. end
  801. function KeyUp(Key)
  802. KEYHOLD = false
  803. end
  804. Mouse.Button1Down:connect(function(NEWKEY)
  805. MouseDown(NEWKEY)
  806. end)
  807. Mouse.Button1Up:connect(function(NEWKEY)
  808. MouseUp(NEWKEY)
  809. end)
  810. Mouse.KeyDown:connect(function(NEWKEY)
  811. KeyDown(NEWKEY)
  812. end)
  813. Mouse.KeyUp:connect(function(NEWKEY)
  814. KeyUp(NEWKEY)
  815. end)
  816. function unanchor()
  817. for _, c in pairs(Character:GetChildren()) do
  818. if c:IsA("BasePart") and c ~= RootPart then
  819. c.Anchored = false
  820. end
  821. end
  822. if UNANCHOR == true then
  823. RootPart.Anchored = false
  824. else
  825. RootPart.Anchored = true
  826. end
  827. end
  828. Humanoid.Changed:connect(function(Jump)
  829. if Jump == "Jump" and Disable_Jump == true then
  830. Humanoid.Jump = false
  831. end
  832. end)
  833. while true do
  834. Swait()
  835. Humanoid.HipHeight = 1
  836. script.Parent = WEAPONGUI
  837. SINE = SINE + CHANGE * 1.2
  838. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  839. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  840. HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character)
  841. if HITFLOOR then
  842. HITFLOOR2, HITPOS2 = Raycast(FLOOR.Position + VT(0, 0.2, 0), CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 2, Character)
  843. if HITFLOOR2 then
  844. FLOOR.Transparency = 0
  845. else
  846. FLOOR.Transparency = 1
  847. end
  848. FLOOR.CFrame = Clerp(FLOOR.CFrame, CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.1)
  849. Blob(FLOOR.Position, FLOOR.Size.X / 2)
  850. end
  851. if ATTACK == false then
  852. if TORSOVELOCITY < 1 then
  853. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(35 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  854. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  855. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(35), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  856. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.35 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(35), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  857. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  858. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  859. elseif TORSOVELOCITY > 1 then
  860. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  861. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  862. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  863. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.35 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  864. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  865. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  866. end
  867. end
  868. unanchor()
  869. Humanoid.Name = "Absylum"
  870. Humanoid.MaxHealth = 700000000
  871. Humanoid.Health = 700000000
  872. if Rooted == false then
  873. Disable_Jump = false
  874. Humanoid.WalkSpeed = Speed
  875. elseif Rooted == true then
  876. Disable_Jump = true
  877. Humanoid.WalkSpeed = 0
  878. end
  879. FLOOR.Size = VT(SIZE, 0, SIZE) + VT(0.1 * SIN(SINE / 12), 0, 0.1 * SIN(SINE / 12))
  880. sick.SoundId = "rbxassetid://"
  881. sick.Looped = true
  882. sick.Pitch = 1
  883. sick.Volume = 1
  884. sick.Playing = true
  885. sick.Parent = Character
  886. for _, c in pairs(Character:GetChildren()) do
  887. if c.ClassName == "Part" and c.Name ~= "Eye" then
  888. c.Material = "Neon"
  889. if c:FindFirstChildOfClass("ParticleEmitter") then
  890. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  891. end
  892. c.Color = C3(0, 0, 0)
  893. if c == Head then
  894. if c:FindFirstChildOfClass("SpecialMesh") then
  895. c:ClearAllChildren()
  896. local MSH = IT("BlockMesh", c)
  897. MSH.Scale = VT(0.5, 1, 1)
  898. end
  899. if c:FindFirstChild("face") then
  900. c.face:remove()
  901. end
  902. end
  903. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  904. c:remove()
  905. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  906. c:remove()
  907. end
  908. end
  909. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement