Advertisement
memberhero

Fe Test 2

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