Advertisement
Dark_EccentricYT

Untitled

Dec 8th, 2016
1,415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.43 KB | None | 0 0
  1. ----Reskinned----
  2. ---By KAITO_KIRO----
  3.  
  4. Player=game:GetService("Players").LocalPlayer
  5. Character=Player.Character
  6. PlayerGui=Player.PlayerGui
  7. Backpack=Player.Backpack
  8. Torso=Character.Torso
  9. Head=Character.Head
  10. Humanoid=Character.Humanoid
  11. m=Instance.new('Model',Character)
  12. LeftArm=Character["Left Arm"]
  13. LeftLeg=Character["Left Leg"]
  14. RightArm=Character["Right Arm"]
  15. RightLeg=Character["Right Leg"]
  16. LS=Torso["Left Shoulder"]
  17. LH=Torso["Left Hip"]
  18. RS=Torso["Right Shoulder"]
  19. RH=Torso["Right Hip"]
  20. Face = Head.face
  21. Neck=Torso.Neck
  22. it=Instance.new
  23. attacktype=1
  24. vt=Vector3.new
  25. cf=CFrame.new
  26. euler=CFrame.fromEulerAnglesXYZ
  27. angles=CFrame.Angles
  28. cloaked=false
  29. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  30. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  31. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  32. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  33. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  34. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  35. RootPart=Character.HumanoidRootPart
  36. RootJoint=RootPart.RootJoint
  37. RootCF=euler(-1.57,0,3.14)
  38. attack = false
  39. attackdebounce = false
  40. deb=false
  41. equipped=true
  42. hand=false
  43. MMouse=nil
  44. combo=0
  45. mana=0
  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.  
  55. mouse=Player:GetMouse()
  56. --save shoulders
  57. RSH, LSH=nil, nil
  58. --welds
  59. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  60. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  61. LH=Torso["Left Hip"]
  62. RH=Torso["Right Hip"]
  63. TorsoColor=Torso.BrickColor
  64. function NoOutline(Part)
  65. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  66. end
  67. player=Player
  68. ch=Character
  69. RSH=ch.Torso["Right Shoulder"]
  70. LSH=ch.Torso["Left Shoulder"]
  71. --
  72. RSH.Parent=nil
  73. LSH.Parent=nil
  74. --
  75. RW.Name="Right Shoulder"
  76. RW.Part0=ch.Torso
  77. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  78. RW.C1=cf(0, 0.5, 0)
  79. RW.Part1=ch["Right Arm"]
  80. RW.Parent=ch.Torso
  81. --
  82. LW.Name="Left Shoulder"
  83. LW.Part0=ch.Torso
  84. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  85. LW.C1=cf(0, 0.5, 0)
  86. LW.Part1=ch["Left Arm"]
  87. LW.Parent=ch.Torso
  88.  
  89. local Stats=Instance.new("BoolValue")
  90. Stats.Name="Stats"
  91. Stats.Parent=Character
  92. local Atk=Instance.new("NumberValue")
  93. Atk.Name="Damage"
  94. Atk.Parent=Stats
  95. Atk.Value=1
  96. local Def=Instance.new("NumberValue")
  97. Def.Name="Defense"
  98. Def.Parent=Stats
  99. Def.Value=1
  100. local Speed=Instance.new("NumberValue")
  101. Speed.Name="Speed"
  102. Speed.Parent=Stats
  103. Speed.Value=1
  104. local Mvmt=Instance.new("NumberValue")
  105. Mvmt.Name="Movement"
  106. Mvmt.Parent=Stats
  107. Mvmt.Value=1
  108.  
  109. local donum=0
  110.  
  111.  
  112. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  113. local fp=it("Part")
  114. fp.formFactor=formfactor
  115. fp.Parent=parent
  116. fp.Reflectance=reflectance
  117. fp.Transparency=transparency
  118. fp.CanCollide=false
  119. fp.Locked=true
  120. fp.BrickColor=brickcolor
  121. fp.Name=name
  122. fp.Size=size
  123. fp.Position=Torso.Position
  124. NoOutline(fp)
  125. fp.Material="SmoothPlastic"
  126. fp:BreakJoints()
  127. return fp
  128. end
  129.  
  130. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  131. local mesh=it(Mesh)
  132. mesh.Parent=part
  133. if Mesh=="SpecialMesh" then
  134. mesh.MeshType=meshtype
  135. if meshid~="nil" then
  136. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  137. end
  138. end
  139. mesh.Offset=offset
  140. mesh.Scale=scale
  141. return mesh
  142. end
  143.  
  144. function weld(parent,part0,part1,c0)
  145. local weld=it("Weld")
  146. weld.Parent=parent
  147. weld.Part0=part0
  148. weld.Part1=part1
  149. weld.C0=c0
  150. return weld
  151. end
  152.  
  153. local Color1=Torso.BrickColor
  154.  
  155. local bodvel=Instance.new("BodyVelocity")
  156. local bg=Instance.new("BodyGyro")
  157.  
  158. function swait(num)
  159. if num==0 or num==nil then
  160. game:service'RunService'.Stepped:wait(0)
  161. else
  162. for i=0,num do
  163. game:service'RunService'.Stepped:wait(0)
  164. end
  165. end
  166. end
  167.  
  168.  
  169. so = function(id,par,vol,pit)
  170. coroutine.resume(coroutine.create(function()
  171. local sou = Instance.new("Sound",par or workspace)
  172. sou.Volume=vol
  173. sou.Pitch=pit or 1
  174. sou.SoundId=id
  175. swait()
  176. sou:play()
  177. game:GetService("Debris"):AddItem(sou,6)
  178. end))
  179. end
  180.  
  181. function clerp(a,b,t)
  182. local qa = {QuaternionFromCFrame(a)}
  183. local qb = {QuaternionFromCFrame(b)}
  184. local ax, ay, az = a.x, a.y, a.z
  185. local bx, by, bz = b.x, b.y, b.z
  186. local _t = 1-t
  187. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  188. end
  189.  
  190. function QuaternionFromCFrame(cf)
  191. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  192. local trace = m00 + m11 + m22
  193. if trace > 0 then
  194. local s = math.sqrt(1 + trace)
  195. local recip = 0.5/s
  196. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  197. else
  198. local i = 0
  199. if m11 > m00 then
  200. i = 1
  201. end
  202. if m22 > (i == 0 and m00 or m11) then
  203. i = 2
  204. end
  205. if i == 0 then
  206. local s = math.sqrt(m00-m11-m22+1)
  207. local recip = 0.5/s
  208. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  209. elseif i == 1 then
  210. local s = math.sqrt(m11-m22-m00+1)
  211. local recip = 0.5/s
  212. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  213. elseif i == 2 then
  214. local s = math.sqrt(m22-m00-m11+1)
  215. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  216. end
  217. end
  218. end
  219.  
  220. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  221. local xs, ys, zs = x + x, y + y, z + z
  222. local wx, wy, wz = w*xs, w*ys, w*zs
  223. local xx = x*xs
  224. local xy = x*ys
  225. local xz = x*zs
  226. local yy = y*ys
  227. local yz = y*zs
  228. local zz = z*zs
  229. 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))
  230. end
  231.  
  232. function QuaternionSlerp(a, b, t)
  233. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  234. local startInterp, finishInterp;
  235. if cosTheta >= 0.0001 then
  236. if (1 - cosTheta) > 0.0001 then
  237. local theta = math.acos(cosTheta)
  238. local invSinTheta = 1/math.sin(theta)
  239. startInterp = math.sin((1-t)*theta)*invSinTheta
  240. finishInterp = math.sin(t*theta)*invSinTheta
  241. else
  242. startInterp = 1-t
  243. finishInterp = t
  244. end
  245. else
  246. if (1+cosTheta) > 0.0001 then
  247. local theta = math.acos(-cosTheta)
  248. local invSinTheta = 1/math.sin(theta)
  249. startInterp = math.sin((t-1)*theta)*invSinTheta
  250. finishInterp = math.sin(t*theta)*invSinTheta
  251. else
  252. startInterp = t-1
  253. finishInterp = t
  254. end
  255. end
  256. 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
  257. end
  258.  
  259. local function CFrameFromTopBack(at, top, back)
  260. local right = top:Cross(back)
  261. return CFrame.new(at.x, at.y, at.z,
  262. right.x, top.x, back.x,
  263. right.y, top.y, back.y,
  264. right.z, top.z, back.z)
  265. end
  266.  
  267. function Triangle(a, b, c)
  268. local edg1 = (c-a):Dot((b-a).unit)
  269. local edg2 = (a-b):Dot((c-b).unit)
  270. local edg3 = (b-c):Dot((a-c).unit)
  271. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  272. a, b, c = a, b, c
  273. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  274. a, b, c = b, c, a
  275. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  276. a, b, c = c, a, b
  277. else
  278. assert(false, "unreachable")
  279. end
  280.  
  281. local len1 = (c-a):Dot((b-a).unit)
  282. local len2 = (b-a).magnitude - len1
  283. local width = (a + (b-a).unit*len1 - c).magnitude
  284.  
  285. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  286.  
  287. local list = {}
  288.  
  289. if len1 > 0.01 then
  290. local w1 = Instance.new('WedgePart', m)
  291. game:GetService("Debris"):AddItem(w1,5)
  292. w1.Material = "SmoothPlastic"
  293. w1.FormFactor = 'Custom'
  294. w1.BrickColor = BrickColor.new("Toothpaste")
  295. w1.Transparency = 0
  296. w1.Reflectance = 0
  297. w1.Material = "SmoothPlastic"
  298. w1.CanCollide = false
  299. local l1 = Instance.new("PointLight",w1)
  300. l1.Color = Color3.new(170,0,0)
  301. NoOutline(w1)
  302. local sz = Vector3.new(0.2, width, len1)
  303. w1.Size = sz
  304. local sp = Instance.new("SpecialMesh",w1)
  305. sp.MeshType = "Wedge"
  306. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  307. w1:BreakJoints()
  308. w1.Anchored = true
  309. w1.Parent = workspace
  310. w1.Transparency = 0.7
  311. table.insert(Effects,{w1,"Disappear",.01})
  312. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  313. table.insert(list,w1)
  314. end
  315.  
  316. if len2 > 0.01 then
  317. local w2 = Instance.new('WedgePart', m)
  318. game:GetService("Debris"):AddItem(w2,5)
  319. w2.Material = "SmoothPlastic"
  320. w2.FormFactor = 'Custom'
  321. w2.BrickColor = BrickColor.new("Toothpaste")
  322. w2.Transparency = 0
  323. w2.Reflectance = 0
  324. w2.Material = "SmoothPlastic"
  325. w2.CanCollide = false
  326. local l2 = Instance.new("PointLight",w2)
  327. l2.Color = Color3.new(170,0,0)
  328. NoOutline(w2)
  329. local sz = Vector3.new(0.2, width, len2)
  330. w2.Size = sz
  331. local sp = Instance.new("SpecialMesh",w2)
  332. sp.MeshType = "Wedge"
  333. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  334. w2:BreakJoints()
  335. w2.Anchored = true
  336. w2.Parent = workspace
  337. w2.Transparency = 0.7
  338. table.insert(Effects,{w2,"Disappear",.01})
  339. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  340. table.insert(list,w2)
  341. end
  342. return unpack(list)
  343. end
  344.  
  345.  
  346. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  347. if hit.Parent==nil then
  348. return
  349. end
  350. h=hit.Parent:FindFirstChild("Humanoid")
  351. for _,v in pairs(hit.Parent:children()) do
  352. if v:IsA("Humanoid") then
  353. h=v
  354. end
  355. end
  356. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  357. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  358. end
  359. if hit.Parent.className=="Hat" then
  360. hit=hit.Parent.Parent:findFirstChild("Head")
  361. end
  362. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  363. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  364. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  365. return
  366. end]]
  367. -- hs(hit,1.2)
  368. c=Instance.new("ObjectValue")
  369. c.Name="creator"
  370. c.Value=game:service("Players").LocalPlayer
  371. c.Parent=h
  372. game:GetService("Debris"):AddItem(c,.5)
  373. Damage=math.random(minim,maxim)
  374. -- h:TakeDamage(Damage)
  375. blocked=false
  376. block=hit.Parent:findFirstChild("Block")
  377. if block~=nil then
  378. print(block.className)
  379. if block.className=="NumberValue" then
  380. if block.Value>0 then
  381. blocked=true
  382. if decreaseblock==nil then
  383. block.Value=block.Value-1
  384. end
  385. end
  386. end
  387. if block.className=="IntValue" then
  388. if block.Value>0 then
  389. blocked=true
  390. if decreaseblock~=nil then
  391. block.Value=block.Value-1
  392. end
  393. end
  394. end
  395. end
  396. if blocked==false then
  397. -- h:TakeDamage(Damage)
  398. h.Health=h.Health-Damage
  399. showDamage(hit.Parent,Damage,.5,BrickColor.new("Toothpaste"))
  400. else
  401. h.Health=h.Health-(Damage/2)
  402. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  403. end
  404. if Type=="Knockdown" then
  405. hum=hit.Parent.Humanoid
  406. hum.PlatformStand=true
  407. coroutine.resume(coroutine.create(function(HHumanoid)
  408. swait(1)
  409. HHumanoid.PlatformStand=false
  410. end),hum)
  411. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  412. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  413. local bodvol=Instance.new("BodyVelocity")
  414. bodvol.velocity=angle*knockback
  415. bodvol.P=5000
  416. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  417. bodvol.Parent=hit
  418. rl=Instance.new("BodyAngularVelocity")
  419. rl.P=3000
  420. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  421. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  422. rl.Parent=hit
  423. game:GetService("Debris"):AddItem(bodvol,.5)
  424. game:GetService("Debris"):AddItem(rl,.5)
  425. elseif Type=="Normal" then
  426. vp=Instance.new("BodyVelocity")
  427. vp.P=500
  428. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  429. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  430. if KnockbackType==1 then
  431. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  432. elseif KnockbackType==2 then
  433. vp.velocity=Property.CFrame.lookVector*knockback
  434. end
  435. if knockback>0 then
  436. vp.Parent=hit.Parent.Torso
  437. end
  438. game:GetService("Debris"):AddItem(vp,.5)
  439. elseif Type=="Up" then
  440. local bodyVelocity=Instance.new("BodyVelocity")
  441. bodyVelocity.velocity=vt(0,60,0)
  442. bodyVelocity.P=5000
  443. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  444. bodyVelocity.Parent=hit
  445. game:GetService("Debris"):AddItem(bodyVelocity,1)
  446. rl=Instance.new("BodyAngularVelocity")
  447. rl.P=3000
  448. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  449. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  450. rl.Parent=hit
  451. game:GetService("Debris"):AddItem(rl,.5)
  452. elseif Type=="Snare" then
  453. bp=Instance.new("BodyPosition")
  454. bp.P=2000
  455. bp.D=100
  456. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  457. bp.position=hit.Parent.Torso.Position
  458. bp.Parent=hit.Parent.Torso
  459. game:GetService("Debris"):AddItem(bp,1)
  460. elseif Type=="Target" then
  461. if Targetting==false then
  462. ZTarget=hit.Parent.Torso
  463. coroutine.resume(coroutine.create(function(Part)
  464. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  465. swait(5)
  466. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  467. end),ZTarget)
  468. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  469. targetgui=Instance.new("BillboardGui")
  470. targetgui.Parent=ZTarget
  471. targetgui.Size=UDim2.new(10,100,10,100)
  472. targ=Instance.new("ImageLabel")
  473. targ.Parent=targetgui
  474. targ.BackgroundTransparency=1
  475. targ.Image="rbxassetid://4834067"
  476. targ.Size=UDim2.new(1,0,1,0)
  477. cam.CameraType="Scriptable"
  478. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  479. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  480. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  481. Targetting=true
  482. RocketTarget=ZTarget
  483. for i=1,Property do
  484. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  485. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  486. swait()
  487. end
  488. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  489. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  490. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  491. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  492. end
  493. Targetting=false
  494. RocketTarget=nil
  495. targetgui.Parent=nil
  496. cam.CameraType="Custom"
  497. end
  498. end
  499. debounce=Instance.new("BoolValue")
  500. debounce.Name="DebounceHit"
  501. debounce.Parent=hit.Parent
  502. debounce.Value=true
  503. game:GetService("Debris"):AddItem(debounce,Delay)
  504. c=Instance.new("ObjectValue")
  505. c.Name="creator"
  506. c.Value=Player
  507. c.Parent=h
  508. game:GetService("Debris"):AddItem(c,.5)
  509. CRIT=false
  510. hitDeb=true
  511. AttackPos=6
  512. end
  513. end
  514.  
  515. showDamage=function(Char,Dealt,du,Color)
  516. m=Instance.new("Model")
  517. m.Name=tostring(Dealt)
  518. h=Instance.new("Humanoid")
  519. h.Health=0
  520. h.MaxHealth=0
  521. h.Parent=m
  522. c=Instance.new("Part")
  523. c.Transparency=0
  524. c.BrickColor=Color
  525. c.Name="Head"
  526. c.TopSurface=0
  527. c.BottomSurface=0
  528. c.formFactor="Plate"
  529. c.Size=Vector3.new(1,.4,1)
  530. ms=Instance.new("CylinderMesh")
  531. ms.Scale=Vector3.new(.8,.8,.8)
  532. if CRIT==true then
  533. ms.Scale=Vector3.new(1,1.25,1)
  534. end
  535. ms.Parent=c
  536. c.Reflectance=0
  537. Instance.new("BodyGyro").Parent=c
  538. c.Parent=m
  539. if Char:findFirstChild("Head")~=nil then
  540. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  541. elseif Char.Parent:findFirstChild("Head")~=nil then
  542. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  543. end
  544. f=Instance.new("BodyPosition")
  545. f.P=2000
  546. f.D=100
  547. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  548. f.position=c.Position+Vector3.new(0,3,0)
  549. f.Parent=c
  550. game:GetService("Debris"):AddItem(m,.5+du)
  551. c.CanCollide=false
  552. m.Parent=workspace
  553. c.CanCollide=false
  554. end
  555.  
  556. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  557. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  558. end
  559.  
  560. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  561. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  562. prt.Anchored=true
  563. prt.CFrame=cframe
  564. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  565. --http://www.roblox.com/asset/?id=4770560
  566. game:GetService("Debris"):AddItem(prt,2)
  567. CF=prt.CFrame
  568. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  569. for i=0,1,0.2 do
  570. wait()
  571. Part.CFrame=CF*cf(0,0,-0.4)
  572. end
  573. for i=0,1,delay do
  574. wait()
  575. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  576. Mesh.Scale=Mesh.Scale
  577. end
  578. for i=0,1,0.1 do
  579. wait()
  580. Part.Transparency=i
  581. end
  582. Part.Parent=nil
  583. end),prt,msh,CF)
  584. end
  585.  
  586. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  587. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  588. prt.Anchored=true
  589. prt.CFrame=cframe
  590. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  591. game:GetService("Debris"):AddItem(prt,5)
  592. coroutine.resume(coroutine.create(function(Part,Mesh)
  593. for i=0,1,delay do
  594. wait()
  595. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  596. Part.Transparency=i
  597. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  598. end
  599. Part.Parent=nil
  600. end),prt,msh)
  601. end
  602.  
  603. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  604. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  605. prt.Anchored=false
  606. prt.CFrame=cframe
  607. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  608. local wld=weld(prt,prt,Parent,cframe)
  609. game:GetService("Debris"):AddItem(prt,5)
  610. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  611. for i=0,1,delay do
  612. wait()
  613. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  614. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  615. Part.Transparency=i
  616. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  617. end
  618. Part.Parent=nil
  619. end),prt,msh,wld)
  620. end
  621.  
  622. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  623. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  624. prt.Anchored=false
  625. prt.CFrame=cframe
  626. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  627. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  628. game:GetService("Debris"):AddItem(prt,5)
  629. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  630. for i=0,1,delay do
  631. wait()
  632. Weld.C0=euler(i*20,0,0)
  633. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  634. Part.Transparency=i
  635. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  636. end
  637. Part.Parent=nil
  638. end),prt,msh,wld)
  639. end
  640.  
  641. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  642. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  643. prt.Anchored=true
  644. prt.CFrame=cframe
  645. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  646. game:GetService("Debris"):AddItem(prt,2)
  647. coroutine.resume(coroutine.create(function(Part,Mesh)
  648. for i=0,1,delay do
  649. wait()
  650. Part.CFrame=Part.CFrame
  651. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  652. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  653. prt2.Anchored=true
  654. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  655. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  656. game:GetService("Debris"):AddItem(prt2,2)
  657. coroutine.resume(coroutine.create(function(Part,Mesh)
  658. for i=0,1,0.1 do
  659. wait()
  660. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  661. end
  662. Part.Parent=nil
  663. end),prt2,msh2)
  664. end
  665. for i=0,1,delay*2 do
  666. wait()
  667. Part.CFrame=Part.CFrame
  668. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  669. end
  670. Part.Parent=nil
  671. end),prt,msh)
  672. end
  673.  
  674. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  675. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  676. prt.Anchored=true
  677. prt.CFrame=cframe
  678. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  679. game:GetService("Debris"):AddItem(prt,2)
  680. coroutine.resume(coroutine.create(function(Part,Mesh)
  681. for i=0,1,delay do
  682. wait()
  683. Part.CFrame=Part.CFrame
  684. Part.Transparency=i
  685. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  686. end
  687. Part.Parent=nil
  688. end),prt,msh)
  689. end
  690.  
  691. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  692. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  693. prt.Anchored=true
  694. prt.CFrame=cframe*euler(x2,y2,z2)
  695. --"http://www.roblox.com/asset/?id=168892465"
  696. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  697. game:GetService("Debris"):AddItem(prt,2)
  698. coroutine.resume(coroutine.create(function(Part,Mesh)
  699. for i=0,1,0.03 do
  700. wait()
  701. Part.CFrame=Part.CFrame
  702. Part.Transparency=i
  703. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  704. end
  705. Part.Parent=nil
  706. end),prt,msh)
  707. end
  708.  
  709. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  710. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  711. prt.Anchored=true
  712. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  713. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  714. game:GetService("Debris"):AddItem(prt,2)
  715. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  716. CF=Part.CFrame
  717. Numbb=0
  718. randnumb=math.random()/10
  719. rand1=math.random()/10
  720. for i=0,1,rand1 do
  721. wait()
  722. CF=CF*cf(0,math.random()/2,0)
  723. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  724. Part.CFrame=CF*euler(Numbb,0,0)
  725. Part.Transparency=i
  726. Numbb=Numbb+randnumb
  727. end
  728. Part.Parent=nil
  729. end),prt,CF,Numbb,randnumb)
  730. end
  731.  
  732. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  733. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  734. prt.Anchored=true
  735. prt.CFrame=cframe
  736. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  737. game:GetService("Debris"):AddItem(prt,5)
  738. coroutine.resume(coroutine.create(function(Part,Mesh)
  739. for i=0,1,delay do
  740. wait()
  741. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  742. Part.Transparency=i
  743. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  744. end
  745. Part.Parent=nil
  746. end),prt,msh)
  747. end
  748.  
  749. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  750. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  751. prt.Anchored=true
  752. prt.CFrame=cframe
  753. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  754. game:GetService("Debris"):AddItem(prt,2)
  755. coroutine.resume(coroutine.create(function(Part,Mesh)
  756. for i=0,1,delay do
  757. wait()
  758. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  759. Part.Transparency=i
  760. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  761. end
  762. Part.Parent=nil
  763. end),prt,msh)
  764. end
  765.  
  766. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  767. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  768. prt.Anchored=true
  769. prt.CFrame=cframe*cf(x,y,z)
  770. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  771. game:GetService("Debris"):AddItem(prt,5)
  772. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  773. local num=math.random()
  774. local num2=math.random(-3,2)+math.random()
  775. local numm=0
  776. for i=0,1,delay*2 do
  777. swait()
  778. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  779. Part.Transparency=i
  780. numm=numm+0.01
  781. end
  782. Part.Parent=nil
  783. Mesh.Parent=nil
  784. end),prt,msh,x,y,z)
  785. end
  786.  
  787. function dmgstart(dmg,what)
  788. hitcon = what.Touched:connect(function(hit)
  789. local hum = hit.Parent:FindFirstChild("Humanoid")
  790. if hum and not hum:IsDescendantOf(Character) then
  791. hum:TakeDamage(dmg)
  792. end
  793. end)
  794. end
  795.  
  796. function dmgstop()
  797. hitcon:disconnect()
  798. end
  799.  
  800. function Cloak()
  801. Face.Parent=nil
  802. cloaked=true
  803. for _,v in pairs(Torso.Parent:children()) do
  804. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  805. coroutine.resume(coroutine.create(function()
  806. for i=0,1,0.2 do
  807. wait()
  808. v.Transparency=i
  809. end
  810. v.Transparency=1
  811. end))
  812. end
  813. if v.className=="Hat" then
  814. hatp=v.Handle
  815. coroutine.resume(coroutine.create(function(derp)
  816. for i=0,1,0.2 do
  817. wait()
  818. derp.Transparency=i
  819. end
  820. derp.Transparency=1
  821. end),hatp)
  822. end
  823. end
  824. for _,v in pairs(m:children()) do
  825. if v.className=="Part" then
  826. coroutine.resume(coroutine.create(function()
  827. for i=0,1,0.2 do
  828. wait()
  829. v.Transparency=i
  830. end
  831. v.Transparency=1
  832. end))
  833. end
  834. end
  835. end
  836.  
  837. function UnCloak()
  838. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  839. Face.Parent=Head
  840. cloaked=false
  841. for _,v in pairs(Torso.Parent:children()) do
  842. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  843. coroutine.resume(coroutine.create(function()
  844. for i=0,1,0.1 do
  845. wait()
  846. v.Transparency=v.Transparency-0.1
  847. end
  848. v.Transparency=0
  849. end))
  850. end
  851. if v.className=="Hat" then
  852. hatp=v.Handle
  853. coroutine.resume(coroutine.create(function(derp)
  854. for i=0,1,0.1 do
  855. wait()
  856. derp.Transparency=derp.Transparency-0.1
  857. end
  858. derp.Transparency=0
  859. end),hatp)
  860. end
  861. end
  862. for _,v in pairs(m:children()) do
  863. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  864. coroutine.resume(coroutine.create(function()
  865. for i=0,1,0.1 do
  866. wait()
  867. v.Transparency=v.Transparency-0.1
  868. end
  869. v.Transparency=0
  870. end))
  871. v.Transparency=0
  872. end
  873. end
  874. end
  875.  
  876. Player=game:GetService('Players').LocalPlayer
  877. Character=Player.Character
  878. Mouse=Player:GetMouse()
  879. m=Instance.new('Model',Character)
  880.  
  881.  
  882. local function weldBetween(a, b)
  883. local weldd = Instance.new("ManualWeld")
  884. weldd.Part0 = a
  885. weldd.Part1 = b
  886. weldd.C0 = CFrame.new()
  887. weldd.C1 = b.CFrame:inverse() * a.CFrame
  888. weldd.Parent = a
  889. return weldd
  890. end
  891.  
  892. it=Instance.new
  893.  
  894. function nooutline(part)
  895. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  896. end
  897.  
  898. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  899. local fp=it("Part")
  900. fp.formFactor=formfactor
  901. fp.Parent=parent
  902. fp.Reflectance=reflectance
  903. fp.Transparency=transparency
  904. fp.CanCollide=false
  905. fp.Locked=true
  906. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  907. fp.Name=name
  908. fp.Size=size
  909. fp.Position=Character.Torso.Position
  910. nooutline(fp)
  911. fp.Material=material
  912. fp:BreakJoints()
  913. return fp
  914. end
  915.  
  916. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  917. local mesh=it(Mesh)
  918. mesh.Parent=part
  919. if Mesh=="SpecialMesh" then
  920. mesh.MeshType=meshtype
  921. mesh.MeshId=meshid
  922. end
  923. mesh.Offset=offset
  924. mesh.Scale=scale
  925. return mesh
  926. end
  927.  
  928. function weld(parent,part0,part1,c0,c1)
  929. local weld=it("Weld")
  930. weld.Parent=parent
  931. weld.Part0=part0
  932. weld.Part1=part1
  933. weld.C0=c0
  934. weld.C1=c1
  935. return weld
  936. end
  937.  
  938. Player=game:GetService('Players').LocalPlayer
  939. Character=Player.Character
  940. Mouse=Player:GetMouse()
  941. m=Instance.new('Model',Character)
  942. it=Instance.new
  943. function nooutline(part)
  944. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  945. end
  946. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  947. local fp=it("Part")
  948. fp.formFactor=formfactor
  949. fp.Parent=parent
  950. fp.Reflectance=reflectance
  951. fp.Transparency=transparency
  952. fp.CanCollide=false
  953. fp.Locked=true
  954. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  955. fp.Name=name
  956. fp.Size=size
  957. fp.Position=Character.Torso.Position
  958. nooutline(fp)
  959. fp.Material=material
  960. fp:BreakJoints()
  961. return fp
  962. end
  963. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  964. local mesh=it(Mesh)
  965. mesh.Parent=part
  966. if Mesh=="SpecialMesh" then
  967. mesh.MeshType=meshtype
  968. mesh.MeshId=meshid
  969. end
  970. mesh.Offset=offset
  971. mesh.Scale=scale
  972. return mesh
  973. end
  974. function weld(parent,part0,part1,c0,c1)
  975. local weld=it("Weld")
  976. weld.Parent=parent
  977. weld.Part0=part0
  978. weld.Part1=part1
  979. weld.C0=c0
  980. weld.C1=c1
  981. return weld
  982. end
  983.  
  984. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.200000003, 0.400000006, 1))
  985. handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, -5.69614329e-008, 5.96046448e-008, 5.69614222e-008, 0.999999881, 6.38557296e-008, -5.96045986e-008, -6.38557367e-008, 1),CFrame.new(-1.0929389, -0.0714454651, 0.15032959, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915))
  986. mesh("BlockMesh",Handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  987. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.599999964, 3.20000005))
  988. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(4.19616699e-005, -0.0100028515, 3.1000824, -0.99968493, 0.0161349382, 0.0192294158, -0.0167735796, -0.999297142, -0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  989. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.99000001, 1, 1))
  990. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.599999964, 5.80000019))
  991. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(3.81469727e-005, -0.0100257397, 4.40010071, -0.99968493, 0.0161349382, 0.0192294158, -0.0167735796, -0.999297142, -0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  992. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.99000001, 1, 1))
  993. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.599999964, 4.4000001))
  994. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(4.19616699e-005, -0.0100123882, 3.70007324, -0.99968493, 0.0161349382, 0.0192294158, -0.0167735796, -0.999297142, -0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  995. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.99000001, 1, 1))
  996. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.399999976, 0.200000003))
  997. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-4.57763672e-005, 1.29995728, -0.199999332, 0.99968493, -0.0161349382, -0.0192294158, 0.0186750833, -0.0338307135, 0.999253154, -0.0167734325, -0.99929744, -0.0335187353))
  998. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  999. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1, 0.400000036))
  1000. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-1.52587891e-005, -1.73275757, 0.101932526, -0.99968493, 0.0161348786, 0.019229291, 0.0223798491, 0.225955546, 0.973880529, 0.0113684786, 0.97400409, -0.226245463))
  1001. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1002. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1003. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.28881836e-005, -1.08944702, 0.159484863, -0.99968493, 0.0161346551, 0.0192298498, 0.0245600175, 0.47034353, 0.88214159, 0.00518841529, 0.882335901, -0.470591575))
  1004. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1005. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.20000005, 0.400000036))
  1006. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.28881836e-005, -2.09999084, -0.100028276, 0.99968493, -0.0161349382, -0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, 0.0167734325, 0.99929744, 0.0335187204))
  1007. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1008. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072))
  1009. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-0.722251892, -7.62939453e-006, -0.31111145, -0.0250595883, -0.682680428, -0.730287313, -0.999685049, 0.0161298718, 0.0192255117, -0.00134544016, 0.730539024, -0.682869613))
  1010. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1011. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1012. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(6.10351563e-005, -0.200017452, -0.40007019, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1013. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1014. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  1015. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-3.81469727e-005, -1.27485657, -1.2587204, -0.99968493, 0.0161348786, 0.0192295052, 0.00134484924, -0.730529785, 0.682879508, 0.0250659045, 0.682690203, 0.730277896))
  1016. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1017. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072))
  1018. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-0.742538452, -3.81469727e-006, 0.317245483, 0.00133255101, -0.730529666, 0.682879746, -0.99968487, 0.0161438417, 0.0192210786, -0.025065871, -0.682690144, -0.730277956))
  1019. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1020. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 1))
  1021. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(0.0999779701, -1.52587891e-005, -0.999984741, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915))
  1022. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1023. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1024. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(3.81469727e-006, 0.399978638, 0.199987411, 0.99968493, -0.0161349382, -0.0192294158, 0.0186750833, -0.0338306986, 0.999253154, -0.0167734325, -0.99929744, -0.0335187204))
  1025. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1026. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.200000003))
  1027. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-4.19616699e-005, -0.652126312, -1.27474976, -0.99968493, 0.0161349233, 0.0192295164, -0.0113684721, -0.97400403, 0.226245433, 0.0223800782, 0.225955546, 0.973880589))
  1028. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1029. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  1030. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-6.86645508e-005, -1.00984955, -1.32232666, -0.99968493, 0.0161349084, 0.0192292985, -0.00518870167, -0.882332146, 0.470598638, 0.0245596915, 0.470350564, 0.882137835))
  1031. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1032. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.400000006, 0.600000024))
  1033. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(0.099998951, -3.81469727e-005, 0.800018311, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915))
  1034. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1035. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 1.20000005, 0.400000036))
  1036. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.67028809e-005, -1.7000885, -0.100027323, -0.99968493, 0.0161349382, 0.0192294158, 0.0186750833, -0.0338306986, 0.999253154, 0.0167734325, 0.99929744, 0.0335187204))
  1037. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1038. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072))
  1039. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-0.549972773, -3.43322754e-005, 0.0100250244, -0.0167771745, -0.999297023, -0.0335265957, -0.999684811, 0.0161385052, 0.0192303304, -0.0186757445, 0.0338386595, -0.999252915))
  1040. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.99000001, 1.29999995))
  1041. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.600000024))
  1042. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-4.57763672e-005, -2.50007629, -2.67028809e-005, 0.99968493, -0.0161349382, -0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, 0.0167734325, 0.99929744, 0.0335187204))
  1043. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1044. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1045. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(3.81469727e-006, -0.220021248, -1.00009155, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1046. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.600000024, 1))
  1047. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1048. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(2.67028809e-005, 0.220012903, 1.8000946, 0.99968493, -0.0161349382, -0.0192294158, -0.0167735796, -0.999297142, -0.0335265808, -0.018674951, 0.0338385589, -0.999252915))
  1049. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.600000024, 1))
  1050. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.200000003, 1))
  1051. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.28881836e-005, 1.40666962e-005, 0.200027466, -0.99968493, 0.0161349382, 0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, -0.018674951, 0.0338385589, -0.999252915))
  1052. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.5, 1))
  1053. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036))
  1054. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.0435257, -1.14440918e-005, -0.877830505, 0.00133237685, -0.730529547, 0.682879806, -0.99968493, 0.0161440708, 0.0192210656, -0.0250660162, -0.682690263, -0.730277896))
  1055. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 1.00999999, 0.600000024))
  1056. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  1057. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.67028809e-005, -1.30004883, -0.0599954128, -0.99968493, 0.0161349382, 0.0192294158, 0.0186750833, -0.0338306986, 0.999253154, 0.0167734325, 0.99929744, 0.0335187204))
  1058. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 1))
  1059. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036))
  1060. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(0.831382751, -5.34057617e-005, -0.665687561, 0.00133237685, -0.730529547, 0.682879806, -0.99968493, 0.0161440708, 0.0192210656, -0.0250660162, -0.682690263, -0.730277896))
  1061. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 1.00999999, 0.600000024))
  1062. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1063. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(4.57763672e-005, -0.00890350342, -0.62361145, 0.99968493, -0.0161349084, -0.0192297474, 0.0113684032, 0.974003971, -0.226245522, 0.0223803017, 0.22595562, 0.97388047))
  1064. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 1))
  1065. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036))
  1066. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.09603119, -7.62939453e-006, 1.2657547, 0.025060432, 0.682680309, 0.730287433, -0.999685049, 0.0161309429, 0.0192256682, 0.00134476018, -0.730539203, 0.682869554))
  1067. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 1.00999999, 0.5))
  1068. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.800000012))
  1069. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(3.81469727e-006, 1.62124634e-005, 0.699996948, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1070. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.5, 1))
  1071. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003))
  1072. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-3.81469727e-006, 0.5, 0.0599937439, -0.99968493, 0.0161349382, 0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, -0.0167734325, -0.99929744, -0.0335187204))
  1073. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 1))
  1074. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036))
  1075. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.57408142, -3.81469727e-006, 1.09355927, 0.0245514382, 0.470343471, 0.882141948, -0.999685109, 0.0161308739, 0.0192221403, -0.00518871192, -0.88233608, 0.470591396))
  1076. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 1.00999999, 0.400000006))
  1077. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.399999976, 0.400000006, 0.400000036))
  1078. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.95219421, -3.05175781e-005, 0.750869751, 0.0223687999, 0.225955442, 0.973880827, -0.999685168, 0.0161325298, 0.019218497, -0.011368636, -0.97400409, 0.226245165))
  1079. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1.00999999, 0.300000012))
  1080. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
  1081. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(2.67028809e-005, -0.220027447, -1.50007629, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1082. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.600000024, 1))
  1083. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
  1084. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.52587891e-005, -0.109989166, 0.799972534, 0.99968493, -0.0161349382, -0.0192294158, 0.0167735796, 0.999297142, 0.0335265808, 0.018674951, -0.0338385589, 0.999252915))
  1085. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 1))
  1086. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  1087. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(1.52587891e-005, 0.109987736, -0.509963989, 0.99968487, -0.0161355603, -0.0192299671, -0.0167742185, -0.999297082, -0.0335265249, -0.0186754838, 0.0338385291, -0.999252915))
  1088. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1, 0.899999976))
  1089. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 2, 0.600000024))
  1090. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(0, -2.48002625, -0.0500152111, 0.99968493, -0.0161349382, -0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, 0.0167734325, 0.99929744, 0.0335187204))
  1091. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.800000012, 0.800000012))
  1092. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1093. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-2.67028809e-005, 1.6000061, -0.109972715, 0.999684989, -0.0161343552, -0.0192295071, 0.0186751913, -0.033830747, 0.999253154, -0.0167728532, -0.99929738, -0.0335187726))
  1094. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.800000012, 0.800000012))
  1095. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Toothpaste","Hitbox",Vector3.new(0.200000003, 5.80000019, 0.400000036))
  1096. Hitboxweld=weld(m,Handle,Hitbox,CFrame.new(0, 0, 0, -0.0167783406, -0.999297023, -0.0335264392, -0.99968487, 0.0161396954, 0.0192296654, -0.0186750405, 0.0338385142, -0.999252915),CFrame.new(-0.0101203918, -4.37719727, -0.0721693039, 0.99968493, -0.0161349382, -0.0192294158, -0.0186750833, 0.0338306986, -0.999253154, 0.0167734325, 0.99929744, 0.0335187204))
  1097.  
  1098. mouse.Button1Down:connect(function()
  1099. if attack==false and attacktype==1 then
  1100. attacktype=2
  1101. attackone()
  1102. elseif attack==false and attacktype==2 then
  1103. attacktype=1
  1104. attacktwo()
  1105. end
  1106. end)
  1107. function attackone()
  1108. attack=true
  1109. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1110. for i=0,1,0.2 do
  1111. swait()
  1112. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1113. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1114. local h = 5
  1115. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1116. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1117. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1118. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1119. scfr = blcf
  1120. elseif not scfr then
  1121. scfr = blcf
  1122. end
  1123. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(-90),math.rad(-90))*angles(math.rad(90),0,math.rad(0)),.4)
  1124. end
  1125. so("http://roblox.com/asset/?id=199150686",Hitbox,1,1)
  1126. so("http://roblox.com/asset/?id=206083107",Hitbox,1,2)
  1127. for i=0,1,0.2 do
  1128. swait()
  1129. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1130. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1131. local h = 5
  1132. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1133. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1134. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1135. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1136. scfr = blcf
  1137. elseif not scfr then
  1138. scfr = blcf
  1139. end
  1140. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.4)
  1141. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(25)),.4)
  1142. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-100))*angles(math.rad(-75),0,math.rad(0)),.4)
  1143. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.4)
  1144. end
  1145. attack=false
  1146. con1:disconnect()
  1147. end
  1148.  
  1149. function attacktwo()
  1150. attack=true
  1151. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1152. for i=0,1,0.2 do
  1153. swait()
  1154. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1155. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1156. local h = 5
  1157. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1158. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1159. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1160. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1161. scfr = blcf
  1162. elseif not scfr then
  1163. scfr = blcf
  1164. end
  1165. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-90))*angles(math.rad(-75),0,math.rad(0)),.4)
  1166. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.4)
  1167. end
  1168. so("http://roblox.com/asset/?id=199146359",Hitbox,1,1)
  1169. so("http://roblox.com/asset/?id=206083107",Hitbox,1,1.5)
  1170. for i=0,1,1 do
  1171. swait()
  1172. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1173. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1174. local h = 5
  1175. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1176. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1177. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1178. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1179. scfr = blcf
  1180. elseif not scfr then
  1181. scfr = blcf
  1182. end
  1183. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
  1184. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(-45)),.4)
  1185. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(-90),math.rad(-90))*angles(math.rad(90),0,math.rad(0)),.4)
  1186. handleweld.C0=clerp(handleweld.C0,cf(0,-.5,-.5)*angles(math.rad(-35),math.rad(0),math.rad(0)),.4)
  1187. end
  1188. attack=false
  1189. con1:disconnect()
  1190. end
  1191.  
  1192. function attackthree()
  1193.  
  1194. end
  1195.  
  1196. idleanim=.4
  1197.  
  1198. while true do
  1199. swait()
  1200. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1201. local velderp=RootPart.Velocity.y
  1202. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1203. if equipped==true or equipped==false then
  1204. if attack==false then
  1205. idle=idle+1
  1206. else
  1207. idle=0
  1208. end
  1209. if idle>=500 then
  1210. if attack==false then
  1211. --Sheath()
  1212. end
  1213. end
  1214. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1215. Anim="Jump"
  1216. if attack==false then
  1217. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1218. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1219. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1220. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(105),math.rad(0)),.3)
  1221. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1222. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1223. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1224. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1225. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1226. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1227. end
  1228. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1229. Anim="Fall"
  1230. if attack==false then
  1231. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1232. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1233. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1234. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(115),math.rad(0)),.3)
  1235. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1236. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1237. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1238. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1239. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1240. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1241. end
  1242. elseif torvel<1 and hitfloor~=nil then
  1243. Anim="Idle"
  1244. if attack==false then
  1245. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(-35)),.3)
  1246. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(35)),.3)
  1247. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-35),math.rad(90),math.rad(0))*angles(math.rad(-25),math.rad(15),math.rad(0)),.3)
  1248. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),.3)
  1249. RH.C0=clerp(RH.C0,cf(1,-.75,0)*angles(math.rad(-15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(15),math.rad(0)),.3)
  1250. LH.C0=clerp(LH.C0,cf(-1,-.75,-.25)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(35),math.rad(0)),.3)
  1251. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1252. end
  1253. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1254. Anim="Walk"
  1255. if attack==false then
  1256. --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1257. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1258. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(-35)),.3)
  1259. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(35)),.3)
  1260. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-55),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  1261. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-25)),.3)
  1262. --RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1263. --LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1264. RH.C0=clerp(RH.C0,cf(1,-.75,0)*angles(math.rad(-15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(15),math.rad(0)),.3)
  1265. LH.C0=clerp(LH.C0,cf(-1,-.75,-.25)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(35),math.rad(0)),.3)
  1266. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1267. end
  1268. elseif torvel>=22 and hitfloor~=nil then
  1269. Anim="Run"
  1270. if attack==false then
  1271. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1272. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1273. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1274. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1275. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1276. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1277. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1278. end
  1279. end
  1280. end
  1281. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement