Advertisement
tysonsand99

lll

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