Hugo1234cool

Untitled

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