Advertisement
Dark_AJ1

a bad tom

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