Advertisement
ForkFullFight

Untitled

Oct 10th, 2023 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if not _G.Velocity then _G.Velocity = Vector3.new(30,0,0) end
  2.  
  3. -- adding net so we dont lose the body
  4. local plr = game.Players.LocalPlayer
  5. game:GetService("RunService").RenderStepped:Connect(function()
  6. settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
  7. settings().Physics.AllowSleep = false
  8. game.Players.LocalPlayer.ReplicationFocus = workspace
  9. sethiddenproperty(plr,"SimulationRadius",1000)
  10. sethiddenproperty(plr,"MaxSimulationRadius",1000)
  11. end)
  12.  
  13.  
  14. loadstring(game:HttpGet("https://raw.githubusercontent.com/GelatekWasTaken/GelatekV2/main/LoadLibrary.lua"))()
  15. -- its open source so you can always change the link.
  16. -- Creating Early Variables.
  17. local Player = game.Players.LocalPlayer
  18. local Character = Player.Character
  19. local PlayerName = Player.Name
  20. local Physics = settings().Physics
  21. local Head = Character:FindFirstChild("Head")
  22. local Torso = Character:FindFirstChild("Torso")
  23. local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
  24. local Humanoid = Character:FindFirstChild("Humanoid")
  25. local LeftArm = Character:FindFirstChild("Left Arm")
  26. local LeftLeg = Character:FindFirstChild("Left Leg")
  27. local RightArm = Character:FindFirstChild("Right Arm")
  28. local RightLeg = Character:FindFirstChild("Right Leg")
  29. local Reanimated = true
  30.  
  31. if Humanoid.RigType == Enum.HumanoidRigType.R15 then
  32. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  33. Text = "[CoolHubTutorial] You are on R15! Please use the R15 Reanimation instead.",
  34. Color = Color3.fromRGB(255, 10, 70),
  35. TextSize = 18,
  36. Font = Enum.Font.Ubuntu
  37. });
  38. return end
  39. if game.Players.LocalPlayer.Character:FindFirstChild("CoolHubTutorial") or workspace:FindFirstChild("CoolHubTutorial") then
  40. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  41. Text = "[CoolHubTutorial] You are already reanimated! Please reset to unreanimate.",
  42. Color = Color3.fromRGB(255, 10, 70),
  43. TextSize = 18,
  44. Font = Enum.Font.Ubuntu
  45. });
  46. return end
  47.  
  48. Physics.AllowSleep = false
  49. Physics.ThrottleAdjustTime = -9e9
  50. Player.ReplicationFocus = workspace
  51. Character.Archivable = true
  52. -- Checks if player died so it doesnt run again.
  53. game:WaitForChild("Run Service").RenderStepped:Connect(function()
  54. if Character:FindFirstChild("Humanoid").Health == 0 then
  55. Reanimated = false
  56. wait(9e9^30)
  57. end
  58. end)
  59. _G.Fling = true
  60. -- Start reanimation
  61. game:WaitForChild("Run Service").Heartbeat:Connect(function()
  62. if Reanimated == true then
  63. if Character.CoolHubTutorial then
  64. Character.Torso.CFrame=Character.CoolHubTutorial.Torso.CFrame
  65. end
  66. RightArm.Velocity = _G.Velocity
  67. RightLeg.Velocity =_G.Velocity
  68. LeftArm.Velocity = _G.Velocity
  69. LeftLeg.Velocity = _G.Velocity
  70. if _G.Fling == true then
  71. Torso.Velocity = Vector3.new(9999,9999,9999)
  72. else
  73. Torso.Velocity = Vector3.new(-28.05,1,1)
  74. end
  75. HumanoidRootPart.Velocity = _G.Velocity
  76. for _, Accessories in pairs(Character:GetDescendants()) do
  77. if Accessories:IsA("Accessory") then
  78. Accessories.Handle.Velocity = _G.Velocity
  79. end
  80. end
  81.  
  82. end
  83. end)
  84.  
  85. local CopyCharacter = Character:Clone()
  86. CopyCharacter.Parent = Character
  87. CopyCharacter.Name = "CoolHubTutorial" -- you can always change name.
  88.  
  89. for k,l in pairs(Character.CoolHubTutorial:GetDescendants()) do
  90. if l:IsA("Part") or l:IsA("Decal") then
  91. l.Transparency=1
  92. end
  93. end
  94.  
  95. Character.Torso["Left Shoulder"]:Destroy()
  96. Character.Torso["Right Shoulder"]:Destroy()
  97. Character.Torso["Left Hip"]:Destroy()
  98. Character.Torso["Right Hip"]:Destroy()
  99. HumanoidRootPart.RootJoint:Destroy()
  100. -- Using Mizt's align
  101. local CountSCIFIMOVIELOL = 1
  102. function AlignCharacter(Part0,Part1,Position,Angle)
  103. local AlignPos = Instance.new('AlignPosition', Part1); AlignPos.Name = "AliP_"..CountSCIFIMOVIELOL
  104. AlignPos.ApplyAtCenterOfMass = true;
  105. AlignPos.MaxForce = 5772000--67752;
  106. AlignPos.MaxVelocity = math.huge/9e110;
  107. AlignPos.ReactionForceEnabled = false;
  108. AlignPos.Responsiveness = 200;
  109. AlignPos.RigidityEnabled = false;
  110. local AlignOri = Instance.new('AlignOrientation', Part1); AlignOri.Name = "AliO_"..CountSCIFIMOVIELOL
  111. AlignOri.MaxAngularVelocity = math.huge/9e110;
  112. AlignOri.MaxTorque = 5772000
  113. AlignOri.PrimaryAxisOnly = false;
  114. AlignOri.ReactionTorqueEnabled = false;
  115. AlignOri.Responsiveness = 200;
  116. AlignOri.RigidityEnabled = false;
  117. local AttachmentA=Instance.new('Attachment',Part1); AttachmentA.Name = "AthP_"..CountSCIFIMOVIELOL
  118. local AttachmentB=Instance.new('Attachment',Part0); AttachmentB.Name = "AthP_"..CountSCIFIMOVIELOL
  119. local AttachmentC=Instance.new('Attachment',Part1); AttachmentC.Name = "AthO_"..CountSCIFIMOVIELOL
  120. local AttachmentD=Instance.new('Attachment',Part0); AttachmentD.Name = "AthO_"..CountSCIFIMOVIELOL
  121. AttachmentC.Orientation = Angle
  122. AttachmentA.Position = Position
  123. AlignPos.Attachment1 = AttachmentA;
  124. AlignPos.Attachment0 = AttachmentB;
  125. AlignOri.Attachment1 = AttachmentC;
  126. AlignOri.Attachment0 = AttachmentD;
  127. CountSCIFIMOVIELOL = CountSCIFIMOVIELOL + 1
  128. end
  129.  
  130. AlignCharacter(Torso,CopyCharacter["Torso"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  131. AlignCharacter(HumanoidRootPart,CopyCharacter["HumanoidRootPart"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  132. AlignCharacter(LeftArm,CopyCharacter["Left Arm"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  133. AlignCharacter(RightArm,CopyCharacter["Right Arm"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  134. AlignCharacter(LeftLeg,CopyCharacter["Left Leg"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  135. AlignCharacter(RightLeg,CopyCharacter["Right Leg"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  136. CopyCharacter:FindFirstChild("HumanoidRootPart").Anchored = false
  137. spawn(function()
  138. while true do wait()
  139. if Character:FindFirstChild("Humanoid").Health == 0 then
  140. Character:BreakJoints()
  141. CopyCharacter:BreakJoints()
  142. end
  143. end
  144. end)
  145.  
  146.  
  147. function nocol(t)
  148. for k,l in pairs(Character:GetDescendants()) do
  149. if l:IsA("BasePart")then
  150. HILOL=Instance.new("NoCollisionConstraint",l)
  151. HILOL.Part0=l
  152. HILOL.Part1=t
  153. end
  154. end
  155. end
  156.  
  157. for k,l in pairs(CopyCharacter:GetDescendants()) do
  158. if l:IsA("BasePart")then
  159. nocol(l)
  160. end
  161. end
  162.  
  163.  
  164. Torso.Anchored = true
  165. LeftArm.Anchored = true
  166. RightArm.Anchored = true
  167. LeftLeg.Anchored = true
  168. RightLeg.Anchored = true
  169. Head.Anchored = true
  170.  
  171. for k=0,30 do wait()
  172. CopyCharacter.HumanoidRootPart.RotVelocity = Vector3.new(0,0,0)
  173. CopyCharacter.HumanoidRootPart.Velocity = Vector3.new(0,0,0)
  174. end
  175.  
  176. Character.Animate.Disabled = true
  177.  
  178. game:GetService("UserInputService").JumpRequest:connect(function(t)
  179. if CopyCharacter.Humanoid.FloorMaterial~=Enum.Material.Air then
  180. CopyCharacter.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  181. game.Players.LocalPlayer.Character.CoolHubTutorial:FindFirstChildOfClass('Humanoid').Sit=false
  182. end
  183. end)
  184.  
  185. game.RunService.RenderStepped:Connect(function()
  186. CopyCharacter.Humanoid:Move(Character.Humanoid.MoveDirection,false)
  187. local animtracks = Humanoid:GetPlayingAnimationTracks()
  188. for n,l in pairs(animtracks) do
  189. l:Stop()
  190. end
  191. end)
  192.  
  193. Torso.Anchored = false
  194. LeftArm.Anchored = false
  195. RightArm.Anchored = false
  196. LeftLeg.Anchored = false
  197. RightLeg.Anchored = false
  198. Head.Anchored = false
  199.  
  200. local something = true
  201. while true do
  202. if something == true then
  203. for n,l in pairs(Character:children()) do
  204. pcall(function()
  205. if l.className=="Part" then
  206. l.CanCollide=false
  207. elseif
  208. l.ClassName=="Model" then
  209. l.Head.CanCollide=false
  210. end
  211. end)
  212. end
  213. end
  214. game:service("RunService").Stepped:wait()
  215. end
  216. --//====================================================\\--
  217. --|| CREATED BY SHACKLUSTER
  218. --\\====================================================//--
  219.  
  220.  
  221.  
  222. wait(0.2)
  223.  
  224. local Player = game.Players.localPlayer
  225. local Character = Player.Character.CoolHubTutorial
  226. local Humanoid = Character.Humanoid
  227. local Mouse = Player:GetMouse()
  228. local LeftArm = Character["Left Arm"]
  229. local RightArm = Character["Right Arm"]
  230. local LeftLeg = Character["Left Leg"]
  231. local RightLeg = Character["Right Leg"]
  232. local Head = Character.Head
  233. local Torso = Character.Torso
  234. local Camera = game.Workspace.CurrentCamera
  235. local RootPart = Character.HumanoidRootPart
  236. local RootJoint = RootPart.RootJoint
  237. local attack = false
  238. local Anim = 'Idle'
  239. local Lighty = game:GetService"Lighting"
  240. local attacktype = 1
  241. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  242. local velocity = RootPart.Velocity.y
  243. local sine = 0
  244. local change = 1
  245. local Create = LoadLibrary("RbxUtility").Create
  246.  
  247.  
  248. local chara = Character
  249. local m = Create("Model"){
  250. Parent = Character,
  251. Name = "WeaponModel",
  252. }
  253. function chat(...)
  254. local txxt = {...}
  255. local ch = coroutine.wrap(function()
  256. if chara:FindFirstChild("Chatt")~= nil then
  257. Character:FindFirstChild("Chatt"):destroy()
  258. end
  259. local txt = Instance.new("BillboardGui", chara)
  260. txt.Adornee = chara.Head
  261. txt.Name = "Chatt"
  262. txt.Size = UDim2.new(2, 0, 1.2, 0)
  263. txt.StudsOffset = Vector3.new(-9, 7, 0)
  264. local text = Instance.new("TextLabel", txt)
  265. text.Size = UDim2.new(10, 0, 7, 0)
  266. text.TextSize = 24
  267. text.Font = Enum.Font.Fantasy
  268. text.TextScaled = false
  269. text.BackgroundTransparency = 1
  270. text.TextColor3 = Color3.new(0,0,0)
  271. text.TextStrokeTransparency = 0
  272. text.TextStrokeColor3 = Color3.new(0,0,0)
  273. text.Text = ""
  274. txxt = table.concat(txxt,"\t")
  275. for i = 1, #txxt do
  276. text.Text = txxt:sub(1,i)
  277.  
  278. end
  279. wait(2)
  280. for trans = 0,1,.1 do
  281. text.TextTransparency = trans
  282. text.TextStrokeTransparency = trans
  283. wait()
  284. end
  285. wait()
  286. txt:destroy()
  287. end)
  288.  
  289. ch(...)
  290. end
  291. Player.Chatted:connect(chat)
  292. warn("Q to teleport")
  293. warn("E to create a sinkhole")
  294. warn("R to create a massive sinkhole")
  295. warn("T to laugh")
  296. Player = game:GetService("Players").LocalPlayer
  297. PlayerGui = Player.PlayerGui
  298. Cam = workspace.CurrentCamera
  299. Backpack = Player.Backpack
  300. Character = Player.Character
  301. Humanoid = Character.Humanoid
  302. Mouse = Player:GetMouse()
  303. RootPart = Character["HumanoidRootPart"]
  304. Torso = Character["Torso"]
  305. Head = Character["Head"]
  306. RightArm = Character["Right Arm"]
  307. LeftArm = Character["Left Arm"]
  308. RightLeg = Character["Right Leg"]
  309. LeftLeg = Character["Left Leg"]
  310. RootJoint = RootPart["RootJoint"]
  311. Neck = Torso["Neck"]
  312. RightShoulder = Torso["Right Shoulder"]
  313. LeftShoulder = Torso["Left Shoulder"]
  314. RightHip = Torso["Right Hip"]
  315. LeftHip = Torso["Left Hip"]
  316. local sick = Instance.new("Sound",Character)
  317. sick.SoundId = "rbxassetid://573736432"
  318. sick.Looped = true
  319. sick.Pitch = 1
  320. sick.Volume = 1
  321. Humanoid.DisplayDistanceType = "None"
  322.  
  323. IT = Instance.new
  324. CF = CFrame.new
  325. VT = Vector3.new
  326. RAD = math.rad
  327. C3 = Color3.new
  328. UD2 = UDim2.new
  329. BRICKC = BrickColor.new
  330. ANGLES = CFrame.Angles
  331. EULER = CFrame.fromEulerAnglesXYZ
  332. COS = math.cos
  333. ACOS = math.acos
  334. SIN = math.sin
  335. ASIN = math.asin
  336. ABS = math.abs
  337. MRANDOM = math.random
  338. FLOOR = math.floor
  339.  
  340. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  341. local NEWMESH = IT(MESH)
  342. if MESH == "SpecialMesh" then
  343. NEWMESH.MeshType = MESHTYPE
  344. if MESHID ~= "nil" and MESHID ~= "" then
  345. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  346. end
  347. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  348. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  349. end
  350. end
  351. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  352. NEWMESH.Scale = SCALE
  353. NEWMESH.Parent = PARENT
  354. return NEWMESH
  355. end
  356.  
  357. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  358. local NEWPART = IT("Part")
  359. NEWPART.formFactor = FORMFACTOR
  360. NEWPART.Reflectance = REFLECTANCE
  361. NEWPART.Transparency = TRANSPARENCY
  362. NEWPART.CanCollide = false
  363. NEWPART.Locked = true
  364. NEWPART.Anchored = true
  365. if ANCHOR == false then
  366. NEWPART.Anchored = false
  367. end
  368. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  369. NEWPART.Name = NAME
  370. NEWPART.Size = SIZE
  371. NEWPART.Position = Torso.Position
  372. NEWPART.Material = MATERIAL
  373. NEWPART:BreakJoints()
  374. NEWPART.Parent = PARENT
  375. return NEWPART
  376. end
  377.  
  378. --//=================================\\
  379. --|| CUSTOMIZATION
  380. --\\=================================//
  381.  
  382. Player_Size = 1.5 --Size of the player.
  383. Animation_Speed = 3
  384. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  385.  
  386. local Speed = 20
  387. local Effects2 = {}
  388.  
  389. --//=================================\\
  390. --|| END OF CUSTOMIZATION
  391. --\\=================================//
  392.  
  393. local function weldBetween(a, b)
  394. local weldd = Instance.new("ManualWeld")
  395. weldd.Part0 = a
  396. weldd.Part1 = b
  397. weldd.C0 = CFrame.new()
  398. weldd.C1 = b.CFrame:inverse() * a.CFrame
  399. weldd.Parent = a
  400. return weldd
  401. end
  402.  
  403. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  404. local acs = Instance.new("Part")
  405. acs.CanCollide = false
  406. acs.Anchored = false
  407. acs.Size = Vector3.new(0,0,0)
  408. acs.CFrame = attachmentpart.CFrame
  409. acs.Parent = Character
  410. acs.BrickColor = color
  411. local meshs = Instance.new("SpecialMesh")
  412. meshs.MeshId = mesh
  413. meshs.TextureId = texture
  414. meshs.Parent = acs
  415. meshs.Scale = scale
  416. meshs.Offset = offset
  417. weldBetween(attachmentpart,acs)
  418. end
  419.  
  420. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  421. if TYPE == "Gem" then
  422. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  423. acs.Anchored = false
  424. acs.CanCollide = false
  425. acs.CFrame = PART.CFrame
  426. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  427. weldBetween(PART,acs)
  428. elseif TYPE == "Skull" then
  429. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  430. acs.Anchored = false
  431. acs.CanCollide = false
  432. acs.CFrame = PART.CFrame
  433. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  434. weldBetween(PART,acs)
  435. elseif TYPE == "Eye" then
  436. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  437. acs.Anchored = false
  438. acs.CanCollide = false
  439. acs.CFrame = PART.CFrame
  440. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  441. weldBetween(PART,acs)
  442. end
  443. end
  444.  
  445. --//=================================\\
  446. --|| USEFUL VALUES
  447. --\\=================================//
  448.  
  449. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  450. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  451. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  452. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  453. local CHANGEDEFENSE = 0
  454. local CHANGEDAMAGE = 0
  455. local CHANGEMOVEMENT = 0
  456. local ANIM = "Idle"
  457. local ATTACK = false
  458. local EQUIPPED = false
  459. local HOLD = false
  460. local COMBO = 1
  461. local Rooted = false
  462. local SINE = 0
  463. local HITFLOOR = nil
  464. local HITPOS = nil
  465. local KEYHOLD = false
  466. local CHANGE = 2 / Animation_Speed
  467. local WALKINGANIM = false
  468. local WALK = 0
  469. local VALUE1 = false
  470. local VALUE2 = false
  471. local ROBLOXIDLEANIMATION = IT("Animation")
  472. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  473. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  474. --ROBLOXIDLEANIMATION.Parent = Humanoid
  475. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  476. WEAPONGUI.Name = "Weapon GUI"
  477. local Weapon = IT("Model")
  478. Weapon.Name = "Adds"
  479. local Effects = IT("Folder", Weapon)
  480. Effects.Name = "Effects"
  481. local ANIMATOR = Humanoid.Animator
  482. local ANIMATE = Character.Animate
  483. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  484. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  485. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  486. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  487. local UNANCHOR = true
  488.  
  489. local SKILLTEXTCOLOR = C3(255,255,255)
  490.  
  491. --//=================================\\
  492. --\\=================================//
  493.  
  494.  
  495. --//=================================\\
  496. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  497. --\\=================================//
  498.  
  499. ArtificialHB = Instance.new("BindableEvent", script)
  500. ArtificialHB.Name = "ArtificialHB"
  501.  
  502. script:WaitForChild("ArtificialHB")
  503.  
  504. frame = Frame_Speed
  505. tf = 0
  506. allowframeloss = false
  507. tossremainder = false
  508. lastframe = tick()
  509. script.ArtificialHB:Fire()
  510.  
  511. game:GetService("RunService").Heartbeat:connect(function(s, p)
  512. tf = tf + s
  513. if tf >= frame then
  514. if allowframeloss then
  515. script.ArtificialHB:Fire()
  516. lastframe = tick()
  517. else
  518. for i = 1, math.floor(tf / frame) do
  519. script.ArtificialHB:Fire()
  520. end
  521. lastframe = tick()
  522. end
  523. if tossremainder then
  524. tf = 0
  525. else
  526. tf = tf - frame * math.floor(tf / frame)
  527. end
  528. end
  529. end)
  530.  
  531. --//=================================\\
  532. --\\=================================//
  533.  
  534.  
  535.  
  536.  
  537.  
  538. --//=================================\\
  539. --|| SOME FUNCTIONS
  540. --\\=================================//
  541.  
  542. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  543. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  544. end
  545.  
  546. function PositiveAngle(NUMBER)
  547. if NUMBER >= 0 then
  548. NUMBER = 0
  549. end
  550. return NUMBER
  551. end
  552.  
  553. function NegativeAngle(NUMBER)
  554. if NUMBER <= 0 then
  555. NUMBER = 0
  556. end
  557. return NUMBER
  558. end
  559.  
  560. function Swait(NUMBER)
  561. if NUMBER == 0 or NUMBER == nil then
  562. ArtificialHB.Event:wait()
  563. else
  564. for i = 1, NUMBER do
  565. ArtificialHB.Event:wait()
  566. end
  567. end
  568. end
  569.  
  570. function QuaternionFromCFrame(cf)
  571. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  572. local trace = m00 + m11 + m22
  573. if trace > 0 then
  574. local s = math.sqrt(1 + trace)
  575. local recip = 0.5 / s
  576. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  577. else
  578. local i = 0
  579. if m11 > m00 then
  580. i = 1
  581. end
  582. if m22 > (i == 0 and m00 or m11) then
  583. i = 2
  584. end
  585. if i == 0 then
  586. local s = math.sqrt(m00 - m11 - m22 + 1)
  587. local recip = 0.5 / s
  588. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  589. elseif i == 1 then
  590. local s = math.sqrt(m11 - m22 - m00 + 1)
  591. local recip = 0.5 / s
  592. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  593. elseif i == 2 then
  594. local s = math.sqrt(m22 - m00 - m11 + 1)
  595. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  596. end
  597. end
  598. end
  599.  
  600. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  601. local xs, ys, zs = x + x, y + y, z + z
  602. local wx, wy, wz = w * xs, w * ys, w * zs
  603. local xx = x * xs
  604. local xy = x * ys
  605. local xz = x * zs
  606. local yy = y * ys
  607. local yz = y * zs
  608. local zz = z * zs
  609. 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))
  610. end
  611.  
  612. function QuaternionSlerp(a, b, t)
  613. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  614. local startInterp, finishInterp;
  615. if cosTheta >= 0.0001 then
  616. if (1 - cosTheta) > 0.0001 then
  617. local theta = ACOS(cosTheta)
  618. local invSinTheta = 1 / SIN(theta)
  619. startInterp = SIN((1 - t) * theta) * invSinTheta
  620. finishInterp = SIN(t * theta) * invSinTheta
  621. else
  622. startInterp = 1 - t
  623. finishInterp = t
  624. end
  625. else
  626. if (1 + cosTheta) > 0.0001 then
  627. local theta = ACOS(-cosTheta)
  628. local invSinTheta = 1 / SIN(theta)
  629. startInterp = SIN((t - 1) * theta) * invSinTheta
  630. finishInterp = SIN(t * theta) * invSinTheta
  631. else
  632. startInterp = t - 1
  633. finishInterp = t
  634. end
  635. end
  636. 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
  637. end
  638.  
  639. function Clerp(a, b, t)
  640. local qa = {QuaternionFromCFrame(a)}
  641. local qb = {QuaternionFromCFrame(b)}
  642. local ax, ay, az = a.x, a.y, a.z
  643. local bx, by, bz = b.x, b.y, b.z
  644. local _t = 1 - t
  645. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  646. end
  647.  
  648. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  649. local frame = IT("Frame")
  650. frame.BackgroundTransparency = TRANSPARENCY
  651. frame.BorderSizePixel = BORDERSIZEPIXEL
  652. frame.Position = POSITION
  653. frame.Size = SIZE
  654. frame.BackgroundColor3 = COLOR
  655. frame.BorderColor3 = BORDERCOLOR
  656. frame.Name = NAME
  657. frame.Parent = PARENT
  658. return frame
  659. end
  660.  
  661. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  662. local label = IT("TextLabel")
  663. label.BackgroundTransparency = 1
  664. label.Size = UD2(1, 0, 1, 0)
  665. label.Position = UD2(0, 0, 0, 0)
  666. label.TextColor3 = TEXTCOLOR
  667. label.TextStrokeColor3 = C3(1,1,1)
  668. label.TextStrokeTransparency = 0
  669. label.TextTransparency = TRANSPARENCY
  670. label.FontSize = TEXTFONTSIZE
  671. label.Font = TEXTFONT
  672. label.BorderSizePixel = BORDERSIZEPIXEL
  673. label.TextScaled = false
  674. label.Text = TEXT
  675. label.Name = NAME
  676. label.Parent = PARENT
  677. return label
  678. end
  679.  
  680. function NoOutlines(PART)
  681. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  682. end
  683.  
  684.  
  685. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  686. local NEWWELD = IT(TYPE)
  687. NEWWELD.Part0 = PART0
  688. NEWWELD.Part1 = PART1
  689. NEWWELD.C0 = C0
  690. NEWWELD.C1 = C1
  691. NEWWELD.Parent = PARENT
  692. return NEWWELD
  693. end
  694.  
  695. function CreateSound(ID, PARENT, VOLUME, PITCH)
  696. local NEWSOUND = nil
  697. coroutine.resume(coroutine.create(function()
  698. NEWSOUND = IT("Sound", PARENT)
  699. NEWSOUND.Volume = VOLUME
  700. NEWSOUND.Pitch = PITCH
  701. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  702. Swait()
  703. NEWSOUND:play()
  704. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  705. end))
  706. return NEWSOUND
  707. end
  708.  
  709. function CFrameFromTopBack(at, top, back)
  710. local right = top:Cross(back)
  711. 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)
  712. end
  713.  
  714. function MakeForm(PART,TYPE)
  715. local MSH = nil
  716. if TYPE == "Cyl" then
  717. MSH = IT("CylinderMesh",PART)
  718. elseif TYPE == "Ball" then
  719. MSH = IT("SpecialMesh",PART)
  720. MSH.MeshType = "Sphere"
  721. elseif TYPE == "Wedge" then
  722. MSH = IT("SpecialMesh",PART)
  723. MSH.MeshType = "Wedge"
  724. end
  725. return MSH
  726. end
  727.  
  728. Debris = game:GetService("Debris")
  729.  
  730. --//=================================\\
  731. --|| WEAPON CREATION
  732. --\\=================================//
  733.  
  734. local Hole = CreatePart(3, Weapon, "Neon", 0, 0, "White", "Hole", VT(15,0,15))
  735. local MESH = MakeForm(Hole,"Cyl")
  736.  
  737. for _, c in pairs(Weapon:GetChildren()) do
  738. if c.ClassName == "Part" then
  739. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  740. end
  741. end
  742.  
  743. Weapon.Parent = Character
  744.  
  745. Humanoid.Died:connect(function()
  746. ATTACK = true
  747. end)
  748.  
  749.  
  750.  
  751. --//=================================\\
  752. --|| DAMAGING
  753. --\\=================================//
  754.  
  755. function Sink(position,radius)
  756. for i,v in ipairs(workspace:GetChildren()) do
  757. if v:FindFirstChild("Hit2By"..Player.Name) == nil then
  758. local body = v:GetChildren()
  759. for part = 1, #body do
  760. if(v:FindFirstChild("Hit2By"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  761. if(body[part].Position - position).Magnitude < radius then
  762. if v.ClassName == "Model" then
  763. if v:FindFirstChild("Humanoid") then
  764. local defence = Instance.new("BoolValue",v)
  765. defence.Name = ("Hit2By"..Player.Name)
  766. if v.Humanoid.Health ~= 0 then
  767. local TORS = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  768. if TORS ~= nil then
  769. local HITFLOOR2, HITPOS2 = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + VT(0, -1, 0))).lookVector, 5 * TORS.Size.Y/2, v)
  770. coroutine.resume(coroutine.create(function()
  771. if HITFLOOR2 ~= nil then
  772. TORS.Anchored = true
  773. local Hole2 = CreatePart(3, Effects, "Neon", 0, 0, "White", "Hole", VT(TORS.Size.X*4,0,TORS.Size.X*4))
  774. Hole2.Color = C3(0,0,0)
  775. local MESH = MakeForm(Hole2,"Cyl")
  776. MESH.Scale = VT(0,1,0)
  777. Hole2.CFrame = CF(HITPOS2)
  778. for i = 1, 10 do
  779. Swait()
  780. MESH.Scale = MESH.Scale + VT(0.1,0,0.1)
  781. end
  782. repeat
  783. Swait()
  784. TORS.CFrame = TORS.CFrame * CF(0,-0.1,0)
  785. until TORS.Position.Y<position.Y-4
  786. v:remove()
  787. for i = 1, 10 do
  788. Swait()
  789. MESH.Scale = MESH.Scale - VT(0.1,0,0.1)
  790. end
  791. Hole2:remove()
  792. end
  793. end))
  794. end
  795. end
  796. end
  797. end
  798. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  799. end
  800. end
  801. end
  802. end
  803. end
  804. end
  805.  
  806. --//=================================\\
  807. --|| ATTACK FUNCTIONS AND STUFF
  808. --\\=================================//
  809.  
  810. function Trail(Part)
  811. local TRAIL = Part:Clone()
  812. TRAIL.CanCollide = false
  813. TRAIL.Anchored = true
  814. TRAIL.Parent = Effects
  815. TRAIL.Name = "Trail"
  816. local TRANS = Part.Transparency
  817. coroutine.resume(coroutine.create(function()
  818. for i = 1, 20 do
  819. Swait()
  820. TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20)
  821. end
  822. TRAIL:remove()
  823. end))
  824. end
  825.  
  826. function AttackTemplate()
  827. ATTACK = true
  828. Rooted = false
  829. for i=0, 1, 0.1 / Animation_Speed do
  830. Swait()
  831. 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)
  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(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  834. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  835. 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)
  836. 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)
  837. end
  838. ATTACK = false
  839. Rooted = false
  840. end
  841.  
  842. function Intro()
  843. coroutine.resume(coroutine.create(function()
  844. ATTACK = true
  845. Rooted = true
  846. UNANCHOR = false
  847. RootPart.Anchored = true
  848. for i=0, 2, 0.1 / Animation_Speed do
  849. Swait()
  850. 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)
  851. 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)
  852. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  853. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  854. 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)
  855. 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)
  856. end
  857. for i=0, 4, 0.1 / Animation_Speed do
  858. Swait()
  859. 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)
  860. 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)
  861. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  862. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  863. 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)
  864. 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)
  865. end
  866. VALUE1 = true
  867. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.2,0.3,0.1),false)
  868. 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))
  869. MakeForm(part,"Ball")
  870. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.2,0.3,0.1),false)
  871. 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))
  872. MakeForm(part,"Ball")
  873. Swait(15)
  874. Humanoid.HipHeight = 2
  875. sick:Play()
  876. CreateSound("649634100", Head, 10, 0.6)
  877. for i=0, 2, 0.1 / Animation_Speed do
  878. Swait()
  879. 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)
  880. 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)
  881. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  882. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  883. 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)
  884. 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)
  885. end
  886. UNANCHOR = true
  887. ATTACK = false
  888. Rooted = false
  889. end))
  890. end
  891.  
  892. function Warp()
  893. ATTACK = true
  894. Rooted = true
  895. UNANCHOR = false
  896. RootPart.Anchored = true
  897. for i=0, 1, 0.1 / Animation_Speed do
  898. Swait()
  899. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)), 1 / Animation_Speed)
  900. 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)
  901. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 1.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  902. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 1.5, 0) * ANGLES(RAD(180), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  903. 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)
  904. 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)
  905. end
  906. for i=0, 1, 0.1 / Animation_Speed do
  907. Swait()
  908. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -15) * ANGLES(RAD(180), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  909. 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)
  910. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 1.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  911. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 1.5, 0) * ANGLES(RAD(180), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  912. 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)
  913. 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)
  914. end
  915. for i = 1, 50 do
  916. Swait()
  917. Trail(Hole)
  918. MESH.Scale = MESH.Scale - VT(0.02,0,0.02)
  919. end
  920. local ORIGINPOS = RootPart.Position
  921. RootPart.CFrame = CF(VT(Mouse.Hit.p.X,RootPart.Position.Y,Mouse.Hit.p.Z),ORIGINPOS)
  922. CreateSound("466493476", Hole, 10, 1)
  923. for i = 1, 50 do
  924. Swait()
  925. MESH.Scale = MESH.Scale + VT(0.02,0,0.02)
  926. end
  927. for i=0, 2, 0.1 / Animation_Speed do
  928. Swait()
  929. 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)
  930. 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)
  931. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  932. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  933. 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)
  934. 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)
  935. end
  936. UNANCHOR = true
  937. ATTACK = false
  938. Rooted = false
  939. end
  940.  
  941. function Sinkhole()
  942. coroutine.resume(coroutine.create(function()
  943. local Hole2 = CreatePart(3, Effects, "Neon", 0, 0, "White", "Hole", VT(15,0,15))
  944. Hole2.Color = C3(0,0,0)
  945. local MESH = MakeForm(Hole2,"Cyl")
  946. MESH.Scale = VT(0,1,0)
  947. Hole2.CFrame = CF(Mouse.Hit.p)
  948. CreateSound("466493476", Hole2, 10, 1)
  949. for i = 1, 50 do
  950. Swait()
  951. MESH.Scale = MESH.Scale + VT(0.02,0,0.02)
  952. end
  953. for i = 1, 200 do
  954. Swait()
  955. Sink(Hole2.Position,Hole2.Size.X/2.2)
  956. end
  957. Swait(100)
  958. for i = 1, 50 do
  959. Swait()
  960. Trail(Hole2)
  961. MESH.Scale = MESH.Scale - VT(0.02,0,0.02)
  962. end
  963. Hole2:remove()
  964. end))
  965. end
  966.  
  967. function AbyssGate()
  968. VALUE2 = true
  969. coroutine.resume(coroutine.create(function()
  970. CreateSound("466493476", Hole, 10, 0.1)
  971. for i = 1, 500 do
  972. Swait()
  973. Hole.Size = Hole.Size + VT(1,0,1)
  974. end
  975. Swait(100)
  976. for i = 1, 500 do
  977. Swait()
  978. Trail(Hole)
  979. Hole.Size = Hole.Size - VT(1,0,1)
  980. end
  981. VALUE2 = false
  982. end))
  983. end
  984.  
  985. --//=================================\\
  986. --|| ASSIGN THINGS TO KEYS
  987. --\\=================================//
  988.  
  989. function MouseDown(Mouse)
  990. if ATTACK == false then
  991. end
  992. end
  993.  
  994. function MouseUp(Mouse)
  995. HOLD = false
  996. end
  997.  
  998. function KeyDown(Key)
  999. KEYHOLD = true
  1000. if Key == "q" and ATTACK == false and HITFLOOR ~= nil and VALUE2 == false then
  1001. Warp()
  1002. end
  1003.  
  1004. if Key == "e" and ATTACK == false then
  1005. Sinkhole()
  1006. end
  1007.  
  1008. if Key == "r" and ATTACK == false and VALUE2 == false then
  1009. AbyssGate()
  1010. end
  1011.  
  1012. if Key == "t" and ATTACK == false then
  1013. CreateSound("649634100", Head, 10, 0.6)
  1014. end
  1015. end
  1016.  
  1017. function KeyUp(Key)
  1018. KEYHOLD = false
  1019. end
  1020.  
  1021. Mouse.Button1Down:connect(function(NEWKEY)
  1022. MouseDown(NEWKEY)
  1023. end)
  1024. Mouse.Button1Up:connect(function(NEWKEY)
  1025. MouseUp(NEWKEY)
  1026. end)
  1027. Mouse.KeyDown:connect(function(NEWKEY)
  1028. KeyDown(NEWKEY)
  1029. end)
  1030. Mouse.KeyUp:connect(function(NEWKEY)
  1031. KeyUp(NEWKEY)
  1032. end)
  1033.  
  1034. --//=================================\\
  1035. --\\=================================//
  1036.  
  1037.  
  1038. function unanchor()
  1039. if UNANCHOR == true then
  1040. g = Character:GetChildren()
  1041. for i = 1, #g do
  1042. if g[i].ClassName == "Part" then
  1043. g[i].Anchored = false
  1044. end
  1045. end
  1046. end
  1047. end
  1048.  
  1049.  
  1050. --//=================================\\
  1051. --|| WRAP THE WHOLE SCRIPT UP
  1052. --\\=================================//
  1053.  
  1054. Humanoid.Changed:connect(function(Jump)
  1055. if Jump == "Jump" and (Disable_Jump == true) then
  1056. Humanoid.Jump = false
  1057. end
  1058. end)
  1059.  
  1060. Speed = 10
  1061.  
  1062. while true do
  1063. Swait()
  1064. ANIMATE.Parent = nil
  1065. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1066. IDLEANIMATION:Play()
  1067. SINE = SINE + CHANGE
  1068. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1069. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1070. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1071. HITFLOOR, HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25 * Player_Size, Character)
  1072. if ATTACK == false then
  1073. 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)
  1074. 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)
  1075. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1076. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1077. 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)
  1078. 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)
  1079. end
  1080. if HITFLOOR ~= nil then
  1081. Hole.CFrame = CF(HITPOS)
  1082. end
  1083. Sink(Hole.Position,Hole.Size.X/2.2*MESH.Scale.X)
  1084. Hole.Color = C3(0,0,0)
  1085. unanchor()
  1086. Humanoid.MaxHealth = "inf"
  1087. Humanoid.Health = "inf"
  1088. if Rooted == false then
  1089. Disable_Jump = false
  1090. Humanoid.WalkSpeed = Speed
  1091. elseif Rooted == true then
  1092. Disable_Jump = true
  1093. Humanoid.WalkSpeed = 0
  1094. end
  1095. if VALUE1 == true then
  1096. Humanoid.HipHeight = 2
  1097. q = Character:GetChildren()
  1098. for u = 1, #q do
  1099. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1100. q[u]:remove()
  1101. elseif q[u].ClassName == "Shirt" then
  1102. q[u]:Destroy()
  1103. elseif q[u].ClassName == "Pants" then
  1104. q[u]:Destroy()
  1105. elseif q[u].ClassName == "CharacterMesh" then
  1106. q[u]:remove()
  1107. elseif q[u].ClassName == "ShirtGraphic" then
  1108. q[u]:remove()
  1109. elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
  1110. q[u].Color = Color3.new(0,0,0)
  1111. q[u].Material = "Neon"
  1112. end
  1113. end
  1114. if Head:FindFirstChild("Mesh") then
  1115. local mesh = Head.Mesh
  1116. if mesh.ClassName == "SpecialMesh" then
  1117. mesh:remove()
  1118. local m = IT("BlockMesh",Head)
  1119. m.Scale = VT(0.5,1,1)
  1120. end
  1121. end
  1122. if Head:FindFirstChild("face") then
  1123. Head.face:remove()
  1124. end
  1125. end
  1126. if VALUE1 == false and ATTACK == false then
  1127. Intro()
  1128. end
  1129. end
  1130.  
  1131. --//=================================\\
  1132. --\\=================================//
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138. --//====================================================\\--
  1139. --|| END OF SCRIPT
  1140. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement