Advertisement
lafur

Untitled

Sep 16th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.02 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end Player=game:GetService("Players").LocalPlayer
  6. Character=Player.Character
  7. PlayerGui=Player.PlayerGui
  8. Backpack=Player.Backpack
  9. Torso=Character.Torso
  10. Head=Character.Head
  11. Humanoid=Character.Humanoid
  12. m=Instance.new('Model',Character)
  13. LeftArm=Character["Left Arm"]
  14. LeftLeg=Character["Left Leg"]
  15. RightArm=Character["Right Arm"]
  16. RightLeg=Character["Right Leg"]
  17. LS=Torso["Left Shoulder"]
  18. LH=Torso["Left Hip"]
  19. RS=Torso["Right Shoulder"]
  20. RH=Torso["Right Hip"]
  21. Face = Head.face
  22. Neck=Torso.Neck
  23. it=Instance.new
  24. attacktype=1
  25. vt=Vector3.new
  26. cf=CFrame.new
  27. euler=CFrame.fromEulerAnglesXYZ
  28. angles=CFrame.Angles
  29. cloaked=false
  30. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  31. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  32. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  33. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  34. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  35. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  36. RootPart=Character.HumanoidRootPart
  37. RootJoint=RootPart.RootJoint
  38. RootCF=euler(-1.57,0,3.14)
  39. attack = false
  40. attackdebounce = false
  41. deb=false
  42. equipped=true
  43. hand=false
  44. MMouse=nil
  45. combo=0
  46. mana=0
  47. trispeed=.2
  48. attackmode='none'
  49. local idle=0
  50. local Anim="Idle"
  51. local Effects={}
  52. local gun=false
  53. local shoot=false
  54. player=nil
  55. mana=0
  56.  
  57. mouse=Player:GetMouse()
  58. --save shoulders
  59. RSH, LSH=nil, nil
  60. --welds
  61. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  62. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  63. LH=Torso["Left Hip"]
  64. RH=Torso["Right Hip"]
  65. TorsoColor=Torso.BrickColor
  66. function NoOutline(Part)
  67. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  68. end
  69. player=Player
  70. ch=Character
  71. RSH=ch.Torso["Right Shoulder"]
  72. LSH=ch.Torso["Left Shoulder"]
  73. --
  74. RSH.Parent=nil
  75. LSH.Parent=nil
  76. --
  77. RW.Name="Right Shoulder"
  78. RW.Part0=ch.Torso
  79. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  80. RW.C1=cf(0, 0.5, 0)
  81. RW.Part1=ch["Right Arm"]
  82. RW.Parent=ch.Torso
  83. --
  84. LW.Name="Left Shoulder"
  85. LW.Part0=ch.Torso
  86. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  87. LW.C1=cf(0, 0.5, 0)
  88. LW.Part1=ch["Left Arm"]
  89. LW.Parent=ch.Torso
  90.  
  91. Player=game:GetService('Players').LocalPlayer
  92. Character=Player.Character
  93. Mouse=Player:GetMouse()
  94. m=Instance.new('Model',Character)
  95.  
  96.  
  97. local function weldBetween(a, b)
  98. local weldd = Instance.new("ManualWeld")
  99. weldd.Part0 = a
  100. weldd.Part1 = b
  101. weldd.C0 = CFrame.new()
  102. weldd.C1 = b.CFrame:inverse() * a.CFrame
  103. weldd.Parent = a
  104. return weldd
  105. end
  106.  
  107. it=Instance.new
  108.  
  109. function nooutline(part)
  110. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  111. end
  112.  
  113. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  114. local fp=it("Part")
  115. fp.formFactor=formfactor
  116. fp.Parent=parent
  117. fp.Reflectance=reflectance
  118. fp.Transparency=transparency
  119. fp.CanCollide=false
  120. fp.Locked=true
  121. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  122. fp.Name=name
  123. fp.Size=size
  124. fp.Position=Character.Torso.Position
  125. nooutline(fp)
  126. fp.Material=material
  127. fp:BreakJoints()
  128. return fp
  129. end
  130.  
  131. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  132. local mesh=it(Mesh)
  133. mesh.Parent=part
  134. if Mesh=="SpecialMesh" then
  135. mesh.MeshType=meshtype
  136. mesh.MeshId=meshid
  137. end
  138. mesh.Offset=offset
  139. mesh.Scale=scale
  140. return mesh
  141. end
  142.  
  143. function weld(parent,part0,part1,c0,c1)
  144. local weld=it("Weld")
  145. weld.Parent=parent
  146. weld.Part0=part0
  147. weld.Part1=part1
  148. weld.C0=c0
  149. weld.C1=c1
  150. return weld
  151. end
  152.  
  153.  
  154. Player=game:GetService('Players').LocalPlayer
  155. Character=Player.Character
  156. Mouse=Player:GetMouse()
  157. m=Instance.new('Model',Character)
  158.  
  159.  
  160. local function weldBetween(a, b)
  161. local weldd = Instance.new("ManualWeld")
  162. weldd.Part0 = a
  163. weldd.Part1 = b
  164. weldd.C0 = CFrame.new()
  165. weldd.C1 = b.CFrame:inverse() * a.CFrame
  166. weldd.Parent = a
  167. return weldd
  168. end
  169.  
  170. it=Instance.new
  171.  
  172. function nooutline(part)
  173. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  174. end
  175.  
  176. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  177. local fp=it("Part")
  178. fp.formFactor=formfactor
  179. fp.Parent=parent
  180. fp.Reflectance=reflectance
  181. fp.Transparency=transparency
  182. fp.CanCollide=false
  183. fp.Locked=true
  184. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  185. fp.Name=name
  186. fp.Size=size
  187. fp.Position=Character.Torso.Position
  188. nooutline(fp)
  189. fp.Material=material
  190. fp:BreakJoints()
  191. return fp
  192. end
  193.  
  194. function swait(num)
  195. if num==0 or num==nil then
  196. game:service'RunService'.Stepped:wait(0)
  197. else
  198. for i=0,num do
  199. game:service'RunService'.Stepped:wait(0)
  200. end
  201. end
  202. end
  203.  
  204. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  205. local mesh=it(Mesh)
  206. mesh.Parent=part
  207. if Mesh=="SpecialMesh" then
  208. mesh.MeshType=meshtype
  209. mesh.MeshId=meshid
  210. end
  211. mesh.Offset=offset
  212. mesh.Scale=scale
  213. return mesh
  214. end
  215.  
  216. function weld(parent,part0,part1,c0,c1)
  217. local weld=it("Weld")
  218. weld.Parent=parent
  219. weld.Part0=part0
  220. weld.Part1=part1
  221. weld.C0=c0
  222. weld.C1=c1
  223. return weld
  224. end
  225.  
  226.  
  227. local function CFrameFromTopBack(at, top, back)
  228. local right = top:Cross(back)
  229. return CFrame.new(at.x, at.y, at.z,
  230. right.x, top.x, back.x,
  231. right.y, top.y, back.y,
  232. right.z, top.z, back.z)
  233. end
  234.  
  235. function Triangle(a, b, c)
  236. local edg1 = (c-a):Dot((b-a).unit)
  237. local edg2 = (a-b):Dot((c-b).unit)
  238. local edg3 = (b-c):Dot((a-c).unit)
  239. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  240. a, b, c = a, b, c
  241. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  242. a, b, c = b, c, a
  243. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  244. a, b, c = c, a, b
  245. else
  246. assert(false, "unreachable")
  247. end
  248.  
  249. local len1 = (c-a):Dot((b-a).unit)
  250. local len2 = (b-a).magnitude - len1
  251. local width = (a + (b-a).unit*len1 - c).magnitude
  252.  
  253. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  254.  
  255. local list = {}
  256.  
  257. local Color = BrickColor.new("Dark grey")
  258.  
  259. if len1 > 0.01 then
  260. local w1 = Instance.new('WedgePart', m)
  261. game:GetService("Debris"):AddItem(w1,5)
  262. w1.Material = "SmoothPlastic"
  263. w1.FormFactor = 'Custom'
  264. w1.BrickColor = BrickColor.new(Color)
  265. w1.Transparency = 0
  266. w1.Reflectance = 0
  267. w1.Material = "SmoothPlastic"
  268. w1.CanCollide = false
  269. NoOutline(w1)
  270. local sz = Vector3.new(0.2, width, len1)
  271. w1.Size = sz
  272. local sp = Instance.new("SpecialMesh",w1)
  273. sp.MeshType = "Wedge"
  274. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  275. w1:BreakJoints()
  276. w1.Anchored = true
  277. w1.Parent = workspace
  278. w1.Transparency = 0.7
  279. table.insert(Effects,{w1,"Disappear",.01})
  280. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  281. table.insert(list,w1)
  282. end
  283.  
  284. if len2 > 0.01 then
  285. local w2 = Instance.new('WedgePart', m)
  286. game:GetService("Debris"):AddItem(w2,5)
  287. w2.Material = "SmoothPlastic"
  288. w2.FormFactor = 'Custom'
  289. w2.BrickColor = BrickColor.new(Color)
  290. w2.Transparency = 0
  291. w2.Reflectance = 0
  292. w2.Material = "SmoothPlastic"
  293. w2.CanCollide = false
  294. NoOutline(w2)
  295. local sz = Vector3.new(0.2, width, len2)
  296. w2.Size = sz
  297. local sp = Instance.new("SpecialMesh",w2)
  298. sp.MeshType = "Wedge"
  299. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  300. w2:BreakJoints()
  301. w2.Anchored = true
  302. w2.Parent = workspace
  303. w2.Transparency = 0.7
  304. table.insert(Effects,{w2,"Disappear",.01})
  305. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  306. table.insert(list,w2)
  307. end
  308. return unpack(list)
  309. end
  310.  
  311.  
  312. so = function(id,par,vol,pit)
  313. coroutine.resume(coroutine.create(function()
  314. local sou = Instance.new("Sound",par or workspace)
  315. sou.Volume=vol
  316. sou.Pitch=pit or 1
  317. sou.SoundId=id
  318. swait()
  319. sou:play()
  320. game:GetService("Debris"):AddItem(sou,6)
  321. end))
  322. end
  323.  
  324. function clerp(a,b,t)
  325. local qa = {QuaternionFromCFrame(a)}
  326. local qb = {QuaternionFromCFrame(b)}
  327. local ax, ay, az = a.x, a.y, a.z
  328. local bx, by, bz = b.x, b.y, b.z
  329. local _t = 1-t
  330. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  331. end
  332.  
  333. function QuaternionFromCFrame(cf)
  334. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  335. local trace = m00 + m11 + m22
  336. if trace > 0 then
  337. local s = math.sqrt(1 + trace)
  338. local recip = 0.5/s
  339. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  340. else
  341. local i = 0
  342. if m11 > m00 then
  343. i = 1
  344. end
  345. if m22 > (i == 0 and m00 or m11) then
  346. i = 2
  347. end
  348. if i == 0 then
  349. local s = math.sqrt(m00-m11-m22+1)
  350. local recip = 0.5/s
  351. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  352. elseif i == 1 then
  353. local s = math.sqrt(m11-m22-m00+1)
  354. local recip = 0.5/s
  355. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  356. elseif i == 2 then
  357. local s = math.sqrt(m22-m00-m11+1)
  358. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  359. end
  360. end
  361. end
  362.  
  363. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  364. local xs, ys, zs = x + x, y + y, z + z
  365. local wx, wy, wz = w*xs, w*ys, w*zs
  366. local xx = x*xs
  367. local xy = x*ys
  368. local xz = x*zs
  369. local yy = y*ys
  370. local yz = y*zs
  371. local zz = z*zs
  372. 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))
  373. end
  374.  
  375. function QuaternionSlerp(a, b, t)
  376. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  377. local startInterp, finishInterp;
  378. if cosTheta >= 0.0001 then
  379. if (1 - cosTheta) > 0.0001 then
  380. local theta = math.acos(cosTheta)
  381. local invSinTheta = 1/math.sin(theta)
  382. startInterp = math.sin((1-t)*theta)*invSinTheta
  383. finishInterp = math.sin(t*theta)*invSinTheta
  384. else
  385. startInterp = 1-t
  386. finishInterp = t
  387. end
  388. else
  389. if (1+cosTheta) > 0.0001 then
  390. local theta = math.acos(-cosTheta)
  391. local invSinTheta = 1/math.sin(theta)
  392. startInterp = math.sin((t-1)*theta)*invSinTheta
  393. finishInterp = math.sin(t*theta)*invSinTheta
  394. else
  395. startInterp = t-1
  396. finishInterp = t
  397. end
  398. end
  399. 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
  400. end
  401.  
  402. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  403. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  404. end
  405.  
  406. local function CFrameFromTopBack(at, top, back)
  407. local right = top:Cross(back)
  408. return CFrame.new(at.x, at.y, at.z,
  409. right.x, top.x, back.x,
  410. right.y, top.y, back.y,
  411. right.z, top.z, back.z)
  412. end
  413.  
  414. function Triangle(a, b, c)
  415. local edg1 = (c-a):Dot((b-a).unit)
  416. local edg2 = (a-b):Dot((c-b).unit)
  417. local edg3 = (b-c):Dot((a-c).unit)
  418. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  419. a, b, c = a, b, c
  420. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  421. a, b, c = b, c, a
  422. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  423. a, b, c = c, a, b
  424. else
  425. assert(false, "unreachable")
  426. end
  427.  
  428. local len1 = (c-a):Dot((b-a).unit)
  429. local len2 = (b-a).magnitude - len1
  430. local width = (a + (b-a).unit*len1 - c).magnitude
  431.  
  432. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  433.  
  434. local list = {}
  435.  
  436. if len1 > 0.01 then
  437. local w1 = Instance.new('WedgePart', m)
  438. game:GetService("Debris"):AddItem(w1,5)
  439. w1.Material = "SmoothPlastic"
  440. w1.FormFactor = 'Custom'
  441. w1.BrickColor = BrickColor.new("Institutional white")
  442. w1.Transparency = 0
  443. w1.Reflectance = 0
  444. w1.Material = "SmoothPlastic"
  445. w1.CanCollide = false
  446. NoOutline(w1)
  447. local sz = Vector3.new(0.2, width, len1)
  448. w1.Size = sz
  449. local sp = Instance.new("SpecialMesh",w1)
  450. sp.MeshType = "Wedge"
  451. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  452. w1:BreakJoints()
  453. w1.Anchored = true
  454. w1.Parent = workspace
  455. w1.Transparency = 0.7
  456. table.insert(Effects,{w1,"Disappear",.01})
  457. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  458. table.insert(list,w1)
  459. end
  460.  
  461. if len2 > 0.01 then
  462. local w2 = Instance.new('WedgePart', m)
  463. game:GetService("Debris"):AddItem(w2,5)
  464. w2.Material = "SmoothPlastic"
  465. w2.FormFactor = 'Custom'
  466. w2.BrickColor = BrickColor.new("Institutional white")
  467. w2.Transparency = 0
  468. w2.Reflectance = 0
  469. w2.Material = "SmoothPlastic"
  470. w2.CanCollide = false
  471. NoOutline(w2)
  472. local sz = Vector3.new(0.2, width, len2)
  473. w2.Size = sz
  474. local sp = Instance.new("SpecialMesh",w2)
  475. sp.MeshType = "Wedge"
  476. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  477. w2:BreakJoints()
  478. w2.Anchored = true
  479. w2.Parent = workspace
  480. w2.Transparency = 0.7
  481. table.insert(Effects,{w2,"Disappear",.01})
  482. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  483. table.insert(list,w2)
  484. end
  485. return unpack(list)
  486. end
  487.  
  488. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  489. if hit.Parent==nil then
  490. return
  491. end
  492. h=hit.Parent:FindFirstChild("Humanoid")
  493. for _,v in pairs(hit.Parent:children()) do
  494. if v:IsA("Humanoid") then
  495. h=v
  496. end
  497. end
  498. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  499. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  500. end
  501. if hit.Parent.className=="Hat" then
  502. hit=hit.Parent.Parent:findFirstChild("Head")
  503. end
  504. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  505. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  506. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  507. return
  508. end]]
  509. -- hs(hit,1.2)
  510. c=Instance.new("ObjectValue")
  511. c.Name="creator"
  512. c.Value=game:service("Players").LocalPlayer
  513. c.Parent=h
  514. game:GetService("Debris"):AddItem(c,.5)
  515. Damage=math.random(minim,maxim)
  516. -- h:TakeDamage(Damage)
  517. blocked=false
  518. block=hit.Parent:findFirstChild("Block")
  519. if block~=nil then
  520. print(block.className)
  521. if block.className=="NumberValue" then
  522. if block.Value>0 then
  523. blocked=true
  524. if decreaseblock==nil then
  525. block.Value=block.Value-1
  526. end
  527. end
  528. end
  529. if block.className=="IntValue" then
  530. if block.Value>0 then
  531. blocked=true
  532. if decreaseblock~=nil then
  533. block.Value=block.Value-1
  534. end
  535. end
  536. end
  537. end
  538. if blocked==false then
  539. -- h:TakeDamage(Damage)
  540. h.Health=h.Health-Damage
  541. showDamage(hit.Parent,Damage,.5,BrickColor.new("Institutional white"))
  542. else
  543. h.Health=h.Health-(Damage/2)
  544. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  545. end
  546. if Type=="Knockdown" then
  547. hum=hit.Parent.Humanoid
  548. hum.PlatformStand=true
  549. coroutine.resume(coroutine.create(function(HHumanoid)
  550. swait(1)
  551. HHumanoid.PlatformStand=false
  552. end),hum)
  553. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  554. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  555. local bodvol=Instance.new("BodyVelocity")
  556. bodvol.velocity=angle*knockback
  557. bodvol.P=5000
  558. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  559. bodvol.Parent=hit
  560. rl=Instance.new("BodyAngularVelocity")
  561. rl.P=3000
  562. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  563. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  564. rl.Parent=hit
  565. game:GetService("Debris"):AddItem(bodvol,.5)
  566. game:GetService("Debris"):AddItem(rl,.5)
  567. elseif Type=="Normal" then
  568. vp=Instance.new("BodyVelocity")
  569. vp.P=500
  570. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  571. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  572. if KnockbackType==1 then
  573. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  574. elseif KnockbackType==2 then
  575. vp.velocity=Property.CFrame.lookVector*knockback
  576. end
  577. if knockback>0 then
  578. vp.Parent=hit.Parent.Torso
  579. end
  580. game:GetService("Debris"):AddItem(vp,.5)
  581. elseif Type=="Up" then
  582. local bodyVelocity=Instance.new("BodyVelocity")
  583. bodyVelocity.velocity=vt(0,60,0)
  584. bodyVelocity.P=5000
  585. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  586. bodyVelocity.Parent=hit
  587. game:GetService("Debris"):AddItem(bodyVelocity,1)
  588. rl=Instance.new("BodyAngularVelocity")
  589. rl.P=3000
  590. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  591. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  592. rl.Parent=hit
  593. game:GetService("Debris"):AddItem(rl,.5)
  594. elseif Type=="Snare" then
  595. bp=Instance.new("BodyPosition")
  596. bp.P=2000
  597. bp.D=100
  598. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  599. bp.position=hit.Parent.Torso.Position
  600. bp.Parent=hit.Parent.Torso
  601. game:GetService("Debris"):AddItem(bp,1)
  602. elseif Type=="Target" then
  603. if Targetting==false then
  604. ZTarget=hit.Parent.Torso
  605. coroutine.resume(coroutine.create(function(Part)
  606. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  607. swait(5)
  608. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  609. end),ZTarget)
  610. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  611. targetgui=Instance.new("BillboardGui")
  612. targetgui.Parent=ZTarget
  613. targetgui.Size=UDim2.new(10,100,10,100)
  614. targ=Instance.new("ImageLabel")
  615. targ.Parent=targetgui
  616. targ.BackgroundTransparency=1
  617. targ.Image="rbxassetid://4834067"
  618. targ.Size=UDim2.new(1,0,1,0)
  619. cam.CameraType="Scriptable"
  620. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  621. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  622. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  623. Targetting=true
  624. RocketTarget=ZTarget
  625. for i=1,Property do
  626. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  627. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  628. swait()
  629. end
  630. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  631. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  632. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  633. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  634. end
  635. Targetting=false
  636. RocketTarget=nil
  637. targetgui.Parent=nil
  638. cam.CameraType="Custom"
  639. end
  640. end
  641. debounce=Instance.new("BoolValue")
  642. debounce.Name="DebounceHit"
  643. debounce.Parent=hit.Parent
  644. debounce.Value=true
  645. game:GetService("Debris"):AddItem(debounce,Delay)
  646. c=Instance.new("ObjectValue")
  647. c.Name="creator"
  648. c.Value=Player
  649. c.Parent=h
  650. game:GetService("Debris"):AddItem(c,.5)
  651. CRIT=false
  652. hitDeb=true
  653. AttackPos=6
  654. end
  655. end
  656.  
  657. showDamage=function(Char,Dealt,du,Color)
  658. m=Instance.new("Model")
  659. m.Name=tostring(Dealt)
  660. h=Instance.new("Humanoid")
  661. h.Health=0
  662. h.MaxHealth=0
  663. h.Parent=m
  664. c=Instance.new("Part")
  665. c.Transparency=0
  666. c.BrickColor=Color
  667. c.Name="Head"
  668. c.TopSurface=0
  669. c.BottomSurface=0
  670. c.formFactor="Plate"
  671. c.Size=Vector3.new(1,.4,1)
  672. ms=Instance.new("CylinderMesh")
  673. ms.Scale=Vector3.new(.8,.8,.8)
  674. if CRIT==true then
  675. ms.Scale=Vector3.new(1,1.25,1)
  676. end
  677. ms.Parent=c
  678. c.Reflectance=0
  679. Instance.new("BodyGyro").Parent=c
  680. c.Parent=m
  681. if Char:findFirstChild("Head")~=nil then
  682. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  683. elseif Char.Parent:findFirstChild("Head")~=nil then
  684. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  685. end
  686. f=Instance.new("BodyPosition")
  687. f.P=2000
  688. f.D=100
  689. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  690. f.position=c.Position+Vector3.new(0,3,0)
  691. f.Parent=c
  692. game:GetService("Debris"):AddItem(m,.5+du)
  693. c.CanCollide=false
  694. m.Parent=workspace
  695. c.CanCollide=false
  696. end
  697.  
  698. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(1.00999999, 0.200000003, 1.01999998))
  699. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00453186035, 0.70298934, -3.81469727e-006, 1, 1.24280923e-005, 3.62450692e-006, -1.24280677e-005, 0.999999881, -7.24993879e-006, -3.62459696e-006, 7.24989241e-006, 1))
  700. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  701. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00149917603, 0.00745010376, 2.09010315, -0.000775762834, -0.000198143447, -0.999999762, 0.2587955, -0.965932131, -9.37082677e-006, -0.965931892, -0.25879544, 0.000800612848))
  702. mesh("SpecialMesh",Part,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,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  704. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.804458618, -1.60124516, 0.200565338, -0.999999702, 1.0424109e-005, 0.00080942869, 1.04258834e-005, 1, 2.18860623e-006, -0.000809428748, 2.19704498e-006, -0.999999762))
  705. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  706. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  707. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00149917603, 0.407447815, 2.09008789, -0.000775762834, -0.000198143447, -0.999999762, 0.2587955, -0.965932131, -9.37082677e-006, -0.965931892, -0.25879544, 0.000800612848))
  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,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  710. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804656982, -0.00149226189, -0.199989319, 1, -1.51996278e-006, -9.00177611e-007, 1.51996414e-006, 1, 1.78407163e-006, 9.0017511e-007, -1.78407345e-006, 1))
  711. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  712. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.8046875, -1.40146065, -0.200000763, 1, -2.53325902e-006, -1.15754142e-006, 2.53326129e-006, 1, 2.29419857e-006, 1.15753573e-006, -2.2942022e-006, 1))
  713. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  714. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00104904175, 0.80099535, -0.804374695, -0.00079384027, -2.35535254e-006, 0.999999762, 1.23548616e-005, -1, -2.345545e-006, 0.999999702, 1.23529953e-005, 0.00079384027))
  715. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  716. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.19999981, 0.200000003))
  717. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804840088, -0.701039076, 0.200004578, 1, -1.13247711e-006, -1.65158008e-006, 1.13248279e-006, 1, 3.24646408e-006, 1.65157644e-006, -3.24646635e-006, 1))
  718. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  719. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.604995728, -0.198758841, 0.299610138, -0.999999702, 2.38762932e-005, 0.000802349532, -2.38822213e-005, -1, -7.38197605e-006, 0.000802349416, -7.40113637e-006, 0.999999762))
  720. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  721. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  722. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00104904175, 1.20110154, -0.804405212, -0.000794201565, -1.84438341e-006, 0.999999762, 1.33673129e-005, -1, -1.83376733e-006, 0.999999702, 1.33658532e-005, 0.000794201507))
  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,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  725. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00082183, 0.804695129, 1.14440918e-005, 8.02643353e-006, 1, 8.99688075e-007, -1, 8.02643444e-006, -8.06387561e-008, -8.06460321e-008, -8.99688075e-007, 1))
  726. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 1))
  727. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00105285645, 0.207288742, 1.38993073, 0.000767044956, 0.000216024258, -0.999999762, 0.25882411, -0.965924442, -1.01333862e-005, -0.965924203, -0.25882405, -0.000796819746))
  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,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 1))
  730. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00105285645, 0.207288742, 1.38993073, 0.000767044956, 0.000216024258, -0.999999762, 0.25882411, -0.965924442, -1.01333862e-005, -0.965924203, -0.25882405, -0.000796819746))
  731. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  732. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  733. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804832458, -0.00107288361, 0.200008392, 1, 5.06695585e-007, -8.25381449e-007, -5.06694448e-007, 1, 1.62247716e-006, 8.25382358e-007, -1.62247716e-006, 1))
  734. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.5999999, 1))
  735. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.60484314, -0.701060057, 3.81469727e-006, 1, -5.0665119e-007, -1.2858186e-007, 5.06651418e-007, 1, 2.54860879e-007, 1.2858186e-007, -2.54860879e-007, 1))
  736. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 1, 0.200000003))
  737. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.407440186, 1.39002991, 7.62939453e-006, -0.258809745, 0.965928316, 6.25329039e-006, -0.965928316, -0.258809745, 5.92428364e-007, 2.19065578e-006, -5.88690455e-006, 1))
  738. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.00999999, 0.200000003, 1.01999998))
  739. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -1.39966226, -3.81469727e-006, 1, 9.78939152e-014, 0, 9.78939152e-014, 1, -4.54747351e-013, 0, -4.54747351e-013, 1))
  740. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  741. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.20072484, 0.804679871, 1.90734863e-005, 9.54640291e-006, 1, 1.34129095e-007, -1, 9.54640291e-006, -4.66791334e-007, -4.66792699e-007, -1.34125003e-007, 1))
  742. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  743. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804832458, -1.40093589, 0.200008392, 1, -6.25846724e-007, -1.52244274e-006, 6.25852408e-007, 1, 2.9908856e-006, 1.52244093e-006, -2.99088697e-006, 1))
  744. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  745. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600740433, 0.804679871, 1.14440918e-005, 9.03974706e-006, 1, 3.89332854e-007, -1, 9.03974797e-006, -3.38003701e-007, -3.38007339e-007, -3.8933058e-007, 1))
  746. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 1, 0.200000003))
  747. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.807434082, 1.39003754, 7.62939453e-006, -0.258809745, 0.965928316, 6.25329039e-006, -0.965928316, -0.258809745, 5.92428364e-007, 2.19065578e-006, -5.88690455e-006, 1))
  748. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.19999981, 0.200000003))
  749. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804702759, -0.70143795, -0.199996948, 1, -1.01330238e-006, -7.71793339e-007, 1.01330374e-006, 1, 1.5292967e-006, 7.71791974e-007, -1.52929761e-006, 1))
  750. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  751. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00149917603, 0.407447815, 2.09008789, -0.000775762834, -0.000198143447, -0.999999762, 0.2587955, -0.965932131, -9.37082677e-006, -0.965931892, -0.25879544, 0.000800612848))
  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,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  754. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.40093756, 0.804824829, 1.14440918e-005, 3.97891699e-006, 1, 1.40816746e-006, -1, 3.97891699e-006, 7.39107691e-008, 7.39048573e-008, -1.40816837e-006, 1))
  755. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  756. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804832458, -1.60131168, 0.199436188, 0.999999762, -1.39274289e-005, -0.00080996746, 1.3930121e-005, 1, 3.31980937e-006, 0.00080996746, -3.33109165e-006, 0.999999762))
  757. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  758. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 1))
  759. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00105285645, -0.192708969, 1.38991547, 0.000767044956, 0.000216024258, -0.999999762, 0.25882411, -0.965924442, -1.01333862e-005, -0.965924203, -0.25882405, -0.000796819746))
  760. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  761. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  762. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604515076, -0.198748827, 0.300395966, 0.999999702, -2.34442468e-005, -0.000810647849, -2.34508079e-005, -1, -8.08337518e-006, -0.000810647791, 8.10238362e-006, -0.999999762))
  763. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  764. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  765. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.604988098, -1.60080338, 0.299423218, -0.999999702, -5.39955295e-007, -0.000795590866, -5.45267824e-007, 1, 6.67714994e-006, 0.000795590866, 6.67758286e-006, -0.999999762))
  766. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  767. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  768. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00149917603, 0.807449341, 2.09008789, -0.000775762834, -0.000198143447, -0.999999762, 0.2587955, -0.965932131, -9.37082677e-006, -0.965931892, -0.25879544, 0.000800612848))
  769. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  770. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  771. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000732421875, -1.60110044, -0.704284668, -0.000800467154, 4.59665034e-006, -0.999999762, 3.62008614e-005, 1, 4.56767384e-006, 0.999999702, -3.61971943e-005, -0.000800467213))
  772. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  773. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600747824, 0.804679871, 1.52587891e-005, 9.546402e-006, 1, 1.3412955e-007, -1, 9.546402e-006, -4.66791334e-007, -4.66792699e-007, -1.34125457e-007, 1))
  774. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  775. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00105285645, 0.400963783, -0.804359436, -0.000793659594, -2.61081141e-006, 0.999999762, 1.18486341e-005, -1, -2.60140723e-006, 0.999999702, 1.1846565e-005, 0.000793659594))
  776. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  777. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  778. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.80480957, -0.19858551, 0.199443817, -0.999999702, 1.82939402e-005, 0.000809788588, -1.82979911e-005, -1, -4.99458338e-006, 0.000809788529, -5.00940041e-006, 0.999999762))
  779. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  780. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  781. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604515076, -1.60079789, 0.300582886, 0.999999702, 1.07772372e-007, 0.000803890871, -1.13655666e-007, 1, 7.31800083e-006, -0.000803890929, -7.31809041e-006, 0.999999762))
  782. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  783. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 1, 0.200000003))
  784. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.20727158, 1.39006805, 7.62939453e-006, -0.258811712, 0.96592778, 5.48893058e-006, -0.96592778, -0.258811712, 2.58521823e-007, 1.67031294e-006, -5.23500239e-006, 1))
  785. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  786. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00105285645, 0.000962018967, -0.804344177, -0.000793478917, -2.86625254e-006, 0.999999762, 1.13424067e-005, -1, -2.85725355e-006, 0.999999702, 1.13401356e-005, 0.000793478917))
  787. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  788. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 1, 0.200000003))
  789. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.407440186, 1.39002991, 7.62939453e-006, -0.258809745, 0.965928316, 6.25329039e-006, -0.965928316, -0.258809745, 5.92428364e-007, 2.19065578e-006, -5.88690455e-006, 1))
  790. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 1, 0.200000003))
  791. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00744056702, 1.39002991, 7.62939453e-006, -0.258809745, 0.965928316, 6.25329039e-006, -0.965928316, -0.258809745, 5.92428364e-007, 2.19065578e-006, -5.88690455e-006, 1))
  792. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  793. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00149536133, 1.20727921, 2.09011841, -0.000775216671, -0.000198790163, -0.999999762, 0.25879696, -0.965931714, -8.60601904e-006, -0.965931416, -0.258796901, 0.000800252601))
  794. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  795. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 1))
  796. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00103759766, 0.607286453, 1.38993073, 0.000767044956, 0.000216024258, -0.999999762, 0.25882411, -0.965924442, -1.01333862e-005, -0.965924203, -0.25882405, -0.000796819746))
  797. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  798. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 1))
  799. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00105667114, 1.00712585, 1.38998413, 0.000767590303, 0.000215379841, -0.999999762, 0.25882557, -0.965924084, -9.36856759e-006, -0.965923786, -0.258825481, -0.00079717976))
  800. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  801. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  802. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804527283, -0.198646307, 0.200569153, 0.999999702, -2.09092341e-005, -0.000810349244, -2.0914762e-005, -1, -6.81511392e-006, -0.000810349185, 6.83206099e-006, -0.999999762))
  803. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  804. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  805. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00104904175, 0.400973558, -0.804351807, -0.000793298183, -3.12167685e-006, 0.999999762, 1.08361764e-005, -1, -3.11308122e-006, 0.999999702, 1.08337026e-005, 0.000793298183))
  806. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  807. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  808. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000896453857, -0.199022532, -0.704322815, -0.000792575476, -4.14340593e-006, 0.999999762, 8.81127198e-006, -1, -4.13642329e-006, 0.999999702, 8.80799234e-006, 0.000792575534))
  809. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Hitbox",Vector3.new(0.200000003, 2.20000005, 1.4000001))
  810. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00121688843, 0.80096817, -1.60431671, -0.000792575476, -4.14340593e-006, 0.999999762, 8.81127198e-006, -1, -4.13642329e-006, 0.999999702, 8.80799234e-006, 0.000792575534))
  811.  
  812. handle2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","handle2",Vector3.new(1.00999999, 0.200000003, 1.01999998))
  813. handle2weld=weld(m,Character["Left Arm"],handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00513458252, 0.70298934, 1.14440918e-005, -0.999999881, 1.23995405e-005, -3.60608101e-006, 1.23995096e-005, 0.999999881, 7.30403235e-006, 3.60608101e-006, 7.30398597e-006, -0.999999881))
  814. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  815. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00149154663, 0.00744628906, 2.09009552, -0.000775712193, -0.000198143447, -0.999999404, 0.258795381, -0.965932131, -9.35931985e-006, -0.965931594, -0.25879547, 0.00080048875))
  816. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  817. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  818. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.804450989, -1.6012454, 0.200557709, -0.999999404, 1.04241026e-005, 0.000809401157, 1.0425887e-005, 1, 2.18860714e-006, -0.000809401216, 2.19704407e-006, -0.999999523))
  819. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  820. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  821. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00149536133, 0.407445908, 2.09008026, -0.000775712193, -0.000198143447, -0.999999404, 0.258795381, -0.965932131, -9.35931985e-006, -0.965931594, -0.25879547, 0.00080048875))
  822. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  823. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  824. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804649353, -0.00149226189, -0.199989319, 0.999999762, -1.51995505e-006, -9.53594736e-007, 1.5199704e-006, 1, 1.78407117e-006, 9.53742529e-007, -1.78407345e-006, 0.999999762))
  825. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  826. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.8046875, -1.40146065, -0.199985504, 0.999999881, -2.53325379e-006, -1.10261408e-006, 2.53326675e-006, 1, 2.29419857e-006, 1.10274823e-006, -2.29420129e-006, 0.999999881))
  827. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  828. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00106430054, 0.800995588, -0.804374695, -0.000793799583, -2.35535254e-006, 0.999999523, 1.23548516e-005, -1, -2.34554545e-006, 0.999999285, 1.23530035e-005, 0.000793814717))
  829. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  830. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.19999981, 0.200000003))
  831. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804824829, -0.701039076, 0.200004578, 0.999999762, -1.13247029e-006, -1.57944055e-006, 1.13248814e-006, 1, 3.24646362e-006, 1.57957311e-006, -3.24646453e-006, 0.999999762))
  832. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  833. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.604995728, -0.198758841, 0.299629211, -0.999999344, 2.38762859e-005, 0.00080227846, -2.38822213e-005, -1, -7.38197559e-006, 0.0008022486, -7.40113319e-006, 0.999999464))
  834. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  835. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  836. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00104904175, 1.20110154, -0.804405212, -0.000794097607, -1.84438295e-006, 0.999999344, 1.33673029e-005, -1, -1.83376733e-006, 0.999999285, 1.33658614e-005, 0.000794187246))
  837. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  838. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  839. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00082207, 0.804695129, 2.28881836e-005, 8.02643899e-006, 1, 8.99690349e-007, -0.999999821, 8.02642899e-006, -5.96362497e-008, -5.9525064e-008, -8.99688075e-007, 0.999999821))
  840. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 1))
  841. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00106048584, 0.207288742, 1.38993073, 0.00076695031, 0.000216024244, -0.999999344, 0.258824021, -0.965924442, -1.00969737e-005, -0.965923846, -0.25882408, -0.000796826323))
  842. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  843. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 1))
  844. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00106048584, 0.207288742, 1.38993073, 0.00076695031, 0.000216024244, -0.999999344, 0.258824021, -0.965924442, -1.00969737e-005, -0.965923846, -0.25882408, -0.000796826323))
  845. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  846. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  847. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804824829, -0.00107336044, 0.200004578, 0.999999762, 5.06703032e-007, -8.49271601e-007, -5.06688139e-007, 1, 1.6224767e-006, 8.49436447e-007, -1.6224767e-006, 0.999999762))
  848. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.5999999, 1))
  849. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604850769, -0.701060057, 1.14440918e-005, 0.999999702, -5.0664346e-007, -7.44187219e-008, 5.06656818e-007, 1, 2.54862243e-007, 7.45928901e-008, -2.54859515e-007, 0.999999702))
  850. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 1, 0.200000003))
  851. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.407442093, 1.39002228, 2.28881836e-005, -0.258809716, 0.965928316, 6.24499989e-006, -0.965927958, -0.258809775, 6.0929608e-007, 2.17558681e-006, -5.88690318e-006, 0.999999762))
  852. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.00999999, 0.200000003, 1.01999998))
  853. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -1.39966226, 3.81469727e-006, 0.999999762, 8.2218659e-012, 9.04947228e-011, 8.2218659e-012, 1, 0, 9.04947228e-011, 0, 0.999999762))
  854. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  855. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.20072484, 0.8046875, 2.28881836e-005, 9.54640745e-006, 1, 1.34130914e-007, -0.999999762, 9.54639836e-006, -5.51363883e-007, -5.51254288e-007, -1.34123638e-007, 0.999999762))
  856. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  857. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804832458, -1.40093589, 0.200016022, 0.999999642, -6.2583922e-007, -1.43042485e-006, 6.25857751e-007, 1, 2.9908856e-006, 1.43056423e-006, -2.99088379e-006, 0.999999642))
  858. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  859. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600740433, 0.8046875, 2.28881836e-005, 9.03975251e-006, 1, 3.89334218e-007, -0.999999702, 9.03974251e-006, -3.72553814e-007, -3.7244331e-007, -3.89329216e-007, 0.999999702))
  860. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 1, 0.200000003))
  861. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.807434082, 1.39003754, 7.62939453e-006, -0.258809716, 0.965928316, 6.24499989e-006, -0.965927958, -0.258809775, 6.0929608e-007, 2.17558681e-006, -5.88690318e-006, 0.999999762))
  862. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.19999981, 0.200000003))
  863. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804702759, -0.701437712, -0.200000763, 0.999999583, -1.01329283e-006, -8.34380899e-007, 1.01330909e-006, 1, 1.52929624e-006, 8.3453574e-007, -1.52929624e-006, 0.999999583))
  864. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  865. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00149536133, 0.407445908, 2.09008026, -0.000775712193, -0.000198143447, -0.999999404, 0.258795381, -0.965932131, -9.35931985e-006, -0.965931594, -0.25879547, 0.00080048875))
  866. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  867. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  868. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.4009378, 0.804824829, 1.90734863e-005, 3.97892427e-006, 1, 1.40816974e-006, -0.999999702, 3.97890881e-006, 7.44441877e-008, 7.45787929e-008, -1.40816746e-006, 0.999999702))
  869. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  870. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804832458, -1.60131168, 0.199436188, 0.999999583, -1.39274262e-005, -0.000809922698, 1.39301246e-005, 1, 3.31980982e-006, 0.000809922756, -3.33109119e-006, 0.999999583))
  871. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  872. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 1))
  873. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00105285645, -0.192708969, 1.3899231, 0.00076695031, 0.000216024244, -0.999999344, 0.258824021, -0.965924442, -1.00969737e-005, -0.965923846, -0.25882408, -0.000796826323))
  874. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  875. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  876. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604530334, -0.198748827, 0.300384521, 0.999999464, -2.34442396e-005, -0.000810697617, -2.34508097e-005, -1, -8.08337427e-006, -0.000810682657, 8.10238362e-006, -0.999999523))
  877. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  878. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  879. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.604980469, -1.60080361, 0.299423218, -0.999999344, -5.3996223e-007, -0.000795468688, -5.45260718e-007, 1, 6.67715085e-006, 0.000795528176, 6.67758241e-006, -0.999999523))
  880. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  881. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  882. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00149536133, 0.807447433, 2.09008026, -0.000775712193, -0.000198143447, -0.999999404, 0.258795381, -0.965932131, -9.35931985e-006, -0.965931594, -0.25879547, 0.00080048875))
  883. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  884. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  885. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000732421875, -1.60110044, -0.704277039, -0.000800460519, 4.59664898e-006, -0.999999523, 3.62008577e-005, 1, 4.56767884e-006, 0.999999404, -3.61971906e-005, -0.000800490438))
  886. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  887. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600747824, 0.8046875, 2.28881836e-005, 9.54640564e-006, 1, 1.3413046e-007, -0.999999762, 9.54639745e-006, -5.51363883e-007, -5.51254288e-007, -1.34124093e-007, 0.999999762))
  888. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  889. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00104904175, 0.400964022, -0.804359436, -0.000793561165, -2.61081141e-006, 0.999999404, 1.18486241e-005, -1, -2.60140678e-006, 0.999999344, 1.18465714e-005, 0.000793650805))
  890. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  891. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  892. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.804824829, -0.19858551, 0.199447632, -0.999999404, 1.82939348e-005, 0.000809729041, -1.82979911e-005, -1, -4.99458383e-006, 0.000809863093, -5.00939996e-006, 0.999999464))
  893. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  894. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  895. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604499817, -1.60079813, 0.300582886, 0.999999464, 1.07776252e-007, 0.000803872943, -1.1364768e-007, 1, 7.31799946e-006, -0.000803872827, -7.31808905e-006, 0.999999464))
  896. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  897. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 1, 0.200000003))
  898. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.20726967, 1.39008331, 1.90734863e-005, -0.258811593, 0.96592778, 5.47759373e-006, -0.965927541, -0.258811742, 1.62245328e-007, 1.62425158e-006, -5.23499966e-006, 0.999999642))
  899. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  900. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00105285645, 0.000962495804, -0.804344177, -0.000793441955, -2.86625118e-006, 0.999999285, 1.13423985e-005, -1, -2.85725582e-006, 0.999999285, 1.13401438e-005, 0.000793442188))
  901. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  902. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 1, 0.200000003))
  903. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.407442093, 1.39002228, 2.28881836e-005, -0.258809716, 0.965928316, 6.24499989e-006, -0.965927958, -0.258809775, 6.0929608e-007, 2.17558681e-006, -5.88690318e-006, 0.999999762))
  904. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 1, 0.200000003))
  905. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00743865967, 1.39002991, 1.14440918e-005, -0.258809716, 0.965928316, 6.24499989e-006, -0.965927958, -0.258809775, 6.0929608e-007, 2.17558681e-006, -5.88690318e-006, 0.999999762))
  906. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  907. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00149154663, 1.20727921, 2.09011841, -0.000775250257, -0.000198790163, -0.999999583, 0.258796901, -0.965931714, -8.62916477e-006, -0.965931177, -0.25879693, 0.000800175767))
  908. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  909. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 1))
  910. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00102996826, 0.607284546, 1.38994598, 0.00076695031, 0.000216024244, -0.999999344, 0.258824021, -0.965924442, -1.00969737e-005, -0.965923846, -0.25882408, -0.000796826323))
  911. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  912. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 0.200000003, 1))
  913. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00105667114, 1.00712585, 1.38998413, 0.00076759106, 0.000215379841, -0.999999523, 0.258825541, -0.965924084, -9.3444678e-006, -0.965923369, -0.258825511, -0.000797079701))
  914. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  915. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  916. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.804527283, -0.198646069, 0.200557709, 0.999999404, -2.09092268e-005, -0.000810235681, -2.09147638e-005, -1, -6.81511347e-006, -0.000810235622, 6.83205735e-006, -0.999999404))
  917. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  918. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  919. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00104904175, 0.400973797, -0.804351807, -0.000793233339, -3.1216764e-006, 0.999999344, 1.08361692e-005, -1, -3.11308213e-006, 0.999999225, 1.08337117e-005, 0.000793263374))
  920. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  921. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  922. Partweld=weld(m,handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000907897949, -0.19902277, -0.704322815, -0.0007927267, -4.1434032e-006, 0.999999464, 8.81126653e-006, -1, -4.13642329e-006, 0.999999464, 8.8079978e-006, 0.000792726933))
  923. Hitbox2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Hitbox2",Vector3.new(0.200000003, 2.20000005, 1.4000001))
  924. Hitbox2weld=weld(m,handle2,Hitbox2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00121688843, 0.80096817, -1.60432434, -0.0007927267, -4.1434032e-006, 0.999999464, 8.81126653e-006, -1, -4.13642329e-006, 0.999999464, 8.8079978e-006, 0.000792726933))
  925.  
  926. function attackone()
  927. attack=true
  928. con1=Hitbox2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,5),"Normal",RootPart,.2,1) end)
  929. for i=0,1,0.1 do
  930. swait()
  931. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  932. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(8),math.rad(0),math.rad(80)),.3)
  933. RW.C0=clerp(RW.C0,cf(1.3,0.5,-0.3)*angles(math.rad(70),math.rad(0),math.rad(-60)),.3)
  934. LW.C0=clerp(LW.C0,cf(-1,0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  935. end
  936. so("http://roblox.com/asset/?id=200632136",Torso,1,1)
  937. for i=0,0.6,0.1 do
  938. swait()
  939. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  940. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(8),math.rad(0),math.rad(80)),.3)
  941. RW.C0=clerp(RW.C0,cf(1.3,0.5,-0.3)*angles(math.rad(70),math.rad(0),math.rad(-60)),.3)
  942. LW.C0=clerp(LW.C0,cf(-1,0.5,-.8)*angles(math.rad(80),math.rad(0),math.rad(60)),.3)
  943. end
  944. attack=false
  945. con1:disconnect()
  946. end
  947.  
  948. function attacktwo()
  949. attack=true
  950. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,5),"Normal",RootPart,.2,1) end)
  951. for i=0,1,0.1 do
  952. swait()
  953. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  954. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(8),math.rad(0),math.rad(-80)),.3)
  955. RW.C0=clerp(RW.C0,cf(1.3,0.5,-0.3)*angles(math.rad(70),math.rad(0),math.rad(60)),.3)
  956. LW.C0=clerp(LW.C0,cf(-1,0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  957. end
  958. so("http://roblox.com/asset/?id=200632136",Torso,1,1.2)
  959. for i=0,0.6,0.1 do
  960. swait()
  961. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(120)),.3)
  962. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(8),math.rad(0),math.rad(-80)),.3)
  963. RW.C0=clerp(RW.C0,cf(1.3,0.5,-0.3)*angles(math.rad(70),math.rad(0),math.rad(-60)),.3)
  964. LW.C0=clerp(LW.C0,cf(-1,0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(10)),.3)
  965. end
  966. attack=false
  967. con1:disconnect()
  968. end
  969.  
  970. function attackthree()
  971. attack=true
  972. con1=Hitbox2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,5),"Normal",RootPart,.2,1) end)
  973. con2=Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,5),"Normal",RootPart,.2,1) end)
  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),math.rad(0)),.3)
  977. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(8),math.rad(0),math.rad(0)),.3)
  978. RW.C0=clerp(RW.C0,cf(1.3,0.5,-0.3)*angles(math.rad(70),math.rad(0),math.rad(60)),.3)
  979. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-0.3)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  980. end
  981. so("http://roblox.com/asset/?id=200632136",Torso,1,1)
  982. so("http://roblox.com/asset/?id=200632136",Torso,1,1.2)
  983. for i=0,0.6,0.1 do
  984. swait()
  985. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  986. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(8),math.rad(0),math.rad(0)),.3)
  987. RW.C0=clerp(RW.C0,cf(1,0.5,-.8)*angles(math.rad(70),math.rad(0),math.rad(-120)),.3)
  988. LW.C0=clerp(LW.C0,cf(-1,0.5,-.8)*angles(math.rad(80),math.rad(0),math.rad(120)),.3)
  989. end
  990. attack=false
  991. con1:disconnect()
  992. con2:disconnect()
  993. end
  994.  
  995. mouse.Button1Down:connect(function()
  996. if attack==false then
  997. if attacktype==1 then
  998. attack=true
  999. attacktype=2
  1000. attackone()
  1001. elseif attacktype==2 then
  1002. attack=true
  1003. attacktype=3
  1004. attacktwo()
  1005. elseif attacktype==3 then
  1006. attack=true
  1007. attacktype=1
  1008. attackthree()
  1009. end
  1010. end
  1011. end)
  1012.  
  1013. mouse.KeyDown:connect(function(k)
  1014. k=k:lower()
  1015.  
  1016. end)
  1017.  
  1018.  
  1019. local sine = 0
  1020. local change = 1
  1021. local val = 0
  1022.  
  1023. while true do
  1024. swait()
  1025. sine = sine + change
  1026. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1027. local velderp=RootPart.Velocity.y
  1028. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1029. if equipped==true or equipped==false then
  1030. if attack==false then
  1031. idle=idle+1
  1032. else
  1033. idle=0
  1034. end
  1035. if idle>=500 then
  1036. if attack==false then
  1037. --Sheath()
  1038. end
  1039. end
  1040. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1041. Anim="Jump"
  1042. if attack==false then
  1043. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1044. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-8),math.rad(0),math.rad(0)),.3)
  1045. RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.3)
  1046. LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.3)
  1047. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-10)),.3)
  1048. end
  1049. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1050. Anim="Fall"
  1051. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1052. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(8),math.rad(0),math.rad(0)),.3)
  1053. RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(20)),.3)
  1054. LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.3)
  1055. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-10)),.3)
  1056. if attack==false then
  1057. end
  1058. elseif torvel<1 and hitfloor~=nil then
  1059. Anim="Idle"
  1060. if attack==false then
  1061. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1062. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(8),math.rad(0),math.rad(40)),.3)
  1063. RW.C0=clerp(RW.C0,cf(1.3,0.5,-0.3)*angles(math.rad(70),math.rad(0),math.rad(-30)),.3)
  1064. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  1065. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-10)),.3)
  1066. end
  1067. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1068. Anim="Walk"
  1069. if attack==false then
  1070. change=3
  1071. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  1072. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(20)),.3)
  1073. RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),.3)
  1074. LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.3)
  1075. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1076. end
  1077. elseif torvel>=22 and hitfloor~=nil then
  1078. Anim="Run"
  1079. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  1080. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(20)),.3)
  1081. RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),.3)
  1082. LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.3)
  1083. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1084. if attack==false then
  1085. end
  1086. end
  1087. end
  1088. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement