Advertisement
Guest User

Untitled

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