ConTheKoala

Igaki script

Aug 6th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.86 KB | None | 0 0
  1. --------------------------This is an Official script from Duelist--------------------------
  2. ---{-------------------- -------------------}---
  3. ---{-------------------- / \ -------------------}---
  4. ---{-------------------- II -------------------}---
  5. ---{-------------------- II -------------------}---
  6. ---{-------------------- II -------------------}---
  7. ---{-------------------- A========A -------------------}---
  8. ---{-------------------- II -------------------}---
  9. ---{-------------------- II -------------------}---
  10. ---{-------------------- W -------------------}---
  11. -------------------------------------------------------------------------------------------------------------
  12. Player=game:GetService("Players").LocalPlayer
  13. Character=Player.Character
  14. PlayerGui=Player.PlayerGui
  15. Backpack=Player.Backpack
  16. Torso=Character.Torso
  17. Head=Character.Head
  18. Humanoid=Character.Humanoid
  19. m=Instance.new('Model',Character)
  20. LeftArm=Character["Left Arm"]
  21. LeftLeg=Character["Left Leg"]
  22. Bin=script.Parent
  23. RightArm=Character["Right Arm"]
  24. RightLeg=Character["Right Leg"]
  25. LS=Torso["Left Shoulder"]
  26. LH=Torso["Left Hip"]
  27. RS=Torso["Right Shoulder"]
  28. RH=Torso["Right Hip"]
  29. Face = Head.face
  30. Neck=Torso.Neck
  31. it=Instance.new
  32. attacktype=1
  33. vt=Vector3.new
  34. cf=CFrame.new
  35. euler=CFrame.fromEulerAnglesXYZ
  36. angles=CFrame.Angles
  37. cloaked=false
  38. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  39. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  40. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  41. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  42. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  43. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  44. RootPart=Character.HumanoidRootPart
  45. RootJoint=RootPart.RootJoint
  46. RootCF=euler(-1.57,0,3.14)
  47. attack = false
  48. attackdebounce = false
  49. deb=false
  50. equipped=true
  51. hand=false
  52. MMouse=nil
  53. combo=0
  54. mana=0
  55. trispeed=.2
  56. attackmode='none'
  57. local idle=0
  58. local Anim="Idle"
  59. local Effects={}
  60. local gun=false
  61. local shoot=false
  62. player=nil
  63. mana=0
  64. cam = workspace.CurrentCamera
  65. ZTarget = nil
  66. RocketTarget = nil
  67.  
  68. mouse=Player:GetMouse()
  69. --save shoulders
  70. RSH, LSH=nil, nil
  71. --welds
  72. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  73. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  74. LH=Torso["Left Hip"]
  75. RH=Torso["Right Hip"]
  76. TorsoColor=Torso.BrickColor
  77. function NoOutline(Part)
  78. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  79. end
  80. player=Player
  81. ch=Character
  82. RSH=ch.Torso["Right Shoulder"]
  83. LSH=ch.Torso["Left Shoulder"]
  84. --
  85. RSH.Parent=nil
  86. LSH.Parent=nil
  87. --
  88. RW.Name="Right Shoulder"
  89. RW.Part0=ch.Torso
  90. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  91. RW.C1=cf(0, 0.5, 0)
  92. RW.Part1=ch["Right Arm"]
  93. RW.Parent=ch.Torso
  94. --
  95. LW.Name="Left Shoulder"
  96. LW.Part0=ch.Torso
  97. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  98. LW.C1=cf(0, 0.5, 0)
  99. LW.Part1=ch["Left Arm"]
  100. LW.Parent=ch.Torso
  101.  
  102. Player=game:GetService('Players').LocalPlayer
  103. Character=Player.Character
  104. Mouse=Player:GetMouse()
  105. m=Instance.new('Model',Character)
  106.  
  107.  
  108. local function weldBetween(a, b)
  109. local weldd = Instance.new("ManualWeld")
  110. weldd.Part0 = a
  111. weldd.Part1 = b
  112. weldd.C0 = CFrame.new()
  113. weldd.C1 = b.CFrame:inverse() * a.CFrame
  114. weldd.Parent = a
  115. return weldd
  116. end
  117.  
  118. function pwait(num)
  119. if num==0 or num==nil then
  120. game:service'RunService'.Heartbeat:wait(0)
  121. else
  122. for i=0,num do
  123. game:service'RunService'.Heartbeat:wait(0)
  124. end
  125. end
  126. end
  127.  
  128. ArtificialHB = Instance.new("BindableEvent", script)
  129. ArtificialHB.Name = "Heartbeat"
  130.  
  131. script:WaitForChild("Heartbeat")
  132.  
  133. frame = 1 / 30
  134. if Player.FPSCH.Value==true then
  135. frame = 1/60
  136. else
  137. frame=1/30
  138. end
  139. tf = 0
  140. allowframeloss = false
  141. tossremainder = false
  142. lastframe = tick()
  143. script.Heartbeat:Fire()
  144.  
  145. game:GetService("RunService").Heartbeat:connect(function(s, p)
  146. tf = tf + s
  147. if tf >= frame then
  148. if allowframeloss then
  149. script.Heartbeat:Fire()
  150. lastframe = tick()
  151. else
  152. for i = 1, math.floor(tf / frame) do
  153. script.Heartbeat:Fire()
  154. end
  155. lastframe = tick()
  156. end
  157. if tossremainder then
  158. tf = 0
  159. else
  160. tf = tf - frame * math.floor(tf / frame)
  161. end
  162. end
  163. end)
  164.  
  165. function swait(num)
  166. if num == 0 or num == nil then
  167. ArtificialHB.Event:wait()
  168. else
  169. for i = 0, num do
  170. ArtificialHB.Event:wait()
  171. end
  172. end
  173. end
  174.  
  175. function nooutline(part)
  176. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  177. end
  178.  
  179. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  180. local fp=it("Part")
  181. fp.formFactor=formfactor
  182. fp.Parent=parent
  183. fp.Reflectance=reflectance
  184. fp.Transparency=transparency
  185. fp.CanCollide=false
  186. fp.Locked=true
  187. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  188. fp.Name=name
  189. fp.Size=size
  190. fp.Position=Character.Torso.Position
  191. nooutline(fp)
  192. fp.Material=material
  193. fp:BreakJoints()
  194. return fp
  195. end
  196.  
  197. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  198. local mesh=it(Mesh)
  199. mesh.Parent=part
  200. if Mesh=="SpecialMesh" then
  201. mesh.MeshType=meshtype
  202. mesh.MeshId=meshid
  203. end
  204. mesh.Offset=offset
  205. mesh.Scale=scale
  206. return mesh
  207. end
  208.  
  209. function weld(parent,part0,part1,c0,c1)
  210. local weld=it("Weld")
  211. weld.Parent=parent
  212. weld.Part0=part0
  213. weld.Part1=part1
  214. weld.C0=c0
  215. weld.C1=c1
  216. return weld
  217. end
  218.  
  219.  
  220. local function CFrameFromTopBack(at, top, back)
  221. local right = top:Cross(back)
  222. return CFrame.new(at.x, at.y, at.z,
  223. right.x, top.x, back.x,
  224. right.y, top.y, back.y,
  225. right.z, top.z, back.z)
  226. end
  227.  
  228. function Triangle(a, b, c)
  229. local edg1 = (c-a):Dot((b-a).unit)
  230. local edg2 = (a-b):Dot((c-b).unit)
  231. local edg3 = (b-c):Dot((a-c).unit)
  232. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  233. a, b, c = a, b, c
  234. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  235. a, b, c = b, c, a
  236. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  237. a, b, c = c, a, b
  238. else
  239. assert(false, "unreachable")
  240. end
  241.  
  242. local len1 = (c-a):Dot((b-a).unit)
  243. local len2 = (b-a).magnitude - len1
  244. local width = (a + (b-a).unit*len1 - c).magnitude
  245.  
  246. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  247.  
  248. local list = {}
  249.  
  250. local TrailColor = ("Dark grey")
  251.  
  252. if len1 > 0.01 then
  253. local w1 = Instance.new('WedgePart', m)
  254. game:GetService("Debris"):AddItem(w1,5)
  255. w1.Material = "SmoothPlastic"
  256. w1.FormFactor = 'Custom'
  257. w1.BrickColor = BrickColor.new(TrailColor)
  258. w1.Transparency = 0
  259. w1.Reflectance = 0
  260. w1.Material = "SmoothPlastic"
  261. w1.CanCollide = false
  262. NoOutline(w1)
  263. local sz = Vector3.new(0.2, width, len1)
  264. w1.Size = sz
  265. local sp = Instance.new("SpecialMesh",w1)
  266. sp.MeshType = "Wedge"
  267. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  268. w1:BreakJoints()
  269. w1.Anchored = true
  270. w1.Parent = workspace
  271. w1.Transparency = 0.7
  272. table.insert(Effects,{w1,"Disappear",.01})
  273. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  274. table.insert(list,w1)
  275. end
  276.  
  277. if len2 > 0.01 then
  278. local w2 = Instance.new('WedgePart', m)
  279. game:GetService("Debris"):AddItem(w2,5)
  280. w2.Material = "SmoothPlastic"
  281. w2.FormFactor = 'Custom'
  282. w2.BrickColor = BrickColor.new(TrailColor)
  283. w2.Transparency = 0
  284. w2.Reflectance = 0
  285. w2.Material = "SmoothPlastic"
  286. w2.CanCollide = false
  287. NoOutline(w2)
  288. local sz = Vector3.new(0.2, width, len2)
  289. w2.Size = sz
  290. local sp = Instance.new("SpecialMesh",w2)
  291. sp.MeshType = "Wedge"
  292. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  293. w2:BreakJoints()
  294. w2.Anchored = true
  295. w2.Parent = workspace
  296. w2.Transparency = 0.7
  297. table.insert(Effects,{w2,"Disappear",.01})
  298. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  299. table.insert(list,w2)
  300. end
  301. return unpack(list)
  302. end
  303.  
  304.  
  305. so = function(id,par,vol,pit)
  306. coroutine.resume(coroutine.create(function()
  307. local sou = Instance.new("Sound",par or workspace)
  308. sou.Volume=vol
  309. sou.Pitch=pit or 1
  310. sou.SoundId=id
  311. swait()
  312. sou:play()
  313. game:GetService("Debris"):AddItem(sou,6)
  314. end))
  315. end
  316.  
  317. function clerp(a,b,t)
  318. local qa = {QuaternionFromCFrame(a)}
  319. local qb = {QuaternionFromCFrame(b)}
  320. local ax, ay, az = a.x, a.y, a.z
  321. local bx, by, bz = b.x, b.y, b.z
  322. local _t = 1-t
  323. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  324. end
  325.  
  326. function QuaternionFromCFrame(cf)
  327. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  328. local trace = m00 + m11 + m22
  329. if trace > 0 then
  330. local s = math.sqrt(1 + trace)
  331. local recip = 0.5/s
  332. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  333. else
  334. local i = 0
  335. if m11 > m00 then
  336. i = 1
  337. end
  338. if m22 > (i == 0 and m00 or m11) then
  339. i = 2
  340. end
  341. if i == 0 then
  342. local s = math.sqrt(m00-m11-m22+1)
  343. local recip = 0.5/s
  344. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  345. elseif i == 1 then
  346. local s = math.sqrt(m11-m22-m00+1)
  347. local recip = 0.5/s
  348. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  349. elseif i == 2 then
  350. local s = math.sqrt(m22-m00-m11+1)
  351. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  352. end
  353. end
  354. end
  355.  
  356. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  357. local xs, ys, zs = x + x, y + y, z + z
  358. local wx, wy, wz = w*xs, w*ys, w*zs
  359. local xx = x*xs
  360. local xy = x*ys
  361. local xz = x*zs
  362. local yy = y*ys
  363. local yz = y*zs
  364. local zz = z*zs
  365. 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))
  366. end
  367.  
  368. function QuaternionSlerp(a, b, t)
  369. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  370. local startInterp, finishInterp;
  371. if cosTheta >= 0.0001 then
  372. if (1 - cosTheta) > 0.0001 then
  373. local theta = math.acos(cosTheta)
  374. local invSinTheta = 1/math.sin(theta)
  375. startInterp = math.sin((1-t)*theta)*invSinTheta
  376. finishInterp = math.sin(t*theta)*invSinTheta
  377. else
  378. startInterp = 1-t
  379. finishInterp = t
  380. end
  381. else
  382. if (1+cosTheta) > 0.0001 then
  383. local theta = math.acos(-cosTheta)
  384. local invSinTheta = 1/math.sin(theta)
  385. startInterp = math.sin((t-1)*theta)*invSinTheta
  386. finishInterp = math.sin(t*theta)*invSinTheta
  387. else
  388. startInterp = t-1
  389. finishInterp = t
  390. end
  391. end
  392. 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
  393. end
  394.  
  395. --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)
  396.  
  397.  
  398. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  399. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  400. end
  401.  
  402. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  403. if hit.Parent==nil then
  404. return
  405. end
  406. h=hit.Parent:FindFirstChild("Humanoid")
  407. for _,v in pairs(hit.Parent:children()) do
  408. if v:IsA("Humanoid") then
  409. h=v
  410. end
  411. end
  412. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  413. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  414. end
  415. if hit.Parent.className=="Accessory" then
  416. hit=hit.Parent.Parent:findFirstChild("Head")
  417. end
  418. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  419. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  420. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  421. return
  422. end]]
  423. -- hs(hit,1.2)
  424. c=Instance.new("ObjectValue")
  425. c.Name="creator"
  426. c.Value=game:service("Players").LocalPlayer
  427. c.Parent=h
  428. game:GetService("Debris"):AddItem(c,.5)
  429. Damage=math.random(minim,maxim)
  430. -- h:TakeDamage(Damage)
  431. blocked=false
  432. block=hit.Parent:findFirstChild("Block")
  433. if block~=nil then
  434. print(block.className)
  435. if block.className=="NumberValue" then
  436. if block.Value>0 then
  437. blocked=true
  438. if decreaseblock==nil then
  439. block.Value=block.Value-1
  440. end
  441. end
  442. end
  443. if block.className=="IntValue" then
  444. if block.Value>0 then
  445. blocked=true
  446. if decreaseblock~=nil then
  447. block.Value=block.Value-1
  448. end
  449. end
  450. end
  451. end
  452. if blocked==false then
  453. -- h:TakeDamage(Damage)
  454. HitHealth=h.Health
  455. h.Health=h.Health-Damage
  456.  
  457. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
  458. print("gained spree")
  459. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
  460. end
  461. ShowDamage((Hitbox.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Hitbox.BrickColor.Color)
  462. else
  463. h.Health=h.Health-(Damage/2)
  464. ShowDamage((Hitbox.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  465. end
  466. if Type=="Knockdown" then
  467. hum=hit.Parent.Humanoid
  468. hum.PlatformStand=true
  469. coroutine.resume(coroutine.create(function(HHumanoid)
  470. swait(1)
  471. HHumanoid.PlatformStand=false
  472. end),hum)
  473. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  474. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  475. local bodvol=Instance.new("BodyVelocity")
  476. bodvol.velocity=angle*knockback
  477. bodvol.P=5000
  478. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  479. bodvol.Parent=hit
  480. rl=Instance.new("BodyAngularVelocity")
  481. rl.P=3000
  482. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  483. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  484. rl.Parent=hit
  485. game:GetService("Debris"):AddItem(bodvol,.5)
  486. game:GetService("Debris"):AddItem(rl,.5)
  487. elseif Type=="Normal" then
  488. vp=Instance.new("BodyVelocity")
  489. vp.P=500
  490. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  491. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  492. if KnockbackType==1 then
  493. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  494. elseif KnockbackType==2 then
  495. vp.velocity=Property.CFrame.lookVector*knockback
  496. end
  497. if knockback>0 then
  498. vp.Parent=hit.Parent.Torso
  499. end
  500. game:GetService("Debris"):AddItem(vp,.5)
  501. elseif Type=="Up" then
  502. local bodyVelocity=Instance.new("BodyVelocity")
  503. bodyVelocity.velocity=vt(0,60,0)
  504. bodyVelocity.P=5000
  505. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  506. bodyVelocity.Parent=hit
  507. game:GetService("Debris"):AddItem(bodyVelocity,1)
  508. rl=Instance.new("BodyAngularVelocity")
  509. rl.P=3000
  510. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  511. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  512. rl.Parent=hit
  513. game:GetService("Debris"):AddItem(rl,.5)
  514. elseif Type=="Snare" then
  515. bp=Instance.new("BodyPosition")
  516. bp.P=2000
  517. bp.D=100
  518. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  519. bp.position=hit.Parent.Torso.Position
  520. bp.Parent=hit.Parent.Torso
  521. game:GetService("Debris"):AddItem(bp,1)
  522. elseif Type=="Target" then
  523. local Targetting = false
  524. if Targetting==false then
  525. ZTarget=hit.Parent.Torso
  526. coroutine.resume(coroutine.create(function(Part)
  527. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  528. swait(5)
  529. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  530. end),ZTarget)
  531. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  532. local targetgui=Instance.new("BillboardGui")
  533. targetgui.Parent=ZTarget
  534. targetgui.Size=UDim2.new(10,100,10,100)
  535. local targ=Instance.new("ImageLabel")
  536. targ.Parent=targetgui
  537. targ.BackgroundTransparency=1
  538. targ.Image="rbxassetid://4834067"
  539. targ.Size=UDim2.new(1,0,1,0)
  540. cam.CameraType="Scriptable"
  541. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  542. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  543. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  544. Targetting=true
  545. RocketTarget=ZTarget
  546. for i=1,Property do
  547. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  548. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  549. swait()
  550. end
  551. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  552. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  553. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  554. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  555. end
  556. Targetting=false
  557. RocketTarget=nil
  558. targetgui.Parent=nil
  559. cam.CameraType="Custom"
  560. end
  561. end
  562. local debounce=Instance.new("BoolValue")
  563. debounce.Name="DebounceHit"
  564. debounce.Parent=hit.Parent
  565. debounce.Value=true
  566. game:GetService("Debris"):AddItem(debounce,Delay)
  567. c=Instance.new("ObjectValue")
  568. c.Name="creator"
  569. c.Value=Player
  570. c.Parent=h
  571. game:GetService("Debris"):AddItem(c,.5)
  572. end
  573. end
  574.  
  575.  
  576. function ShowDamage(Pos, Text, Time, Color)
  577. local Rate = (1 / 30)
  578. local Pos = (Pos or Vector3.new(0, 0, 0))
  579. local Text = (Text or "")
  580. local Time = (Time or 2)
  581. local Color = (Color or Color3.new(1, 0, 0))
  582. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  583. EffectPart.Anchored = true
  584. local BillboardGui = Instance.new("BillboardGui")
  585. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  586. BillboardGui.Adornee = EffectPart
  587. local TextLabel = Instance.new("TextLabel")
  588. TextLabel.BackgroundTransparency = 1
  589. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  590. TextLabel.Text = Text
  591. TextLabel.TextColor3 = Color
  592. TextLabel.TextScaled = true
  593. TextLabel.Font = Enum.Font.ArialBold
  594. TextLabel.Parent = BillboardGui
  595. BillboardGui.Parent = EffectPart
  596. game.Debris:AddItem(EffectPart, (Time + 0.1))
  597. EffectPart.Parent = game:GetService("Workspace")
  598. Delay(0, function()
  599. local Frames = (Time / Rate)
  600. for Frame = 1, Frames do
  601. wait(Rate)
  602. local Percent = (Frame / Frames)
  603. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  604. TextLabel.TextTransparency = Percent
  605. end
  606. if EffectPart and EffectPart.Parent then
  607. EffectPart:Destroy()
  608. end
  609. end)
  610. end
  611.  
  612. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Mid gray","Handle",Vector3.new(0.800000072, 0.210000008, 0.800000012))
  613. Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100120544, -0.0296649933, -1.00035763, 0, -2.98023188e-008, 0.999993861, -0.99999404, 1.49025006e-008, 8.8817842e-016, -1.49024135e-008, -0.999999642, -4.47034836e-008))
  614. mesh("CylinderMesh",Handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  615. FakeHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","FakeHandle",Vector3.new(0.400000095, 0.230000019, 0.400000036))
  616. FakeHandleweld=weld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -9.53674316e-006, 0, 0.707098126, 1.05375966e-008, -0.707102299, -1.05375948e-008, 0.999988079, 4.36466729e-009, 0.707102299, 4.36466552e-009, 0.707106471))
  617. mesh("CylinderMesh",FakeHandle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  618. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,1,"Mid gray","Hitbox",Vector3.new(3.60000014, 0.210000008, 3.5999999))
  619. Hitboxweld=weld(m,FakeHandle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0, -9.53674316e-007, 0.707098126, -1.05375948e-008, 0.707102299, 1.05375966e-008, 0.999988079, 4.36466552e-009, -0.707102299, 4.36466729e-009, 0.707106471))
  620. mesh("CylinderMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  621. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  622. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000259399414, -0.299919128, -1.00004387, -1.78813195e-007, -0.999988079, -3.12952523e-007, -0.999987781, 1.78813252e-007, -2.98023224e-008, 0, 3.12949197e-007, -0.999999762))
  623. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  624. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 0.200000003))
  625. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.90734863e-006, -0.00032043457, 0.999987721, 0, 0, 0, -8.93950798e-008, -0.999999762, -3.55271368e-015, 0.999988079, -8.93964796e-008))
  626. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.55999994, 1.55999994, 1.55999994))
  627. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  628. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000198364258, -0.299787521, -0.999847412, 5.96124892e-008, -0.999988079, -2.9807449e-008, 0, 2.9807449e-008, -0.999999762, 0.999987721, 5.96125105e-008, 0))
  629. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  630. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  631. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000263214111, -1.49990082, 0.399940491, 8.94070524e-008, 0.999988079, 2.98048448e-008, 0, 2.98048448e-008, -0.999999762, -0.999987781, 8.94070737e-008, -2.98023224e-008))
  632. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  633. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  634. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000205993652, -0.299808502, 1.399786, -4.91340302e-012, 0.999988079, -5.96086593e-008, 0, -5.96076077e-008, -0.999999762, -0.999987721, -4.91073848e-012, 0))
  635. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  636. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.220000014, 0.400000036))
  637. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09988594, -0.00499725342, 0, 0.999987721, 0, 0, 0, 0.999988079, -1.74971149e-013, 0, -1.74971149e-013, 0.999999762))
  638. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  639. Wedge4=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Wedge4",Vector3.new(0.200000003, 0.400000006, 0.800000012))
  640. Wedge4weld=weld(m,FakeHandle,Wedge4,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00020980835, 0.000200271606, 1.99969292, -5.05195885e-012, 0.999988079, -5.96087801e-008, 0, -5.96077214e-008, -0.999999762, -0.999987721, -5.05373521e-012, 0))
  641. mesh("SpecialMesh",Wedge4,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  642. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  643. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000274658203, -1.89990234, 0.299953461, 5.96046874e-008, 0.999988079, -1.81188398e-013, 0, 1.73194792e-013, -0.999999762, -0.999987781, 5.96047087e-008, -2.98023224e-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.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  646. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000270843506, -1.49997139, 0.399961472, 8.4028251e-009, 0.999988079, -1.75415238e-013, 0, -1.74971149e-013, 0.999999762, 0.999987781, -8.40282954e-009, 2.98023224e-008))
  647. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  648. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  649. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000274658203, -0.299940109, 1.40000153, 2.98023366e-008, 0.999988079, 4.4707388e-008, -0.999987781, 2.98023473e-008, -2.98023224e-008, 0, -4.47072139e-008, 0.999999762))
  650. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  651. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.220000029, 0.400000036))
  652. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.49993896, -0.00040435791, 6.48498535e-005, -8.94069672e-008, 6.12470856e-008, -0.999999821, 2.63361066e-008, 0.999988079, 6.1247448e-008, 0.999987781, -2.63361137e-008, -1.49011612e-007))
  653. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  654. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.800000072, 0.210000008, 0.800000012))
  655. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.999987721, 0, 0, 0, 0.999988079, -1.74971149e-013, 0, -1.74971149e-013, 0.999999762))
  656. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  657. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  658. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999526978, -0.0002784729, 0.499946594, 0, 1.48977337e-008, 0.999999762, -3.39017703e-012, 0.999988079, -1.48982586e-008, -0.999987721, -3.38928885e-012, 0))
  659. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.600000024, 0.200000003, 0.200000003))
  660. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.500009537, -0.000286102295, 0.0999698639, 0, 1.48956234e-008, 0.999999762, -3.41504602e-012, 0.999988079, -1.48961465e-008, -0.999987721, -3.4159342e-012, 0))
  661. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.399999946, 0.200000003, 0.800000012))
  662. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.000286102295, 1.19993591, 8.94069672e-008, -5.05791355e-008, -0.999999702, 1.90316086e-007, 0.999988079, -5.0580077e-008, 0.999987781, -1.90316143e-007, 2.98023224e-008))
  663. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  664. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00025177002, -1.09987259, 0.499895096, 7.34371781e-008, 0.999988079, -1.79412041e-013, -0.999987781, 7.34371923e-008, -2.98023224e-008, -8.94069672e-008, -1.71418435e-013, 0.999999702))
  665. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  666. Wedge3=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Wedge3",Vector3.new(0.200000003, 0.400000006, 0.800000012))
  667. Wedge3weld=weld(m,FakeHandle,Wedge3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000293731689, 4.76837158e-005, 2.00000572, -3.98805078e-009, 0.999988079, -1.7408297e-013, 0.999987781, 3.98805255e-009, 2.98023224e-008, 0, 1.74971149e-013, -0.999999762))
  668. mesh("SpecialMesh",Wedge3,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  669. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  670. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000267028809, -1.4998455, 0.399936676, 7.34442409e-008, 0.999988079, -1.81188398e-013, -0.999987781, 7.34442551e-008, -2.98023224e-008, -8.94069672e-008, -1.71418435e-013, 0.999999702))
  671. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  672. Wedge2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Wedge2",Vector3.new(0.200000003, 0.400000006, 0.800000012))
  673. Wedge2weld=weld(m,FakeHandle,Wedge2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000286102295, -3.05175781e-005, 1.99983597, 1.90315262e-007, 0.999988079, -8.94152024e-008, -8.94069672e-008, 8.94138097e-008, 0.999999702, 0.999987781, -1.90315305e-007, 2.98023224e-008))
  674. mesh("SpecialMesh",Wedge2,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  675. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  676. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000286102295, -1.89995003, 0.299968719, 8.40303294e-009, 0.999988079, -1.77635684e-013, 0, -1.74971149e-013, 0.999999762, 0.999987781, -8.4030356e-009, 2.98023224e-008))
  677. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  678. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.399999946, 0.200000003, 0.800000012))
  679. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000177383423, -0.000225067139, 1.19974136, 0, 1.48940638e-008, 0.999999762, -4.16289225e-012, 0.999988079, -1.48945851e-008, -0.999987721, -4.16200407e-012, 0))
  680. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.600000024, 0.200000003, 0.200000003))
  681. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.50002861, -0.000286102295, -0.10001564, 0, 1.48959751e-008, 0.999999762, -3.41238149e-012, 0.999988079, -1.48964983e-008, -0.999987721, -3.41149331e-012, 0))
  682. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  683. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00025177002, -1.09996605, 0.499923706, 8.40327097e-009, 0.999988079, -1.74527059e-013, 0, -1.74971149e-013, 0.999999762, 0.999987781, -8.40327363e-009, 2.98023224e-008))
  684. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  685. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.219999999, 0.400000036))
  686. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.50004196, -0.00040435791, 6.10351563e-005, -8.94069672e-008, 6.12470856e-008, -0.999999821, 2.63361066e-008, 0.999988079, 6.1247448e-008, 0.999987781, -2.63361137e-008, -1.49011612e-007))
  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.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.200000033))
  689. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000286102295, -0.299949646, 0.299921036, 7.58621042e-008, 0.999988079, -5.96105991e-008, -0.999987781, 7.58621113e-008, 1.49011612e-007, 8.94069672e-008, 5.96095404e-008, 0.999999821))
  690. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  691. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.220000014, 0.400000036))
  692. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.4998436, -0.00499725342, 3.81469727e-006, 0.999987721, 0, 0, 0, 0.999988079, -1.74971149e-013, 0, -1.74971149e-013, 0.999999762))
  693. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  694. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.220000029, 0.400000036))
  695. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.10004425, -0.00040435791, 6.10351563e-005, -8.94069672e-008, 6.12470856e-008, -0.999999821, 2.63361066e-008, 0.999988079, 6.1247448e-008, 0.999987781, -2.63361137e-008, -1.49011612e-007))
  696. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  697. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  698. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000240325928, -1.09989166, 0.49990654, 8.94070524e-008, 0.999988079, 2.98048448e-008, 0, 2.98048448e-008, -0.999999762, -0.999987781, 8.94070737e-008, -2.98023224e-008))
  699. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  700. Wedge1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Wedge1",Vector3.new(0.200000003, 0.400000006, 0.800000012))
  701. Wedge1weld=weld(m,FakeHandle,Wedge1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000286102295, 3.05175781e-005, 1.99993134, 2.98023082e-008, 0.999988079, -1.75859327e-013, -0.999987781, 2.98023153e-008, -2.98023224e-008, 0, -1.73194792e-013, 0.999999762))
  702. mesh("SpecialMesh",Wedge1,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  703. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.220000014, 0.400000036))
  704. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.09989357, -0.00499725342, 1.90734863e-006, 0.999987721, 0, 0, 0, 0.999988079, -1.74971149e-013, 0, -1.74971149e-013, 0.999999762))
  705. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  706. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  707. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0002784729, -0.299993515, -1.0000248, -2.49923318e-007, -0.999988079, 2.38440407e-007, -8.94069672e-008, 2.38437281e-007, 0.999999702, -0.999987781, 2.49923346e-007, -2.98023224e-008))
  708. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  709. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  710. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999279022, -0.0002784729, -0.499910355, 0, 1.49047281e-008, 0.999999762, -2.69295697e-012, 0.999988079, -1.49052521e-008, -0.999987721, -2.69473333e-012, 0))
  711. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.220000029, 0.400000036))
  712. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09993744, -0.00040435791, 6.10351563e-005, -8.94069672e-008, 6.12470856e-008, -0.999999821, 2.63361066e-008, 0.999988079, 6.1247448e-008, 0.999987781, -2.63361137e-008, -1.49011612e-007))
  713. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  714. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.600000024, 0.200000003, 0.200000003))
  715. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.499950409, -0.000286102295, 0.0999984741, 0, 1.48962522e-008, 0.999999762, -3.42126327e-012, 0.999988079, -1.48967771e-008, -0.999987721, -3.42126327e-012, 0))
  716. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000033))
  717. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000259399414, -0.299873352, 0.299957275, -4.81747975e-012, 0.999988079, -5.96097323e-008, 0, -5.96086807e-008, -0.999999762, -0.999987721, -4.81392703e-012, 0))
  718. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  719. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  720. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100063324, -0.0002784729, -0.49993515, 0, 1.49040957e-008, 0.999999762, -4.69135841e-012, 0.999988079, -1.49046233e-008, -0.999987721, -4.70379291e-012, 0))
  721. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  722. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000286102295, -0.299922943, 1.40007591, -3.98796729e-009, 0.999988079, -1.75859327e-013, 0.999987781, 3.98796551e-009, 2.98023224e-008, 0, 1.74971149e-013, -0.999999762))
  723. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  724. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.399999946, 0.200000003, 0.800000012))
  725. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -0.0002784729, 1.19993591, 0.999987781, -2.38415524e-007, 2.98023224e-008, 2.38415453e-007, 0.999988079, 4.47068871e-008, 0, -4.47067094e-008, 0.999999762))
  726. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  727. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000171661377, -1.0996933, 0.500137329, 1.16866929e-007, 0.999988079, -7.20010433e-008, 0.999987781, -1.16866971e-007, 2.98023224e-008, 0, -7.19998638e-008, -0.999999762))
  728. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  729. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  730. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100063324, -0.000286102295, 0.499992371, 0, 1.48986787e-008, 0.999999762, -3.41060513e-012, 0.999988079, -1.48992028e-008, -0.999987721, -3.41060513e-012, 0))
  731. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(1.20000005, 1.20000005, 0.200000003))
  732. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.90734863e-006, -0.00032043457, 0.999987721, 0, 0, 0, -8.93950798e-008, -0.999999762, -3.55271368e-015, 0.999988079, -8.93964796e-008))
  733. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.36000001, 1.36000001, 1.36000001))
  734. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  735. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000289916992, -0.300001144, 1.39994812, 1.90312988e-007, 0.999988079, -8.94152166e-008, -8.94069672e-008, 8.94138097e-008, 0.999999702, 0.999987781, -1.90313003e-007, 2.98023224e-008))
  736. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  737. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.399999946, 0.200000003, 0.800000012))
  738. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.33514404e-005, -0.000289916992, 1.19997215, -0.999987781, -4.86903993e-008, -2.98023224e-008, -4.86903957e-008, 0.999988079, -5.10450384e-008, 0, -5.10440898e-008, -0.999999762))
  739. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.600000024, 0.200000003, 0.200000003))
  740. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.499973297, -0.000286102295, -0.0999774933, 0, 1.48958081e-008, 0.999999762, -3.42392781e-012, 0.999988079, -1.48963313e-008, -0.999987721, -3.42303963e-012, 0))
  741. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  742. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0002784729, -1.89974403, 0.299942017, 7.34392813e-008, 0.999988079, -1.77635684e-013, -0.999987781, 7.34392955e-008, -2.98023224e-008, -8.94069672e-008, -1.71418435e-013, 0.999999702))
  743. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  744. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  745. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000186920166, -1.49966812, 0.400169373, 1.16860818e-007, 0.999988079, -7.20006099e-008, 0.999987781, -1.16860832e-007, 2.98023224e-008, 0, -7.19994091e-008, -0.999999762))
  746. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  747. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000033))
  748. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000286102295, -0.299949646, 0.30006218, 7.58674048e-008, -0.999988079, 1.71400885e-008, -0.999987781, -7.58674261e-008, -2.98023224e-008, 0, -1.71395413e-008, -0.999999762))
  749. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  750. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  751. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000205993652, -1.89961433, 0.300161362, 1.16863269e-007, 0.999988079, -7.19997075e-008, 0.999987781, -1.16863298e-007, 2.98023224e-008, 0, -7.19985138e-008, -0.999999762))
  752. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  753. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.200000033))
  754. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000259399414, -0.300117493, 0.299957275, 4.81212943e-012, -0.999988079, -1.49027866e-008, 0, -1.49029624e-008, 0.999999762, -0.999987721, -4.81215068e-012, 0))
  755. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  756. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.400000036))
  757. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000270843506, -0.299905777, -1.00011253, 9.33975457e-008, -0.999988079, 2.38440379e-007, 0.999987781, 9.3397567e-008, 2.98023224e-008, 0, 2.38437224e-007, 0.999999762))
  758. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  759. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.219999999, 0.400000036))
  760. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.49985886, -0.00499725342, 5.7220459e-006, 0.999987721, 0, 0, 0, 0.999988079, -1.74971149e-013, 0, -1.74971149e-013, 0.999999762))
  761. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  762.  
  763. function effect(Color,Ref,LP,P1,returnn)
  764. local effectsmsh = Instance.new("BlockMesh")
  765. effectsmsh.Scale = Vector3.new(0.2,1,0.2)
  766. effectsmsh.Name = "Mesh"
  767. local effectsg = Instance.new("Part")
  768. effectsg.Material = "SmoothPlastic"
  769. effectsg.formFactor = 3
  770. effectsg.CanCollide = false
  771. effectsg.Name = "Eff"
  772. effectsg.Locked = true
  773. effectsg.Anchored = true
  774. effectsg.Size = Vector3.new(0.5,1,0.5)
  775. effectsg.Parent = workspace
  776. effectsmsh.Parent = effectsg
  777. effectsg.BrickColor = BrickColor.new(Color)
  778. effectsg.Reflectance = Ref
  779. nooutline(effectsg)
  780. local point1 = P1
  781. local mg = (LP.p - point1.p).magnitude
  782. effectsg.Size = Vector3.new(0.5,mg,0.5)
  783. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  784. if returnn then return effectsg end
  785. coroutine.resume(coroutine.create(function(Part,Mesh)
  786. if not returnn then
  787. for i = 0 , 1 , 0.2 do
  788. wait()
  789. Part.Transparency = 1*i
  790. Mesh.Scale = Vector3.new(0.2-0.2*i,1,0.2-0.2*i)
  791. end
  792. wait()
  793. Part.Parent = nil
  794. end
  795. end),effectsg,effectsmsh)
  796. end
  797.  
  798.  
  799.  
  800. Throwing = false
  801.  
  802. function attackone()
  803. attack = true
  804. Throwing = true
  805. local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  806. for i = 0,1,0.1 do
  807. swait()
  808. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  809. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
  810. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(10)), 0.3)
  811. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  812. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  813. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  814. end
  815. coroutine.resume(coroutine.create(function()
  816. while Throwing == true do
  817. wait()
  818. so("http://roblox.com/asset/?id=243711414",FakeHandle,1,1)
  819. end
  820. end))
  821. for i = 0,1,1 do
  822. swait()
  823. for i = 0,1,0.1 do
  824. swait()
  825. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  826. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  827. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.5) * angles(math.rad(0), math.rad(40), math.rad(90)), 0.3)
  828. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
  829. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  830. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  831. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,10)* angles(0,6*i,math.rad(0)),.3)
  832. end
  833. end
  834. Throwing = false
  835. for i = 0,1,0.1 do
  836. swait()
  837. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  838. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-70)),.3)
  839. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.5) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.3)
  840. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-40)), 0.3)
  841. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  842. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  843. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,0)* angles(0,6*i,math.rad(0)),.3)
  844. end
  845. attack = false
  846. con:disconnect()
  847. end
  848.  
  849. function attacktwo()
  850. attack = true
  851. local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  852. for i = 0,1,0.1 do
  853. swait()
  854. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  855. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-70)),.3)
  856. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.5) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.3)
  857. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-50)), 0.3)
  858. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  859. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  860. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,0)* angles(0,0,math.rad(0)),.3)
  861. end
  862.  
  863. so("http://roblox.com/asset/?id=243711349",FakeHandle,1,1)
  864. for i = 0,1,0.1 do
  865. swait()
  866. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  867. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  868. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  869. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.3)
  870. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  871. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  872. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,0)* angles(0,20,0),.3)
  873. end
  874. attack = false
  875. con:disconnect()
  876. end
  877.  
  878. function attackthree()
  879. attack = true
  880. local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  881. for i = 0,1,0.1 do
  882. swait()
  883. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  884. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  885. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(20)), 0.3)
  886. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.3)
  887. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  888. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  889. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,0)* angles(0,20,0),.3)
  890. end
  891. for i = 0,1,1 do
  892. swait()
  893. for i = 0,1,0.1 do
  894. swait()
  895. so("http://roblox.com/asset/?id=243711349",FakeHandle,1,1.1)
  896. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  897. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-70)),.3)
  898. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  899. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.3)
  900. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  901. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  902. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,0)* angles(0,6*i,0),.3)
  903. end
  904. end
  905. attack = false
  906. con:disconnect()
  907. end
  908.  
  909. function DoubleJump()
  910. attack = true
  911.  
  912. Torso.Velocity=vt(0,100,0)
  913. Humanoid.WalkSpeed = 50
  914. for i = 0,1,0.1 do
  915. swait()
  916. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(6*i,math.rad(0),math.rad(0)),.3)
  917. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-0)),.3)
  918. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(0)), 0.3)
  919. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(0)), 0.3)
  920. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-50))*angles(math.rad(-6),math.rad(0),math.rad(0)),.3)
  921. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(50))*angles(math.rad(-6),math.rad(0),math.rad(0)),.3)
  922. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,0)* angles(0,0,0),.3)
  923. end
  924. for i = 0,1,1 do
  925. swait()
  926. for i = 0,1,0.1 do
  927. swait()
  928. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  929. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-0)),.3)
  930. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.3)
  931. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  932. 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)
  933. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  934. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,0)* angles(4.7,6*i,0),.3)
  935. end
  936. end
  937. attack = false
  938. Humanoid.WalkSpeed = 16
  939. end
  940.  
  941. --[[for i = 0,1,0.1 do
  942. swait()
  943. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  944. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  945. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  946. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  947. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  948. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  949. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,-5,4)* angles(20,6*i,0),.3)
  950. end]]--
  951.  
  952. function SpinThrow()
  953. attack = true
  954. Throwing = true
  955. local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(5,10),"Normal",RootPart,.2,1) end)
  956. for i = 0,1,0.1 do
  957. swait()
  958. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  959. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-70)),.3)
  960. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  961. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
  962. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  963. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  964. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  965. end
  966. coroutine.resume(coroutine.create(function()
  967. while Throwing == true do
  968. wait()
  969. so("http://roblox.com/asset/?id=243711414",FakeHandle,1,1)
  970. end
  971. end))
  972. for i = 0,1,1 do
  973. swait()
  974. for i = 0,1,0.1 do
  975. swait()
  976. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),-5*i),.3)
  977. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-70)),.3)
  978. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(90)), 0.3)
  979. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-90)), 0.3)
  980. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-30))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  981. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-30))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  982. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,5)* angles(math.rad(0),10*i,math.rad(0)),.3)
  983. end
  984. Throwing = false
  985. end
  986. attack = false
  987. con:disconnect()
  988. end
  989.  
  990. function ob1d()
  991. if attack==false then
  992. if attacktype == 1 then
  993. attack = true
  994. attacktype = 2
  995. attackone()
  996. elseif attacktype == 2 then
  997. attack = true
  998. attacktype = 3
  999. attacktwo()
  1000. elseif attacktype == 3 then
  1001. attack = true
  1002. attacktype = 1
  1003. attackthree()
  1004. end
  1005. end
  1006. end
  1007.  
  1008. function ob1u()
  1009.  
  1010. end
  1011.  
  1012. function key(k)
  1013. k=k:lower()
  1014. if attack == false then
  1015. if k == " " and Anim == "Jump" then
  1016. DoubleJump()
  1017. elseif k == "q"then
  1018. SpinThrow()
  1019. end
  1020. end
  1021. end
  1022.  
  1023.  
  1024. function ds(mouse)
  1025. end
  1026.  
  1027. function s(mouse)
  1028. print("Selected")
  1029. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1030. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1031. mouse.KeyDown:connect(key)
  1032. MMouse=mouse
  1033. end
  1034.  
  1035. Bin.Selected:connect(s)
  1036. Bin.Deselected:connect(ds)
  1037.  
  1038. local sine = 0
  1039. local change = 1
  1040. local val = 0
  1041.  
  1042. while true do
  1043. pwait()
  1044. sine = sine + change
  1045. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1046. local velderp=RootPart.Velocity.y
  1047. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1048. if equipped==true or equipped==false then
  1049. if attack==false then
  1050. idle=idle+1
  1051. else
  1052. idle=0
  1053. end
  1054. if idle>=500 then
  1055. if attack==false then
  1056. --Sheath()
  1057. end
  1058. end
  1059. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1060. Anim="Jump"
  1061. if attack==false then
  1062. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1063. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  1064. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1065. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1066. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1067. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1068. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1069. end
  1070. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1071. Anim="Fall"
  1072. if attack==false then
  1073. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1074. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1075. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1076. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1077. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1078. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1079. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1080. end
  1081. elseif torvel<1 and hitfloor~=nil then
  1082. Anim="Idle"
  1083. if attack==false then
  1084. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1085. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(20)),.3)
  1086. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(10)), 0.3)
  1087. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.3)
  1088. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1089. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1090. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1091. end
  1092. elseif torvel>2 and hitfloor~=nil then
  1093. Anim="Walk"
  1094. if attack==false then
  1095. change=3
  1096. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1097. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1098. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(20)), 0.3)
  1099. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  1100. 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)
  1101. 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)
  1102. FakeHandleweld.C0 = clerp(FakeHandleweld.C0,cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1103. end
  1104. end
  1105. end
  1106. if #Effects>0 then
  1107. --table.insert(Effects,{prt,"Block1",delay})
  1108. for e=1,#Effects do
  1109. if Effects[e]~=nil then
  1110. --for j=1,#Effects[e] do
  1111. local Thing=Effects[e]
  1112. if Thing~=nil then
  1113. local Part=Thing[1]
  1114. local Mode=Thing[2]
  1115. local Delay=Thing[3]
  1116. local IncX=Thing[4]
  1117. local IncY=Thing[5]
  1118. local IncZ=Thing[6]
  1119. if Thing[1].Transparency<=1 then
  1120. if Thing[2]=="Block1" then
  1121. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1122. Mesh=Thing[1].Mesh
  1123. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1124. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1125. elseif Thing[2]=="Cylinder" then
  1126. Mesh=Thing[1].Mesh
  1127. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1128. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1129. elseif Thing[2]=="Blood" then
  1130. Mesh=Thing[7]
  1131. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1132. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1133. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1134. elseif Thing[2]=="Elec" then
  1135. Mesh=Thing[1].Mesh
  1136. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1137. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1138. elseif Thing[2]=="Disappear" then
  1139. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1140. end
  1141. else
  1142. Part.Parent=nil
  1143. table.remove(Effects,e)
  1144. end
  1145. end
  1146. --end
  1147. end
  1148. end
  1149. end
  1150. end
Add Comment
Please, Sign In to add comment