Advertisement
BAconTUbe

MEME LORD FE

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