Advertisement
Baldeagle22

sdvcssssdsds

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