Dark_EccentricYT

Untitled

Jul 30th, 2020 (edited)
3,988
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.20 KB | None | 0 0
  1. function LoadLibrary(a)
  2. return loadstring(game:HttpGet("https://pastebin.com/raw/UfzKgS6T", true))()
  3. end
  4.  
  5. loadstring(game:GetObjects("rbxassetid://4480871791")[1].Source)()
  6.  
  7. --[[
  8. ==================================]}
  9. //{Script: Memuto
  10. //{User: Solavenge
  11. ==================================]}
  12. //{Controls:
  13. // F - Toggle Memes
  14. ==================================]}
  15. --]]
  16.  
  17. Player=game:GetService("Players").LocalPlayer
  18. Character=workspace.CloneCharacter
  19. PlayerGui=Player.PlayerGui
  20. Backpack=Player.Backpack
  21. Torso=Character.Torso
  22. Head=Character.Head
  23. Humanoid=Character.Humanoid
  24. m=Instance.new('Model',Character)
  25. LeftArm=Character["Left Arm"]
  26. LeftLeg=Character["Left Leg"]
  27. RightArm=Character["Right Arm"]
  28. RightLeg=Character["Right Leg"]
  29. LS=Torso["Left Shoulder"]
  30. LH=Torso["Left Hip"]
  31. RS=Torso["Right Shoulder"]
  32. RH=Torso["Right Hip"]
  33. Neck=Torso.Neck
  34. it=Instance.new
  35. attacktype=1
  36. vt=Vector3.new
  37. cf=CFrame.new
  38. euler=CFrame.fromEulerAnglesXYZ
  39. angles=CFrame.Angles
  40. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  41. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  42. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  43. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  44. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  45. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  46. RootPart=Character.HumanoidRootPart
  47. RootJoint=RootPart.RootJoint
  48. RootCF=euler(-1.57,0,3.14)
  49. attack = false
  50. attackdebounce = false
  51. deb=false
  52. equipped=true
  53. hand=false
  54. MMouse=nil
  55. combo=0
  56. mana=0
  57. cam=workspace.CurrentCamera
  58. RocketTarget=nil
  59. Targetting=false
  60. trispeed=.2
  61. attackmode='none'
  62. local idle=0
  63. local Anim="Idle"
  64. local Effects={}
  65. local gun=false
  66. local shoot=false
  67. local issprinting=false
  68. local memeing=false
  69. player=nil
  70. mouse=Player:GetMouse()
  71. --save shoulders
  72. RSH, LSH=nil, nil
  73. --welds
  74. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  75. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  76. LH=Torso["Left Hip"]
  77. RH=Torso["Right Hip"]
  78. TorsoColor=Torso.BrickColor
  79. function NoOutline(Part)
  80. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  81. end
  82. player=Player
  83. ch=Character
  84. RSH=ch.Torso["Right Shoulder"]
  85. LSH=ch.Torso["Left Shoulder"]
  86. --
  87. RSH.Parent=nil
  88. LSH.Parent=nil
  89. --
  90. RW.Name="Right Shoulder"
  91. RW.Part0=ch.Torso
  92. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  93. RW.C1=cf(0, 0.5, 0)
  94. RW.Part1=ch["Right Arm"]
  95. RW.Parent=ch.Torso
  96. --
  97. LW.Name="Left Shoulder"
  98. LW.Part0=ch.Torso
  99. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  100. LW.C1=cf(0, 0.5, 0)
  101. LW.Part1=ch["Left Arm"]
  102. LW.Parent=ch.Torso
  103.  
  104. if Humanoid:findFirstChild("Animate") then
  105. Humanoid:findFirstChild("Animate"):Destroy()
  106. elseif Character:findFirstChild("Animate") then
  107. Character:findFirstChild("Animate"):Destroy()
  108. end
  109.  
  110.  
  111. local WEEB = Instance.new("Sound",Torso)
  112. WEEB.Volume=0
  113. WEEB.Pitch=0
  114. WEEB.SoundId="http://www.roblox.com/asset/?id=186860903"
  115. WEEB.Looped=true
  116. wait()
  117. WEEB:play()
  118.  
  119.  
  120. local Stats=Instance.new("BoolValue")
  121. Stats.Name="Stats"
  122. Stats.Parent=Character
  123. local Atk=Instance.new("NumberValue")
  124. Atk.Name="Damage"
  125. Atk.Parent=Stats
  126. Atk.Value=1
  127. local Def=Instance.new("NumberValue")
  128. Def.Name="Defense"
  129. Def.Parent=Stats
  130. Def.Value=1
  131. local Speed=Instance.new("NumberValue")
  132. Speed.Name="Speed"
  133. Speed.Parent=Stats
  134. Speed.Value=1
  135. local Mvmt=Instance.new("NumberValue")
  136. Mvmt.Name="Movement"
  137. Mvmt.Parent=Stats
  138. Mvmt.Value=1
  139.  
  140.  
  141. local donum=0
  142.  
  143. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  144. local fp=it("Part")
  145. fp.formFactor=formfactor
  146. fp.Parent=parent
  147. fp.Reflectance=reflectance
  148. fp.Transparency=transparency
  149. fp.CanCollide=false
  150. fp.Locked=true
  151. fp.BrickColor=brickcolor
  152. fp.Name=name
  153. fp.Size=size
  154. fp.Position=Torso.Position
  155. NoOutline(fp)
  156. fp.Material="SmoothPlastic"
  157. fp:BreakJoints()
  158. return fp
  159. end
  160.  
  161. function part2(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  162. local fp = Instance.new("Part")
  163. fp.formFactor = formfactor
  164. fp.Parent = parent
  165. fp.Reflectance = reflectance
  166. fp.Transparency = transparency
  167. fp.CanCollide = false
  168. fp.Locked = true
  169. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  170. fp.Name = name
  171. fp.Size = size
  172. fp.Position = Character.Torso.Position
  173. fp.Material = material
  174.  
  175. NoOutline(fp)
  176. return fp
  177. end
  178.  
  179. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  180. local mesh=it(Mesh)
  181. mesh.Parent=part
  182. if Mesh=="SpecialMesh" then
  183. mesh.MeshType=meshtype
  184. mesh.MeshId=meshid
  185. end
  186. mesh.Offset=offset
  187. mesh.Scale=scale
  188. return mesh
  189. end
  190.  
  191. function weld(parent,part0,part1,c0)
  192. local weld=it("Weld")
  193. weld.Parent=parent
  194. weld.Part0=part0
  195. weld.Part1=part1
  196. weld.C0=c0
  197. return weld
  198. end
  199.  
  200. function weld2(parent, part0, part1, c0, c1)
  201. local Weld = Instance.new("Weld")
  202. Weld.Parent = parent
  203. Weld.Part0 = part0
  204. Weld.Part1 = part1
  205. Weld.C0 = c0
  206. Weld.C1 = c1
  207.  
  208. return Weld
  209. end
  210.  
  211. local Color1=Torso.BrickColor
  212.  
  213. local bodvel=Instance.new("BodyVelocity")
  214. local bg=Instance.new("BodyGyro")
  215.  
  216. ArtificialHB = Instance.new("BindableEvent", script)
  217. ArtificialHB.Name = "Heartbeat"
  218.  
  219. script:WaitForChild("Heartbeat")
  220.  
  221. frame = 1 / 60
  222. tf = 0
  223. allowframeloss = true
  224. tossremainder = false
  225. lastframe = tick()
  226. script.Heartbeat:Fire()
  227.  
  228. game:GetService("RunService").Heartbeat:connect(function(s, p)
  229. tf = tf + s
  230. if tf >= frame then
  231. if allowframeloss then
  232. script.Heartbeat:Fire()
  233. lastframe = tick()
  234. else
  235. for i = 1, math.floor(tf / frame) do
  236. script.Heartbeat:Fire()
  237. end
  238. lastframe = tick()
  239. end
  240. if tossremainder then
  241. tf = 0
  242. else
  243. tf = tf - frame * math.floor(tf / frame)
  244. end
  245. end
  246. end)
  247.  
  248. function swait(num)
  249. if num == 0 or num == nil then
  250. ArtificialHB.Event:wait()
  251. else
  252. for i = 0, num do
  253. ArtificialHB.Event:wait()
  254. end
  255. end
  256. end
  257.  
  258.  
  259. so = function(id,par,vol,pit)
  260. coroutine.resume(coroutine.create(function()
  261. local sou = Instance.new("Sound",par or workspace)
  262. sou.Volume=vol
  263. sou.Pitch=pit or 1
  264. sou.SoundId=id
  265. swait()
  266. sou:play()
  267. game:GetService("Debris"):AddItem(sou,6)
  268. end))
  269. end
  270.  
  271. function clerp(a,b,t)
  272. local qa = {QuaternionFromCFrame(a)}
  273. local qb = {QuaternionFromCFrame(b)}
  274. local ax, ay, az = a.x, a.y, a.z
  275. local bx, by, bz = b.x, b.y, b.z
  276. local _t = 1-t
  277. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  278. end
  279.  
  280. function QuaternionFromCFrame(cf)
  281. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  282. local trace = m00 + m11 + m22
  283. if trace > 0 then
  284. local s = math.sqrt(1 + trace)
  285. local recip = 0.5/s
  286. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  287. else
  288. local i = 0
  289. if m11 > m00 then
  290. i = 1
  291. end
  292. if m22 > (i == 0 and m00 or m11) then
  293. i = 2
  294. end
  295. if i == 0 then
  296. local s = math.sqrt(m00-m11-m22+1)
  297. local recip = 0.5/s
  298. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  299. elseif i == 1 then
  300. local s = math.sqrt(m11-m22-m00+1)
  301. local recip = 0.5/s
  302. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  303. elseif i == 2 then
  304. local s = math.sqrt(m22-m00-m11+1)
  305. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  306. end
  307. end
  308. end
  309.  
  310. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  311. local xs, ys, zs = x + x, y + y, z + z
  312. local wx, wy, wz = w*xs, w*ys, w*zs
  313. local xx = x*xs
  314. local xy = x*ys
  315. local xz = x*zs
  316. local yy = y*ys
  317. local yz = y*zs
  318. local zz = z*zs
  319. 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))
  320. end
  321.  
  322. function QuaternionSlerp(a, b, t)
  323. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  324. local startInterp, finishInterp;
  325. if cosTheta >= 0.0001 then
  326. if (1 - cosTheta) > 0.0001 then
  327. local theta = math.acos(cosTheta)
  328. local invSinTheta = 1/math.sin(theta)
  329. startInterp = math.sin((1-t)*theta)*invSinTheta
  330. finishInterp = math.sin(t*theta)*invSinTheta
  331. else
  332. startInterp = 1-t
  333. finishInterp = t
  334. end
  335. else
  336. if (1+cosTheta) > 0.0001 then
  337. local theta = math.acos(-cosTheta)
  338. local invSinTheta = 1/math.sin(theta)
  339. startInterp = math.sin((t-1)*theta)*invSinTheta
  340. finishInterp = math.sin(t*theta)*invSinTheta
  341. else
  342. startInterp = t-1
  343. finishInterp = t
  344. end
  345. end
  346. 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
  347. end
  348.  
  349. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  350. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  351. end
  352.  
  353. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) --bm1
  354. if hit.Parent == nil then
  355. return
  356. end
  357. local h = hit.Parent:FindFirstChild("Humanoid")
  358. for _, v in pairs(hit.Parent:children()) do
  359. if v:IsA("Humanoid") then
  360. h = v
  361. end
  362. end
  363. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  364. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  365. if hit.Parent.DebounceHit.Value == true then
  366. return
  367. end
  368. end
  369. if h.MaxHealth >= math.huge then
  370. hit:BreakJoints()
  371. end
  372. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  373. return
  374. end]]
  375. -- hs(hit,1.2)
  376. local c = Instance.new("ObjectValue")
  377. c.Name = "creator"
  378. c.Value = game:service("Players").LocalPlayer
  379. c.Parent = h
  380.  
  381. game:GetService("Debris"):AddItem(c, .5)
  382. if HitSound ~= nil and HitPitch ~= nil then
  383. so(HitSound, hit, 1, HitPitch)
  384. end
  385. local Damage = math.random(minim, maxim)
  386. -- h:TakeDamage(Damage)
  387. local blocked = false
  388. local block = hit.Parent:findFirstChild("Block")
  389. if block ~= nil then
  390. if block.className == "IntValue" then
  391. if block.Value > 0 then
  392. blocked = true
  393. block.Value = block.Value - 1
  394. print(block.Value)
  395. end
  396. end
  397. end
  398. if blocked == false then
  399. -- h:TakeDamage(Damage)
  400. h.Health = h.Health - Damage
  401. if Damage ~= 0 then
  402. ShowDamage2((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Institutional white").Color)
  403. end
  404. else
  405. h.Health = h.Health - (Damage / 2)
  406. if Damage ~=0 then
  407. ShowDamage2((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Institutional white").Color)
  408. end
  409. end
  410. if Type == "Knockdown" then
  411. local hum = hit.Parent.Humanoid
  412. hum.PlatformStand = true
  413. coroutine.resume(coroutine.create(function(HHumanoid)
  414. swait(1)
  415. HHumanoid.PlatformStand = false
  416. end), hum)
  417. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  418. local bodvol = Instance.new("BodyVelocity")
  419. bodvol.velocity = angle * knockback
  420. bodvol.P = 5000
  421. bodvol.maxForce = Vector3.new(8e+003, 8e+003, 8e+003)
  422. bodvol.Parent = hit
  423.  
  424. local rl = Instance.new("BodyAngularVelocity")
  425. rl.P = 3000
  426. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  427. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  428. rl.Parent = hit
  429.  
  430. game:GetService("Debris"):AddItem(bodvol, .5)
  431. game:GetService("Debris"):AddItem(rl, .5)
  432. elseif Type == "Plat" then
  433. local hum = hit.Parent.Humanoid
  434. hum.PlatformStand = true
  435. coroutine.resume(coroutine.create(function(HHumanoid)
  436. swait(2)
  437. HHumanoid.PlatformStand = false
  438. end), hum)
  439.  
  440. local rl = Instance.new("BodyAngularVelocity")
  441. rl.P = 3000
  442. rl.maxTorque = Vector3.new(100, 100, 100) * 500
  443. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  444. rl.Parent = hit
  445.  
  446. game:GetService("Debris"):AddItem(rl, .5)
  447. elseif Type == "Normal" then
  448. local vp = Instance.new("BodyVelocity")
  449. vp.P = 500
  450. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  451. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  452.  
  453. if knockback > 0 then
  454. vp.Parent = hit.Parent.Torso
  455. end
  456. game:GetService("Debris"):AddItem(vp, .5)
  457. elseif Type == "Up" then
  458. local bodyVelocity = Instance.new("BodyVelocity")
  459. bodyVelocity.velocity = vt(0, 20, 0)
  460. bodyVelocity.P = 5000
  461. bodyVelocity.maxForce = Vector3.new(8e+003, 8e+003, 8e+003)
  462. bodyVelocity.Parent = hit
  463.  
  464. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  465. elseif Type == "Snare" then
  466. local bp = Instance.new("BodyPosition")
  467. bp.P = 2000
  468. bp.D = 100
  469. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  470. bp.position = hit.Parent.Torso.Position
  471. bp.Parent = hit.Parent.Torso
  472. game:GetService("Debris"):AddItem(bp, 1)
  473.  
  474. elseif Type == "Freeze" then
  475. local BodPos = Instance.new("BodyPosition")
  476. BodPos.P = 50000
  477. BodPos.D = 1000
  478. BodPos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  479. BodPos.position = hit.Parent.Torso.Position
  480. BodPos.Parent = hit.Parent.Torso
  481.  
  482. local BodGy = Instance.new("BodyGyro")
  483. BodGy.maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge
  484. BodGy.P = 20e+003
  485. BodGy.Parent = hit.Parent.Torso
  486. BodGy.cframe = hit.Parent.Torso.CFrame
  487.  
  488. hit.Parent.Torso.Anchored = true
  489. coroutine.resume(coroutine.create(function(Part)
  490. swait(1.5)
  491. Part.Anchored = false
  492. end), hit.Parent.Torso)
  493. game:GetService("Debris"):AddItem(BodPos, 3)
  494. game:GetService("Debris"):AddItem(BodGy, 3)
  495.  
  496.  
  497. elseif Type=="Target" then
  498. if Targetting==false then
  499. ZTarget=hit.Parent.Torso
  500. coroutine.resume(coroutine.create(function(Part)
  501. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  502. swait(5)
  503. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  504. end),ZTarget)
  505. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  506. targetgui=Instance.new("BillboardGui")
  507. targetgui.Parent=ZTarget
  508. targetgui.Size=UDim2.new(10,100,10,100)
  509. targ=Instance.new("ImageLabel")
  510. targ.Parent=targetgui
  511. targ.BackgroundTransparency=1
  512. targ.Image="rbxassetid://4834067"
  513. targ.Size=UDim2.new(1,0,1,0)
  514. cam.CameraType="Scriptable"
  515. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  516. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  517. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  518. Targetting=true
  519. RocketTarget=ZTarget
  520. for i=1,Property do
  521. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  522. swait()
  523. end
  524. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  525. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  526. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  527. end
  528. Targetting=false
  529. RocketTarget=nil
  530. targetgui.Parent=nil
  531. cam.CameraType="Custom"
  532. end
  533. end
  534.  
  535. local debounce = Instance.new("BoolValue")
  536. debounce.Name = "DebounceHit"
  537. debounce.Parent = hit.Parent
  538. debounce.Value = true
  539. game:GetService("Debris"):AddItem(debounce, Delay)
  540. c = Instance.new("ObjectValue")
  541. c.Name = "creator"
  542. c.Value = Player
  543. c.Parent = h
  544. game:GetService("Debris"):AddItem(c, .5)
  545. end
  546. end
  547.  
  548. function ShowDamage2(Pos, Text, Time, Color)
  549. local Rate = (1 / 30)
  550. local Pos = (Pos or Vector3.new(0, 0, 0))
  551. local Text = (Text or "")
  552. local Time = (Time or 2)
  553. local Color = (Color or Color3.new(1, 0, 0))
  554. local EffectPart = part2("Custom", workspace, "Neon", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  555. EffectPart.Anchored = true
  556. local BillboardGui = Instance.new("BillboardGui")
  557. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  558. BillboardGui.Adornee = EffectPart
  559. BillboardGui.Parent = EffectPart
  560.  
  561. local TextLabel = Instance.new("TextLabel")
  562. TextLabel.BackgroundTransparency = 1
  563. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  564. TextLabel.Text = Text
  565. TextLabel.TextColor3 = Color
  566. TextLabel.TextScaled = true
  567. TextLabel.Font = Enum.Font.ArialBold
  568. TextLabel.Parent = BillboardGui
  569.  
  570. game.Debris:AddItem(EffectPart, (Time + 0.1))
  571. EffectPart.Parent = game:GetService("Workspace")
  572. delay(0, function()
  573. local Frames = (Time / Rate)
  574. for Frame = 1, Frames do
  575. wait(Rate)
  576. local Percent = (Frame / Frames)
  577. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  578. TextLabel.TextTransparency = Percent
  579. end
  580. if EffectPart and EffectPart.Parent then
  581. EffectPart:Destroy()
  582. end
  583. end)
  584. end
  585.  
  586. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  587. local prt = part2(3, workspace, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  588. prt.Anchored = true
  589. prt.CFrame = cframe
  590. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  591. coroutine.resume(coroutine.create(function()
  592. for i = 0, 1, 0.05 do
  593. wait()
  594. prt.Transparency = i
  595. msh.Scale = msh.Scale + vt(x2, y2, z2)
  596. end
  597. prt.Parent = nil
  598. end))
  599. end
  600.  
  601. function weld(parent, part0, part1, c0, c1)
  602. local Weld = Instance.new("Weld")
  603. Weld.Parent = parent
  604. Weld.Part0 = part0
  605. Weld.Part1 = part1
  606. Weld.C0 = c0
  607. Weld.C1 = c1
  608.  
  609. return Weld
  610. end
  611.  
  612. function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
  613. for _, c in pairs(workspace:children()) do
  614. local hum = c:findFirstChild("Humanoid")
  615. if hum ~= nil then
  616. local head = c:findFirstChild("Torso")
  617. if head ~= nil then
  618. local targ = head.Position - Part.Position
  619. local mag = targ.magnitude
  620. if mag <= magni and c.Name ~= Player.Name then
  621. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
  622. end
  623. end
  624. end
  625. end
  626. end
  627.  
  628. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  629. local prt = part2(3, workspace, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  630. prt.Anchored = true
  631. prt.CFrame = cframe
  632. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  633. game:GetService("Debris"):AddItem(prt, 2)
  634. coroutine.resume(coroutine.create(function(Part, Mesh)
  635. for i = 0, 1, delay do
  636. swait()
  637. Part.CFrame = Part.CFrame
  638. Part.Transparency = i
  639. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  640. end
  641. Part.Parent = nil
  642. end), prt, msh)
  643. end
  644.  
  645. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  646. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  647. prt.Anchored=true
  648. prt.CFrame=cframe
  649. local msh = mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  650. game:GetService("Debris"):AddItem(prt,2)
  651. coroutine.resume(coroutine.create(function(Part,Mesh)
  652. for i=0,1,delay do
  653. swait()
  654. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  655. Part.Transparency=i
  656. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  657. end
  658. Part.Parent=nil
  659. end),prt,msh)
  660. end
  661.  
  662.  
  663. user=game:service'Players'.localPlayer
  664. char=workspace.CloneCharacter
  665. mouse=user:GetMouse()
  666.  
  667.  
  668. local function weldBetween(a, b, name)
  669. local weld = Instance.new("ManualWeld")
  670. weld.Part0 = a
  671. weld.Part1 = b
  672. weld.C0 = CFrame.new()
  673. weld.C1 = b.CFrame:inverse() * a.CFrame
  674. weld.Parent = a
  675. weld.Name=name or 'weldb1'
  676. weld.Parent=m
  677. return weld;
  678. end
  679.  
  680.  
  681. player=game.Players.localPlayer
  682. char=workspace.CloneCharacter
  683. Effects={}
  684. vt=Vector3.new
  685. cf=CFrame.new
  686. euler=CFrame.fromEulerAnglesXYZ
  687. m=Instance.new("Model",char)
  688.  
  689. mouse.Button1Down:connect(function()
  690. print("NEIN")
  691. end)
  692.  
  693. local mdel = false
  694.  
  695. mouse.KeyDown:connect(function(k)
  696. k=k:lower()
  697. if k=='f' then
  698. if attack==false then
  699. ToggleMemes()
  700. end
  701. end
  702. end)
  703.  
  704. function ToggleMemes()
  705. if memeing == true and mdel == false then
  706. memeing = false
  707. issprinting=false
  708. Humanoid.WalkSpeed = 16
  709. mdel = true
  710. for i = 1,0,-0.1 do
  711. wait(0.05)
  712. WEEB.Volume = i
  713. end
  714. WEEB.Pitch = 0
  715. mdel = false
  716. elseif memeing == false and mdel == false then
  717. memeing = true
  718. issprinting=true
  719. Humanoid.WalkSpeed=35
  720. WEEB.Pitch = 1
  721. mdel = true
  722. for i = 0,1,.1 do
  723. wait(0.05)
  724. WEEB.Volume = i
  725. end
  726. mdel = false
  727. end
  728. end
  729.  
  730. local function CFrameFromTopBack(at, top, back)
  731. local right = top:Cross(back)
  732. return CFrame.new(at.x, at.y, at.z,
  733. right.x, top.x, back.x,
  734. right.y, top.y, back.y,
  735. right.z, top.z, back.z)
  736. end
  737.  
  738. function Triangle(a, b, c)
  739. local edg1 = (c-a):Dot((b-a).unit)
  740. local edg2 = (a-b):Dot((c-b).unit)
  741. local edg3 = (b-c):Dot((a-c).unit)
  742. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  743. a, b, c = a, b, c
  744. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  745. a, b, c = b, c, a
  746. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  747. a, b, c = c, a, b
  748. else
  749. assert(false, "unreachable")
  750. end
  751.  
  752. local len1 = (c-a):Dot((b-a).unit)
  753. local len2 = (b-a).magnitude - len1
  754. local width = (a + (b-a).unit*len1 - c).magnitude
  755.  
  756. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  757.  
  758. local list = {}
  759.  
  760. if len1 > 0.01 then
  761. local w1 = Instance.new('WedgePart', m)
  762. game:GetService("Debris"):AddItem(w1,5)
  763. w1.Material = "SmoothPlastic"
  764. w1.FormFactor = 'Custom'
  765. w1.BrickColor = TorsoColor
  766. w1.Transparency = 0
  767. w1.Reflectance = 0
  768. w1.Material = "SmoothPlastic"
  769. w1.CanCollide = false
  770. NoOutline(w1)
  771. local sz = Vector3.new(0.2, width, len1)
  772. w1.Size = sz
  773. local sp = Instance.new("SpecialMesh",w1)
  774. sp.MeshType = "Wedge"
  775. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  776. w1:BreakJoints()
  777. w1.Anchored = true
  778. w1.Parent = workspace
  779. w1.Transparency = 0.7
  780. table.insert(Effects,{w1,"Disappear",.01})
  781. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  782. table.insert(list,w1)
  783. end
  784.  
  785. if len2 > 0.01 then
  786. local w2 = Instance.new('WedgePart', m)
  787. game:GetService("Debris"):AddItem(w2,5)
  788. w2.Material = "SmoothPlastic"
  789. w2.FormFactor = 'Custom'
  790. w2.BrickColor = TorsoColor
  791. w2.Transparency = 0
  792. w2.Reflectance = 0
  793. w2.Material = "SmoothPlastic"
  794. w2.CanCollide = false
  795. NoOutline(w2)
  796. local sz = Vector3.new(0.2, width, len2)
  797. w2.Size = sz
  798. local sp = Instance.new("SpecialMesh",w2)
  799. sp.MeshType = "Wedge"
  800. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  801. w2:BreakJoints()
  802. w2.Anchored = true
  803. w2.Parent = workspace
  804. w2.Transparency = 0.7
  805. table.insert(Effects,{w2,"Disappear",.01})
  806. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  807. table.insert(list,w2)
  808. end
  809. return unpack(list)
  810. end
  811.  
  812. function NoOutline(Part)
  813. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  814. end
  815.  
  816. local sine = 0
  817. local change = 1
  818. local val = 0
  819.  
  820. if #Effects>0 then
  821. --table.insert(Effects,{prt,"Block1",delay})
  822. for e=1,#Effects do
  823. if Effects[e]~=nil then
  824. --for j=1,#Effects[e] do
  825. local Thing=Effects[e]
  826. if Thing~=nil then
  827. local Part=Thing[1]
  828. local Mode=Thing[2]
  829. local Delay=Thing[3]
  830. local IncX=Thing[4]
  831. local IncY=Thing[5]
  832. local IncZ=Thing[6]
  833. if Thing[1].Transparency<=1 then
  834. if Thing[2]=="Block1" then
  835. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  836. Mesh=Thing[1].Mesh
  837. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  838. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  839. elseif Thing[2]=="Cylinder" then
  840. Mesh=Thing[1].Mesh
  841. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  842. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  843. elseif Thing[2]=="Blood" then
  844. Mesh=Thing[1].Mesh
  845. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  846. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  847. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  848. elseif Thing[2]=="Elec" then
  849. Mesh=Thing[1].Mesh
  850. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  851. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  852. elseif Thing[2]=="Disappear" then
  853. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  854. end
  855. else
  856. Part.Parent=nil
  857. table.remove(Effects,e)
  858. end
  859. end
  860. --end
  861. end
  862. end
  863. end
  864.  
  865. cn = CFrame.new
  866. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  867. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  868. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  869. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  870.  
  871. local mananum=0
  872. while true do
  873. swait()
  874. sine = sine + change
  875. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  876. local velderp=RootPart.Velocity.y
  877. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  878. if equipped==true or equipped==false then
  879. if attack==false then
  880. idle=idle+1
  881. else
  882. idle=0
  883. end
  884. if idle>=500 then
  885. if attack==false then
  886. --Sheath()
  887. end
  888. end
  889. if RootPart.Velocity.y > 1 and hitfloor==nil then
  890. Anim="Jump"
  891. if attack==false then
  892. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  893. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  894. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  895. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  896. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  897. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  898. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  899. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.3)
  900. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.3)
  901. end
  902. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  903. Anim="Fall"
  904. if attack==false then
  905. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  906. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  907. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  908. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  909. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  910. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  911. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  912. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.3)
  913. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.3)
  914. end
  915. elseif torvel<1 and hitfloor~=nil then
  916. Anim="Idle"
  917. if attack==false then
  918. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .3)
  919. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .3)
  920. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.3)
  921. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.3)
  922. RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .3)
  923. LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .3)
  924. end
  925. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  926. Anim="Walk"
  927. if attack==false then
  928. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 5)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 10))), .2)
  929. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 10)) + RootPart.RotVelocity.Y / 15), .2)
  930. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10 * math.cos(sine / 13)), math.rad(0), math.rad(4 * math.cos(sine / 13))), .2)
  931. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 13)), math.rad(0), math.rad(4 * math.cos(sine / 13))), .2)
  932. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 7))), .3)
  933. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 7))), .3)
  934. end
  935. elseif torvel>=22 and issprinting==true and hitfloor~=nil then
  936. Anim="Run"
  937. if attack==false then
  938. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0.5, -0.05 + .1 * 2.5 * math.cos(sine / 2)) * angles(math.rad(50), math.rad(2) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 2))), .2)
  939. Torso.Neck.C0 = clerp(Torso.Neck.C0, cn(0, 1.1, -0.2, -1, -0, -0, 0, 0, 1, 0, 1, 0) * angles(math.rad(-50), math.rad(0), math.rad(-5 * math.cos(sine / 10)) + RootPart.RotVelocity.Y / 15), .2)
  940. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.4) * angles(math.rad(75 * math.cos(6 / 2)), math.rad(-5), math.rad(25 * math.cos(sine / 3))), .2)
  941. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.4) * angles(math.rad(75 * math.cos(6 / 2)), math.rad(5), math.rad(25 * math.cos(sine / 3))), .2)
  942. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(55 * math.cos(sine / 3))), .3)
  943. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(55 * math.cos(sine / 3))), .3)
  944. end
  945. end
  946. end
  947. end
Add Comment
Please, Sign In to add comment