Advertisement
Guest User

Untitled

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