Advertisement
ThatModdingDeveloper

bomb oof

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