HuyEvilDumb

Untitled

Nov 6th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.16 KB | None | 0 0
  1. CV="White"
  2.  
  3. p = game.Players.LocalPlayer
  4. char = p.Character
  5. local txt = Instance.new("BillboardGui", char)
  6. txt.Adornee = char .Head
  7. txt.Name = "_status"
  8. txt.Size = UDim2.new(2, 0, 1.2, 0)
  9. txt.StudsOffset = Vector3.new(-9, 8, 0)
  10. local text = Instance.new("TextLabel", txt)
  11. text.Size = UDim2.new(10, 0, 7, 0)
  12. text.FontSize = "Size24"
  13. text.TextScaled = true
  14. text.TextTransparency = 0
  15. text.BackgroundTransparency = 1
  16. text.TextTransparency = 0
  17. text.TextStrokeTransparency = 1
  18. text.Font = "Arcade"
  19. text.TextStrokeColor3 = Color3.new(0,0,255)
  20.  
  21. v=Instance.new("Part")
  22. v.Name = "ColorBrick"
  23. v.Parent=p.Character
  24. v.FormFactor="Symmetric"
  25. v.Anchored=true
  26. v.CanCollide=false
  27. v.BottomSurface="Smooth"
  28. v.TopSurface="Smooth"
  29. v.Size=Vector3.new(10,5,3)
  30. v.Transparency=1
  31. v.CFrame=char.Torso.CFrame
  32. v.BrickColor=BrickColor.new(CV)
  33. v.Transparency=1
  34. text.TextColor3 = Color3.new(255,255,0)
  35. v.Shape="Block"
  36. text.Text = "fucking suicide bomber"
  37. Player=game:GetService("Players").LocalPlayer
  38. Character=Player.Character
  39. PlayerGui=Player.PlayerGui
  40. Backpack=Player.Backpack
  41. Torso=Character.Torso
  42. Head=Character.Head
  43. Humanoid=Character.Humanoid
  44. m=Instance.new('Model',Character)
  45. LeftArm=Character["Left Arm"]
  46. LeftLeg=Character["Left Leg"]
  47. RightArm=Character["Right Arm"]
  48. RightLeg=Character["Right Leg"]
  49. LS=Torso["Left Shoulder"]
  50. LH=Torso["Left Hip"]
  51. RS=Torso["Right Shoulder"]
  52. RH=Torso["Right Hip"]
  53. Face = Head.face
  54. Neck=Torso.Neck
  55. it=Instance.new
  56. attacktype=1
  57. vt=Vector3.new
  58. cf=CFrame.new
  59. euler=CFrame.fromEulerAnglesXYZ
  60. angles=CFrame.Angles
  61. cloaked=false
  62. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  63. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  64. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  65. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  66. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  67. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  68. RootPart=Character.HumanoidRootPart
  69. RootJoint=RootPart.RootJoint
  70. RootCF=euler(-1.57,0,3.14)
  71. attack = false
  72. attackdebounce = false
  73. deb=false
  74. equipped=true
  75. hand=false
  76. MMouse=nil
  77. combo=0
  78. mana=0
  79. trispeed=.2
  80. attackmode='none'
  81. local idle=0
  82. local Anim="Idle"
  83. local Effects={}
  84. local gun=false
  85. local shoot=false
  86. player=nil
  87. mana=0
  88.  
  89. mouse=Player:GetMouse()
  90. --save shoulders
  91. RSH, LSH=nil, nil
  92. --welds
  93. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  94. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  95. LH=Torso["Left Hip"]
  96. RH=Torso["Right Hip"]
  97. TorsoColor=Torso.BrickColor
  98. function NoOutline(Part)
  99. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  100. end
  101. player=Player
  102. ch=Character
  103. RSH=ch.Torso["Right Shoulder"]
  104. LSH=ch.Torso["Left Shoulder"]
  105. --
  106. RSH.Parent=nil
  107. LSH.Parent=nil
  108. --
  109. RW.Name="Right Shoulder"
  110. RW.Part0=ch.Torso
  111. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  112. RW.C1=cf(0, 0.5, 0)
  113. RW.Part1=ch["Right Arm"]
  114. RW.Parent=ch.Torso
  115. --
  116. LW.Name="Left Shoulder"
  117. LW.Part0=ch.Torso
  118. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  119. LW.C1=cf(0, 0.5, 0)
  120. LW.Part1=ch["Left Arm"]
  121. LW.Parent=ch.Torso
  122.  
  123. Player=game:GetService('Players').LocalPlayer
  124. Character=Player.Character
  125. Mouse=Player:GetMouse()
  126. m=Instance.new('Model',Character)
  127.  
  128.  
  129. local function weldBetween(a, b)
  130. local weldd = Instance.new("ManualWeld")
  131. weldd.Part0 = a
  132. weldd.Part1 = b
  133. weldd.C0 = CFrame.new()
  134. weldd.C1 = b.CFrame:inverse() * a.CFrame
  135. weldd.Parent = a
  136. return weldd
  137. end
  138.  
  139. function swait(num)
  140. if num==0 or num==nil then
  141. game:service'RunService'.Stepped:wait(0)
  142. else
  143. for i=0,num do
  144. game:service'RunService'.Stepped:wait(0)
  145. end
  146. end
  147. end
  148.  
  149. function nooutline(part)
  150. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  151. end
  152.  
  153. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  154. local fp=it("Part")
  155. fp.formFactor=formfactor
  156. fp.Parent=parent
  157. fp.Reflectance=reflectance
  158. fp.Transparency=transparency
  159. fp.CanCollide=false
  160. fp.Locked=true
  161. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  162. fp.Name=name
  163. fp.Size=size
  164. fp.Position=Character.Torso.Position
  165. nooutline(fp)
  166. fp.Material=material
  167. fp:BreakJoints()
  168. return fp
  169. end
  170.  
  171. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  172. local mesh=it(Mesh)
  173. mesh.Parent=part
  174. if Mesh=="SpecialMesh" then
  175. mesh.MeshType=meshtype
  176. mesh.MeshId=meshid
  177. end
  178. mesh.Offset=offset
  179. mesh.Scale=scale
  180. return mesh
  181. end
  182.  
  183. function weld(parent,part0,part1,c0,c1)
  184. local weld=it("Weld")
  185. weld.Parent=parent
  186. weld.Part0=part0
  187. weld.Part1=part1
  188. weld.C0=c0
  189. weld.C1=c1
  190. return weld
  191. end
  192.  
  193.  
  194. local function CFrameFromTopBack(at, top, back)
  195. local right = top:Cross(back)
  196. return CFrame.new(at.x, at.y, at.z,
  197. right.x, top.x, back.x,
  198. right.y, top.y, back.y,
  199. right.z, top.z, back.z)
  200. end
  201.  
  202. function Triangle(a, b, c)
  203. local edg1 = (c-a):Dot((b-a).unit)
  204. local edg2 = (a-b):Dot((c-b).unit)
  205. local edg3 = (b-c):Dot((a-c).unit)
  206. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  207. a, b, c = a, b, c
  208. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  209. a, b, c = b, c, a
  210. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  211. a, b, c = c, a, b
  212. else
  213. assert(false, "unreachable")
  214. end
  215.  
  216. local len1 = (c-a):Dot((b-a).unit)
  217. local len2 = (b-a).magnitude - len1
  218. local width = (a + (b-a).unit*len1 - c).magnitude
  219.  
  220. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  221.  
  222. local list = {}
  223.  
  224. local TrailColor = ("Dark grey")
  225.  
  226. if len1 > 0.01 then
  227. local w1 = Instance.new('WedgePart', m)
  228. game:GetService("Debris"):AddItem(w1,5)
  229. w1.Material = "SmoothPlastic"
  230. w1.FormFactor = 'Custom'
  231. w1.BrickColor = BrickColor.new(TrailColor)
  232. w1.Transparency = 0
  233. w1.Reflectance = 0
  234. w1.Material = "SmoothPlastic"
  235. w1.CanCollide = false
  236. NoOutline(w1)
  237. local sz = Vector3.new(0.2, width, len1)
  238. w1.Size = sz
  239. local sp = Instance.new("SpecialMesh",w1)
  240. sp.MeshType = "Wedge"
  241. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  242. w1:BreakJoints()
  243. w1.Anchored = true
  244. w1.Parent = workspace
  245. w1.Transparency = 0.7
  246. table.insert(Effects,{w1,"Disappear",.01})
  247. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  248. table.insert(list,w1)
  249. end
  250.  
  251. if len2 > 0.01 then
  252. local w2 = Instance.new('WedgePart', m)
  253. game:GetService("Debris"):AddItem(w2,5)
  254. w2.Material = "SmoothPlastic"
  255. w2.FormFactor = 'Custom'
  256. w2.BrickColor = BrickColor.new(TrailColor)
  257. w2.Transparency = 0
  258. w2.Reflectance = 0
  259. w2.Material = "SmoothPlastic"
  260. w2.CanCollide = false
  261. NoOutline(w2)
  262. local sz = Vector3.new(0.2, width, len2)
  263. w2.Size = sz
  264. local sp = Instance.new("SpecialMesh",w2)
  265. sp.MeshType = "Wedge"
  266. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  267. w2:BreakJoints()
  268. w2.Anchored = true
  269. w2.Parent = workspace
  270. w2.Transparency = 0.7
  271. table.insert(Effects,{w2,"Disappear",.01})
  272. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  273. table.insert(list,w2)
  274. end
  275. return unpack(list)
  276. end
  277.  
  278.  
  279. so = function(id,par,vol,pit)
  280. coroutine.resume(coroutine.create(function()
  281. local sou = Instance.new("Sound",par or workspace)
  282. sou.Volume=vol
  283. sou.Pitch=pit or 1
  284. sou.SoundId=id
  285. swait()
  286. sou:play()
  287. game:GetService("Debris"):AddItem(sou,6)
  288. end))
  289. end
  290.  
  291. function clerp(a,b,t)
  292. local qa = {QuaternionFromCFrame(a)}
  293. local qb = {QuaternionFromCFrame(b)}
  294. local ax, ay, az = a.x, a.y, a.z
  295. local bx, by, bz = b.x, b.y, b.z
  296. local _t = 1-t
  297. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  298. end
  299.  
  300. function QuaternionFromCFrame(cf)
  301. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  302. local trace = m00 + m11 + m22
  303. if trace > 0 then
  304. local s = math.sqrt(1 + trace)
  305. local recip = 0.5/s
  306. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  307. else
  308. local i = 0
  309. if m11 > m00 then
  310. i = 1
  311. end
  312. if m22 > (i == 0 and m00 or m11) then
  313. i = 2
  314. end
  315. if i == 0 then
  316. local s = math.sqrt(m00-m11-m22+1)
  317. local recip = 0.5/s
  318. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  319. elseif i == 1 then
  320. local s = math.sqrt(m11-m22-m00+1)
  321. local recip = 0.5/s
  322. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  323. elseif i == 2 then
  324. local s = math.sqrt(m22-m00-m11+1)
  325. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  326. end
  327. end
  328. end
  329.  
  330. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  331. local xs, ys, zs = x + x, y + y, z + z
  332. local wx, wy, wz = w*xs, w*ys, w*zs
  333. local xx = x*xs
  334. local xy = x*ys
  335. local xz = x*zs
  336. local yy = y*ys
  337. local yz = y*zs
  338. local zz = z*zs
  339. 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))
  340. end
  341.  
  342. function QuaternionSlerp(a, b, t)
  343. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  344. local startInterp, finishInterp;
  345. if cosTheta >= 0.0001 then
  346. if (1 - cosTheta) > 0.0001 then
  347. local theta = math.acos(cosTheta)
  348. local invSinTheta = 1/math.sin(theta)
  349. startInterp = math.sin((1-t)*theta)*invSinTheta
  350. finishInterp = math.sin(t*theta)*invSinTheta
  351. else
  352. startInterp = 1-t
  353. finishInterp = t
  354. end
  355. else
  356. if (1+cosTheta) > 0.0001 then
  357. local theta = math.acos(-cosTheta)
  358. local invSinTheta = 1/math.sin(theta)
  359. startInterp = math.sin((t-1)*theta)*invSinTheta
  360. finishInterp = math.sin(t*theta)*invSinTheta
  361. else
  362. startInterp = t-1
  363. finishInterp = t
  364. end
  365. end
  366. 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
  367. end
  368.  
  369. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  370.  
  371.  
  372. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  373. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  374. end
  375.  
  376. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  377. if hit.Parent==nil then
  378. return
  379. end
  380. h=hit.Parent:FindFirstChild("Humanoid")
  381. for _,v in pairs(hit.Parent:children()) do
  382. if v:IsA("Humanoid") then
  383. h=v
  384. end
  385. end
  386. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  387. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  388. end
  389. if hit.Parent.className=="Hat" then
  390. hit=hit.Parent.Parent:findFirstChild("Head")
  391. end
  392. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  393. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  394. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  395. return
  396. end]]
  397. -- hs(hit,1.2)
  398. c=Instance.new("ObjectValue")
  399. c.Name="creator"
  400. c.Value=game:service("Players").LocalPlayer
  401. c.Parent=h
  402. game:GetService("Debris"):AddItem(c,.5)
  403. Damage=math.random(minim,maxim)
  404. -- h:TakeDamage(Damage)
  405. blocked=false
  406. block=hit.Parent:findFirstChild("Block")
  407. if block~=nil then
  408. print(block.className)
  409. if block.className=="NumberValue" then
  410. if block.Value>0 then
  411. blocked=true
  412. if decreaseblock==nil then
  413. block.Value=block.Value-1
  414. end
  415. end
  416. end
  417. if block.className=="IntValue" then
  418. if block.Value>0 then
  419. blocked=true
  420. if decreaseblock~=nil then
  421. block.Value=block.Value-1
  422. end
  423. end
  424. end
  425. end
  426. if blocked==false then
  427. -- h:TakeDamage(Damage)
  428. h.Health=h.Health-Damage
  429. showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
  430. else
  431. h.Health=h.Health-(Damage/2)
  432. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  433. end
  434. if Type=="Knockdown" then
  435. hum=hit.Parent.Humanoid
  436. hum.PlatformStand=true
  437. coroutine.resume(coroutine.create(function(HHumanoid)
  438. swait(1)
  439. HHumanoid.PlatformStand=false
  440. end),hum)
  441. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  442. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  443. local bodvol=Instance.new("BodyVelocity")
  444. bodvol.velocity=angle*knockback
  445. bodvol.P=5000
  446. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  447. bodvol.Parent=hit
  448. rl=Instance.new("BodyAngularVelocity")
  449. rl.P=3000
  450. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  451. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  452. rl.Parent=hit
  453. game:GetService("Debris"):AddItem(bodvol,.5)
  454. game:GetService("Debris"):AddItem(rl,.5)
  455. elseif Type=="Normal" then
  456. vp=Instance.new("BodyVelocity")
  457. vp.P=500
  458. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  459. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  460. if KnockbackType==1 then
  461. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  462. elseif KnockbackType==2 then
  463. vp.velocity=Property.CFrame.lookVector*knockback
  464. end
  465. if knockback>0 then
  466. vp.Parent=hit.Parent.Torso
  467. end
  468. game:GetService("Debris"):AddItem(vp,.5)
  469. elseif Type=="Up" then
  470. local bodyVelocity=Instance.new("BodyVelocity")
  471. bodyVelocity.velocity=vt(0,60,0)
  472. bodyVelocity.P=5000
  473. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  474. bodyVelocity.Parent=hit
  475. game:GetService("Debris"):AddItem(bodyVelocity,1)
  476. rl=Instance.new("BodyAngularVelocity")
  477. rl.P=3000
  478. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  479. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  480. rl.Parent=hit
  481. game:GetService("Debris"):AddItem(rl,.5)
  482. elseif Type=="Snare" then
  483. bp=Instance.new("BodyPosition")
  484. bp.P=2000
  485. bp.D=100
  486. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  487. bp.position=hit.Parent.Torso.Position
  488. bp.Parent=hit.Parent.Torso
  489. game:GetService("Debris"):AddItem(bp,1)
  490. elseif Type=="Target" then
  491. if Targetting==false then
  492. ZTarget=hit.Parent.Torso
  493. coroutine.resume(coroutine.create(function(Part)
  494. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  495. swait(5)
  496. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  497. end),ZTarget)
  498. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  499. targetgui=Instance.new("BillboardGui")
  500. targetgui.Parent=ZTarget
  501. targetgui.Size=UDim2.new(10,100,10,100)
  502. targ=Instance.new("ImageLabel")
  503. targ.Parent=targetgui
  504. targ.BackgroundTransparency=1
  505. targ.Image="rbxassetid://4834067"
  506. targ.Size=UDim2.new(1,0,1,0)
  507. cam.CameraType="Scriptable"
  508. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  509. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  510. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  511. Targetting=true
  512. RocketTarget=ZTarget
  513. for i=1,Property do
  514. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  515. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  516. swait()
  517. end
  518. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  519. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  520. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  521. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  522. end
  523. Targetting=false
  524. RocketTarget=nil
  525. targetgui.Parent=nil
  526. cam.CameraType="Custom"
  527. end
  528. end
  529. debounce=Instance.new("BoolValue")
  530. debounce.Name="DebounceHit"
  531. debounce.Parent=hit.Parent
  532. debounce.Value=true
  533. game:GetService("Debris"):AddItem(debounce,Delay)
  534. c=Instance.new("ObjectValue")
  535. c.Name="creator"
  536. c.Value=Player
  537. c.Parent=h
  538. game:GetService("Debris"):AddItem(c,.5)
  539. CRIT=false
  540. hitDeb=true
  541. AttackPos=6
  542. end
  543. end
  544.  
  545. showDamage=function(Char,Dealt,du,Color)
  546. m=Instance.new("Model")
  547. m.Name=tostring(Dealt)
  548. h=Instance.new("Humanoid")
  549. h.Health=0
  550. h.MaxHealth=0
  551. h.Parent=m
  552. c=Instance.new("Part")
  553. c.Transparency=0
  554. c.BrickColor=Color
  555. c.Name="Head"
  556. c.TopSurface=0
  557. c.BottomSurface=0
  558. c.formFactor="Plate"
  559. c.Size=Vector3.new(1,.4,1)
  560. ms=Instance.new("CylinderMesh")
  561. ms.Scale=Vector3.new(.8,.8,.8)
  562. if CRIT==true then
  563. ms.Scale=Vector3.new(1,1.25,1)
  564. end
  565. ms.Parent=c
  566. c.Reflectance=0
  567. Instance.new("BodyGyro").Parent=c
  568. c.Parent=m
  569. if Char:findFirstChild("Head")~=nil then
  570. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  571. elseif Char.Parent:findFirstChild("Head")~=nil then
  572. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  573. end
  574. f=Instance.new("BodyPosition")
  575. f.P=2000
  576. f.D=100
  577. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  578. f.position=c.Position+Vector3.new(0,3,0)
  579. f.Parent=c
  580. game:GetService("Debris"):AddItem(m,.5+du)
  581. c.CanCollide=false
  582. m.Parent=workspace
  583. c.CanCollide=false
  584. end
  585.  
  586. VestHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(2.01999998, 1.39999998, 1.01999998))
  587. handleweld=weld(m,Character["Torso"],VestHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, 0.300115585, 3.05175781e-005, 0.999999642, 0, 0, 0, 1, 0, 0, 0, 0.999999642))
  588. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1, 0.76000005, 0.600000024))
  589. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.509597778, -0.490081787, 0.200000286, -0.999999642, 0, 0, 0, 0, 0.999999642, 0, 1, 0))
  590. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=104516854",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  591. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.600000024, 0.800000012))
  592. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000152587891, -0.999994516, -0.200134277, -4.47035475e-008, 0, 0.999999642, 0, 1, 0, -0.999999642, 0, -4.4703544e-008))
  593. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  594. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.620000005, 1.01999998))
  595. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700012207, -1.00999117, 1.52587891e-005, 0.999999046, 0, 0, 0, 1, 0, 0, 0, 0.999999046))
  596. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.620000005, 1.01999998))
  597. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699127197, -1.00999379, 0.000549316406, 0.999997914, 6.38506317e-005, -2.78951497e-015, -6.38804122e-005, 1.00000012, 2.10474918e-015, 2.78942159e-015, 1.39239913e-015, 0.999997854))
  598. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  599. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609390259, 0.811340332, -0.0999908447, 3.08029073e-018, -2.69585922e-014, -0.999999642, -0.999999642, -6.39334685e-005, -1.35697087e-018, -6.39334467e-005, 1, -2.6958582e-014))
  600. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  601. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  602. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609359741, -0.788131714, -0.0999910831, 3.06354694e-018, -2.34616979e-014, -0.999999642, -0.999999642, -6.39629943e-005, -1.56279636e-018, -6.39629725e-005, 1, -2.34616895e-014))
  603. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  604. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  605. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609375, 0.0116882324, -0.0999908447, 3.06355067e-018, -2.34617301e-014, -0.999999642, -0.999999642, -6.39631544e-005, -1.56279822e-018, -6.39631326e-005, 1, -2.34617217e-014))
  606. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  607. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  608. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609313965, -0.388046265, -0.0999908447, 3.0635486e-018, -2.34617301e-014, -0.999998927, -0.999998927, -6.39631544e-005, -1.56279719e-018, -6.39630889e-005, 1, -2.34617047e-014))
  609. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  610. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  611. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609329224, 0.411483765, -0.0999908447, 3.08028867e-018, -2.69585922e-014, -0.999998927, -0.999998927, -6.39334685e-005, -1.35696984e-018, -6.3933403e-005, 1, -2.69585617e-014))
  612. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  613. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  614. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000305175781, -0.800010204, 0.89906311, -4.47035724e-008, 6.26018334e-015, 0.999997854, -8.34552054e-008, 1.00000012, -5.15634779e-015, -0.999997914, -5.35364961e-008, -4.47035653e-008))
  615. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  616. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.600000024, 0.800000012))
  617. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000228881836, -0.99998498, -0.199783325, -4.47038211e-008, -2.85946115e-012, -0.999997854, -6.3955762e-005, 1.00000012, 1.77753083e-015, 0.999997914, 6.39259815e-005, -4.47038175e-008))
  618. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  619. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 3.79999971, 0.200000003))
  620. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356018066, -0.311279297, -0.609542847, 0.865768671, 0.500441432, 0, -0.5004403, 0.865770638, 3.55271241e-015, 3.55271241e-015, 3.02253882e-015, 0.999997854))
  621. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  622. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  623. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000122070313, -0.799995899, 0.900177002, 1.49011559e-008, 0, -0.999995232, 0, 1, 0, 0.999995232, 0, 1.49011559e-008))
  624. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  625. FlagLogo=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","FlagLogo",Vector3.new(3, 1.99999988, 0.200000003))
  626. FlagLogoweld=weld(m,VestHandle,FlagLogo,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.14234924, -3.41108704, -0.610244751, 0.865850091, 0.500302911, -3.55240239e-015, -0.500302792, 0.865850449, 9.79956736e-019, 3.07633938e-015, 1.77642947e-015, 0.999999642))
  627. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  628. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356628418, -2.31108093, -0.620269775, 0.865850091, 0.500302911, 7.10581953e-015, -0.500302792, 0.865850449, 9.79956736e-019, 6.15238443e-015, 3.55382075e-015, 0.999999642))
  629. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  630. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000036, 0.200000003, 0.400000036))
  631. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.354736328, -4.51108551, -0.620117188, 0.865849495, 0.500302911, 1.77640292e-014, -0.500302434, 0.865850449, 9.79956115e-019, 9.22842142e-015, 5.33121097e-015, 0.999998927))
  632. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  633. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 1.99999964, 0.200000003))
  634. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356216431, -3.41107178, -0.610137939, 0.865848899, 0.500302911, 1.77639292e-014, -0.500302076, 0.865850449, 9.79955495e-019, 1.53807173e-014, 8.88612016e-015, 0.999998212))
  635. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  636. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  637. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356292725, 1.6887207, -0.619628906, 0.865768075, 0.500441432, 0, -0.500439942, 0.865770638, 3.55270987e-015, 3.55270987e-015, 3.02253882e-015, 0.999997139))
  638. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  639. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  640. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.589828491, 0.808547974, -0.0999956131, -3.90798369e-014, 8.06646416e-017, -0.999997854, -0.999997914, -6.36497934e-005, 3.90798369e-014, -6.36795739e-005, 1.00000012, 3.58011901e-015))
  641. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  642. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1, 0.76000005, 0.600000024))
  643. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.509597778, -0.490081787, -0.399998188, -0.999999642, 0, 0, 0, 0, 0.999999642, 0, 1, 0))
  644. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=104516854",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  645. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.200000003, 0.200000003, 1.4000001))
  646. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -1.10011411, -1.52587891e-005, 0.999999404, -4.47034765e-008, 0, -4.47034836e-008, -0.999999285, 0, 0, 0, -1))
  647. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=74322546",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.5, 1.5))
  648. local Decal1 = Instance.new("Decal",FlagLogo)
  649. Decal1.Texture = "http://www.roblox.com/asset/?id=147337085"
  650. Decal1.Face = "Front"
  651. local Decal2 = Instance.new("Decal",FlagLogo)
  652. Decal2.Texture = "http://www.roblox.com/asset/?id=147337085"
  653. Decal2.Face = "Back"
  654. Humanoid.WalkSpeed = 50
  655.  
  656. function ALLAHUAKBAR()
  657. attack = true
  658. local speak = {"ALLAHUAKBAR"}
  659. local colors = {"Red","Red","Red"} -- The only 3 colors, adding more will error.
  660. local chat = game:GetService("Chat")
  661. chat:Chat(Head,speak[math.random(1,#speak)], colors[math.random(1,3)] )
  662. for i = 0,1,0.05 do
  663. swait()
  664. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  665. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  666. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  667. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  668. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  669. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  670. end
  671. for i = 0,1,0.05 do
  672. swait()
  673. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  674. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  675. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(50)), 0.3)
  676. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  677. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  678. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  679. end
  680. for i = 1,20 do
  681. --so("http://roblox.com/asset/?id=197815953",workspace,1,1)
  682. so("rbxassetid://134854740",Torso,1,1.3)
  683. so("rbxassetid://247893371",workspace,1,1)
  684. so("rbxassetid://137994058",Torso,1,1)
  685. so("rbxassetid://165969964",Torso,1,1)
  686. local S = Instance.new("Explosion",workspace)
  687. S.Position = Torso.Position
  688. S.BlastPressure = 5
  689. S.BlastRadius = 50
  690. S.ExplosionType = 2
  691. end
  692. attack = false
  693. end
  694.  
  695. mouse.Button1Down:connect(function()
  696. ALLAHUAKBAR()
  697. end)
  698.  
  699. mouse.KeyDown:connect(function(k)
  700. k=k:lower()
  701.  
  702. end)
  703.  
  704.  
  705. local sine = 0
  706. local change = 1
  707. local val = 0
  708.  
  709. while true do
  710. swait()
  711. sine = sine + change
  712. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  713. local velderp=RootPart.Velocity.y
  714. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  715. if equipped==true or equipped==false then
  716. if attack==false then
  717. idle=idle+1
  718. else
  719. idle=0
  720. end
  721. if idle>=500 then
  722. if attack==false then
  723. --Sheath()
  724. end
  725. end
  726. if RootPart.Velocity.y > 1 and hitfloor==nil then
  727. Anim="Jump"
  728. if attack==false then
  729. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  730. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  731. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  732. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  733. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  734. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  735. end
  736. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  737. Anim="Fall"
  738. if attack==false then
  739. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  740. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  741. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.3)
  742. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  743. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  744. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  745. end
  746. elseif torvel<1 and hitfloor~=nil then
  747. Anim="Idle"
  748. if attack==false then
  749. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(10)),.3)
  750. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  751. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(20)), 0.3)
  752. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  753. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  754. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  755. end
  756. elseif torvel>2 and hitfloor~=nil then
  757. Anim="Walk"
  758. if attack==false then
  759. change=3
  760. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  761. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  762. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50*math.cos(sine/20)), math.rad(0), math.rad(10)), 0.3)
  763. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50*math.cos(sine/20)), math.rad(0), math.rad(-10)), 0.3)
  764. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  765. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  766. end
  767. end
  768. end
  769. if #Effects>0 then
  770. --table.insert(Effects,{prt,"Block1",delay})
  771. for e=1,#Effects do
  772. if Effects[e]~=nil then
  773. --for j=1,#Effects[e] do
  774. local Thing=Effects[e]
  775. if Thing~=nil then
  776. local Part=Thing[1]
  777. local Mode=Thing[2]
  778. local Delay=Thing[3]
  779. local IncX=Thing[4]
  780. local IncY=Thing[5]
  781. local IncZ=Thing[6]
  782. if Thing[1].Transparency<=1 then
  783. if Thing[2]=="Block1" then
  784. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  785. Mesh=Thing[1].Mesh
  786. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  787. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  788. elseif Thing[2]=="Cylinder" then
  789. Mesh=Thing[1].Mesh
  790. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  791. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  792. elseif Thing[2]=="Blood" then
  793. Mesh=Thing[7]
  794. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  795. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  796. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  797. elseif Thing[2]=="Elec" then
  798. Mesh=Thing[1].Mesh
  799. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  800. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  801. elseif Thing[2]=="Disappear" then
  802. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  803. end
  804. else
  805. Part.Parent=nil
  806. table.remove(Effects,e)
  807. end
  808. end
  809. --end
  810. end
  811. end
  812. end
  813. end
Advertisement
Add Comment
Please, Sign In to add comment