5325325325

Untitled

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