Legendofawesomeness3

orion

Dec 16th, 2017
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.14 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. cloaked=false
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. deb=false
  38. equipped=true
  39. hand=false
  40. MMouse=nil
  41. combo=0
  42. mana=0
  43. cam=workspace.CurrentCamera
  44. RocketTarget=nil
  45. Targetting=false
  46. trispeed=.2
  47. attackmode='none'
  48. local idle=0
  49. local Anim="Idle"
  50. local Effects={}
  51. local gun=false
  52. local shoot=false
  53. player=nil
  54. mana=0
  55.  
  56. mouse=Player:GetMouse()
  57. --save shoulders
  58. RSH, LSH=nil, nil
  59. --welds
  60. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  61. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  62. LH=Torso["Left Hip"]
  63. RH=Torso["Right Hip"]
  64. TorsoColor=Torso.BrickColor
  65. function NoOutline(Part)
  66. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  67. end
  68. player=Player
  69. ch=Character
  70. RSH=ch.Torso["Right Shoulder"]
  71. LSH=ch.Torso["Left Shoulder"]
  72. --
  73. RSH.Parent=nil
  74. LSH.Parent=nil
  75. --
  76. RW.Name="Right Shoulder"
  77. RW.Part0=ch.Torso
  78. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  79. RW.C1=cf(0, 0.5, 0)
  80. RW.Part1=ch["Right Arm"]
  81. RW.Parent=ch.Torso
  82. --
  83. LW.Name="Left Shoulder"
  84. LW.Part0=ch.Torso
  85. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  86. LW.C1=cf(0, 0.5, 0)
  87. LW.Part1=ch["Left Arm"]
  88. LW.Parent=ch.Torso
  89.  
  90. Player=game:GetService('Players').LocalPlayer
  91. Character=Player.Character
  92. Mouse=Player:GetMouse()
  93. m=Instance.new('Model',Character)
  94.  
  95.  
  96. local function weldBetween(a, b)
  97. local weldd = Instance.new("ManualWeld")
  98. weldd.Part0 = a
  99. weldd.Part1 = b
  100. weldd.C0 = CFrame.new()
  101. weldd.C1 = b.CFrame:inverse() * a.CFrame
  102. weldd.Parent = a
  103. return weldd
  104. end
  105.  
  106. function swait(num)
  107. if num==0 or num==nil then
  108. game:service'RunService'.Heartbeat:wait(0)
  109. else
  110. for i=0,num do
  111. game:service'RunService'.Heartbeat:wait(0)
  112. end
  113. end
  114. end
  115.  
  116. function nooutline(part)
  117. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  118. end
  119.  
  120. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  121. local fp=it("Part")
  122. fp.formFactor=formfactor
  123. fp.Parent=parent
  124. fp.Reflectance=reflectance
  125. fp.Transparency=transparency
  126. fp.CanCollide=false
  127. fp.Locked=true
  128. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  129. fp.Name=name
  130. fp.Size=size
  131. fp.Position=Character.Torso.Position
  132. nooutline(fp)
  133. fp.Material=material
  134. fp:BreakJoints()
  135. return fp
  136. end
  137.  
  138. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  139. local mesh=it(Mesh)
  140. mesh.Parent=part
  141. if Mesh=="SpecialMesh" then
  142. mesh.MeshType=meshtype
  143. mesh.MeshId=meshid
  144. end
  145. mesh.Offset=offset
  146. mesh.Scale=scale
  147. return mesh
  148. end
  149.  
  150. function weld(parent,part0,part1,c0,c1)
  151. local weld=it("Weld")
  152. weld.Parent=parent
  153. weld.Part0=part0
  154. weld.Part1=part1
  155. weld.C0=c0
  156. weld.C1=c1
  157. return weld
  158. end
  159.  
  160.  
  161. local function CFrameFromTopBack(at, top, back)
  162. local right = top:Cross(back)
  163. return CFrame.new(at.x, at.y, at.z,
  164. right.x, top.x, back.x,
  165. right.y, top.y, back.y,
  166. right.z, top.z, back.z)
  167. end
  168.  
  169. function Triangle(a, b, c)
  170. local edg1 = (c-a):Dot((b-a).unit)
  171. local edg2 = (a-b):Dot((c-b).unit)
  172. local edg3 = (b-c):Dot((a-c).unit)
  173. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  174. a, b, c = a, b, c
  175. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  176. a, b, c = b, c, a
  177. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  178. a, b, c = c, a, b
  179. else
  180. assert(false, "unreachable")
  181. end
  182.  
  183. local len1 = (c-a):Dot((b-a).unit)
  184. local len2 = (b-a).magnitude - len1
  185. local width = (a + (b-a).unit*len1 - c).magnitude
  186.  
  187. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  188.  
  189. local list = {}
  190.  
  191. local TrailColor = ("Dark grey")
  192.  
  193. if len1 > 0.01 then
  194. local w1 = Instance.new('WedgePart', m)
  195. game:GetService("Debris"):AddItem(w1,5)
  196. w1.Material = "SmoothPlastic"
  197. w1.FormFactor = 'Custom'
  198. w1.BrickColor = BrickColor.new(TrailColor)
  199. w1.Transparency = 0
  200. w1.Reflectance = 0
  201. w1.Material = "SmoothPlastic"
  202. w1.CanCollide = false
  203. NoOutline(w1)
  204. local sz = Vector3.new(0.2, width, len1)
  205. w1.Size = sz
  206. local sp = Instance.new("SpecialMesh",w1)
  207. sp.MeshType = "Wedge"
  208. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  209. w1:BreakJoints()
  210. w1.Anchored = true
  211. w1.Parent = workspace
  212. w1.Transparency = 0.7
  213. table.insert(Effects,{w1,"Disappear",.01})
  214. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  215. table.insert(list,w1)
  216. end
  217.  
  218. if len2 > 0.01 then
  219. local w2 = Instance.new('WedgePart', m)
  220. game:GetService("Debris"):AddItem(w2,5)
  221. w2.Material = "SmoothPlastic"
  222. w2.FormFactor = 'Custom'
  223. w2.BrickColor = BrickColor.new(TrailColor)
  224. w2.Transparency = 0
  225. w2.Reflectance = 0
  226. w2.Material = "SmoothPlastic"
  227. w2.CanCollide = false
  228. NoOutline(w2)
  229. local sz = Vector3.new(0.2, width, len2)
  230. w2.Size = sz
  231. local sp = Instance.new("SpecialMesh",w2)
  232. sp.MeshType = "Wedge"
  233. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  234. w2:BreakJoints()
  235. w2.Anchored = true
  236. w2.Parent = workspace
  237. w2.Transparency = 0.7
  238. table.insert(Effects,{w2,"Disappear",.01})
  239. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  240. table.insert(list,w2)
  241. end
  242. return unpack(list)
  243. end
  244.  
  245.  
  246. so = function(id,par,vol,pit)
  247. coroutine.resume(coroutine.create(function()
  248. local sou = Instance.new("Sound",par or workspace)
  249. sou.Volume=vol
  250. sou.Pitch=pit or 1
  251. sou.SoundId=id
  252. swait()
  253. sou:play()
  254. game:GetService("Debris"):AddItem(sou,6)
  255. end))
  256. end
  257.  
  258. function clerp(a,b,t)
  259. local qa = {QuaternionFromCFrame(a)}
  260. local qb = {QuaternionFromCFrame(b)}
  261. local ax, ay, az = a.x, a.y, a.z
  262. local bx, by, bz = b.x, b.y, b.z
  263. local _t = 1-t
  264. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  265. end
  266.  
  267. function QuaternionFromCFrame(cf)
  268. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  269. local trace = m00 + m11 + m22
  270. if trace > 0 then
  271. local s = math.sqrt(1 + trace)
  272. local recip = 0.5/s
  273. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  274. else
  275. local i = 0
  276. if m11 > m00 then
  277. i = 1
  278. end
  279. if m22 > (i == 0 and m00 or m11) then
  280. i = 2
  281. end
  282. if i == 0 then
  283. local s = math.sqrt(m00-m11-m22+1)
  284. local recip = 0.5/s
  285. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  286. elseif i == 1 then
  287. local s = math.sqrt(m11-m22-m00+1)
  288. local recip = 0.5/s
  289. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  290. elseif i == 2 then
  291. local s = math.sqrt(m22-m00-m11+1)
  292. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  293. end
  294. end
  295. end
  296.  
  297. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  298. local xs, ys, zs = x + x, y + y, z + z
  299. local wx, wy, wz = w*xs, w*ys, w*zs
  300. local xx = x*xs
  301. local xy = x*ys
  302. local xz = x*zs
  303. local yy = y*ys
  304. local yz = y*zs
  305. local zz = z*zs
  306. 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))
  307. end
  308.  
  309. function QuaternionSlerp(a, b, t)
  310. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  311. local startInterp, finishInterp;
  312. if cosTheta >= 0.0001 then
  313. if (1 - cosTheta) > 0.0001 then
  314. local theta = math.acos(cosTheta)
  315. local invSinTheta = 1/math.sin(theta)
  316. startInterp = math.sin((1-t)*theta)*invSinTheta
  317. finishInterp = math.sin(t*theta)*invSinTheta
  318. else
  319. startInterp = 1-t
  320. finishInterp = t
  321. end
  322. else
  323. if (1+cosTheta) > 0.0001 then
  324. local theta = math.acos(-cosTheta)
  325. local invSinTheta = 1/math.sin(theta)
  326. startInterp = math.sin((t-1)*theta)*invSinTheta
  327. finishInterp = math.sin(t*theta)*invSinTheta
  328. else
  329. startInterp = t-1
  330. finishInterp = t
  331. end
  332. end
  333. 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
  334. end
  335.  
  336. --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)
  337.  
  338.  
  339. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  340. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  341. end
  342.  
  343. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  344. if hit.Parent==nil then
  345. return
  346. end
  347. h=hit.Parent:FindFirstChild("Humanoid")
  348. for _,v in pairs(hit.Parent:children()) do
  349. if v:IsA("Humanoid") then
  350. h=v
  351. end
  352. end
  353. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  354. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  355. end
  356. if hit.Parent.className=="Hat" then
  357. hit=hit.Parent.Parent:findFirstChild("Head")
  358. end
  359. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  360. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  361. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  362. return
  363. end]]
  364. -- hs(hit,1.2)
  365. c=Instance.new("ObjectValue")
  366. c.Name="creator"
  367. c.Value=game:service("Players").LocalPlayer
  368. c.Parent=h
  369. game:GetService("Debris"):AddItem(c,.5)
  370. Damage=math.random(minim,maxim)
  371. -- h:TakeDamage(Damage)
  372. blocked=false
  373. block=hit.Parent:findFirstChild("Block")
  374. if block~=nil then
  375. print(block.className)
  376. if block.className=="NumberValue" then
  377. if block.Value>0 then
  378. blocked=true
  379. if decreaseblock==nil then
  380. block.Value=block.Value-1
  381. end
  382. end
  383. end
  384. if block.className=="IntValue" then
  385. if block.Value>0 then
  386. blocked=true
  387. if decreaseblock~=nil then
  388. block.Value=block.Value-1
  389. end
  390. end
  391. end
  392. end
  393. if blocked==false then
  394. -- h:TakeDamage(Damage)
  395. h.Health=h.Health-Damage
  396. showDamage(hit.Parent,Damage,.5,BrickColor.new("Toothpaste"))
  397. else
  398. h.Health=h.Health-(Damage/2)
  399. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  400. end
  401. if Type=="Knockdown" then
  402. hum=hit.Parent.Humanoid
  403. hum.PlatformStand=true
  404. coroutine.resume(coroutine.create(function(HHumanoid)
  405. swait(1)
  406. HHumanoid.PlatformStand=false
  407. end),hum)
  408. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  409. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  410. local bodvol=Instance.new("BodyVelocity")
  411. bodvol.velocity=angle*knockback
  412. bodvol.P=5000
  413. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  414. bodvol.Parent=hit
  415. rl=Instance.new("BodyAngularVelocity")
  416. rl.P=3000
  417. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  418. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  419. rl.Parent=hit
  420. game:GetService("Debris"):AddItem(bodvol,.5)
  421. game:GetService("Debris"):AddItem(rl,.5)
  422. elseif Type=="Normal" then
  423. vp=Instance.new("BodyVelocity")
  424. vp.P=500
  425. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  426. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  427. if KnockbackType==1 then
  428. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  429. elseif KnockbackType==2 then
  430. vp.velocity=Property.CFrame.lookVector*knockback
  431. end
  432. if knockback>0 then
  433. vp.Parent=hit.Parent.Torso
  434. end
  435. game:GetService("Debris"):AddItem(vp,.5)
  436. elseif Type=="Up" then
  437. local bodyVelocity=Instance.new("BodyVelocity")
  438. bodyVelocity.velocity=vt(0,60,0)
  439. bodyVelocity.P=5000
  440. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  441. bodyVelocity.Parent=hit
  442. game:GetService("Debris"):AddItem(bodyVelocity,1)
  443. rl=Instance.new("BodyAngularVelocity")
  444. rl.P=3000
  445. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  446. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  447. rl.Parent=hit
  448. game:GetService("Debris"):AddItem(rl,.5)
  449. elseif Type=="Snare" then
  450. bp=Instance.new("BodyPosition")
  451. bp.P=2000
  452. bp.D=100
  453. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  454. bp.position=hit.Parent.Torso.Position
  455. bp.Parent=hit.Parent.Torso
  456. game:GetService("Debris"):AddItem(bp,1)
  457. elseif Type=="Target" then
  458. if Targetting==false then
  459. ZTarget=hit.Parent.Torso
  460. coroutine.resume(coroutine.create(function(Part)
  461. so("http://www.roblox.com/asset/?id=240429615",Part,1,1.5)
  462. end),ZTarget)
  463. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  464. targetgui=Instance.new("BillboardGui")
  465. targetgui.Parent=ZTarget
  466. targetgui.Size=UDim2.new(10,100,10,100)
  467. targ=Instance.new("ImageLabel")
  468. targ.Parent=targetgui
  469. targ.BackgroundTransparency=1
  470. targ.Image="rbxassetid://57605688"
  471. targ.Size=UDim2.new(1,0,1,0)
  472. cam.CameraType="Scriptable"
  473. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  474. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  475. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  476. Targetting=true
  477. RocketTarget=ZTarget
  478. for i=1,Property do
  479. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  480. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  481. swait()
  482. end
  483. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  484. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  485. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  486. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  487. end
  488. Targetting=false
  489. RocketTarget=nil
  490. targetgui.Parent=nil
  491. cam.CameraType="Custom"
  492. end
  493. end
  494. debounce=Instance.new("BoolValue")
  495. debounce.Name="DebounceHit"
  496. debounce.Parent=hit.Parent
  497. debounce.Value=true
  498. game:GetService("Debris"):AddItem(debounce,Delay)
  499. c=Instance.new("ObjectValue")
  500. c.Name="creator"
  501. c.Value=Player
  502. c.Parent=h
  503. game:GetService("Debris"):AddItem(c,.5)
  504. CRIT=false
  505. hitDeb=true
  506. AttackPos=6
  507. end
  508. end
  509.  
  510. showDamage=function(Char,Dealt,du,Color)
  511. m=Instance.new("Model")
  512. m.Name=tostring(Dealt)
  513. h=Instance.new("Humanoid")
  514. h.Health=0
  515. h.MaxHealth=0
  516. h.Parent=m
  517. c=Instance.new("Part")
  518. c.Transparency=0
  519. c.BrickColor=Color
  520. c.Name="Head"
  521. c.TopSurface=0
  522. c.BottomSurface=0
  523. c.formFactor="Plate"
  524. c.Size=Vector3.new(1,.4,1)
  525. ms=Instance.new("CylinderMesh")
  526. ms.Scale=Vector3.new(.8,.8,.8)
  527. if CRIT==true then
  528. ms.Scale=Vector3.new(1,1.25,1)
  529. end
  530. ms.Parent=c
  531. c.Reflectance=0
  532. Instance.new("BodyGyro").Parent=c
  533. c.Parent=m
  534. if Char:findFirstChild("Head")~=nil then
  535. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  536. elseif Char.Parent:findFirstChild("Head")~=nil then
  537. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  538. end
  539. f=Instance.new("BodyPosition")
  540. f.P=2000
  541. f.D=100
  542. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  543. f.position=c.Position+Vector3.new(0,3,0)
  544. f.Parent=c
  545. game:GetService("Debris"):AddItem(m,.5+du)
  546. c.CanCollide=false
  547. m.Parent=workspace
  548. c.CanCollide=false
  549. end
  550.  
  551. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Handle",Vector3.new(0.34799999, 0.927999973, 0.34799999))
  552. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.938414574, -0.115570068, -0.00793266296, 0, 0.999999881, 0, 0, 0, -0.999999046, -0.999999046, 0, 0))
  553. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  554. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Toothpaste","Hitbox",Vector3.new(1.08780003, 9, 0.899399996))
  555. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0970962048, -5.57445526, 0.00290489197, 1, 0, 0, 0, 0.999999046, 0, 0, 0, 0.999999046))
  556. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.34799999, 0.34799999))
  557. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -1.68219757, -5.14984131e-005, 0.999999821, 0, -4.02306711e-007, 0, 0.999991417, 0, 3.57606126e-007, 0, 0.999991179))
  558. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(1.24815989, 0.867680013, 1.23192))
  559. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.232000008, 0.34799999))
  560. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -3.59598541, -1.71661377e-005, 1, 0, 0, 0, 0.999991417, 0, 0, 0, 0.999991417))
  561. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.782999933, 1.39431989, 0.778360009))
  562. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 7.42399979, 0.34799999))
  563. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -5.68367767, -3.24249268e-005, 0.999999821, 0, -5.36409459e-007, 0, 0.999991417, 0, 4.91710011e-007, 0, 0.999991179))
  564. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.870000005, 5.19216013, 0.22040002))
  565. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.34799999, 0.34799999))
  566. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -2.14612579, -7.05718994e-005, 0.999999821, 0, -4.47007636e-007, 0, 0.999991417, 0, 4.0230745e-007, 0, 0.999991179))
  567. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.91523993, 0.867680013, 0.907119989))
  568. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 7.42399979, 0.34799999))
  569. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.71661377e-005, -5.68369293, -6.91413879e-006, -1.19198532e-007, -0, -0.999991179, 0, 0.999991417, 0, 0.999999821, 0, -1.63901163e-007))
  570. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.870000005, 5.19216013, 0.22040002))
  571. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  572. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -0.521995544, 9.53674316e-006, 1, 1.7108473e-010, -2.23197063e-007, 1.71018547e-010, -0.999998093, 1.04308484e-007, -2.23197276e-007, -1.04308427e-007, -0.999998093))
  573. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  574. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.927999794, 0.34799999))
  575. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, 1.50800323, 0, 0.999999821, -2.96461249e-021, -4.91710807e-007, 0, 0.999991417, 0, 4.47011018e-007, 0, 0.999991179))
  576. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.305079967, 0.361919999, 0.591600001))
  577. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  578. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.83718109e-005, -0.754074097, -0.000329971313, 1, 1.87817525e-010, -8.59441116e-006, 1.89217239e-010, -0.999993324, 1.04302835e-007, -8.59442116e-006, -1.04302607e-007, -0.999993324))
  579. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  580. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  581. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -0.522018433, 0, 1, 0, 0, 0, 0.999996185, 0, 0, 0, 0.999996185))
  582. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  583. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799999, 7.42399979, 0.34799999))
  584. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.91413879e-006, -5.33583832, -1.71661377e-005, 1, 0, 0, 0, 0.999991417, 0, 0, 0, 0.999991417))
  585. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.870000005, 4.88244009, 0.870000005))
  586. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  587. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -0.75402832, 0, 1, 0, 0, 0, 0.999999046, 7.10543075e-015, 0, -7.10543075e-015, 0.999999046))
  588. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  589. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.34799999, 0.579999983, 0.34799999))
  590. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.83718109e-005, -1.10206604, -0.000329971313, 1, 1.87817525e-010, -8.59441116e-006, 1.89217336e-010, -0.999993801, 1.04302885e-007, -8.59442571e-006, -1.04302657e-007, -0.999993801))
  591. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  592. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.34799999, 0.579999983, 0.34799999))
  593. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -1.10198212, -1.71661377e-005, 1, 0, 0, 0, 0.999991417, 7.10537654e-015, 0, -7.10537654e-015, 0.999991417))
  594. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  595. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  596. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.91413879e-006, -0.637992859, 0, 1, 4.60644977e-013, -8.94141579e-008, 4.88280857e-013, -0.999998093, 1.04307915e-007, -8.94142431e-008, -1.04307858e-007, -0.999998093))
  597. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  598. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  599. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -0.638046265, 0, 1, 0, 0, 0, 0.999999046, 0, 0, 0, 0.999999046))
  600. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  601. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.579999983, 0.34799999))
  602. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.18641663, -0.249622345, -0.000322341919, 0.500003457, 0.866022587, -3.37136134e-006, 0.866023421, -0.50000298, -8.41949077e-006, -8.97717655e-006, 1.29009675e-006, -0.999999046))
  603. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  604. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799999, 0.34799999, 0.34799999))
  605. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -1.79817963, -4.19616699e-005, 0.999999821, 0, -1.78808278e-007, 0, 0.999991417, 0, 1.3410579e-007, 0, 0.999991179))
  606. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(1.15999997, 0.867680013, 1.15999997))
  607. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799999, 0.927999794, 0.34799999))
  608. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, 1.50806427, 2.0980835e-005, 1, 7.81442897e-011, -5.80920357e-007, -7.8144366e-011, 0.999999046, -1.0800461e-012, 5.80920926e-007, 1.08009142e-012, 0.999999046))
  609. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.361919999, 0.579999983))
  610. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799999, 0.927999794, 0.34799999))
  611. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.39097595e-006, -3.17259979, -1.90734863e-006, -0.999999821, 1.19231245e-007, 3.65482788e-006, -1.19235082e-007, -0.999991417, -7.90913816e-007, 3.61015532e-006, -7.90914498e-007, 0.999991179))
  612. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1.65067995, 0.579999983))
  613. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.231999978, 0.579999983, 0.200000003))
  614. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.174030304, -2.95802307, -0.000284194946, 1, 1.8752648e-010, -8.46019702e-006, 1.88912469e-010, -0.999994755, 1.04302373e-007, -8.46021976e-006, -1.04302146e-007, -0.999994755))
  615. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  616. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.231999978, 0.579999983, 0.200000003))
  617. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.173971176, -2.95800018, 0.000217437744, -1, -1.87007035e-010, 8.46098919e-006, 1.8662806e-010, -0.999994755, -1.04306039e-007, 8.46101102e-006, -1.04306267e-007, 0.999994755))
  618. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  619. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799999, 0.200000003, 0.34799999))
  620. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.83718109e-005, -1.45005798, -0.000329971313, 1, 1.87817525e-010, -8.59441116e-006, 1.89217517e-010, -0.999994755, 1.04302984e-007, -8.59443389e-006, -1.04302757e-007, -0.999994755))
  621. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  622. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799996, 0.579999983, 0.200000003))
  623. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.231966019, -2.37802124, -0.000297546387, 1, 1.87817525e-010, -8.37092921e-006, 1.89194216e-010, -0.999994755, 1.04303041e-007, -8.37095104e-006, -1.04302813e-007, -0.999994755))
  624. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  625. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.463999957, 0.579999983, 0.200000003))
  626. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.290027618, -1.7980423, -0.000324249268, 1, 1.87817525e-010, -8.72850342e-006, 1.89231505e-010, -0.999994755, 1.04302856e-007, -8.72852706e-006, -1.04302629e-007, -0.999994755))
  627. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  628. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.34799999, 0.34799999))
  629. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.15255737e-007, -3.53798676, -1.71661377e-005, 1, 0, 0, 0, 0.999991417, 0, 0, 0, 0.999991417))
  630. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.843319952, 1.90935993, 0.842159986))
  631. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(1.68780005, 0.200000003, 1.69939995))
  632. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0029027462, -0.974441528, 0.00290489197, 1, 0, 0, 0, 0.999999046, 0, 0, 0, 0.999999046))
  633. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.40999973, -0.0220399927, 0.964000046))
  634. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.34799999, 0.927999794, 0.34799999))
  635. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.39097595e-006, -3.17259979, -1.90734863e-006, -0.999999821, 1.19231245e-007, 3.65482788e-006, -1.19235082e-007, -0.999991417, -7.90913816e-007, 3.61015532e-006, -7.90914498e-007, 0.999991179))
  636. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.37816, 1.65067995, 0.58348))
  637. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.34799996, 0.579999983, 0.200000003))
  638. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.232032299, -2.37804413, -0.000301361084, 1, 1.87817525e-010, -8.32623846e-006, 1.89189539e-010, -0.999994755, 1.04303076e-007, -8.32626029e-006, -1.04302849e-007, -0.999994755))
  639. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  640. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.463999957, 0.579999983, 0.200000003))
  641. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.289971113, -1.79801941, 0.00030708313, -1, -1.87825297e-010, 8.29646706e-006, 1.87463448e-010, -0.999994755, -1.04311042e-007, 8.29648798e-006, -1.04311269e-007, 0.999994755))
  642. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  643. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.232000008, 0.200000003, 0.34799999))
  644. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.62643528, -0.951271057, -0.000335693359, 1, -3.96298265e-006, -8.49380376e-006, -3.9629922e-006, -0.999999046, -7.02569139e-007, -8.49380922e-006, 7.0260279e-007, -0.999999046))
  645. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  646. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.232000008, 0.347999901, 0.34799999))
  647. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626426697, -0.603294373, -0.00036239624, 1, -3.9629831e-006, -8.49380558e-006, -3.96299265e-006, -0.999999046, -7.02569196e-007, -8.49381104e-006, 7.02602847e-007, -0.999999046))
  648. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  649. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.812000036, 0.34799999))
  650. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626428843, -0.0233230591, -0.000335693359, 1, -3.9633087e-006, -8.49454591e-006, -3.96331825e-006, -0.999999046, -7.02571128e-007, -8.49455137e-006, 7.0260478e-007, -0.999999046))
  651. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  652. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.232000008, 0.200000003, 0.34799999))
  653. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626432657, 0.904624939, -0.0003490448, 1, -3.96292535e-006, -8.4936737e-006, -3.9629349e-006, -0.999999046, -7.02568741e-007, -8.49367916e-006, 7.02602392e-007, -0.999999046))
  654. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  655. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.232000008, 0.232000008))
  656. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626425028, -1.00920105, -0.000328063965, 1, -3.94804647e-006, -8.76134891e-006, -3.94805465e-006, -0.999999046, -4.96231166e-007, -8.76135528e-006, 4.96265784e-007, -0.999999046))
  657. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  658. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.200000003, 0.34799999))
  659. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626425743, -0.835296631, -0.000347137451, 1, -3.9628535e-006, -8.49350818e-006, -3.96286305e-006, -0.999999046, -7.025684e-007, -8.49351363e-006, 7.02602051e-007, -0.999999046))
  660. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  661. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.232000008, 0.347999901, 0.34799999))
  662. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626431227, 0.556632996, -0.000364303589, 1, -3.9629831e-006, -8.49380649e-006, -3.96299265e-006, -0.999999046, -7.02569196e-007, -8.49381195e-006, 7.02602847e-007, -0.999999046))
  663. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  664. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.200000003, 0.34799999))
  665. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.626422167, 0.788658142, -0.0003490448, 1, -3.96295445e-006, -8.49373919e-006, -3.962964e-006, -0.999999046, -7.02568968e-007, -8.49374464e-006, 7.0260262e-007, -0.999999046))
  666. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  667. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.579999983, 0.231999993))
  668. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000308990479, -1.7980423, 0.637979746, -6.71722273e-006, -6.84618513e-008, -0.999994755, -4.47188995e-006, -0.999994755, 6.84921204e-008, -1, 4.47186721e-006, 6.71721045e-006))
  669. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  670. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.200000003, 0.463999987))
  671. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000324249268, 1.45005798, 0.290027618, -7.92391802e-006, 4.49062575e-012, -0.999994755, -1.88321053e-010, 0.999994755, 4.26325251e-012, 1, 1.87817512e-010, -7.92389801e-006))
  672. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 1))
  673. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.200000003, 0.463999987))
  674. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.24249268e-005, 1.45010376, 0.290006161, -8.94506798e-008, -2.06058938e-013, 0.999991179, 1.5543988e-014, 0.999991417, 2.06058884e-013, -0.999999821, 1.55438796e-014, -4.47463009e-008))
  675. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 1))
  676. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  677. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000303268433, -2.14605713, 0.463969707, -1.46147377e-005, 2.92297784e-007, -0.999994755, 5.21027971e-007, -0.999994755, -2.92305174e-007, -1, -5.21028994e-007, 1.4614684e-005))
  678. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983))
  679. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.34799999, 0.34799999))
  680. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000150680542, -3.42198181, 0.231970549, -1.48875824e-006, -6.99275446e-008, -0.999994755, 3.68025803e-006, -0.999994755, 6.99223008e-008, -1, -3.68023825e-006, 1.48877371e-006))
  681. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  682. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.34799999, 0.34799999))
  683. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000110626221, -3.42199707, 0.2320292, -3.17398462e-006, 2.9802635e-008, 0.999994755, 3.96858286e-006, -0.999994755, 2.98154603e-008, 1, 3.96856194e-006, 3.1739462e-006))
  684. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  685. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.579999983, 0.200000003))
  686. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000276565552, -2.95803833, 0.347976208, -8.62883098e-008, 2.9804923e-008, -0.999994755, -3.96778796e-006, -0.999994755, -2.98043332e-008, -1, 3.96776795e-006, 8.63109619e-008))
  687. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  688. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.579999983, 0.200000003))
  689. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000217437744, -2.95804596, 0.348043203, 5.35680556e-007, 2.97995939e-008, 0.999994755, 3.96787027e-006, -0.999994755, 2.97976968e-008, 1, 3.96784935e-006, -5.35700053e-007))
  690. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983))
  691. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  692. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000305175781, -2.14606476, 0.464031935, 1.08596987e-005, -3.78481161e-007, 0.999999046, 7.11488326e-007, -0.999999046, -3.78488892e-007, 1, 7.11491737e-007, -1.08596887e-005))
  693. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983))
  694. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Wedge",Vector3.new(0.200000003, 0.579999983, 0.232000008))
  695. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00023651123, -1.79804993, 0.638024807, 5.36701737e-006, 1.93710392e-007, 0.999994755, -4.97899055e-006, -0.999994755, 1.9373735e-007, 1, -4.97896599e-006, -5.36701009e-006))
  696. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  697.  
  698. function attackone()
  699. attack=true
  700. for i=0,1,0.1 do
  701. swait()
  702. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  703. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  704. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(10)), 0.3)
  705. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-20)), 0.3)
  706. RH.C0=clerp(RH.C0,cf(1,-1,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  707. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*angles(math.rad(0),math.rad(-90),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  708. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(50),math.rad(-10),math.rad(0)),.3)
  709. end
  710. so("http://roblox.com/asset/?id=189505639",Hitbox,1,1.1)
  711. local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,0,"Target",600,1,2) end)
  712. for i=0,1,0.1 do
  713. swait()
  714. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  715. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  716. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(10)), 0.3)
  717. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  718. RH.C0=clerp(RH.C0,cf(1,-1,-0.2)*angles(math.rad(10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  719. LH.C0=clerp(LH.C0,cf(-1,-1,-0.2)*angles(math.rad(0),math.rad(-90),math.rad(-15))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  720. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(10),math.rad(0)),.3)
  721. Torso.Velocity=Head.CFrame.lookVector*50
  722. end
  723. attack=false
  724. con:disconnect()
  725. end
  726.  
  727. function attacktwo()
  728. attack=true
  729. for i=0,1.5,0.2 do
  730. swait()
  731. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  732. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  733. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  734. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-20)), 0.3)
  735. RH.C0=clerp(RH.C0,cf(1,-1,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  736. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*angles(math.rad(0),math.rad(-90),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  737. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.3)
  738. end
  739. so("http://roblox.com/asset/?id=189505649",Hitbox,1,1)
  740. local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(10,20),"Normal",RootPart,.2,1) end)
  741. for i=0,1,0.1 do
  742. swait()
  743. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  744. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  745. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(0), math.rad(10)), 0.3)
  746. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  747. RH.C0=clerp(RH.C0,cf(1,-1,-0.2)*angles(math.rad(10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  748. LH.C0=clerp(LH.C0,cf(-1,-1,-0.2)*angles(math.rad(0),math.rad(-90),math.rad(-15))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  749. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(10),math.rad(0)),.3)
  750. Torso.Velocity=Head.CFrame.lookVector*90
  751. end
  752. attack=false
  753. con:disconnect()
  754. end
  755.  
  756. mouse.Button1Down:connect(function()
  757. if attack==false then
  758. if attacktype==1 then
  759. attack=true
  760. attacktype=2
  761. attackone()
  762. elseif attacktype==2 then
  763. attack=true
  764. attacktype=1
  765. attacktwo()
  766. --[[ elseif attacktype==3 then
  767. attack=true
  768. attacktype=1
  769. attacktwo()]]--
  770. end
  771. end
  772. end)
  773.  
  774. mouse.KeyDown:connect(function(k)
  775. k=k:lower()
  776.  
  777. end)
  778.  
  779.  
  780. local sine = 0
  781. local change = 1
  782. local val = 0
  783.  
  784. while true do
  785. swait()
  786. sine = sine + change
  787. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  788. local velderp=RootPart.Velocity.y
  789. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  790. if equipped==true or equipped==false then
  791. if attack==false then
  792. idle=idle+1
  793. else
  794. idle=0
  795. end
  796. if idle>=500 then
  797. if attack==false then
  798. --Sheath()
  799. end
  800. end
  801. if RootPart.Velocity.y > 1 and hitfloor==nil then
  802. Anim="Jump"
  803. if attack==false then
  804. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  805. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  806. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3)
  807. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.3)
  808. RH.C0=clerp(RH.C0,cf(1,-1,-0.3)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  809. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  810. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(-10),math.rad(0)),.3)
  811. end
  812. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  813. Anim="Fall"
  814. if attack==false then
  815. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  816. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  817. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  818. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.3)
  819. RH.C0=clerp(RH.C0,cf(1,-1,-0.3)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  820. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  821. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(-10),math.rad(0)),.3)
  822. end
  823. elseif torvel<1 and hitfloor~=nil then
  824. Anim="Idle"
  825. if attack==false then
  826. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  827. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  828. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(10)), 0.3)
  829. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  830. RH.C0=clerp(RH.C0,cf(1,-1,-0.3)*angles(math.rad(20),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  831. LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  832. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(30),math.rad(-10),math.rad(0)),.3)
  833. end
  834. elseif torvel>2 and hitfloor~=nil then
  835. Anim="Walk"
  836. if attack==false then
  837. change=3
  838. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  839. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  840. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(10)), 0.3)
  841. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30*math.cos(sine/10)), math.rad(0), math.rad(-20)), 0.3)
  842. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  843. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  844. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(25),math.rad(-10),math.rad(0)),.3)
  845. end
  846. end
  847. end
  848. if #Effects>0 then
  849. --table.insert(Effects,{prt,"Block1",delay})
  850. for e=1,#Effects do
  851. if Effects[e]~=nil then
  852. --for j=1,#Effects[e] do
  853. local Thing=Effects[e]
  854. if Thing~=nil then
  855. local Part=Thing[1]
  856. local Mode=Thing[2]
  857. local Delay=Thing[3]
  858. local IncX=Thing[4]
  859. local IncY=Thing[5]
  860. local IncZ=Thing[6]
  861. if Thing[1].Transparency<=1 then
  862. if Thing[2]=="Block1" then
  863. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  864. Mesh=Thing[1].Mesh
  865. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  866. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  867. elseif Thing[2]=="Cylinder" then
  868. Mesh=Thing[1].Mesh
  869. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  870. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  871. elseif Thing[2]=="Blood" then
  872. Mesh=Thing[7]
  873. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  874. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  875. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  876. elseif Thing[2]=="Elec" then
  877. Mesh=Thing[1].Mesh
  878. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  879. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  880. elseif Thing[2]=="Disappear" then
  881. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  882. end
  883. else
  884. Part.Parent=nil
  885. table.remove(Effects,e)
  886. end
  887. end
  888. --end
  889. end
  890. end
  891. end
  892. end
Add Comment
Please, Sign In to add comment