Advertisement
ericdesouza

Abslyum script GLASS

Mar 13th, 2018
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.69 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5.  
  6. IT = Instance.new
  7. CF = CFrame.new
  8. VT = Vector3.new
  9. RAD = math.rad
  10. C3 = Color3.new
  11. UD2 = UDim2.new
  12. BRICKC = BrickColor.new
  13. ANGLES = CFrame.Angles
  14. EULER = CFrame.fromEulerAnglesXYZ
  15. COS = math.cos
  16. ACOS = math.acos
  17. SIN = math.sin
  18. ASIN = math.asin
  19. ABS = math.abs
  20. MRANDOM = math.random
  21. FLOOR = math.floor
  22.  
  23. wait(0.2)
  24.  
  25. local Player = game.Players.localPlayer
  26. local Character = Player.Character
  27. local Humanoid = Character.Humanoid
  28. local Mouse = Player:GetMouse()
  29. local LeftArm = Character["Left Arm"]
  30. local RightArm = Character["Right Arm"]
  31. local LeftLeg = Character["Left Leg"]
  32. local RightLeg = Character["Right Leg"]
  33. local Head = Character.Head
  34. local Torso = Character.Torso
  35. local Camera = game.Workspace.CurrentCamera
  36. local RootPart = Character.HumanoidRootPart
  37. local RootJoint = RootPart.RootJoint
  38. local attack = false
  39. local Anim = 'Idle'
  40. local Lighty = game:GetService"Lighting"
  41. local attacktype = 1
  42. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  43. local velocity = RootPart.Velocity.y
  44. local sine = 0
  45. local change = 1
  46. local Create = LoadLibrary("RbxUtility").Create
  47.  
  48. local asd = Instance.new("ParticleEmitter")
  49. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  50. asd.LightEmission = .1
  51. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  52. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  53. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  54. asd.Transparency = bbb
  55. asd.Size = aaa
  56. asd.ZOffset = .9
  57. asd.Acceleration = Vector3.new(0, -15, 0)
  58. asd.LockedToPart = false
  59. asd.EmissionDirection = "Back"
  60. asd.Lifetime = NumberRange.new(1, 2)
  61. asd.Rotation = NumberRange.new(-100, 100)
  62. asd.RotSpeed = NumberRange.new(-100, 100)
  63. asd.Speed = NumberRange.new(10)
  64. asd.Enabled = false
  65. asd.VelocitySpread = 999
  66.  
  67. function getbloody(victim,amount)
  68. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  69. PART.CFrame = victim.CFrame
  70. local HITPLAYERSOUNDS = {"356551938","264486467"}
  71. Debris:AddItem(PART,5)
  72. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  73. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  74. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  75. local prtcl = asd:Clone()
  76. prtcl.Parent = PART
  77. prtcl:Emit(amount*10)
  78. end
  79.  
  80. local Particle = IT("ParticleEmitter",nil)
  81. Particle.Enabled = false
  82. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  83. Particle.LightEmission = 0.5
  84. Particle.Rate = 150
  85. Particle.ZOffset = 1
  86. Particle.Rotation = NumberRange.new(-180, 180)
  87. Particle.RotSpeed = NumberRange.new(-180, 180)
  88. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  89. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  90.  
  91. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  92. function ParticleEmitter(Table)
  93. local PRTCL = Particle:Clone()
  94. local Speed = Table.Speed or 5
  95. local Drag = Table.Drag or 0
  96. local Size1 = Table.Size1 or 1
  97. local Size2 = Table.Size2 or 5
  98. local Lifetime1 = Table.Lifetime1 or 2
  99. local Lifetime2 = Table.Lifetime2 or 2.5
  100. local Parent = Table.Parent or Torso
  101. local Emit = Table.Emit or 100
  102. local Offset = Table.Offset or 360
  103. local Acel = Table.Acel or VT(0,0,0)
  104. local Enabled = Table.Enabled or false
  105. PRTCL.Parent = Parent
  106. PRTCL.Size = NumberSequence.new(Size1,Size2)
  107. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  108. PRTCL.Speed = NumberRange.new(Speed)
  109. PRTCL.VelocitySpread = Offset
  110. PRTCL.Drag = Drag
  111. PRTCL.Acceleration = Acel
  112. if Enabled == false then
  113. PRTCL:Emit(Emit)
  114. Debris:AddItem(PRTCL,Lifetime2)
  115. else
  116. PRTCL.Enabled = true
  117. end
  118. return PRTCL
  119. end
  120.  
  121.  
  122. local chara = Character
  123. local m = Create("Model"){
  124. Parent = Character,
  125. Name = "WeaponModel",
  126. }
  127. function chat(...)
  128. local txxt = {...}
  129. local ch = coroutine.wrap(function()
  130. if chara:FindFirstChild("Chatt")~= nil then
  131. Character:FindFirstChild("Chatt"):destroy()
  132. end
  133. local txt = Instance.new("BillboardGui", chara)
  134. txt.Adornee = chara.Head
  135. txt.Name = "Chatt"
  136. txt.Size = UDim2.new(2, 0, 1.2, 0)
  137. txt.StudsOffset = Vector3.new(-9, 7, 0)
  138. local text = Instance.new("TextLabel", txt)
  139. text.Size = UDim2.new(10, 0, 7, 0)
  140. text.TextSize = 24
  141. text.Font = Enum.Font.Fantasy
  142. text.TextScaled = false
  143. text.BackgroundTransparency = 1
  144. text.TextColor3 = Color3.new(0,0,0)
  145. text.TextStrokeTransparency = 0
  146. text.TextStrokeColor3 = Color3.new(0,0,0)
  147. text.Text = ""
  148. txxt = table.concat(txxt,"\t")
  149. for i = 1, #txxt do
  150. text.Text = txxt:sub(1,i)
  151.  
  152. end
  153. wait(2)
  154. for trans = 0,1,.1 do
  155. text.TextTransparency = trans
  156. text.TextStrokeTransparency = trans
  157. wait()
  158. end
  159. wait()
  160. txt:destroy()
  161. end)
  162.  
  163. ch(...)
  164. end
  165. Player.Chatted:connect(chat)
  166. warn("Q to teleport")
  167. warn("E to create a sinkhole")
  168. warn("R to create a massive sinkhole")
  169. warn("T to laugh")
  170. Player = game:GetService("Players").LocalPlayer
  171. PlayerGui = Player.PlayerGui
  172. Cam = workspace.CurrentCamera
  173. Backpack = Player.Backpack
  174. Character = Player.Character
  175. Humanoid = Character.Humanoid
  176. Mouse = Player:GetMouse()
  177. RootPart = Character["HumanoidRootPart"]
  178. Torso = Character["Torso"]
  179. Head = Character["Head"]
  180. RightArm = Character["Right Arm"]
  181. LeftArm = Character["Left Arm"]
  182. RightLeg = Character["Right Leg"]
  183. LeftLeg = Character["Left Leg"]
  184. RootJoint = RootPart["RootJoint"]
  185. Neck = Torso["Neck"]
  186. RightShoulder = Torso["Right Shoulder"]
  187. LeftShoulder = Torso["Left Shoulder"]
  188. RightHip = Torso["Right Hip"]
  189. LeftHip = Torso["Left Hip"]
  190. local sick = Instance.new("Sound",Character)
  191. sick.SoundId = "rbxassetid://1182824812"
  192. sick.Looped = true
  193. sick.Pitch = 0.98
  194. sick.Volume = 1
  195. Humanoid.DisplayDistanceType = "None"
  196.  
  197. for _, c in pairs(Character:GetDescendants()) do
  198. if c and c.Parent then
  199. if c.Name == "FIST" and c.Parent.ClassName == "Accessory" then
  200. local ACCESSORY = c.Parent
  201. c.Parent = Character
  202. if c then
  203. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  204. weldBetween(Head,c)
  205. else
  206. weldBetween(Torso,c)
  207. end
  208. end
  209. ACCESSORY:remove()
  210. elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  211. c.Material = "Neon"
  212. c.Color = C3(0,0,0)
  213. if c:FindFirstChildOfClass("SpecialMesh") then
  214. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  215. end
  216. if c == Head then
  217. if c:FindFirstChild("face") then
  218. c.face:remove()
  219. end
  220. end
  221. elseif c.ClassName == "Part" and c.Name == "Eye" then
  222. c.Color = C3(1,0,0)
  223. c.Material = "Neon"
  224. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  225. c:remove()
  226. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  227. c:remove()
  228. end
  229. end
  230. end
  231. local BODY = {}
  232. for _, c in pairs(Character:GetDescendants()) do
  233. if c:IsA("BasePart") and c.Name ~= "Handle" then
  234. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  235. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  236. end
  237. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
  238. elseif c:IsA("JointInstance") then
  239. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
  240. end
  241. end
  242. function refit()
  243. Character.Parent = workspace
  244. for e = 1, #BODY do
  245. if BODY[e] ~= nil then
  246. local STUFF = BODY[e]
  247. local PART = STUFF[1]
  248. local PARENT = STUFF[2]
  249. local MATERIAL = STUFF[3]
  250. local COLOR = STUFF[4]
  251. local TRANSPARENCY = STUFF[5]
  252. --local SIZE = STUFF[6]
  253. local NAME = STUFF[7]
  254. if PART.ClassName == "Part" and PART ~= RootPart then
  255. PART.Material = MATERIAL
  256. PART.Transparency = TRANSPARENCY
  257. PART.Name = NAME
  258. end
  259. if PART.Parent ~= PARENT then
  260. Humanoid:remove()
  261. PART.Parent = PARENT
  262. Humanoid = IT("Humanoid",Character)
  263. end
  264. end
  265. end
  266. end
  267.  
  268. Humanoid.Died:connect(function()
  269. refit()
  270. end)
  271.  
  272.  
  273.  
  274. IT = Instance.new
  275. CF = CFrame.new
  276. VT = Vector3.new
  277. RAD = math.rad
  278. C3 = Color3.new
  279. UD2 = UDim2.new
  280. BRICKC = BrickColor.new
  281. ANGLES = CFrame.Angles
  282. EULER = CFrame.fromEulerAnglesXYZ
  283. COS = math.cos
  284. ACOS = math.acos
  285. SIN = math.sin
  286. ASIN = math.asin
  287. ABS = math.abs
  288. MRANDOM = math.random
  289. FLOOR = math.floor
  290.  
  291. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  292. local NEWMESH = IT(MESH)
  293. if MESH == "SpecialMesh" then
  294. NEWMESH.MeshType = MESHTYPE
  295. if MESHID ~= "nil" and MESHID ~= "" then
  296. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  297. end
  298. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  299. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  300. end
  301. end
  302. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  303. NEWMESH.Scale = SCALE
  304. NEWMESH.Parent = PARENT
  305. return NEWMESH
  306. end
  307.  
  308. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  309. local NEWPART = IT("Part")
  310. NEWPART.formFactor = FORMFACTOR
  311. NEWPART.Reflectance = REFLECTANCE
  312. NEWPART.Transparency = TRANSPARENCY
  313. NEWPART.CanCollide = false
  314. NEWPART.Locked = true
  315. NEWPART.Anchored = true
  316. if ANCHOR == false then
  317. NEWPART.Anchored = false
  318. end
  319. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  320. NEWPART.Name = NAME
  321. NEWPART.Size = SIZE
  322. NEWPART.Position = Torso.Position
  323. NEWPART.Material = MATERIAL
  324. NEWPART:BreakJoints()
  325. NEWPART.Parent = PARENT
  326. return NEWPART
  327. end
  328.  
  329. --//=================================\\
  330. --|| CUSTOMIZATION
  331. --\\=================================//
  332.  
  333. Player_Size = 1 --Size of the player.
  334. Animation_Speed = 3
  335. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  336.  
  337. local Speed = 16
  338. local Effects2 = {}
  339.  
  340. --//=================================\\
  341. --|| END OF CUSTOMIZATION
  342. --\\=================================//
  343.  
  344. local function weldBetween(a, b)
  345. local weldd = Instance.new("ManualWeld")
  346. weldd.Part0 = a
  347. weldd.Part1 = b
  348. weldd.C0 = CFrame.new()
  349. weldd.C1 = b.CFrame:inverse() * a.CFrame
  350. weldd.Parent = a
  351. return weldd
  352. end
  353.  
  354. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  355. local acs = Instance.new("Part")
  356. acs.CanCollide = false
  357. acs.Anchored = false
  358. acs.Size = Vector3.new(0,0,0)
  359. acs.CFrame = attachmentpart.CFrame
  360. acs.Parent = Character
  361. acs.BrickColor = color
  362. local meshs = Instance.new("SpecialMesh")
  363. meshs.MeshId = mesh
  364. meshs.TextureId = texture
  365. meshs.Parent = acs
  366. meshs.Scale = scale
  367. meshs.Offset = offset
  368. weldBetween(attachmentpart,acs)
  369. end
  370.  
  371. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  372. if TYPE == "Gem" then
  373. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  374. acs.Anchored = false
  375. acs.CanCollide = false
  376. acs.CFrame = PART.CFrame
  377. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  378. weldBetween(PART,acs)
  379. elseif TYPE == "Skull" then
  380. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  381. acs.Anchored = false
  382. acs.CanCollide = false
  383. acs.CFrame = PART.CFrame
  384. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  385. weldBetween(PART,acs)
  386. elseif TYPE == "Eye" then
  387. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  388. acs.Anchored = false
  389. acs.CanCollide = false
  390. acs.CFrame = PART.CFrame
  391. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  392. weldBetween(PART,acs)
  393. end
  394. end
  395.  
  396. --//=================================\\
  397. --|| USEFUL VALUES
  398. --\\=================================//
  399.  
  400. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  401. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  402. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  403. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  404. local CHANGEDEFENSE = 0
  405. local CHANGEDAMAGE = 0
  406. local CHANGEMOVEMENT = 0
  407. local ANIM = "Idle"
  408. local ATTACK = false
  409. local EQUIPPED = false
  410. local HOLD = false
  411. local COMBO = 1
  412. local Rooted = false
  413. local SINE = 0
  414. local HITFLOOR = nil
  415. local HITPOS = nil
  416. local KEYHOLD = false
  417. local CHANGE = 2 / Animation_Speed
  418. local WALKINGANIM = false
  419. local WALK = 0
  420. local VALUE1 = false
  421. local VALUE2 = false
  422. local ROBLOXIDLEANIMATION = IT("Animation")
  423. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  424. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  425. --ROBLOXIDLEANIMATION.Parent = Humanoid
  426. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  427. WEAPONGUI.Name = "Weapon GUI"
  428. local Weapon = IT("Model")
  429. Weapon.Name = "Adds"
  430. local Effects = IT("Folder", Weapon)
  431. Effects.Name = "Effects"
  432. local ANIMATOR = Humanoid.Animator
  433. local ANIMATE = Character.Animate
  434. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  435. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  436. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  437. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  438. local UNANCHOR = true
  439.  
  440. local SKILLTEXTCOLOR = C3(0,0,0)
  441.  
  442. --//=================================\\
  443. --\\=================================//
  444.  
  445.  
  446. --//=================================\\
  447. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  448. --\\=================================//
  449.  
  450. ArtificialHB = Instance.new("BindableEvent", script)
  451. ArtificialHB.Name = "ArtificialHB"
  452.  
  453. script:WaitForChild("ArtificialHB")
  454.  
  455. frame = Frame_Speed
  456. tf = 0
  457. allowframeloss = false
  458. tossremainder = false
  459. lastframe = tick()
  460. script.ArtificialHB:Fire()
  461.  
  462. game:GetService("RunService").Heartbeat:connect(function(s, p)
  463. tf = tf + s
  464. if tf >= frame then
  465. if allowframeloss then
  466. script.ArtificialHB:Fire()
  467. lastframe = tick()
  468. else
  469. for i = 1, math.floor(tf / frame) do
  470. script.ArtificialHB:Fire()
  471. end
  472. lastframe = tick()
  473. end
  474. if tossremainder then
  475. tf = 0
  476. else
  477. tf = tf - frame * math.floor(tf / frame)
  478. end
  479. end
  480. end)
  481.  
  482. --//=================================\\
  483. --\\=================================//
  484.  
  485.  
  486.  
  487.  
  488.  
  489. --//=================================\\
  490. --|| SOME FUNCTIONS
  491. --\\=================================//
  492.  
  493. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  494. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  495. end
  496.  
  497. function PositiveAngle(NUMBER)
  498. if NUMBER >= 0 then
  499. NUMBER = 0
  500. end
  501. return NUMBER
  502. end
  503.  
  504. function NegativeAngle(NUMBER)
  505. if NUMBER <= 0 then
  506. NUMBER = 0
  507. end
  508. return NUMBER
  509. end
  510.  
  511. function Swait(NUMBER)
  512. if NUMBER == 0 or NUMBER == nil then
  513. ArtificialHB.Event:wait()
  514. else
  515. for i = 1, NUMBER do
  516. ArtificialHB.Event:wait()
  517. end
  518. end
  519. end
  520.  
  521. function QuaternionFromCFrame(cf)
  522. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  523. local trace = m00 + m11 + m22
  524. if trace > 0 then
  525. local s = math.sqrt(1 + trace)
  526. local recip = 0.5 / s
  527. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  528. else
  529. local i = 0
  530. if m11 > m00 then
  531. i = 1
  532. end
  533. if m22 > (i == 0 and m00 or m11) then
  534. i = 2
  535. end
  536. if i == 0 then
  537. local s = math.sqrt(m00 - m11 - m22 + 1)
  538. local recip = 0.5 / s
  539. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  540. elseif i == 1 then
  541. local s = math.sqrt(m11 - m22 - m00 + 1)
  542. local recip = 0.5 / s
  543. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  544. elseif i == 2 then
  545. local s = math.sqrt(m22 - m00 - m11 + 1)
  546. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  547. end
  548. end
  549. end
  550.  
  551. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  552. local xs, ys, zs = x + x, y + y, z + z
  553. local wx, wy, wz = w * xs, w * ys, w * zs
  554. local xx = x * xs
  555. local xy = x * ys
  556. local xz = x * zs
  557. local yy = y * ys
  558. local yz = y * zs
  559. local zz = z * zs
  560. 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))
  561. end
  562.  
  563. function QuaternionSlerp(a, b, t)
  564. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  565. local startInterp, finishInterp;
  566. if cosTheta >= 0.0001 then
  567. if (1 - cosTheta) > 0.0001 then
  568. local theta = ACOS(cosTheta)
  569. local invSinTheta = 1 / SIN(theta)
  570. startInterp = SIN((1 - t) * theta) * invSinTheta
  571. finishInterp = SIN(t * theta) * invSinTheta
  572. else
  573. startInterp = 1 - t
  574. finishInterp = t
  575. end
  576. else
  577. if (1 + cosTheta) > 0.0001 then
  578. local theta = ACOS(-cosTheta)
  579. local invSinTheta = 1 / SIN(theta)
  580. startInterp = SIN((t - 1) * theta) * invSinTheta
  581. finishInterp = SIN(t * theta) * invSinTheta
  582. else
  583. startInterp = t - 1
  584. finishInterp = t
  585. end
  586. end
  587. 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
  588. end
  589.  
  590. function Clerp(a, b, t)
  591. local qa = {QuaternionFromCFrame(a)}
  592. local qb = {QuaternionFromCFrame(b)}
  593. local ax, ay, az = a.x, a.y, a.z
  594. local bx, by, bz = b.x, b.y, b.z
  595. local _t = 1 - t
  596. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  597. end
  598.  
  599. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  600. local frame = IT("Frame")
  601. frame.BackgroundTransparency = TRANSPARENCY
  602. frame.BorderSizePixel = BORDERSIZEPIXEL
  603. frame.Position = POSITION
  604. frame.Size = SIZE
  605. frame.BackgroundColor3 = COLOR
  606. frame.BorderColor3 = BORDERCOLOR
  607. frame.Name = NAME
  608. frame.Parent = PARENT
  609. return frame
  610. end
  611.  
  612. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  613. local label = IT("TextLabel")
  614. label.BackgroundTransparency = 1
  615. label.Size = UD2(1, 0, 1, 0)
  616. label.Position = UD2(0, 0, 0, 0)
  617. label.TextColor3 = TEXTCOLOR
  618. label.TextStrokeColor3 = C3(1,1,1)
  619. label.TextStrokeTransparency = 0
  620. label.TextTransparency = TRANSPARENCY
  621. label.FontSize = TEXTFONTSIZE
  622. label.Font = TEXTFONT
  623. label.BorderSizePixel = BORDERSIZEPIXEL
  624. label.TextScaled = false
  625. label.Text = TEXT
  626. label.Name = NAME
  627. label.Parent = PARENT
  628. return label
  629. end
  630.  
  631. function NoOutlines(PART)
  632. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  633. end
  634.  
  635.  
  636. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  637. local NEWWELD = IT(TYPE)
  638. NEWWELD.Part0 = PART0
  639. NEWWELD.Part1 = PART1
  640. NEWWELD.C0 = C0
  641. NEWWELD.C1 = C1
  642. NEWWELD.Parent = PARENT
  643. return NEWWELD
  644. end
  645.  
  646. function CreateSound(ID, PARENT, VOLUME, PITCH)
  647. local NEWSOUND = nil
  648. coroutine.resume(coroutine.create(function()
  649. NEWSOUND = IT("Sound", PARENT)
  650. NEWSOUND.Volume = VOLUME
  651. NEWSOUND.Pitch = PITCH
  652. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  653. Swait()
  654. NEWSOUND:play()
  655. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  656. end))
  657. return NEWSOUND
  658. end
  659.  
  660. function CFrameFromTopBack(at, top, back)
  661. local right = top:Cross(back)
  662. 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)
  663. end
  664.  
  665. function MakeForm(PART,TYPE)
  666. local MSH = nil
  667. if TYPE == "Cyl" then
  668. MSH = IT("CylinderMesh",PART)
  669. elseif TYPE == "Ball" then
  670. MSH = IT("SpecialMesh",PART)
  671. MSH.MeshType = "Brick"
  672. elseif TYPE == "Wedge" then
  673. MSH = IT("SpecialMesh",PART)
  674. MSH.MeshType = "Wedge"
  675. end
  676. return MSH
  677. end
  678.  
  679. Debris = game:GetService("Debris")
  680.  
  681. --//=================================\\
  682. --|| WEAPON CREATION
  683. --\\=================================//
  684.  
  685. local Hole = CreatePart(3, Weapon, "Glass", 0, 0, "White", "Hole", VT(15,0,15))
  686. local MESH = MakeForm(Hole,"Cyl")
  687.  
  688. for _, c in pairs(Weapon:GetChildren()) do
  689. if c.ClassName == "Part" then
  690. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  691. end
  692. end
  693.  
  694. Weapon.Parent = Character
  695.  
  696. Humanoid.Died:connect(function()
  697. ATTACK = true
  698. end)
  699.  
  700.  
  701.  
  702. --//=================================\\
  703. --|| DAMAGING
  704. --\\=================================//
  705.  
  706. function Sink(position,radius)
  707. for i,v in ipairs(workspace:GetChildren()) do
  708. if v:FindFirstChild("Hit2By"..Player.Name) == nil then
  709. local body = v:GetChildren()
  710. for part = 1, #body do
  711. if(v:FindFirstChild("Hit2By"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  712. if(body[part].Position - position).Magnitude < radius then
  713. if v.ClassName == "Model" then
  714. if v:FindFirstChild("Humanoid") then
  715. local defence = Instance.new("BoolValue",v)
  716. defence.Name = ("Hit2By"..Player.Name)
  717. if v.Humanoid.Health ~= 0.1 then
  718. local TORS = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  719. if TORS ~= nil then
  720. local HITFLOOR2, HITPOS2 = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + VT(0, -1, 0))).lookVector, 5 * TORS.Size.Y/2, v)
  721. coroutine.resume(coroutine.create(function()
  722. if HITFLOOR2 ~= nil then
  723. TORS.Anchored = false
  724. local Hole2 = CreatePart(3, Effects, "Glass", 0, 0, "White", "Hole", VT(TORS.Size.X*4,0,TORS.Size.X*4))
  725. Hole2.Color = C3(0,0,0)
  726. local MESH = MakeForm(Hole2,"Cyl")
  727. MESH.Scale = VT(0,1,0)
  728. Hole2.CFrame = CF(HITPOS2)
  729. for i = 1, 10 do
  730. Swait()
  731. MESH.Scale = MESH.Scale + VT(0.1,0,0.1)
  732. end
  733. repeat
  734. Swait()
  735. TORS.CFrame = TORS.CFrame * CF(0,-0.1,0)
  736. until TORS.Position.Y<position.Y-4
  737. v:remove()
  738. v:Destroy()
  739. for i = 1, 10 do
  740. Swait()
  741. MESH.Scale = MESH.Scale - VT(0.1,0,0.1)
  742. end
  743. Hole2:remove()
  744. end
  745. end))
  746. end
  747. end
  748. end
  749. end
  750. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  751. end
  752. end
  753. end
  754. end
  755. end
  756. end
  757.  
  758. --//=================================\\
  759. --|| ATTACK FUNCTIONS AND STUFF
  760. --\\=================================//
  761.  
  762. function Trail(Part)
  763. local TRAIL = Part:Clone()
  764. TRAIL.CanCollide = false
  765. TRAIL.Anchored = true
  766. TRAIL.Parent = Effects
  767. TRAIL.Name = "Trail"
  768. local TRANS = Part.Transparency
  769. coroutine.resume(coroutine.create(function()
  770. for i = 1, 20 do
  771. Swait()
  772. TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20)
  773. end
  774. TRAIL:remove()
  775. end))
  776. end
  777.  
  778. function AttackTemplate()
  779. ATTACK = true
  780. Rooted = false
  781. for i=0, 1, 0.1 / Animation_Speed do
  782. Swait()
  783. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  784. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  785. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  786. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  787. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  788. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  789. end
  790. ATTACK = false
  791. Rooted = false
  792. end
  793.  
  794. function Intro()
  795. coroutine.resume(coroutine.create(function()
  796. ATTACK = true
  797. Rooted = true
  798. UNANCHOR = false
  799. RootPart.Anchored = true
  800. for i=0, 2, 0.1 / Animation_Speed do
  801. Swait()
  802. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  803. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  804. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  805. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  806. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  807. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  808. end
  809. for i=0, 4, 0.1 / Animation_Speed do
  810. Swait()
  811. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  812. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  813. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  814. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  815. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  816. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  817. end
  818. VALUE1 = true
  819. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0,0,0),false)
  820. local weld = CreateWeldOrSnapOrMotor("Weld", part, Head, part, CF(0.16,0.25,-0.5) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
  821. MakeForm(part,"Ball")
  822. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0,0.,0),false)
  823. local weld = CreateWeldOrSnapOrMotor("Weld", part, Head, part, CF(-0.16,0.25,-0.5) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  824. MakeForm(part,"Ball")
  825. Swait(15)
  826. Humanoid.HipHeight = 2
  827. sick:Play()
  828. CreateSound("649634100", Head, 10, 0.6)
  829. for i=0, 2, 0.1 / Animation_Speed do
  830. Swait()
  831. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  832. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  833. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  834. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  835. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  836. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.15 / Animation_Speed)
  837. end
  838. UNANCHOR = true
  839. ATTACK = false
  840. Rooted = false
  841. end))
  842. end
  843.  
  844. function Warp()
  845. ATTACK = true
  846. Rooted = true
  847. UNANCHOR = false
  848. RootPart.Anchored = true
  849. for i=0, 1, 0.1 / Animation_Speed do
  850. Swait()
  851. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)), 1 / Animation_Speed)
  852. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  853. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 1.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  854. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 1.5, 0) * ANGLES(RAD(180), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  855. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(8), RAD(0), RAD(0)), 1 / Animation_Speed)
  856. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(8), RAD(0), RAD(0)), 1 / Animation_Speed)
  857. end
  858. for i=0, 1, 0.1 / Animation_Speed do
  859. Swait()
  860. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -15) * ANGLES(RAD(180), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  861. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  862. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 1.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  863. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 1.5, 0) * ANGLES(RAD(180), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  864. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(8), RAD(0), RAD(0)), 1 / Animation_Speed)
  865. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(8), RAD(0), RAD(0)), 1 / Animation_Speed)
  866. end
  867. for i = 1, 50 do
  868. Swait()
  869. Trail(Hole)
  870. MESH.Scale = MESH.Scale - VT(0.02,0,0.02)
  871. end
  872. local ORIGINPOS = RootPart.Position
  873. RootPart.CFrame = CF(VT(Mouse.Hit.p.X,RootPart.Position.Y,Mouse.Hit.p.Z),ORIGINPOS)
  874. CreateSound("466493476", Hole, 10, 1)
  875. for i = 1, 50 do
  876. Swait()
  877. MESH.Scale = MESH.Scale + VT(0.02,0,0.02)
  878. end
  879. for i=0, 2, 0.1 / Animation_Speed do
  880. Swait()
  881. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  882. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  883. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  884. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  885. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  886. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(45)), 0.15 / Animation_Speed)
  887. end
  888. UNANCHOR = true
  889. ATTACK = false
  890. Rooted = false
  891. end
  892.  
  893. function Sinkhole()
  894. coroutine.resume(coroutine.create(function()
  895. local Hole2 = CreatePart(3, Effects, "Glass", 0, 0, "White", "Hole", VT(15,0,15))
  896. Hole2.Color = C3(0,0,0)
  897. local MESH = MakeForm(Hole2,"Cyl")
  898. MESH.Scale = VT(0,1,0)
  899. Hole2.CFrame = CF(Mouse.Hit.p)
  900. CreateSound("466493476", Hole2, 10, 1)
  901. for i = 1, 50 do
  902. Swait()
  903. MESH.Scale = MESH.Scale + VT(0.02,0,0.02)
  904. end
  905. for i = 1, 200 do
  906. Swait()
  907. Sink(Hole2.Position,Hole2.Size.X/2.2)
  908. end
  909. Swait(100)
  910. for i = 1, 50 do
  911. Swait()
  912. Trail(Hole2)
  913. MESH.Scale = MESH.Scale - VT(0.02,0,0.02)
  914. end
  915. Hole2:remove()
  916. end))
  917. end
  918.  
  919.  
  920.  
  921.  
  922. function AbyssGate()
  923. VALUE2 = true
  924. coroutine.resume(coroutine.create(function()
  925. CreateSound("466493476", Hole, 10, 0.1)
  926. for i = 1, 500 do
  927. Swait()
  928. Hole.Size = Hole.Size + VT(0.4,0,0.4)
  929. end
  930. Swait(100)
  931. for i = 1, 500 do
  932. Swait()
  933. Trail(Hole)
  934. Hole.Size = Hole.Size - VT(0.4,0,0.4)
  935. end
  936. VALUE2 = false
  937. end))
  938. end
  939.  
  940. --//=================================\\
  941. --|| ASSIGN THINGS TO KEYS
  942. --\\=================================//
  943.  
  944. function MouseDown(Mouse)
  945. if ATTACK == false then
  946. end
  947. end
  948.  
  949. function MouseUp(Mouse)
  950. HOLD = false
  951. end
  952.  
  953. function KeyDown(Key)
  954. KEYHOLD = true
  955. if Key == "q" and ATTACK == false and HITFLOOR ~= nil and VALUE2 == false then
  956. Warp()
  957. end
  958.  
  959. if Key == "e" and ATTACK == false then
  960. Sinkhole()
  961. end
  962.  
  963. if Key == "z" and ATTACK == false then
  964. Unstoppable()
  965. end
  966.  
  967. if Key == "r" and ATTACK == false and VALUE2 == false then
  968. AbyssGate()
  969. end
  970.  
  971. if Key == "t" and ATTACK == false then
  972. CreateSound("649634100", Head, 10, 0.6)
  973. end
  974. end
  975.  
  976. function KeyUp(Key)
  977. KEYHOLD = false
  978. end
  979.  
  980. Mouse.Button1Down:connect(function(NEWKEY)
  981. MouseDown(NEWKEY)
  982. end)
  983. Mouse.Button1Up:connect(function(NEWKEY)
  984. MouseUp(NEWKEY)
  985. end)
  986. Mouse.KeyDown:connect(function(NEWKEY)
  987. KeyDown(NEWKEY)
  988. end)
  989. Mouse.KeyUp:connect(function(NEWKEY)
  990. KeyUp(NEWKEY)
  991. end)
  992.  
  993. --//=================================\\
  994. --\\=================================//
  995.  
  996.  
  997. function unanchor()
  998. if UNANCHOR == true then
  999. g = Character:GetChildren()
  1000. for i = 1, #g do
  1001. if g[i].ClassName == "Part" then
  1002. g[i].Anchored = false
  1003. end
  1004. end
  1005. end
  1006. end
  1007.  
  1008.  
  1009. --//=================================\\
  1010. --|| WRAP THE WHOLE SCRIPT UP
  1011. --\\=================================//
  1012.  
  1013. Humanoid.Changed:connect(function(Jump)
  1014. if Jump == "Jump" and (Disable_Jump == true) then
  1015. Humanoid.Jump = false
  1016. end
  1017. end)
  1018.  
  1019. Speed = 10
  1020.  
  1021. while true do
  1022. Swait()
  1023. ANIMATE.Parent = nil
  1024. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1025. IDLEANIMATION:Play()
  1026. SINE = SINE + CHANGE
  1027. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1028. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1029. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1030. HITFLOOR, HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25 * Player_Size, Character)
  1031. if ATTACK == false then
  1032. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1033. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1034. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1035. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1036. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1037. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(25)), 0.15 / Animation_Speed)
  1038. end
  1039. if HITFLOOR ~= nil then
  1040. Hole.CFrame = CF(HITPOS)
  1041. end
  1042. Sink(Hole.Position,Hole.Size.X/2.2*MESH.Scale.X)
  1043. Hole.Color = C3(0,0,0)
  1044. unanchor()
  1045. Humanoid.MaxHealth = "inf"
  1046. Humanoid.Health = "inf"
  1047. if Rooted == false then
  1048. Disable_Jump = false
  1049. Humanoid.WalkSpeed = Speed
  1050. elseif Rooted == true then
  1051. Disable_Jump = true
  1052. Humanoid.WalkSpeed = 0
  1053. end
  1054. if VALUE1 == true then
  1055. Humanoid.HipHeight = 2
  1056. q = Character:GetChildren()
  1057. for u = 1, #q do
  1058. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1059. q[u]:remove()
  1060. elseif q[u].ClassName == "Shirt" then
  1061. q[u]:Destroy()
  1062. elseif q[u].ClassName == "Pants" then
  1063. q[u]:Destroy()
  1064. elseif q[u].ClassName == "CharacterMesh" then
  1065. q[u]:remove()
  1066. elseif q[u].ClassName == "ShirtGraphic" then
  1067. q[u]:remove()
  1068. elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
  1069. q[u].Color = Color3.new(0,0,0)
  1070. q[u].Material = "Glass"
  1071. end
  1072. end
  1073. if Head:FindFirstChild("Mesh") then
  1074. local mesh = Head.Mesh
  1075. if mesh.ClassName == "SpecialMesh" then
  1076. mesh:remove()
  1077. local m = IT("BlockMesh",Head)
  1078. m.Scale = VT(0.5,1,1)
  1079. end
  1080. end
  1081. if Head:FindFirstChild("face") then
  1082. Head.face:remove()
  1083. end
  1084. end
  1085. if VALUE1 == false and ATTACK == false then
  1086. Intro()
  1087. end
  1088. end
  1089.  
  1090. --//=================================\\
  1091. --\\=================================//
  1092.  
  1093.  
  1094. function BurningEff(part)
  1095. local eff1 = Instance.new("ParticleEmitter",part)
  1096. eff1.Size = NumberSequence.new(.1)
  1097. eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  1098. eff1.LightEmission = 1
  1099. eff1.Lifetime = NumberRange.new(1)
  1100. eff1.Speed = NumberRange.new(0)
  1101. eff1.Rate = 100
  1102. eff1.Texture = "rbxassetid://284205403"
  1103. eff1.Acceleration = Vector3.new(0,10,0)
  1104. eff1.Color = ColorSequence.new(Color3.new(0,255,0))
  1105. local eff2 = Instance.new("ParticleEmitter",part)
  1106. eff2.Size = NumberSequence.new(.1)
  1107. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  1108. eff2.LightEmission = 1
  1109. eff2.Lifetime = NumberRange.new(1)
  1110. eff2.Speed = NumberRange.new(0)
  1111. eff2.Rate = 100
  1112. eff2.Texture = "rbxassetid://347504259"
  1113. eff2.Acceleration = Vector3.new(0,10,0)
  1114. eff2.Color = ColorSequence.new(Color3.new(0,255,0))
  1115. local eff3 = Instance.new("ParticleEmitter",part)
  1116. eff3.Size = NumberSequence.new(1)
  1117. eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  1118. eff3.LightEmission = 1
  1119. eff3.Lifetime = NumberRange.new(1)
  1120. eff3.Speed = NumberRange.new(0)
  1121. eff3.Rate = 100
  1122. eff3.Texture = "rbxassetid://284205403"
  1123. eff3.Acceleration = Vector3.new(0,10,0)
  1124. eff3.Color = ColorSequence.new(Color3.new(0,255,0))
  1125. end
  1126.  
  1127. local eff1 = Instance.new("ParticleEmitter",part)
  1128. eff1.LightEmission = 1
  1129. eff1.Lifetime = NumberRange.new(1)
  1130. eff1.Speed = NumberRange.new(0)
  1131. eff1.Rate = 100
  1132. eff1.Texture = "rbxassetid://284205403"
  1133. eff1.Acceleration = Vector3.new(0,10,0)
  1134. eff1.Color = ColorSequence.new(Color3.new(0,255,0))
  1135. local eff2 = Instance.new("ParticleEmitter",part)
  1136. eff2.Size = NumberSequence.new(.1)
  1137. eff2.Transparency = 1
  1138. NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
  1139. eff2.LightEmission = 1
  1140. eff2.Lifetime = NumberRange.new(1)
  1141. eff2.Speed = NumberRange.new(0)
  1142. eff2.Rate = 100
  1143. eff2.Texture = "rbxassetid://347504259"
  1144. eff2.Acceleration = Vector3.new(0,10,0)
  1145. eff2.Color = ColorSequence.new(Color3.new(0,255,0))
  1146. local eff3 = Instance.new("ParticleEmitter",part)
  1147. eff3.Size = NumberSequence.new(1)
  1148. eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  1149. eff3.LightEmission = 1
  1150. eff3.Lifetime = NumberRange.new(1)
  1151. eff3.Speed = NumberRange.new(0)
  1152. eff3.Rate = 100
  1153. eff3.Texture = "rbxassetid://284205403"
  1154. eff3.Acceleration = Vector3.new(0,10,0)
  1155. eff3.Color = ColorSequence.new(Color3.new(0,255,0))
  1156. eff1(Head)
  1157. eff2(RightArm)
  1158. eff3(LeftArm)
  1159. eff1(Torso)
  1160.  
  1161. LightOnBody = Instance.new("PointLight", hed)
  1162. LightOnBody.Brightness = 0.8
  1163. LightOnBody.Range = 20
  1164. LightOnBody.Color = Color3.new(0, 0, 0)
  1165.  
  1166.  
  1167. --//====================================================\\--
  1168. --|| END OF SCRIPT
  1169. --\\================================================
  1170.  
  1171.  
  1172. plr = game.Players.LocalPlayer
  1173. mouse = plr:GetMouse()
  1174. part = nil
  1175. bp = nil
  1176. particles = nil
  1177. function clerp(a,b,c,d)
  1178. for i = 0,d,.01 do
  1179. a.CFrame = CFrame.new(b:lerp(c,i))
  1180. wait()
  1181. end
  1182. end
  1183. function slerp(a2,b2,c2,d2)
  1184. for i2 = 0,d2,.01 do
  1185. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  1186. wait()
  1187. end
  1188. end
  1189. mouse.KeyDown:connect(function(key)
  1190. if key == "e" and plr.Character.Parent == workspace then
  1191. plr.Character.Parent = workspace.Camera
  1192. plr.Character.Archivable = true
  1193. Instance.new("ForceField",plr.Character).Visible = false
  1194. for y,t in pairs(plr.Character:GetChildren()) do
  1195. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  1196. t.Transparency = 0
  1197. if t.Name == "Head" and t:FindFirstChild("face") then
  1198. t.face.Transparency = 0
  1199. end
  1200. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  1201. t.Handle.Transparency = 0
  1202. end
  1203. end
  1204. elseif key == "-" and plr.Character.Parent == workspace.Camera and part == nil then
  1205. plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
  1206. elseif key == "c" and plr.Character.Parent == workspace.Camera and part == nil then
  1207. if plr.Character.Torso.Anchored == true then
  1208. for y,t in pairs(plr.Character:GetChildren()) do
  1209. if t:IsA("Part") then
  1210. t.Anchored = false
  1211. end
  1212. end
  1213. else
  1214. for y,t in pairs(plr.Character:GetChildren()) do
  1215. if t:IsA("Part") then
  1216. t.Anchored = true
  1217. end
  1218. end
  1219. end
  1220. elseif key == "-" and plr.Character.Parent == workspace.Camera and part ~= nil then
  1221. local clone = part:Clone()
  1222. clone.Parent = workspace
  1223. clone.Anchored = false
  1224. clone:ClearAllChildren()
  1225. clone.CanCollide = true
  1226. bp.Parent = clone
  1227. particles.Parent = clone
  1228. if part.Parent:FindFirstChildOfClass("Humanoid") then
  1229. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  1230. end
  1231. part:Destroy()
  1232. part = clone
  1233. elseif key == "-" and plr.Character.Parent == workspace.Camera and part == nil then
  1234. plr.Character.Parent = workspace
  1235. plr.Character.Archivable = false
  1236. plr.Character:FindFirstChildOfClass("ForceField"):Remove()
  1237. for y,t in pairs(plr.Character:GetChildren()) do
  1238. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  1239. t.Transparency = 0
  1240. if t.Name == "Head" and t:FindFirstChild("face") then
  1241. t.face.Transparency = 0
  1242. end
  1243. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  1244. t.Handle.Transparency = 0
  1245. end
  1246. end
  1247. end
  1248. end)
  1249. mouse.Button1Down:connect(function()
  1250. if plr.Character.Parent == workspace.Camera then
  1251. if mouse ~= nil then
  1252. if mouse.Target ~= nil then
  1253. part = mouse.Target
  1254. bp = Instance.new("BodyPosition",part)
  1255. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1256. bp.Position = part.Position
  1257. particles = Instance.new("ParticleEmitter",part)
  1258. particles.Color = ColorSequence.new(Color3.new(0,0,0))
  1259. particles.Size = NumberSequence.new(1)
  1260. particles.Texture = "rbxassetid://292289455"
  1261. particles.VelocitySpread = 360
  1262. particles.Speed = NumberRange.new(0)
  1263. particles.RotSpeed = NumberRange.new(0)
  1264. particles.Rotation = NumberRange.new(0)
  1265. particles.Rate = 250
  1266. particles.Lifetime = NumberRange.new(.2,.4)
  1267. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  1268. dwn = true
  1269. end
  1270. end
  1271. while dwn == true do
  1272. wait()
  1273. bp.Position = mouse.hit.p
  1274. if part then
  1275. if part.Parent:FindFirstChildOfClass("Humanoid") then
  1276. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  1277. end
  1278. end
  1279. end
  1280. end
  1281. end)
  1282. mouse.Button1Up:connect(function()
  1283. dwn = false
  1284. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  1285. if bp then bp:Destroy() end
  1286. if particles then particles:Destroy() end
  1287. end)
  1288. base = Instance.new("ScreenGui",plr.PlayerGui)
  1289. bbg = Instance.new("BillboardGui",plr.Character.Head)
  1290. bbg.Size = UDim2.new(0,200,0,50)
  1291. bbg.StudsOffset = Vector3.new(0,3,0)
  1292. bbgTl = Instance.new("TextLabel",bbg)
  1293. bbgTl.BackgroundTransparency = 1
  1294. bbgTl.Size = UDim2.new(10,0,1,0)
  1295. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  1296. bbgTl.Font = "Code"
  1297. bbgTl.Text = " "
  1298. bbgTl.TextSize = 25
  1299. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  1300. bbgTl.TextColor3 = Color3.new(0,0,0)
  1301. bbgTl.TextStrokeTransparency = 0
  1302. bbgTl.TextWrapped = true
  1303. plr.Chatted:connect(function(msg)
  1304. bbgTl.Text = msg
  1305. wait(5)
  1306. if bbgTl.Text == msg then
  1307. bbgTl.Text = " "
  1308. end
  1309. end)
  1310. touchCounter = 0
  1311. while wait() do
  1312. if plr.Character.Parent == workspace.Camera then
  1313. local c = plr.Character:Clone()
  1314. c:MakeJoints()
  1315. for y,t in pairs(c:GetChildren()) do
  1316. if t:IsA("Part") then
  1317. t.CanCollide = false
  1318. t.Anchored = true
  1319. t.Transparency = 1
  1320. t.TopSurface = "Smooth"
  1321. t.BottomSurface = "Smooth"
  1322. t.RightSurface = "Smooth"
  1323. t.LeftSurface = "Smooth"
  1324. t.FrontSurface = "Smooth"
  1325. t.BackSurface = "Smooth"
  1326. t.BrickColor = BrickColor.new("Really black")
  1327. if t.Name == "Head" and t:FindFirstChild("face") then
  1328. t.face:Remove()
  1329. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  1330. t.roblox:Remove()
  1331. elseif t.Name == "HumanoidRootPart" then
  1332. t:Remove()
  1333. end
  1334. else
  1335. t:Remove()
  1336. end
  1337. end
  1338. c.Parent = workspace
  1339. game.Debris:AddItem(c,.05)
  1340. end
  1341. end
  1342.  
  1343. unanchor()
  1344. Humanoid.MaxHealth = "inf"
  1345. Humanoid.Health = "inf"
  1346. if Rooted == false then
  1347. Disable_Jump = false
  1348. Humanoid.WalkSpeed = Speed
  1349. elseif Rooted == true then
  1350. Disable_Jump = true
  1351. Humanoid.WalkSpeed = 0
  1352. end
  1353. for _, c in pairs(Character:GetDescendants()) do
  1354. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1355. c.Material = "Neon"
  1356. c.Color = C3(0,0,0)
  1357. if c:FindFirstChildOfClass("SpecialMesh") then
  1358. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1359. end
  1360. if c == Head then
  1361. if c:FindFirstChild("face") then
  1362. c.face:remove()
  1363. end
  1364. end
  1365. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1366. c.Color = C3(1,0,0)
  1367. c.Material = "Neon"
  1368. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  1369. c:remove()
  1370. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1371. c:remove()
  1372. end
  1373. end
  1374. sick.SoundId = "rbxassetid://1182824812"
  1375. sick.Looped = true
  1376. sick.Pitch = 1
  1377. sick.Volume = 3
  1378. sick:Resume()
  1379. sick.Parent = Torso
  1380. refit()
  1381. if Head:FindFirstChildOfClass("Sound") then
  1382. Head:FindFirstChildOfClass("Sound"):remove()
  1383. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement