Advertisement
HenloMyDude

memer lorder

Aug 29th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.75 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  6. do
  7. script.Parent = owner.Character
  8. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  9. local function NewFakeEvent()
  10. local Bind = Instance.new("BindableEvent")
  11. local Fake;Fake = {Connections = {},
  12. fakeEvent=true;
  13. Connect=function(self,Func)
  14. Bind.Event:connect(Func)
  15. self.Connections[Bind] = true
  16. return setmetatable({Connected = true},{
  17. __index = function (self,Index)
  18. if Index:lower() == "disconnect" then
  19. return function() Fake.Connections[Bind] = false;self.Connected = false end
  20. end
  21. return Fake[Index]
  22. end;
  23. __tostring = function() return "Connection" end;
  24. })
  25. end}
  26. Fake.connect = Fake.Connect;return Fake;
  27. end
  28. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  29. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  30. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  31. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  32. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  33. local function TriggerEvent(self,Event,...)
  34. local Trigger = Mouse[Event]
  35. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  36. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  37. end
  38. end
  39. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  40. Event.OnServerEvent:Connect(function(FiredBy,Input)
  41. if FiredBy.Name ~= owner.Name then return end
  42. if Input.MouseEvent then
  43. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  44. else
  45. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  46. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  47. for _,Action in pairs(ContextActionService.Actions) do
  48. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  49. end
  50. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  51. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  52. end
  53. end)
  54. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  55. Event.Parent = NLS([[
  56. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  57. local Input = function(Input,gameProcessedEvent)
  58. if gameProcessedEvent then return end
  59. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  60. end
  61. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  62. local Hit,Target
  63. while wait(1/30) do
  64. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  65. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  66. end
  67. end
  68. ]],owner.Character)
  69. end
  70. RealGame = game;game = setmetatable({},{
  71. __index = function (self,Index)
  72. local Sandbox = function (Thing)
  73. if Thing:IsA("Player") then
  74. local RealPlayer = Thing
  75. return setmetatable({},{
  76. __index = function (self,Index)
  77. local Type = type(RealPlayer[Index])
  78. if Type == "function" then
  79. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  80. return function (self)return InternalData["Mouse"] end
  81. end
  82. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  83. end
  84. return RealPlayer[Index]
  85. end;
  86. __tostring = function(self) return RealPlayer.Name end
  87. })
  88. end
  89. end
  90. if RealGame[Index] then
  91. local Type = type(RealGame[Index])
  92. if Type == "function" then
  93. if Index:lower() == "getservice" or Index:lower() == "service" then
  94. return function (self,Service)
  95. local FakeServices = {
  96. ["players"] = function()
  97. return setmetatable({},{
  98. __index = function (self2,Index2)
  99. local RealService = RealGame:GetService(Service)
  100. local Type2 = type(Index2)
  101. if Type2 == "function" then
  102. return function (self,...) return RealService[Index2](RealService,...)end
  103. else
  104. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  105. return RealService[Index2]
  106. end
  107. end;
  108. __tostring = function(self) return RealGame:GetService(Service).Name end
  109. })
  110. end;
  111. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  112. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  113. ["runservice"] = function()
  114. return setmetatable({},{
  115. __index = function(self2,Index2)
  116. local RealService = RealGame:GetService(Service)
  117. local Type2 = type(Index2)
  118. if Type2 == "function" then
  119. return function (self,...) return RealService[Index2](RealService,...) end
  120. else
  121. local RunServices = {
  122. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  123. ["renderstepped"] = function() return RealService["Stepped"] end
  124. }
  125. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  126. return RealService[Index2]
  127. end
  128. end
  129. })
  130. end
  131. }
  132. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  133. return RealGame:GetService(Service)
  134. end
  135. end
  136. return function (self,...) return RealGame[Index](RealGame,...) end
  137. else
  138. if game:GetService(Index) then return game:GetService(Index) end
  139. return RealGame[Index]
  140. end
  141. end
  142. return nil
  143. end
  144. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  145.  
  146. wait(0.2)
  147.  
  148.  
  149.  
  150. Player = game:GetService("Players").LocalPlayer
  151. PlayerGui = Player.PlayerGui
  152. Cam = workspace.CurrentCamera
  153. Backpack = Player.Backpack
  154. Character = Player.Character
  155. Humanoid = Character.Humanoid
  156. Mouse = Player:GetMouse()
  157. RootPart = Character["HumanoidRootPart"]
  158. Torso = Character["Torso"]
  159. Head = Character["Head"]
  160. RightArm = Character["Right Arm"]
  161. LeftArm = Character["Left Arm"]
  162. RightLeg = Character["Right Leg"]
  163. LeftLeg = Character["Left Leg"]
  164. RootJoint = RootPart["RootJoint"]
  165. Neck = Torso["Neck"]
  166. RightShoulder = Torso["Right Shoulder"]
  167. LeftShoulder = Torso["Left Shoulder"]
  168. RightHip = Torso["Right Hip"]
  169. LeftHip = Torso["Left Hip"]
  170. local sick = Instance.new("Sound",Character)
  171. sick.SoundId = "rbxassetid://500369513"
  172. sick.Looped = true
  173. sick.Pitch = 1
  174. sick.Volume = 1
  175. sick:Play()
  176.  
  177. IT = Instance.new
  178. CF = CFrame.new
  179. VT = Vector3.new
  180. RAD = math.rad
  181. C3 = Color3.new
  182. UD2 = UDim2.new
  183. BRICKC = BrickColor.new
  184. ANGLES = CFrame.Angles
  185. EULER = CFrame.fromEulerAnglesXYZ
  186. COS = math.cos
  187. ACOS = math.acos
  188. SIN = math.sin
  189. ASIN = math.asin
  190. ABS = math.abs
  191. MRANDOM = math.random
  192. FLOOR = math.floor
  193.  
  194. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  195. local NEWMESH = IT(MESH)
  196. if MESH == "SpecialMesh" then
  197. NEWMESH.MeshType = MESHTYPE
  198. if MESHID ~= "nil" and MESHID ~= "" then
  199. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  200. end
  201. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  202. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  203. end
  204. end
  205. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  206. NEWMESH.Scale = SCALE
  207. NEWMESH.Parent = PARENT
  208. return NEWMESH
  209. end
  210.  
  211. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  212. local NEWPART = IT("Part")
  213. NEWPART.formFactor = FORMFACTOR
  214. NEWPART.Reflectance = REFLECTANCE
  215. NEWPART.Transparency = TRANSPARENCY
  216. NEWPART.CanCollide = false
  217. NEWPART.Locked = true
  218. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  219. NEWPART.Name = NAME
  220. NEWPART.Size = SIZE
  221. NEWPART.Position = Torso.Position
  222. NEWPART.Material = MATERIAL
  223. NEWPART:BreakJoints()
  224. NEWPART.Parent = PARENT
  225. return NEWPART
  226. end
  227.  
  228.  
  229. --//=================================\\
  230. --|| CUSTOMIZATION
  231. --\\=================================//
  232.  
  233. Class_Name = "Memelord"
  234. Weapon_Name = "Add-ons"
  235.  
  236. Custom_Colors = {
  237. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  238. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  239.  
  240. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  241. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  242. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  243. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  244. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  245.  
  246. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  247. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  248. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  249. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  250. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  251. }
  252.  
  253.  
  254. Player_Size = 1 --Size of the player.
  255. Animation_Speed = 2
  256. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  257.  
  258. local Speed = 16
  259. local Effects2 = {}
  260.  
  261. --//=================================\\
  262. --|| END OF CUSTOMIZATION
  263. --\\=================================//
  264.  
  265. local function weldBetween(a, b)
  266. local weldd = Instance.new("ManualWeld")
  267. weldd.Part0 = a
  268. weldd.Part1 = b
  269. weldd.C0 = CFrame.new()
  270. weldd.C1 = b.CFrame:inverse() * a.CFrame
  271. weldd.Parent = a
  272. return weldd
  273. end
  274.  
  275. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  276. local acs = Instance.new("Part")
  277. acs.CanCollide = false
  278. acs.Anchored = false
  279. acs.Size = Vector3.new(0,0,0)
  280. acs.CFrame = attachmentpart.CFrame
  281. acs.Parent = Character
  282. acs.BrickColor = color
  283. local meshs = Instance.new("SpecialMesh")
  284. meshs.MeshId = mesh
  285. meshs.TextureId = texture
  286. meshs.Parent = acs
  287. meshs.Scale = scale
  288. meshs.Offset = offset
  289. weldBetween(attachmentpart,acs)
  290. end
  291.  
  292. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  293. if TYPE == "Gem" then
  294. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  295. acs.Anchored = false
  296. acs.CanCollide = false
  297. acs.CFrame = PART.CFrame
  298. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  299. weldBetween(PART,acs)
  300. elseif TYPE == "Skull" then
  301. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  302. acs.Anchored = false
  303. acs.CanCollide = false
  304. acs.CFrame = PART.CFrame
  305. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  306. weldBetween(PART,acs)
  307. elseif TYPE == "Eye" then
  308. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  309. acs.Anchored = false
  310. acs.CanCollide = false
  311. acs.CFrame = PART.CFrame
  312. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  313. weldBetween(PART,acs)
  314. end
  315. end
  316.  
  317. createaccessory(Head,"http://www.roblox.com/asset/?id=121910245","http://www.roblox.com/asset/?id=121947422",VT(0.7,0.6,0.7),VT(0,0.1,-0.05),BrickColor.new("Pearl"))
  318.  
  319. --//=================================\\
  320. --|| USEFUL VALUES
  321. --\\=================================//
  322.  
  323. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  324. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  325. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  326. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  327. local CO1 = 0
  328. local CO2 = 0
  329. local CO3 = 0
  330. local CO4 = 0
  331. local CHANGEDEFENSE = 0
  332. local CHANGEDAMAGE = 0
  333. local CHANGEMOVEMENT = 0
  334. local ANIM = "Idle"
  335. local ATTACK = false
  336. local EQUIPPED = false
  337. local HOLD = false
  338. local COMBO = 1
  339. local LASTPOINT = nil
  340. local BLCF = nil
  341. local SCFR = nil
  342. local STAGGERHITANIM = false
  343. local STAGGERANIM = false
  344. local STUNANIM = false
  345. local CRITCHANCENUMBER = 0
  346. local IDLENUMBER = 0
  347. local DONUMBER = 0
  348. local HANDIDLE = false
  349. local SINE = 0
  350. local CHANGE = 2 / Animation_Speed
  351. local WALKINGANIM = false
  352. local WALK = 0
  353. local SHIELD = false
  354. local DISABLEJUMPING = false
  355. local HASBEENBLOCKED = false
  356. local STUNDELAYNUMBER = 0
  357. local MANADELAYNUMBER = 0
  358. local SECONDARYMANADELAYNUMBER = 0
  359. local ROBLOXIDLEANIMATION = IT("Animation")
  360. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  361. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  362. --ROBLOXIDLEANIMATION.Parent = Humanoid
  363. local WEAPONGUI = IT("ScreenGui", nil)
  364. WEAPONGUI.Name = "Weapon GUI"
  365. local WEAPONTOOL = IT("HopperBin", nil)
  366. WEAPONTOOL.Name = Weapon_Name
  367. local Weapon = IT("Model")
  368. Weapon.Name = Weapon_Name
  369. local Effects = IT("Folder", Weapon)
  370. Effects.Name = "Effects"
  371. local ANIMATOR = Humanoid.Animator
  372. local ANIMATE = Character.Animate
  373. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  374. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  375. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  376. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  377. local HURTSOUND = "1080625252"
  378. local DEATHSOUNDS = {"340963282", "340963317"}
  379. local UNANCHOR = true
  380.  
  381. --//=================================\\
  382. --\\=================================//
  383.  
  384. --//=================================\\
  385. --|| STATS
  386. --\\=================================//
  387.  
  388. if Character:FindFirstChild("Stats") ~= nil then
  389. Character:FindFirstChild("Stats").Parent = nil
  390. end
  391.  
  392. local Stats = IT("Folder", nil)
  393. Stats.Name = "Stats"
  394. local ChangeStat = IT("Folder", Stats)
  395. ChangeStat.Name = "ChangeStat"
  396. local Defense = IT("NumberValue", Stats)
  397. Defense.Name = "Defense"
  398. Defense.Value = 1
  399. local Movement = IT("NumberValue", Stats)
  400. Movement.Name = "Movement"
  401. Movement.Value = 1
  402. local Damage = IT("NumberValue", Stats)
  403. Damage.Name = "Damage"
  404. Damage.Value = 1
  405. local Mana = IT("NumberValue", Stats)
  406. Mana.Name = "Mana"
  407. Mana.Value = 0
  408. local SecondaryMana = IT("NumberValue", Stats)
  409. SecondaryMana.Name = "SecondaryMana"
  410. SecondaryMana.Value = 0
  411. local CanCrit = IT("BoolValue", Stats)
  412. CanCrit.Name = "CanCrit"
  413. CanCrit.Value = false
  414. local CritChance = IT("NumberValue", Stats)
  415. CritChance.Name = "CritChance"
  416. CritChance.Value = 20
  417. local CanPenetrateArmor = IT("BoolValue", Stats)
  418. CanPenetrateArmor.Name = "CanPenetrateArmor"
  419. CanPenetrateArmor.Value = false
  420. local AntiTeamKill = IT("BoolValue", Stats)
  421. AntiTeamKill.Name = "AntiTeamKill"
  422. AntiTeamKill.Value = false
  423. local Rooted = IT("BoolValue", Stats)
  424. Rooted.Name = "Rooted"
  425. Rooted.Value = false
  426. local Block = IT("BoolValue", Stats)
  427. Block.Name = "Block"
  428. Block.Value = false
  429. local RecentEnemy = IT("ObjectValue", Stats)
  430. RecentEnemy.Name = "RecentEnemy"
  431. RecentEnemy.Value = nil
  432. local StaggerHit = IT("BoolValue", Stats)
  433. StaggerHit.Name = "StaggerHit"
  434. StaggerHit.Value = false
  435. local Stagger = IT("BoolValue", Stats)
  436. Stagger.Name = "Stagger"
  437. Stagger.Value = false
  438. local Stun = IT("BoolValue", Stats)
  439. Stun.Name = "Stun"
  440. Stun.Value = false
  441. local StunValue = IT("NumberValue", Stats)
  442. StunValue.Name = "StunValue"
  443. StunValue.Value = 0
  444.  
  445.  
  446. --//=================================\\
  447. --\\=================================//
  448.  
  449.  
  450.  
  451.  
  452.  
  453. --//=================================\\
  454. --|| DEBUFFS / BUFFS
  455. --\\=================================//
  456.  
  457. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  458. DEFENSECHANGE1.Name = "ChangeDefense"
  459. DEFENSECHANGE1.Value = 0
  460.  
  461. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  462. MOVEMENTCHANGE1.Name = "ChangeMovement"
  463. MOVEMENTCHANGE1.Value = 0
  464.  
  465. --//=================================\\
  466. --\\=================================//
  467.  
  468.  
  469.  
  470.  
  471.  
  472. --//=================================\\
  473. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  474. --\\=================================//
  475.  
  476. ArtificialHB = Instance.new("BindableEvent", script)
  477. ArtificialHB.Name = "ArtificialHB"
  478.  
  479. script:WaitForChild("ArtificialHB")
  480.  
  481. frame = Frame_Speed
  482. tf = 0
  483. allowframeloss = false
  484. tossremainder = false
  485. lastframe = tick()
  486. script.ArtificialHB:Fire()
  487.  
  488. game:GetService("RunService").Heartbeat:connect(function(s, p)
  489. tf = tf + s
  490. if tf >= frame then
  491. if allowframeloss then
  492. script.ArtificialHB:Fire()
  493. lastframe = tick()
  494. else
  495. for i = 1, math.floor(tf / frame) do
  496. script.ArtificialHB:Fire()
  497. end
  498. lastframe = tick()
  499. end
  500. if tossremainder then
  501. tf = 0
  502. else
  503. tf = tf - frame * math.floor(tf / frame)
  504. end
  505. end
  506. end)
  507.  
  508. --//=================================\\
  509. --\\=================================//
  510.  
  511.  
  512.  
  513.  
  514.  
  515. --//=================================\\
  516. --|| SOME FUNCTIONS
  517. --\\=================================//
  518.  
  519. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  520. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  521. end
  522.  
  523. function PositiveAngle(NUMBER)
  524. if NUMBER >= 0 then
  525. NUMBER = 0
  526. end
  527. return NUMBER
  528. end
  529.  
  530. function NegativeAngle(NUMBER)
  531. if NUMBER <= 0 then
  532. NUMBER = 0
  533. end
  534. return NUMBER
  535. end
  536.  
  537. function Swait(NUMBER)
  538. if NUMBER == 0 or NUMBER == nil then
  539. ArtificialHB.Event:wait()
  540. else
  541. for i = 1, NUMBER do
  542. ArtificialHB.Event:wait()
  543. end
  544. end
  545. end
  546.  
  547. function QuaternionFromCFrame(cf)
  548. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  549. local trace = m00 + m11 + m22
  550. if trace > 0 then
  551. local s = math.sqrt(1 + trace)
  552. local recip = 0.5 / s
  553. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  554. else
  555. local i = 0
  556. if m11 > m00 then
  557. i = 1
  558. end
  559. if m22 > (i == 0 and m00 or m11) then
  560. i = 2
  561. end
  562. if i == 0 then
  563. local s = math.sqrt(m00 - m11 - m22 + 1)
  564. local recip = 0.5 / s
  565. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  566. elseif i == 1 then
  567. local s = math.sqrt(m11 - m22 - m00 + 1)
  568. local recip = 0.5 / s
  569. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  570. elseif i == 2 then
  571. local s = math.sqrt(m22 - m00 - m11 + 1)
  572. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  573. end
  574. end
  575. end
  576.  
  577. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  578. local xs, ys, zs = x + x, y + y, z + z
  579. local wx, wy, wz = w * xs, w * ys, w * zs
  580. local xx = x * xs
  581. local xy = x * ys
  582. local xz = x * zs
  583. local yy = y * ys
  584. local yz = y * zs
  585. local zz = z * zs
  586. 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))
  587. end
  588.  
  589. function QuaternionSlerp(a, b, t)
  590. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  591. local startInterp, finishInterp;
  592. if cosTheta >= 0.0001 then
  593. if (1 - cosTheta) > 0.0001 then
  594. local theta = ACOS(cosTheta)
  595. local invSinTheta = 1 / SIN(theta)
  596. startInterp = SIN((1 - t) * theta) * invSinTheta
  597. finishInterp = SIN(t * theta) * invSinTheta
  598. else
  599. startInterp = 1 - t
  600. finishInterp = t
  601. end
  602. else
  603. if (1 + cosTheta) > 0.0001 then
  604. local theta = ACOS(-cosTheta)
  605. local invSinTheta = 1 / SIN(theta)
  606. startInterp = SIN((t - 1) * theta) * invSinTheta
  607. finishInterp = SIN(t * theta) * invSinTheta
  608. else
  609. startInterp = t - 1
  610. finishInterp = t
  611. end
  612. end
  613. 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
  614. end
  615.  
  616. function Clerp(a, b, t)
  617. local qa = {QuaternionFromCFrame(a)}
  618. local qb = {QuaternionFromCFrame(b)}
  619. local ax, ay, az = a.x, a.y, a.z
  620. local bx, by, bz = b.x, b.y, b.z
  621. local _t = 1 - t
  622. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  623. end
  624.  
  625. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  626. local frame = IT("Frame")
  627. frame.BackgroundTransparency = TRANSPARENCY
  628. frame.BorderSizePixel = BORDERSIZEPIXEL
  629. frame.Position = POSITION
  630. frame.Size = SIZE
  631. frame.BackgroundColor3 = COLOR
  632. frame.BorderColor3 = BORDERCOLOR
  633. frame.Name = NAME
  634. frame.Parent = PARENT
  635. return frame
  636. end
  637.  
  638. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  639. local label = IT("TextLabel")
  640. label.BackgroundTransparency = 1
  641. label.Size = UD2(1, 0, 1, 0)
  642. label.Position = UD2(0, 0, 0, 0)
  643. label.TextColor3 = C3(255, 255, 255)
  644. label.TextStrokeTransparency = STROKETRANSPARENCY
  645. label.TextTransparency = TRANSPARENCY
  646. label.FontSize = TEXTFONTSIZE
  647. label.Font = TEXTFONT
  648. label.BorderSizePixel = BORDERSIZEPIXEL
  649. label.TextScaled = true
  650. label.Text = TEXT
  651. label.Name = NAME
  652. label.Parent = PARENT
  653. return label
  654. end
  655.  
  656. function NoOutlines(PART)
  657. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  658. end
  659.  
  660.  
  661. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  662. local NEWWELD = IT(TYPE)
  663. NEWWELD.Part0 = PART0
  664. NEWWELD.Part1 = PART1
  665. NEWWELD.C0 = C0
  666. NEWWELD.C1 = C1
  667. NEWWELD.Parent = PARENT
  668. return NEWWELD
  669. end
  670.  
  671. function CreateSound(ID, PARENT, VOLUME, PITCH)
  672. --coroutine.resume(coroutine.create(function()
  673. local NEWSOUND = IT("Sound", PARENT)
  674. NEWSOUND.Volume = VOLUME
  675. NEWSOUND.Pitch = PITCH
  676. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  677. NEWSOUND:play()
  678. game:GetService("Debris"):AddItem(NEWSOUND, 100)
  679. return NEWSOUND
  680. --end))
  681. end
  682.  
  683. function CFrameFromTopBack(at, top, back)
  684. local right = top:Cross(back)
  685. 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)
  686. end
  687.  
  688. --//=================================\\
  689. --\\=================================//
  690.  
  691.  
  692.  
  693.  
  694. --//=================================\\
  695. --|| WEAPON CREATION
  696. --\\=================================//
  697.  
  698. if Player_Size ~= 1 then
  699. for _, v in pairs (Weapon:GetChildren()) do
  700. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  701. local p1 = v.Part1
  702. v.Part1 = nil
  703. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  704. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  705. v.Part1 = p1
  706. elseif v.ClassName == "Part" then
  707. for _, b in pairs (v:GetChildren()) do
  708. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  709. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  710. end
  711. end
  712. end
  713. end
  714. end
  715.  
  716. for _, c in pairs(Weapon:GetChildren()) do
  717. if c.ClassName == "Part" then
  718. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  719. end
  720. end
  721.  
  722. Weapon.Parent = Character
  723.  
  724. Humanoid.Died:connect(function()
  725. sick:Stop()
  726. CreateSound("744744924", Head, 50, 1)
  727. ATTACK = true
  728. end)
  729.  
  730. print(Class_Name.." loaded.")
  731.  
  732. --//=================================\\
  733. --|| ATTACK FUNCTIONS AND STUFF
  734. --\\=================================//
  735.  
  736. function killnearest(position,range,maxstrength)
  737. for i,v in ipairs(workspace:GetChildren()) do
  738. local body = v:GetChildren()
  739. for part = 1, #body do
  740. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  741. if(body[part].Position - position).Magnitude < range then
  742. if v.ClassName == "Model" then
  743. v:BreakJoints()
  744. end
  745. table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  746. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  747. end
  748. end
  749. end
  750. if v.ClassName == "Part" then
  751. if v.Anchored == false and (v.Position - position).Magnitude < range then
  752. table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  753. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  754. end
  755. end
  756. end
  757. end
  758.  
  759. function CastRay(StartPos, Vec, Length, Ignore)
  760. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  761. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore)
  762. return RayHit, RayPos
  763. end
  764.  
  765. function omaewamou()
  766. ATTACK = true
  767. Rooted = true
  768. local target = nil
  769. local targettorso = nil
  770. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  771. target = Mouse.Target.Parent.Humanoid
  772. targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
  773. end
  774. if target ~= nil then
  775. targettorso.Anchored = true
  776. for i=0, 1, 0.1 / Animation_Speed do
  777. Swait()
  778. RootPart.CFrame = CFrame.new(RootPart.Position,targettorso.Position) * CFrame.new(0, 0, 0)
  779. targettorso.CFrame = CFrame.new(targettorso.Position,RootPart.Position) * CFrame.new(0, 0, 0)
  780. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  781. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  782. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  783. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  784. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  785. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  786. end
  787. local omae = CreateSound("940337206", Head, 50, 1)
  788. repeat
  789. Swait()
  790. RootPart.CFrame = CFrame.new(RootPart.Position,targettorso.Position) * CFrame.new(0, 0, 0)
  791. if target then
  792. targettorso.CFrame = CFrame.new(targettorso.Position,RootPart.Position) * CFrame.new(0, 0, 0)
  793. end
  794. until omae.Playing == false
  795. if target then
  796. local nani = CreateSound("948494432", targettorso, 50, 1)
  797. repeat
  798. Swait()
  799. RootPart.CFrame = CFrame.new(RootPart.Position,targettorso.Position) * CFrame.new(0, 0, 0)
  800. if target then
  801. targettorso.CFrame = CFrame.new(targettorso.Position,RootPart.Position) * CFrame.new(0, 0, 0)
  802. end
  803. until nani.Playing == false
  804. target.Parent:BreakJoints()
  805. targettorso.Anchored = false
  806. local boom = Instance.new("Explosion",workspace)
  807. boom.Position = targettorso.Position
  808. CreateSound("691216625", targettorso, 50, 1)
  809. end
  810. end
  811. Rooted = false
  812. ATTACK = false
  813. end
  814.  
  815. function dab()
  816. ATTACK = true
  817. Rooted = true
  818. local lookatmydab = CreateSound("420701460", Head, 50, 1)
  819. sick.Volume = 10
  820. for i=0, 1, 0.1 / Animation_Speed do
  821. killnearest(RootPart.Position,25,150)
  822. Swait()
  823. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed*4)
  824. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed*4)
  825. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(15), RAD(-35), RAD(-100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*4)
  826. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*4)
  827. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed*4)
  828. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed*4)
  829. end
  830. repeat
  831. killnearest(RootPart.Position,25,150)
  832. Swait()
  833. until lookatmydab.Playing == false
  834. sick.Volume = 1
  835. ATTACK = false
  836. Rooted = false
  837. end
  838.  
  839. function Taunt()
  840. ATTACK = true
  841. --Rooted = true
  842. for i=0, 2, 0.1 / Animation_Speed do
  843. Swait()
  844. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  845. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  846. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  847. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  848. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  849. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  850. end
  851. local winz = CreateSound("958211048", Head, 50, 1)
  852. local loop = 0
  853. repeat
  854. Swait()
  855. loop = loop + 1
  856. if loop == 25 then
  857. loop = 0
  858. Humanoid.Jump = true
  859. end
  860. until winz.Playing == false
  861. ATTACK = false
  862. --Rooted = false
  863. end
  864.  
  865. function shield()
  866. if SHIELD == false then
  867. SHIELD = true
  868. print("WOA!")
  869. coroutine.resume(coroutine.create(function()
  870. local woa = IT("Part",Effects)
  871. woa.Size = VT(5,12,0)
  872. woa.CFrame = RootPart.CFrame * CF(0,3,-7)
  873. woa.Anchored = true
  874. local mesh = IT("SpecialMesh",woa)
  875. mesh.MeshType = "FileMesh"
  876. mesh.MeshId = "rbxassetid://1044207043"
  877. mesh.TextureId = "rbxassetid://1044207051"
  878. mesh.Scale = VT(3,3,3)
  879. CreateSound("638062404", woa, 50, 1)
  880. local woosh = woa.Touched:Connect(function(hit)
  881. if hit.Parent.ClassName == "Model" then
  882. hit.Parent:BreakJoints()
  883. CreateSound("978878312", hit, 2, 1)
  884. elseif hit.ClassName == "Part" and hit.Anchored == false then
  885. hit:remove()
  886. end
  887. end)
  888. repeat
  889. Swait()
  890. woa.CFrame = RootPart.CFrame * CF(0,3,-7)
  891. until SHIELD == false
  892. woosh:disconnect()
  893. CreateSound("638062404", woa, 50, 1)
  894. woa.Anchored = false
  895. local bv = Instance.new("BodyVelocity")
  896. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  897. bv.velocity = RootPart.CFrame.lookVector*150
  898. bv.Parent = woa
  899. bv.Name = "DASH"
  900. local paw = woa.Touched:Connect(function(hit)
  901. if hit.Parent.ClassName == "Model" then
  902. woa:remove()
  903. hit.Parent:BreakJoints()
  904. CreateSound("978878312", hit, 2, 1)
  905. end
  906. end)
  907. end))
  908. elseif SHIELD == true then
  909. SHIELD = false
  910. end
  911. end
  912.  
  913. function gonuts()
  914. ATTACK = true
  915. Rooted = true
  916. sick:Stop()
  917. local ohno = CreateSound("254418283", Effects, 5, 1)
  918. coroutine.resume(coroutine.create(function()
  919. repeat
  920. for i=0, 1.3, 0.1 / Animation_Speed do
  921. Swait()
  922. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  923. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  924. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(70)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  925. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-120)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  926. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(120), RAD(-35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  927. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  928. end
  929. if ohno.Playing == true then
  930. for i=0, 1.3, 0.1 / Animation_Speed do
  931. Swait()
  932. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  933. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  934. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(120)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  935. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-70)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  936. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(-35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  937. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-120), RAD(35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  938. end
  939. end
  940. until ohno.Playing == false
  941. end))
  942. repeat
  943. Swait()
  944. q = workspace:GetChildren()
  945. for i = 1, #q do
  946. local child = q[i]
  947. if child.ClassName == "Model" and child:FindFirstChild("Humanoid") and child ~= Character then
  948. if child:FindFirstChild("MYEARS") == nil then
  949. local MYEARS = IT("NumberValue",child)
  950. MYEARS.Name = "MYEARS"
  951. else
  952. child.MYEARS.Value = child.MYEARS.Value + 1
  953. if child.MYEARS.Value >= 450 then
  954. if child:FindFirstChild("Head") then
  955. child.Head:remove()
  956. local tors = child:FindFirstChild("Torso") or child:FindFirstChild("UpperTorso")
  957. CreateSound(DEATHSOUNDS[MRANDOM(1,#DEATHSOUNDS)], tors, 5, 1)
  958. end
  959. else
  960. if child.Head:FindFirstChild("AAAGH") == nil then
  961. local nu = CreateSound(HURTSOUND, child.Head, 5, 1)
  962. nu.Name = "AAAGH"
  963. end
  964. end
  965. end
  966. end
  967. end
  968. until ohno.Playing == false
  969. sick:Play()
  970. ATTACK = false
  971. Rooted = false
  972. end
  973.  
  974. --//=================================\\
  975. --|| ASSIGN THINGS TO KEYS
  976. --\\=================================//
  977.  
  978. Humanoid.Changed:connect(function(Jump)
  979. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  980. Humanoid.Jump = false
  981. end
  982. end)
  983.  
  984. function MouseDown(Mouse)
  985. if ATTACK == false then
  986. omaewamou()
  987. end
  988. end
  989.  
  990. function MouseUp(Mouse)
  991. HOLD = false
  992. end
  993.  
  994. function KeyDown(Key)
  995. if Key == "e" and ATTACK == false then
  996. dab()
  997. end
  998. if Key == "t" and ATTACK == false then
  999. Taunt()
  1000. end
  1001. if Key == "g" and ATTACK == false then
  1002. shield()
  1003. end
  1004. if Key == "x" and ATTACK == false then
  1005. gonuts()
  1006. end
  1007. end
  1008.  
  1009. function KeyUp(Key)
  1010. end
  1011.  
  1012. Mouse.Button1Down:connect(function(NEWKEY)
  1013. MouseDown(NEWKEY)
  1014. end)
  1015. Mouse.Button1Up:connect(function(NEWKEY)
  1016. MouseUp(NEWKEY)
  1017. end)
  1018. Mouse.KeyDown:connect(function(NEWKEY)
  1019. KeyDown(NEWKEY)
  1020. end)
  1021. Mouse.KeyUp:connect(function(NEWKEY)
  1022. KeyUp(NEWKEY)
  1023. end)
  1024.  
  1025. --//=================================\\
  1026. --\\=================================//
  1027.  
  1028.  
  1029. function unanchor()
  1030. if UNANCHOR == true then
  1031. g = Character:GetChildren()
  1032. for i = 1, #g do
  1033. if g[i].ClassName == "Part" then
  1034. g[i].Anchored = false
  1035. end
  1036. end
  1037. end
  1038. end
  1039.  
  1040.  
  1041. --//=================================\\
  1042. --|| WRAP THE WHOLE SCRIPT UP
  1043. --\\=================================//
  1044.  
  1045. Humanoid.Changed:connect(function(Jump)
  1046. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  1047. Humanoid.Jump = false
  1048. end
  1049. end)
  1050.  
  1051. local ff = Instance.new("ForceField",Character)
  1052. ff.Visible = false
  1053.  
  1054. ANIMATE.Parent = nil
  1055. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1056. IDLEANIMATION:Play()
  1057.  
  1058. while true do
  1059. Swait()
  1060. SINE = SINE + CHANGE
  1061. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1062. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1063. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1064. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1065. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1066. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1067. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1068. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1069. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1070. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1071. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1072. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1073. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1074. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1075. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1076. end
  1077. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1078. ANIM = "Jump"
  1079. if ATTACK == false then
  1080. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1081. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1082. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1083. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1084. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1085. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1086. end
  1087. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1088. ANIM = "Fall"
  1089. if ATTACK == false then
  1090. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1091. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1092. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1093. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1094. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1095. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1096. end
  1097. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1098. ANIM = "Idle"
  1099. if ATTACK == false then
  1100. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1101. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1102. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1103. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1104. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1105. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1106. end
  1107. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1108. ANIM = "Walk"
  1109. WALK = WALK + 1 / Animation_Speed
  1110. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1111. WALK = 0
  1112. if WALKINGANIM == true then
  1113. WALKINGANIM = false
  1114. elseif WALKINGANIM == false then
  1115. WALKINGANIM = true
  1116. end
  1117. end
  1118. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1119. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1120. if ATTACK == false then
  1121. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.3 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1122. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1123. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-100), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1124. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-100), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1125. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(-35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1126. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(-35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1127. end
  1128. end
  1129. if #Effects2>0 then
  1130. for e=1,#Effects2 do
  1131. if Effects2[e]~=nil then
  1132. local Thing=Effects2[e]
  1133. if Thing~=nil then
  1134. local Part=Thing[1]
  1135. local Mode=Thing[2]
  1136. local Delay=Thing[3]
  1137. local IncX=Thing[4]
  1138. local IncY=Thing[5]
  1139. local IncZ=Thing[6]
  1140. local Part2=Thing[8]
  1141. if Thing[1].Transparency<=1 then
  1142. if Thing[2]=="Block1" then
  1143. Thing[1].CFrame=Part2.CFrame
  1144. Mesh=Thing[1].Mesh
  1145. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1146. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1147. elseif Thing[2]=="Cylinder" then
  1148. Mesh=Thing[1].Mesh
  1149. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1150. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1151. elseif Thing[2]=="Blood" then
  1152. Mesh=Thing[7]
  1153. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1154. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1155. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1156. elseif Thing[2]=="Elec" then
  1157. Mesh=Thing[1].Mesh
  1158. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1159. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1160. elseif Thing[2]=="Disappear" then
  1161. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1162. end
  1163. else
  1164. Part.Parent=nil
  1165. table.remove(Effects2,e)
  1166. end
  1167. end
  1168. end
  1169. end
  1170. end
  1171. unanchor()
  1172. Humanoid.MaxHealth = "inf"
  1173. Humanoid.Health = "inf"
  1174. if Rooted == false then
  1175. Disable_Jump = false
  1176. Humanoid.WalkSpeed = Speed
  1177. elseif Rooted == true then
  1178. Disable_Jump = true
  1179. Humanoid.WalkSpeed = 0
  1180. end
  1181. q = Character:GetChildren()
  1182. for u = 1, #q do
  1183. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1184. if q[u].Handle:FindFirstChild("FaceFrontAttachment") then
  1185. q[u]:remove()
  1186. end
  1187. end
  1188. end
  1189. end
  1190.  
  1191. --//=================================\\
  1192. --\\=================================//
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198. --//====================================================\\--
  1199. --|| END OF SCRIPT
  1200. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement