Advertisement
skullingdestroy22

allahka (fe)

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