NYXRBLX

Untitled

Dec 3rd, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.07 KB | None | 0 0
  1. local p = game.Players.localPlayer
  2. local char = p.Character
  3. local mouse = p:GetMouse()
  4. local larm = char["Left Arm"]
  5. local rarm = char["Right Arm"]
  6. local lleg = char["Left Leg"]
  7. local rleg = char["Right Leg"]
  8. local hed = char.Head
  9. local torso = char.Torso
  10. local cam = game.Workspace.CurrentCamera
  11. local root = char.HumanoidRootPart
  12. local deb = false
  13. local shot = 0
  14. local l = game.Lighting
  15. local stanceToggle = "Assertive"
  16. local CanAttack = true
  17. local Daytime = true
  18. local animpose = "Idle"
  19. local lastanimpose = "Idle"
  20. local nosword=false
  21. RootPart=char.HumanoidRootPart
  22. local Effects={}
  23. local attack=false
  24. idle=0
  25. Anim='Idle'
  26. equipped=true
  27. char.Humanoid.WalkSpeed=16
  28. colorscheme=BrickColor.new('Black')
  29. it=Instance.new
  30. attacktype=1
  31. vt=Vector3.new
  32. cf=CFrame.new
  33. euler=CFrame.fromEulerAnglesXYZ
  34. angles=CFrame.Angles
  35. m=Instance.new('Model',char)
  36. stance='god'
  37.  
  38. it=Instance.new
  39. vt=Vector3.new
  40. cf=CFrame.new
  41. euler=CFrame.fromEulerAnglesXYZ
  42. angles=CFrame.Angles
  43.  
  44.  
  45. function swait(num)
  46. if num==0 or num==nil then
  47. game:service'RunService'.Stepped:wait(0)
  48. else
  49. for i=0,num do
  50. game:service'RunService'.Stepped:wait(0)
  51. end
  52. end
  53. end
  54.  
  55. function clerp(a,b,t)
  56. local qa = {QuaternionFromCFrame(a)}
  57. local qb = {QuaternionFromCFrame(b)}
  58. local ax, ay, az = a.x, a.y, a.z
  59. local bx, by, bz = b.x, b.y, b.z
  60. local _t = 1-t
  61. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  62. end
  63.  
  64. function QuaternionFromCFrame(cf)
  65. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  66. local trace = m00 + m11 + m22
  67. if trace > 0 then
  68. local s = math.sqrt(1 + trace)
  69. local recip = 0.5/s
  70. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  71. else
  72. local i = 0
  73. if m11 > m00 then
  74. i = 1
  75. end
  76. if m22 > (i == 0 and m00 or m11) then
  77. i = 2
  78. end
  79. if i == 0 then
  80. local s = math.sqrt(m00-m11-m22+1)
  81. local recip = 0.5/s
  82. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  83. elseif i == 1 then
  84. local s = math.sqrt(m11-m22-m00+1)
  85. local recip = 0.5/s
  86. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  87. elseif i == 2 then
  88. local s = math.sqrt(m22-m00-m11+1)
  89. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  90. end
  91. end
  92. end
  93.  
  94. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  95. local xs, ys, zs = x + x, y + y, z + z
  96. local wx, wy, wz = w*xs, w*ys, w*zs
  97. local xx = x*xs
  98. local xy = x*ys
  99. local xz = x*zs
  100. local yy = y*ys
  101. local yz = y*zs
  102. local zz = z*zs
  103. 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))
  104. end
  105.  
  106. function QuaternionSlerp(a, b, t)
  107. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  108. local startInterp, finishInterp;
  109. if cosTheta >= 0.0001 then
  110. if (1 - cosTheta) > 0.0001 then
  111. local theta = math.acos(cosTheta)
  112. local invSinTheta = 1/math.sin(theta)
  113. startInterp = math.sin((1-t)*theta)*invSinTheta
  114. finishInterp = math.sin(t*theta)*invSinTheta
  115. else
  116. startInterp = 1-t
  117. finishInterp = t
  118. end
  119. else
  120. if (1+cosTheta) > 0.0001 then
  121. local theta = math.acos(-cosTheta)
  122. local invSinTheta = 1/math.sin(theta)
  123. startInterp = math.sin((t-1)*theta)*invSinTheta
  124. finishInterp = math.sin(t*theta)*invSinTheta
  125. else
  126. startInterp = t-1
  127. finishInterp = t
  128. end
  129. end
  130. 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
  131. end
  132. -----------
  133. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  134. local wld = Instance.new("Weld", wp1)
  135. wld.Part0 = wp0
  136. wld.Part1 = wp1
  137. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  138. return wld
  139. end
  140.  
  141. larm.Size = larm.Size * 2
  142. rarm.Size = rarm.Size * 2
  143. lleg.Size = lleg.Size * 2
  144. rleg.Size = rleg.Size * 2
  145. torso.Size = torso.Size * 2
  146. hed.Size = hed.Size * 2
  147. root.Size = root.Size * 2
  148. ----------------------------------------------------
  149. newWeld(torso, larm, -3, 0.5, 0)
  150. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  151. newWeld(torso, rarm, 3, 0.5, 0)
  152. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  153. newWeld(torso, hed, 0, 1.5, 0)
  154. hed.Weld.C1 = CFrame.new(0, -1.5, 0)
  155. newWeld(torso, lleg, -0.5, -1, 0)
  156. lleg.Weld.C1 = CFrame.new(.5, 3, 0)
  157. newWeld(torso, rleg, 0.5, -1, 0)
  158. rleg.Weld.C1 = CFrame.new(-.5, 3, 0)
  159. newWeld(root, torso, 0, -1, 0)
  160. torso.Weld.C1 = CFrame.new(0, -1, 0)
  161.  
  162. Player=game:GetService('Players').LocalPlayer
  163. Character=Player.Character
  164. Mouse=Player:GetMouse()
  165. m=Instance.new('Model',Character)
  166.  
  167. local function weldBetween(a, b)
  168. local weldd = Instance.new("ManualWeld")
  169. weldd.Part0 = a
  170. weldd.Part1 = b
  171. weldd.C0 = CFrame.new()
  172. weldd.C1 = b.CFrame:inverse() * a.CFrame
  173. weldd.Parent = a
  174. return weldd
  175. end
  176.  
  177. it=Instance.new
  178.  
  179. function nooutline(part)
  180. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  181. end
  182.  
  183. function paart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  184. local fp=it("Part")
  185. fp.formFactor=formfactor
  186. fp.Parent=parent
  187. fp.Reflectance=reflectance
  188. fp.Transparency=transparency
  189. fp.CanCollide=false
  190. fp.Locked=true
  191. fp.BrickColor=brickcolor
  192. fp.Name=name
  193. fp.Size=size
  194. fp.Position=torso.Position
  195. nooutline(fp)
  196. fp.Material="SmoothPlastic"
  197. fp:BreakJoints()
  198. return fp
  199. end
  200.  
  201. function decal(part,face,texture,transparency,shiny,specular,name)
  202. local d=it("Decal",part)
  203. d.Shiny=shiny
  204. d.Face=face
  205. d.Specular=specular
  206. d.Transparency=transparency
  207. d.Texture=texture
  208. d.Name=name
  209. return d
  210. end
  211.  
  212.  
  213. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  214. local fp=it("Part")
  215. fp.formFactor=formfactor
  216. fp.Parent=parent
  217. fp.Reflectance=reflectance
  218. fp.Transparency=transparency
  219. fp.CanCollide=false
  220. fp.Locked=true
  221. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  222. fp.Name=name
  223. fp.Size=size
  224. fp.Position=Character.Torso.Position
  225. nooutline(fp)
  226. fp.Material=material
  227. fp:BreakJoints()
  228. return fp
  229. end
  230.  
  231. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  232. local mesh=it(Mesh)
  233. mesh.Parent=part
  234. if Mesh=="SpecialMesh" then
  235. mesh.MeshType=meshtype
  236. mesh.MeshId=meshid
  237. end
  238. mesh.Offset=offset
  239. mesh.Scale=scale
  240. return mesh
  241. end
  242.  
  243. function weld(parent,part0,part1,c0,c1)
  244. local weld=it("Weld")
  245. weld.Parent=parent
  246. weld.Part0=part0
  247. weld.Part1=part1
  248. weld.C0=c0
  249. weld.C1=c1
  250. return weld
  251. end
  252.  
  253. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  254. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  255. end
  256.  
  257. so = function(id,par,vol,pit)
  258. coroutine.resume(coroutine.create(function()
  259. local sou = Instance.new("Sound",par or workspace)
  260. sou.Volume=vol
  261. sou.Pitch=pit or 1
  262. sou.SoundId=id
  263. swait()
  264. sou:play()
  265. game:GetService("Debris"):AddItem(sou,6)
  266. end))
  267. end
  268.  
  269. Face=hed.face
  270.  
  271. function Cloak()
  272. so("http://roblox.com/asset/?id=2767090",torso,1,1.1)
  273. Face.Parent=nil
  274. cloaked=true
  275. for _,v in pairs(torso.Parent:children()) do
  276. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  277. coroutine.resume(coroutine.create(function()
  278. for i=0,1,0.2 do
  279. wait()
  280. v.Transparency=i
  281. end
  282. v.Transparency=1
  283. end))
  284. end
  285. if v.className=="Hat" then
  286. hatp=v.Handle
  287. coroutine.resume(coroutine.create(function(derp)
  288. for i=0,1,0.2 do
  289. wait()
  290. derp.Transparency=i
  291. end
  292. derp.Transparency=1
  293. end),hatp)
  294. end
  295. end
  296. for _,v in pairs(m:children()) do
  297. if v.className=="Part" then
  298. coroutine.resume(coroutine.create(function()
  299. for i=0,1,0.2 do
  300. wait()
  301. v.Transparency=i
  302. end
  303. v.Transparency=1
  304. end))
  305. end
  306. end
  307. end
  308.  
  309. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  310. if hit.Parent==nil then
  311. return
  312. end
  313. h=hit.Parent:FindFirstChild("Humanoid")
  314. for _,v in pairs(hit.Parent:children()) do
  315. if v:IsA("Humanoid") then
  316. h=v
  317. end
  318. end
  319. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  320. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  321. end
  322. if hit.Parent.className=="Hat" then
  323. hit=hit.Parent.Parent:findFirstChild("Head")
  324. end
  325. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  326. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  327. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  328. return
  329. end]]
  330. -- hs(hit,1.2)
  331. c=Instance.new("ObjectValue")
  332. c.Name="creator"
  333. c.Value=game:service("Players").LocalPlayer
  334. c.Parent=h
  335. game:GetService("Debris"):AddItem(c,.5)
  336. Damage=math.random(minim,maxim)
  337. -- h:TakeDamage(Damage)
  338. blocked=false
  339. block=hit.Parent:findFirstChild("Block")
  340. if block~=nil then
  341. print(block.className)
  342. if block.className=="NumberValue" then
  343. if block.Value>0 then
  344. blocked=true
  345. if decreaseblock==nil then
  346. block.Value=block.Value-1
  347. end
  348. end
  349. end
  350. if block.className=="IntValue" then
  351. if block.Value>0 then
  352. blocked=true
  353. if decreaseblock~=nil then
  354. block.Value=block.Value-1
  355. end
  356. end
  357. end
  358. end
  359. if blocked==false then
  360. -- h:TakeDamage(Damage)
  361. h.Health=h.Health-Damage
  362. showDamage(hit.Parent,Damage,.5,BrickColor.new("Dark stone grey"))
  363. else
  364. h.Health=h.Health-(Damage/2)
  365. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  366. end
  367. if Type=="Knockdown" then
  368. hum=hit.Parent.Humanoid
  369. hum.PlatformStand=true
  370. coroutine.resume(coroutine.create(function(HHumanoid)
  371. swait(1)
  372. HHumanoid.PlatformStand=false
  373. end),hum)
  374. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  375. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  376. local bodvol=Instance.new("BodyVelocity")
  377. bodvol.velocity=angle*knockback
  378. bodvol.P=5000
  379. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  380. bodvol.Parent=hit
  381. rl=Instance.new("BodyAngularVelocity")
  382. rl.P=3000
  383. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  384. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  385. rl.Parent=hit
  386. game:GetService("Debris"):AddItem(bodvol,.5)
  387. game:GetService("Debris"):AddItem(rl,.5)
  388. elseif Type=="Normal" then
  389. vp=Instance.new("BodyVelocity")
  390. vp.P=500
  391. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  392. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  393. if KnockbackType==1 then
  394. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  395. elseif KnockbackType==2 then
  396. vp.velocity=Property.CFrame.lookVector*knockback
  397. end
  398. if knockback>0 then
  399. vp.Parent=hit.Parent.Torso
  400. end
  401. game:GetService("Debris"):AddItem(vp,.5)
  402. elseif Type=="Up" then
  403. local bodyVelocity=Instance.new("BodyVelocity")
  404. bodyVelocity.velocity=vt(0,60,0)
  405. bodyVelocity.P=5000
  406. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  407. bodyVelocity.Parent=hit
  408. game:GetService("Debris"):AddItem(bodyVelocity,1)
  409. rl=Instance.new("BodyAngularVelocity")
  410. rl.P=3000
  411. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  412. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  413. rl.Parent=hit
  414. game:GetService("Debris"):AddItem(rl,.5)
  415. elseif Type=="Snare" then
  416. bp=Instance.new("BodyPosition")
  417. bp.P=2000
  418. bp.D=100
  419. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  420. bp.position=hit.Parent.Torso.Position
  421. bp.Parent=hit.Parent.Torso
  422. game:GetService("Debris"):AddItem(bp,1)
  423. elseif Type=="Target" then
  424. if Targetting==false then
  425. ZTarget=hit.Parent.Torso
  426. coroutine.resume(coroutine.create(function(Part)
  427. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  428. swait(5)
  429. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  430. end),ZTarget)
  431. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  432. targetgui=Instance.new("BillboardGui")
  433. targetgui.Parent=ZTarget
  434. targetgui.Size=UDim2.new(10,100,10,100)
  435. targ=Instance.new("ImageLabel")
  436. targ.Parent=targetgui
  437. targ.BackgroundTransparency=1
  438. targ.Image="rbxassetid://4834067"
  439. targ.Size=UDim2.new(1,0,1,0)
  440. cam.CameraType="Scriptable"
  441. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  442. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  443. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  444. Targetting=true
  445. RocketTarget=ZTarget
  446. for i=1,Property do
  447. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  448. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  449. swait()
  450. end
  451. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  452. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  453. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  454. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  455. end
  456. Targetting=false
  457. RocketTarget=nil
  458. targetgui.Parent=nil
  459. cam.CameraType="Custom"
  460. end
  461. end
  462. debounce=Instance.new("BoolValue")
  463. debounce.Name="DebounceHit"
  464. debounce.Parent=hit.Parent
  465. debounce.Value=true
  466. game:GetService("Debris"):AddItem(debounce,Delay)
  467. c=Instance.new("ObjectValue")
  468. c.Name="creator"
  469. c.Value=Player
  470. c.Parent=h
  471. game:GetService("Debris"):AddItem(c,.5)
  472. CRIT=false
  473. hitDeb=true
  474. AttackPos=6
  475. end
  476. end
  477.  
  478. showDamage=function(Char,Dealt,du,Color)
  479. m=Instance.new("Model")
  480. m.Name=tostring(Dealt)
  481. h=Instance.new("Humanoid")
  482. h.Health=0
  483. h.MaxHealth=0
  484. h.Parent=m
  485. c=Instance.new("Part")
  486. c.Transparency=0
  487. c.BrickColor=Color
  488. c.Name="Head"
  489. c.TopSurface=0
  490. c.BottomSurface=0
  491. c.formFactor="Plate"
  492. c.Size=Vector3.new(1,.4,1)
  493. ms=Instance.new("CylinderMesh")
  494. ms.Scale=Vector3.new(.8,.8,.8)
  495. if CRIT==true then
  496. ms.Scale=Vector3.new(1,1.25,1)
  497. end
  498. ms.Parent=c
  499. c.Reflectance=0
  500. Instance.new("BodyGyro").Parent=c
  501. c.Parent=m
  502. if Char:findFirstChild("Head")~=nil then
  503. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  504. elseif Char.Parent:findFirstChild("Head")~=nil then
  505. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  506. end
  507. f=Instance.new("BodyPosition")
  508. f.P=2000
  509. f.D=100
  510. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  511. f.position=c.Position+Vector3.new(0,3,0)
  512. f.Parent=c
  513. game:GetService("Debris"):AddItem(m,.5+du)
  514. c.CanCollide=false
  515. m.Parent=workspace
  516. c.CanCollide=false
  517. end
  518. --decal(Part,"Back","http://www.roblox.com/asset/?id=116620938",0,20,0,"BackDecal")
  519. --decal(Part,"Front","http://www.roblox.com/asset/?id=116620941",0,20,0,"FrontDecal")
  520.  
  521. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  522. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.21865082e-006, -1.92506492, 1.56858718, 1, 1.76556707e-008, 2.20732019e-007, 2.19636547e-007, 0.0477656312, -0.998858452, -2.81789898e-008, 0.998858333, 0.0477656387))
  523. mesh("BlockMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  524. Pivot=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Pivot",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  525. Pivotweld=weld(m,handle,Pivot,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.1920929e-007, 0.15217483, -0.167459726, 1, -1.70530257e-013, -6.57252031e-014, -1.70530257e-013, 0.999999762, 0, -6.57252031e-014, 0, 0.999999762))
  526. mesh("BlockMesh",Pivot,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  527. Hitbox=part(Enum.FormFactor.Symmetric,m,Enum.Material.Plastic,0,1,"Really red","Hitbox",Vector3.new(4.51999998, 4.67999983, 1.06999993))
  528. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0066781044, -6.47062922, 0.321344972, 1, 2.14822961e-007, -2.90807179e-007, -2.14823331e-007, 1, -7.04079866e-007, 2.90806867e-007, 7.04079866e-007, 1))
  529. mesh("BlockMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  530. Part=part(Enum.FormFactor.Symmetric,m,Enum.Material.Plastic,0,1,"Bright yellow","Part",Vector3.new(3, 3, 1))
  531. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.38418579e-007, -4.8718586, -1.00152767, -1, -2.62085393e-008, 2.9080698e-007, -2.62088236e-008, 0.999999523, -5.73694706e-007, -2.90806781e-007, -5.73694706e-007, -0.999999523))
  532. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, -0.74000001),Vector3.new(1.5, 1.5, 0))
  533. decal(Part,"Back","http://www.roblox.com/asset/?id=116620938",0,20,0,"BackDecal")
  534. decal(Part,"Front","http://www.roblox.com/asset/?id=116620941",0,20,0,"FrontDecal")
  535. Part=part(Enum.FormFactor.Symmetric,m,Enum.Material.Plastic,0,0,"Medium stone grey","Part",Vector3.new(1, 9.70000076, 1))
  536. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.1920929e-007, -1.33476639, -0.022927165, 0.99999994, -4.40536496e-013, -8.21907093e-008, 2.7000624e-013, 0.999999702, -5.32716513e-007, 8.21905957e-008, 3.35276127e-007, 0.999999523))
  537. mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 1.20000005, 0.5))
  538.  
  539. HatHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HatHandle",Vector3.new(0.800000012, 1.39999998, 2.4000001))
  540. HatHandleweld=weld(m,Character.Head,HatHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0299963951, -1.2432971, 0.18821907, 1, 2.19636547e-007, -2.81789898e-008, -2.10089595e-007, 0.981256008, 0.192707554, 6.99764087e-008, -0.192707554, 0.981256008))
  541. meh=mesh("SpecialMesh",HatHandle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=26768040",Vector3.new(0, 0, 0),Vector3.new(2.0999999, 2.0999999, 2.0999999))
  542. meh.TextureId="http://www.roblox.com/asset/?id=26768024"
  543.  
  544. function attackone()
  545. attack = true
  546. local bounce=false
  547. local hitsounds={"193346722","193346883","193346793"}
  548. local con=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Knockdown",RootPart,.2,1) end)
  549. local fx=Hitbox.Touched:connect(function(part)
  550. local human=part.Parent:findFirstChild("Humanoid")
  551. if human~=nil and bounce==false then
  552. local rndm=math.random(1,#hitsounds)
  553. local r=rndm
  554. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,.5)
  555. bounce=true
  556. end
  557. end)
  558. for i = 0,1,0.05 do
  559. swait()
  560. torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.2)
  561. hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
  562. rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -1)*CFrame.Angles(math.rad(0),math.rad(-120),math.rad(-120)), 0.2)
  563. larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-30)), 0.2)
  564. lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.2)
  565. rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.2)
  566. handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2)
  567. end
  568. so("http://roblox.com/asset/?id=234365549",Hitbox,1,.8)
  569. for i = 0,1,0.05 do
  570. swait()
  571. torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-20), math.rad(90), math.rad(0)), 0.2)
  572. hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(20), math.rad(-80), math.rad(20)), 0.2)
  573. rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, -0.5)*CFrame.Angles(math.rad(0),math.rad(-20),math.rad(-70)), 0.2)
  574. larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-40)), 0.2)
  575. lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2)
  576. rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -.2, 0) * CFrame.Angles(math.rad(20), math.rad(-40), math.rad(0)), 0.2)
  577. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  578. torso.Velocity=hed.CFrame.lookVector*50
  579. end
  580. bounce = false
  581. attack = false
  582. con:disconnect()
  583. fx:disconnect()
  584. end
  585.  
  586. function attacktwo()
  587. attack = true
  588. local bounce=false
  589. local hitsounds={"193346722","193346883","193346793"}
  590. local con=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Knockdown",RootPart,.2,1) end)
  591. local fx=Hitbox.Touched:connect(function(part)
  592. local human=part.Parent:findFirstChild("Humanoid")
  593. if human~=nil and bounce==false then
  594. local rndm=math.random(1,#hitsounds)
  595. local r=rndm
  596. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,.6)
  597. bounce=true
  598. end
  599. end)
  600. for i = 0,1,0.05 do
  601. swait()
  602. torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.2)
  603. hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2)
  604. rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 2, -0.5)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(10)), 0.2)
  605. larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-50)), 0.2)
  606. lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-5)), 0.2)
  607. rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.2)
  608. handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2)
  609. end
  610. so("http://roblox.com/asset/?id=234365573",Hitbox,1,.8)
  611. for i = 0,1,0.05 do
  612. swait()
  613. torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.2)
  614. hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(-60), math.rad(0)), 0.2)
  615. rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 0, 0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
  616. larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-30)), 0.2)
  617. lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(-5)), 0.2)
  618. rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.2)
  619. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  620. end
  621. bounce = false
  622. attack = false
  623. con:disconnect()
  624. fx:disconnect()
  625. end
  626.  
  627. function attackthree()
  628. attack = true
  629. local bounce=false
  630. local hitsounds={"193346722","193346883","193346793"}
  631. local con=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(20,40),"Knockdown",RootPart,.2,1) end)
  632. local fx=Hitbox.Touched:connect(function(part)
  633. local human=part.Parent:findFirstChild("Humanoid")
  634. if human~=nil and bounce==false then
  635. local rndm=math.random(1,#hitsounds)
  636. local r=rndm
  637. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,.7)
  638. bounce=true
  639. end
  640. end)
  641. for i = 0,1,0.05 do
  642. swait()
  643. torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(0)), 0.2)
  644. hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.2)
  645. rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, .5, 0)*CFrame.Angles(math.rad(0),math.rad(110),math.rad(50)), 0.2)
  646. larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2, 0.5, -.5)*CFrame.Angles(math.rad(0),math.rad(-120),math.rad(-50)), 0.2)
  647. lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(-10)), 0.2)
  648. rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(10)), 0.2)
  649. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-50),math.rad(0),math.rad(0)),.2)
  650. end
  651. so("http://roblox.com/asset/?id=234365549",Hitbox,1,.7)
  652. for i = 0,1,0.07 do
  653. swait()
  654. torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.2)
  655. hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), 0.2)
  656. rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(120)), 0.2)
  657. larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-50)), 0.2)
  658. lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(-10)), 0.2)
  659. rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(10)), 0.2)
  660. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-50),math.rad(0),math.rad(0)),.2)
  661. end
  662. bounce = false
  663. attack = false
  664. con:disconnect()
  665. fx:disconnect()
  666. end
  667.  
  668. function WaveEffect2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  669. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  670. prt.Anchored=true
  671. prt.CFrame=cframe
  672. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://20329976",vt(0,0,0),vt(x1,y1,z1))
  673. game:GetService("Debris"):AddItem(prt,2)
  674. coroutine.resume(coroutine.create(function(Part,Mesh)
  675. for i=0,1,delay do
  676. swait()
  677. Part.CFrame=Part.CFrame
  678. Part.Transparency=i
  679. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  680. end
  681. Part.Parent=nil
  682. end),prt,msh)
  683. end
  684. --example: WaveEffect2(BrickColor.new(""),ExamplePart.CFrame,0,0,0,0,0,0,0.02)
  685.  
  686. function Kick()
  687. attack = true
  688. local bounce=false
  689. local hitsounds={"199149269","199149297","199149235","199149221"}
  690. local con=lleg.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(50,100),"Normal",RootPart,.2,1) end)
  691. local fx=lleg.Touched:connect(function(part)
  692. local human=part.Parent:findFirstChild("Humanoid")
  693. if human~=nil and bounce==false then
  694. local rndm=math.random(1,#hitsounds)
  695. local r=rndm
  696. so("http://www.roblox.com/asset/?id="..hitsounds[r],Hitbox,1,.3)
  697. bounce=true
  698. end
  699. end)
  700. for i = 0,1,0.05 do
  701. swait()
  702. torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  703. hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  704. rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.2)
  705. larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2)
  706. lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.2)
  707. rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.2)
  708. handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2)
  709. end
  710. so("http://roblox.com/asset/?id=200632136",lleg,1,.8)
  711. WaveEffect2(BrickColor.new("Navy blue"),lleg.CFrame*CFrame.fromEulerAnglesXYZ(1,-5,1)*CFrame.new(0,0,0),.5,.5,.5,.5,.5,.5,0.05)
  712. for i = 0,1,0.05 do
  713. swait()
  714. torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  715. hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2)
  716. rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(30)), 0.2)
  717. larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2)
  718. lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.2)
  719. rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(0)), 0.2)
  720. handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2)
  721. end
  722. bounce = false
  723. attack = false
  724. con:disconnect()
  725. fx:disconnect()
  726. end
  727.  
  728. mouse.Button1Down:connect(function()
  729. if attack==false then
  730. if attacktype==1 then
  731. attacktype = 2
  732. attackone()
  733. elseif attacktype==2 then
  734. attacktype = 3
  735. attacktwo()
  736. elseif attacktype==3 then
  737. attacktype = 1
  738. attackthree()
  739. end
  740. end
  741. end)
  742.  
  743. mouse.KeyDown:connect(function(k)
  744. k=k:lower()
  745. if k=='q' then
  746. if attack==false then
  747. Kick()
  748. end
  749. end
  750. end)
  751.  
  752. bc=char['Body Colors']
  753. coloras=BrickColor.new('Nougat')
  754. bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras
  755.  
  756. pcall(function()
  757. Character.Shirt:remove()
  758. Character.Pants:remove()
  759. Character.Sound:remove()
  760. char.Humanoid.MaxHealth = 10000
  761. char.Humanoid.Health = 10000
  762. end)
  763.  
  764. game:service'InsertService':LoadAsset(187399913):children()[1].Parent = Character
  765. game:service'InsertService':LoadAsset(270582149):children()[1].Parent = Character
  766.  
  767. local prevState = "None"
  768. local fallSpeed = 0
  769.  
  770. local sRunning = Instance.new("Sound",torso) sRunning.SoundId = "http://roblox.com/asset/?id=135062807"
  771. local sLanding = Instance.new("Sound",torso) sLanding.SoundId = "http://roblox.com/asset/?id=180683823"
  772.  
  773. function onRunning(speed)
  774. if (prevState == "FreeFall" and fallSpeed > 0.1) then
  775. local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110))
  776. sLanding.Volume = vol
  777. sLanding:Play()
  778. fallSpeed = 0
  779. end
  780. if speed>0.5 then
  781. sRunning:Play()
  782. sRunning.Looped = true
  783. sRunning.Pitch = 0.9
  784. else
  785. sRunning:Stop()
  786. end
  787. prevState = "Run"
  788. end
  789.  
  790. Character.Humanoid.Running:connect(onRunning)
  791.  
  792. local sine = 0
  793. local change = 1
  794. local val = 0
  795.  
  796. while true do
  797. swait()
  798. sine = sine + change
  799. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  800. local velderp=RootPart.Velocity.y
  801. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,10,0))).lookVector,10,char)
  802. if equipped==true or equipped==false then
  803. if RootPart.Velocity.y > 1 and hitfloor==nil then
  804. Anim="Jump"
  805. if attack==false then
  806. torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  807. hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2)
  808. rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.2)
  809. larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-30)), 0.2)
  810. lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -.5, -.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  811. rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2)
  812. handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2)
  813. end
  814. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  815. Anim="Fall"
  816. if attack==false then
  817. torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  818. hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  819. rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(20)), 0.2)
  820. larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-50)), 0.2)
  821. lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
  822. rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  823. end
  824. elseif torvel<1 and hitfloor~=nil then
  825. Anim="Idle"
  826. if attack==false then
  827. torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.2)
  828. hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.2)
  829. rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(30)), 0.2)
  830. larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2)
  831. lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-5)), 0.2)
  832. rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.2)
  833. handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2)
  834. end
  835. elseif torvel>2 and hitfloor~=nil then
  836. Anim="Walk"
  837. if attack==false then
  838. torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  839. hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  840. rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(30)), 0.2)
  841. larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-30*math.cos(sine/8)),math.rad(0),math.rad(-20)), 0.2)
  842. lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(50*math.cos(sine/6)), math.rad(0), math.rad(0)), 0.2)
  843. rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-50*math.cos(sine/6)), math.rad(0), math.rad(0)), 0.2)
  844. handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2)
  845. end
  846. end
  847. end
  848. if #Effects>0 then
  849. --table.insert(Effects,{prt,"Block1",delay})
  850. for e=1,#Effects do
  851. if Effects[e]~=nil then
  852. --for j=1,#Effects[e] do
  853. local Thing=Effects[e]
  854. if Thing~=nil then
  855. local Part=Thing[1]
  856. local Mode=Thing[2]
  857. local Delay=Thing[3]
  858. local IncX=Thing[4]
  859. local IncY=Thing[5]
  860. local IncZ=Thing[6]
  861. if Thing[2]=="DecreaseStat" then
  862. Thing[5]=Thing[5]-1
  863. if Thing[5]<=0 then
  864. if Thing[1]:findFirstChild("Stats")~=nil then
  865. Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
  866. end
  867. table.remove(Effects,e)
  868. end
  869. end
  870. if Thing[2]=="Shoot" then
  871. local Look=Thing[1]
  872. local hit,pos = rayCast(Thing[4],Look,20,m)
  873. local mag=(Thing[4]-pos).magnitude
  874. MagicHead(BrickColor.new("Really red"),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.5,0,.5,0.1)
  875. Thing[4]=Thing[4]+(Look*20)
  876. Thing[3]=Thing[3]-1
  877. if hit~=nil then
  878. Thing[3]=0
  879. if Thing[8]==1 then
  880. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(1,5),nil,nil,true)
  881. elseif Thing[8]==2 then
  882. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"NormalDecreaseMvmt1",RootPart,0,2,math.random(1,5),nil,nil,true)
  883. end
  884. ref=part(3,workspace,0,1,BrickColor.new("Really red"),"Reference",vt())
  885. ref.Anchored=true
  886. ref.CFrame=cf(pos)
  887. MagicCircle(BrickColor.new("Really red"),cf(pos),5,5,5,1,1,1,0.03)
  888. game:GetService("Debris"):AddItem(ref,1)
  889. end
  890. if Thing[3]<=0 then
  891. table.remove(Effects,e)
  892. end
  893. end
  894. if Thing[2]=="CylinderClang" then
  895. if Thing[3]<=1 then
  896. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  897. Thing[7]=Thing[1].CFrame
  898. effect("New Yeller",0,Thing[8],Thing[7])
  899. Thing[8]=Thing[7]
  900. Thing[3]=Thing[3]+Thing[4]
  901. else
  902. Part.Parent=nil
  903. table.remove(Effects,e)
  904. end
  905. --[[Mesh=Thing[7]
  906. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  907. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  908. end
  909. if Thing[2]~="Shoot" and Thing[2]~="DecreaseStat" then
  910. if Thing[1].Transparency<=1 then
  911. if Thing[2]=="Block1" then
  912. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  913. Mesh=Thing[7]
  914. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  915. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  916. elseif Thing[2]=="Block2" then
  917. Thing[1].CFrame=Thing[1].CFrame
  918. Mesh=Thing[7]
  919. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  920. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  921. elseif Thing[2]=="Cylinder" then
  922. Mesh=Thing[7]
  923. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  924. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  925. elseif Thing[2]=="Blood" then
  926. Mesh=Thing[7]
  927. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  928. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  929. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  930. elseif Thing[2]=="Elec" then
  931. Mesh=Thing[7]
  932. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  933. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  934. elseif Thing[2]=="Disappear" then
  935. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  936. end
  937. else
  938. Part.Parent=nil
  939. table.remove(Effects,e)
  940. end
  941. end
  942. end
  943. end
  944. end
  945. end
  946. end
Add Comment
Please, Sign In to add comment