Advertisement
Guest User

Suicide bomber script fe

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