Advertisement
dsakljdsalk

Untitled

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