Advertisement
Guest User

Untitled

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