Advertisement
raulib

Jihad but improved

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