Advertisement
Guest User

Untitled

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