Cartman366

Untitled

Aug 8th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.28 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. trispeed=.2
  44. attackmode='none'
  45. local idle=0
  46. local Anim="Idle"
  47. local Effects={}
  48. local gun=false
  49. local shoot=false
  50. player=nil
  51.  
  52. mouse=Player:GetMouse()
  53. --save shoulders
  54. RSH, LSH=nil, nil
  55. --welds
  56. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  57. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  58. LH=Torso["Left Hip"]
  59. RH=Torso["Right Hip"]
  60. TorsoColor=Torso.BrickColor
  61. function NoOutline(Part)
  62. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  63. end
  64. player=Player
  65. ch=Character
  66. RSH=ch.Torso["Right Shoulder"]
  67. LSH=ch.Torso["Left Shoulder"]
  68. --
  69. RSH.Parent=nil
  70. LSH.Parent=nil
  71. --
  72. RW.Name="Right Shoulder"
  73. RW.Part0=ch.Torso
  74. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  75. RW.C1=cf(0, 0.5, 0)
  76. RW.Part1=ch["Right Arm"]
  77. RW.Parent=ch.Torso
  78. --
  79. LW.Name="Left Shoulder"
  80. LW.Part0=ch.Torso
  81. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  82. LW.C1=cf(0, 0.5, 0)
  83. LW.Part1=ch["Left Arm"]
  84. LW.Parent=ch.Torso
  85.  
  86. local Stats=Instance.new("BoolValue")
  87. Stats.Name="Stats"
  88. Stats.Parent=Character
  89. local Atk=Instance.new("NumberValue")
  90. Atk.Name="Damage"
  91. Atk.Parent=Stats
  92. Atk.Value=1
  93. local Def=Instance.new("NumberValue")
  94. Def.Name="Defense"
  95. Def.Parent=Stats
  96. Def.Value=1
  97. local Speed=Instance.new("NumberValue")
  98. Speed.Name="Speed"
  99. Speed.Parent=Stats
  100. Speed.Value=1
  101. local Mvmt=Instance.new("NumberValue")
  102. Mvmt.Name="Movement"
  103. Mvmt.Parent=Stats
  104. Mvmt.Value=1
  105.  
  106. local donum=0
  107.  
  108.  
  109. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  110. local fp=it("Part")
  111. fp.formFactor=formfactor
  112. fp.Parent=parent
  113. fp.Reflectance=reflectance
  114. fp.Transparency=transparency
  115. fp.CanCollide=false
  116. fp.Locked=true
  117. fp.BrickColor=brickcolor
  118. fp.Name=name
  119. fp.Size=size
  120. fp.Position=Torso.Position
  121. NoOutline(fp)
  122. fp.Material="SmoothPlastic"
  123. fp:BreakJoints()
  124. return fp
  125. end
  126.  
  127. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  128. local mesh=it(Mesh)
  129. mesh.Parent=part
  130. if Mesh=="SpecialMesh" then
  131. mesh.MeshType=meshtype
  132. if meshid~="nil" then
  133. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  134. end
  135. end
  136. mesh.Offset=offset
  137. mesh.Scale=scale
  138. return mesh
  139. end
  140.  
  141. function weld(parent,part0,part1,c0)
  142. local weld=it("Weld")
  143. weld.Parent=parent
  144. weld.Part0=part0
  145. weld.Part1=part1
  146. weld.C0=c0
  147. return weld
  148. end
  149.  
  150. local Color1=Torso.BrickColor
  151.  
  152. local bodvel=Instance.new("BodyVelocity")
  153. local bg=Instance.new("BodyGyro")
  154.  
  155. function swait(num)
  156. if num==0 or num==nil then
  157. game:service'RunService'.Stepped:wait(0)
  158. else
  159. for i=0,num do
  160. game:service'RunService'.Stepped:wait(0)
  161. end
  162. end
  163. end
  164.  
  165.  
  166. so = function(id,par,vol,pit)
  167. coroutine.resume(coroutine.create(function()
  168. local sou = Instance.new("Sound",par or workspace)
  169. sou.Volume=vol
  170. sou.Pitch=pit or 1
  171. sou.SoundId=id
  172. swait()
  173. sou:play()
  174. game:GetService("Debris"):AddItem(sou,6)
  175. end))
  176. end
  177.  
  178. function clerp(a,b,t)
  179. local qa = {QuaternionFromCFrame(a)}
  180. local qb = {QuaternionFromCFrame(b)}
  181. local ax, ay, az = a.x, a.y, a.z
  182. local bx, by, bz = b.x, b.y, b.z
  183. local _t = 1-t
  184. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  185. end
  186.  
  187. function QuaternionFromCFrame(cf)
  188. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  189. local trace = m00 + m11 + m22
  190. if trace > 0 then
  191. local s = math.sqrt(1 + trace)
  192. local recip = 0.5/s
  193. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  194. else
  195. local i = 0
  196. if m11 > m00 then
  197. i = 1
  198. end
  199. if m22 > (i == 0 and m00 or m11) then
  200. i = 2
  201. end
  202. if i == 0 then
  203. local s = math.sqrt(m00-m11-m22+1)
  204. local recip = 0.5/s
  205. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  206. elseif i == 1 then
  207. local s = math.sqrt(m11-m22-m00+1)
  208. local recip = 0.5/s
  209. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  210. elseif i == 2 then
  211. local s = math.sqrt(m22-m00-m11+1)
  212. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  213. end
  214. end
  215. end
  216.  
  217. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  218. local xs, ys, zs = x + x, y + y, z + z
  219. local wx, wy, wz = w*xs, w*ys, w*zs
  220. local xx = x*xs
  221. local xy = x*ys
  222. local xz = x*zs
  223. local yy = y*ys
  224. local yz = y*zs
  225. local zz = z*zs
  226. 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))
  227. end
  228.  
  229. function QuaternionSlerp(a, b, t)
  230. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  231. local startInterp, finishInterp;
  232. if cosTheta >= 0.0001 then
  233. if (1 - cosTheta) > 0.0001 then
  234. local theta = math.acos(cosTheta)
  235. local invSinTheta = 1/math.sin(theta)
  236. startInterp = math.sin((1-t)*theta)*invSinTheta
  237. finishInterp = math.sin(t*theta)*invSinTheta
  238. else
  239. startInterp = 1-t
  240. finishInterp = t
  241. end
  242. else
  243. if (1+cosTheta) > 0.0001 then
  244. local theta = math.acos(-cosTheta)
  245. local invSinTheta = 1/math.sin(theta)
  246. startInterp = math.sin((t-1)*theta)*invSinTheta
  247. finishInterp = math.sin(t*theta)*invSinTheta
  248. else
  249. startInterp = t-1
  250. finishInterp = t
  251. end
  252. end
  253. 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
  254. end
  255.  
  256. local function CFrameFromTopBack(at, top, back)
  257. local right = top:Cross(back)
  258. return CFrame.new(at.x, at.y, at.z,
  259. right.x, top.x, back.x,
  260. right.y, top.y, back.y,
  261. right.z, top.z, back.z)
  262. end
  263.  
  264. function Triangle(a, b, c)
  265. local edg1 = (c-a):Dot((b-a).unit)
  266. local edg2 = (a-b):Dot((c-b).unit)
  267. local edg3 = (b-c):Dot((a-c).unit)
  268. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  269. a, b, c = a, b, c
  270. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  271. a, b, c = b, c, a
  272. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  273. a, b, c = c, a, b
  274. else
  275. assert(false, "unreachable")
  276. end
  277.  
  278. local len1 = (c-a):Dot((b-a).unit)
  279. local len2 = (b-a).magnitude - len1
  280. local width = (a + (b-a).unit*len1 - c).magnitude
  281.  
  282. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  283.  
  284. local list = {}
  285.  
  286. if len1 > 0.01 then
  287. local w1 = Instance.new('WedgePart', m)
  288. game:GetService("Debris"):AddItem(w1,5)
  289. w1.Material = "SmoothPlastic"
  290. w1.FormFactor = 'Custom'
  291. w1.BrickColor = BrickColor.new("Really red")
  292. w1.Transparency = 0
  293. w1.Reflectance = 0
  294. w1.Material = "SmoothPlastic"
  295. w1.CanCollide = false
  296. local l1 = Instance.new("PointLight",w1)
  297. l1.Color = Color3.new(170,0,0)
  298. NoOutline(w1)
  299. local sz = Vector3.new(0.2, width, len1)
  300. w1.Size = sz
  301. local sp = Instance.new("SpecialMesh",w1)
  302. sp.MeshType = "Wedge"
  303. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  304. w1:BreakJoints()
  305. w1.Anchored = true
  306. w1.Parent = workspace
  307. w1.Transparency = 0.7
  308. table.insert(Effects,{w1,"Disappear",.01})
  309. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  310. table.insert(list,w1)
  311. end
  312.  
  313. if len2 > 0.01 then
  314. local w2 = Instance.new('WedgePart', m)
  315. game:GetService("Debris"):AddItem(w2,5)
  316. w2.Material = "SmoothPlastic"
  317. w2.FormFactor = 'Custom'
  318. w2.BrickColor = BrickColor.new("Really red")
  319. w2.Transparency = 0
  320. w2.Reflectance = 0
  321. w2.Material = "SmoothPlastic"
  322. w2.CanCollide = false
  323. local l2 = Instance.new("PointLight",w2)
  324. l2.Color = Color3.new(170,0,0)
  325. NoOutline(w2)
  326. local sz = Vector3.new(0.2, width, len2)
  327. w2.Size = sz
  328. local sp = Instance.new("SpecialMesh",w2)
  329. sp.MeshType = "Wedge"
  330. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  331. w2:BreakJoints()
  332. w2.Anchored = true
  333. w2.Parent = workspace
  334. w2.Transparency = 0.7
  335. table.insert(Effects,{w2,"Disappear",.01})
  336. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  337. table.insert(list,w2)
  338. end
  339. return unpack(list)
  340. end
  341.  
  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("Really red"))
  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=15666462",Part,1,1.5)
  462. swait(5)
  463. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  464. end),ZTarget)
  465. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  466. targetgui=Instance.new("BillboardGui")
  467. targetgui.Parent=ZTarget
  468. targetgui.Size=UDim2.new(10,100,10,100)
  469. targ=Instance.new("ImageLabel")
  470. targ.Parent=targetgui
  471. targ.BackgroundTransparency=1
  472. targ.Image="rbxassetid://4834067"
  473. targ.Size=UDim2.new(1,0,1,0)
  474. cam.CameraType="Scriptable"
  475. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  476. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  477. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  478. Targetting=true
  479. RocketTarget=ZTarget
  480. for i=1,Property do
  481. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  482. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  483. swait()
  484. end
  485. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  486. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  487. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  488. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  489. end
  490. Targetting=false
  491. RocketTarget=nil
  492. targetgui.Parent=nil
  493. cam.CameraType="Custom"
  494. end
  495. end
  496. debounce=Instance.new("BoolValue")
  497. debounce.Name="DebounceHit"
  498. debounce.Parent=hit.Parent
  499. debounce.Value=true
  500. game:GetService("Debris"):AddItem(debounce,Delay)
  501. c=Instance.new("ObjectValue")
  502. c.Name="creator"
  503. c.Value=Player
  504. c.Parent=h
  505. game:GetService("Debris"):AddItem(c,.5)
  506. CRIT=false
  507. hitDeb=true
  508. AttackPos=6
  509. end
  510. end
  511.  
  512. showDamage=function(Char,Dealt,du,Color)
  513. m=Instance.new("Model")
  514. m.Name=tostring(Dealt)
  515. h=Instance.new("Humanoid")
  516. h.Health=0
  517. h.MaxHealth=0
  518. h.Parent=m
  519. c=Instance.new("Part")
  520. c.Transparency=0
  521. c.BrickColor=Color
  522. c.Name="Head"
  523. c.TopSurface=0
  524. c.BottomSurface=0
  525. c.formFactor="Plate"
  526. c.Size=Vector3.new(1,.4,1)
  527. ms=Instance.new("CylinderMesh")
  528. ms.Scale=Vector3.new(.8,.8,.8)
  529. if CRIT==true then
  530. ms.Scale=Vector3.new(1,1.25,1)
  531. end
  532. ms.Parent=c
  533. c.Reflectance=0
  534. Instance.new("BodyGyro").Parent=c
  535. c.Parent=m
  536. if Char:findFirstChild("Head")~=nil then
  537. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  538. elseif Char.Parent:findFirstChild("Head")~=nil then
  539. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  540. end
  541. f=Instance.new("BodyPosition")
  542. f.P=2000
  543. f.D=100
  544. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  545. f.position=c.Position+Vector3.new(0,3,0)
  546. f.Parent=c
  547. game:GetService("Debris"):AddItem(m,.5+du)
  548. c.CanCollide=false
  549. m.Parent=workspace
  550. c.CanCollide=false
  551. end
  552.  
  553. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  554. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  555. end
  556.  
  557. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  558. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  559. prt.Anchored=true
  560. prt.CFrame=cframe
  561. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  562. --http://www.roblox.com/asset/?id=4770560
  563. game:GetService("Debris"):AddItem(prt,2)
  564. CF=prt.CFrame
  565. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  566. for i=0,1,0.2 do
  567. wait()
  568. Part.CFrame=CF*cf(0,0,-0.4)
  569. end
  570. for i=0,1,delay do
  571. wait()
  572. --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)
  573. Mesh.Scale=Mesh.Scale
  574. end
  575. for i=0,1,0.1 do
  576. wait()
  577. Part.Transparency=i
  578. end
  579. Part.Parent=nil
  580. end),prt,msh,CF)
  581. end
  582.  
  583. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  584. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  585. prt.Anchored=true
  586. prt.CFrame=cframe
  587. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  588. game:GetService("Debris"):AddItem(prt,5)
  589. coroutine.resume(coroutine.create(function(Part,Mesh)
  590. for i=0,1,delay do
  591. wait()
  592. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  593. Part.Transparency=i
  594. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  595. end
  596. Part.Parent=nil
  597. end),prt,msh)
  598. end
  599.  
  600. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  601. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  602. prt.Anchored=false
  603. prt.CFrame=cframe
  604. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  605. local wld=weld(prt,prt,Parent,cframe)
  606. game:GetService("Debris"):AddItem(prt,5)
  607. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  608. for i=0,1,delay do
  609. wait()
  610. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  611. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  612. Part.Transparency=i
  613. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  614. end
  615. Part.Parent=nil
  616. end),prt,msh,wld)
  617. end
  618.  
  619. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  620. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  621. prt.Anchored=false
  622. prt.CFrame=cframe
  623. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  624. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  625. game:GetService("Debris"):AddItem(prt,5)
  626. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  627. for i=0,1,delay do
  628. wait()
  629. Weld.C0=euler(i*20,0,0)
  630. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  631. Part.Transparency=i
  632. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  633. end
  634. Part.Parent=nil
  635. end),prt,msh,wld)
  636. end
  637.  
  638. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  639. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  640. prt.Anchored=true
  641. prt.CFrame=cframe
  642. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  643. game:GetService("Debris"):AddItem(prt,2)
  644. coroutine.resume(coroutine.create(function(Part,Mesh)
  645. for i=0,1,delay do
  646. wait()
  647. Part.CFrame=Part.CFrame
  648. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  649. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  650. prt2.Anchored=true
  651. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  652. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  653. game:GetService("Debris"):AddItem(prt2,2)
  654. coroutine.resume(coroutine.create(function(Part,Mesh)
  655. for i=0,1,0.1 do
  656. wait()
  657. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  658. end
  659. Part.Parent=nil
  660. end),prt2,msh2)
  661. end
  662. for i=0,1,delay*2 do
  663. wait()
  664. Part.CFrame=Part.CFrame
  665. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  666. end
  667. Part.Parent=nil
  668. end),prt,msh)
  669. end
  670.  
  671. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  672. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  673. prt.Anchored=true
  674. prt.CFrame=cframe
  675. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  676. game:GetService("Debris"):AddItem(prt,2)
  677. coroutine.resume(coroutine.create(function(Part,Mesh)
  678. for i=0,1,delay do
  679. wait()
  680. Part.CFrame=Part.CFrame
  681. Part.Transparency=i
  682. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  683. end
  684. Part.Parent=nil
  685. end),prt,msh)
  686. end
  687.  
  688. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  689. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  690. prt.Anchored=true
  691. prt.CFrame=cframe*euler(x2,y2,z2)
  692. --"http://www.roblox.com/asset/?id=168892465"
  693. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  694. game:GetService("Debris"):AddItem(prt,2)
  695. coroutine.resume(coroutine.create(function(Part,Mesh)
  696. for i=0,1,0.03 do
  697. wait()
  698. Part.CFrame=Part.CFrame
  699. Part.Transparency=i
  700. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  701. end
  702. Part.Parent=nil
  703. end),prt,msh)
  704. end
  705.  
  706. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  707. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  708. prt.Anchored=true
  709. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  710. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  711. game:GetService("Debris"):AddItem(prt,2)
  712. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  713. CF=Part.CFrame
  714. Numbb=0
  715. randnumb=math.random()/10
  716. rand1=math.random()/10
  717. for i=0,1,rand1 do
  718. wait()
  719. CF=CF*cf(0,math.random()/2,0)
  720. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  721. Part.CFrame=CF*euler(Numbb,0,0)
  722. Part.Transparency=i
  723. Numbb=Numbb+randnumb
  724. end
  725. Part.Parent=nil
  726. end),prt,CF,Numbb,randnumb)
  727. end
  728.  
  729. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  730. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  731. prt.Anchored=true
  732. prt.CFrame=cframe
  733. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  734. game:GetService("Debris"):AddItem(prt,5)
  735. coroutine.resume(coroutine.create(function(Part,Mesh)
  736. for i=0,1,delay do
  737. wait()
  738. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  739. Part.Transparency=i
  740. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  741. end
  742. Part.Parent=nil
  743. end),prt,msh)
  744. end
  745.  
  746. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  747. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  748. prt.Anchored=true
  749. prt.CFrame=cframe
  750. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  751. game:GetService("Debris"):AddItem(prt,2)
  752. coroutine.resume(coroutine.create(function(Part,Mesh)
  753. for i=0,1,delay do
  754. wait()
  755. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  756. Part.Transparency=i
  757. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  758. end
  759. Part.Parent=nil
  760. end),prt,msh)
  761. end
  762.  
  763. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  764. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  765. prt.Anchored=true
  766. prt.CFrame=cframe*cf(x,y,z)
  767. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  768. game:GetService("Debris"):AddItem(prt,5)
  769. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  770. local num=math.random()
  771. local num2=math.random(-3,2)+math.random()
  772. local numm=0
  773. for i=0,1,delay*2 do
  774. swait()
  775. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  776. Part.Transparency=i
  777. numm=numm+0.01
  778. end
  779. Part.Parent=nil
  780. Mesh.Parent=nil
  781. end),prt,msh,x,y,z)
  782. end
  783.  
  784. function dmgstart(dmg,what)
  785. hitcon = what.Touched:connect(function(hit)
  786. local hum = hit.Parent:FindFirstChild("Humanoid")
  787. if hum and not hum:IsDescendantOf(Character) then
  788. hum:TakeDamage(dmg)
  789. end
  790. end)
  791. end
  792.  
  793. function dmgstop()
  794. hitcon:disconnect()
  795. end
  796.  
  797. function Cloak()
  798. Face.Parent=nil
  799. cloaked=true
  800. for _,v in pairs(Torso.Parent:children()) do
  801. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  802. coroutine.resume(coroutine.create(function()
  803. for i=0,1,0.2 do
  804. wait()
  805. v.Transparency=i
  806. end
  807. v.Transparency=1
  808. end))
  809. end
  810. if v.className=="Hat" then
  811. hatp=v.Handle
  812. coroutine.resume(coroutine.create(function(derp)
  813. for i=0,1,0.2 do
  814. wait()
  815. derp.Transparency=i
  816. end
  817. derp.Transparency=1
  818. end),hatp)
  819. end
  820. end
  821. for _,v in pairs(m:children()) do
  822. if v.className=="Part" then
  823. coroutine.resume(coroutine.create(function()
  824. for i=0,1,0.2 do
  825. wait()
  826. v.Transparency=i
  827. end
  828. v.Transparency=1
  829. end))
  830. end
  831. end
  832. end
  833.  
  834. function UnCloak()
  835. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  836. Face.Parent=Head
  837. cloaked=false
  838. for _,v in pairs(Torso.Parent:children()) do
  839. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  840. coroutine.resume(coroutine.create(function()
  841. for i=0,1,0.1 do
  842. wait()
  843. v.Transparency=v.Transparency-0.1
  844. end
  845. v.Transparency=0
  846. end))
  847. end
  848. if v.className=="Hat" then
  849. hatp=v.Handle
  850. coroutine.resume(coroutine.create(function(derp)
  851. for i=0,1,0.1 do
  852. wait()
  853. derp.Transparency=derp.Transparency-0.1
  854. end
  855. derp.Transparency=0
  856. end),hatp)
  857. end
  858. end
  859. for _,v in pairs(m:children()) do
  860. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  861. coroutine.resume(coroutine.create(function()
  862. for i=0,1,0.1 do
  863. wait()
  864. v.Transparency=v.Transparency-0.1
  865. end
  866. v.Transparency=0
  867. end))
  868. v.Transparency=0
  869. end
  870. end
  871. end
  872.  
  873. Player=game:GetService('Players').LocalPlayer
  874. Character=Player.Character
  875. Mouse=Player:GetMouse()
  876. m=Instance.new('Model',Character)
  877.  
  878.  
  879. local function weldBetween(a, b)
  880. local weldd = Instance.new("ManualWeld")
  881. weldd.Part0 = a
  882. weldd.Part1 = b
  883. weldd.C0 = CFrame.new()
  884. weldd.C1 = b.CFrame:inverse() * a.CFrame
  885. weldd.Parent = a
  886. return weldd
  887. end
  888.  
  889. it=Instance.new
  890.  
  891. function nooutline(part)
  892. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  893. end
  894.  
  895. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  896. local fp=it("Part")
  897. fp.formFactor=formfactor
  898. fp.Parent=parent
  899. fp.Reflectance=reflectance
  900. fp.Transparency=transparency
  901. fp.CanCollide=false
  902. fp.Locked=true
  903. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  904. fp.Name=name
  905. fp.Size=size
  906. fp.Position=Character.Torso.Position
  907. nooutline(fp)
  908. fp.Material=material
  909. fp:BreakJoints()
  910. return fp
  911. end
  912.  
  913. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  914. local mesh=it(Mesh)
  915. mesh.Parent=part
  916. if Mesh=="SpecialMesh" then
  917. mesh.MeshType=meshtype
  918. mesh.MeshId=meshid
  919. end
  920. mesh.Offset=offset
  921. mesh.Scale=scale
  922. return mesh
  923. end
  924.  
  925. function weld(parent,part0,part1,c0,c1)
  926. local weld=it("Weld")
  927. weld.Parent=parent
  928. weld.Part0=part0
  929. weld.Part1=part1
  930. weld.C0=c0
  931. weld.C1=c1
  932. return weld
  933. end
  934.  
  935. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.229971856, 1.49481952, 0.229972199))
  936. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.949274421, -0.260620117, 0.0206298828, -0.013163588, -0.999892533, -0.00608680304, -0.0085548209, 0.00619923463, -0.99994117, 0.999874771, -0.0131119639, -0.00863502268))
  937. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  938. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 2.87465239, 0.200000003))
  939. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.172935277, -2.18459797, -0.00953674316, 0.999995649, 4.87081707e-007, 1.17861418e-006, 4.87081707e-007, 0.99999398, -5.18746674e-007, 1.17861418e-006, -5.18746674e-007, 0.999996006))
  940. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.574930549, 1, 0.574930549))
  941. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.459944069, 0.200000003, 0.200000003))
  942. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.43765521, -0.748316765, -0.00335693359, 0.965922594, 0.258814216, 1.08592212e-006, -0.258813798, 0.965920389, -9.54605639e-007, 1.07948654e-006, -4.33064997e-007, 0.999996066))
  943. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.574930549, 0.574930549))
  944. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.459944069, 0.200000003, 0.200000003))
  945. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.433973312, -0.747589111, -0.00337219238, 0.965922773, -0.25881356, 1.37486495e-006, 0.258814514, 0.965921283, 7.72997737e-008, 8.18432454e-007, -6.32368028e-007, 0.999996245))
  946. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.574930549, 0.574930549))
  947. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.459944576, 0.229972228))
  948. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00337219238, -0.748403549, -0.724805832, -1.82495787e-005, 7.69551843e-006, -0.999996543, -0.258814335, 0.965921223, 1.07819214e-005, 0.965922952, 0.258814842, -1.38340984e-005))
  949. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0712913945, 0.863545656, 0.233421817))
  950. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.200000003, 2.87465239, 0.200000003))
  951. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.172354549, -2.18458462, -0.00953674316, 0.999995649, 4.87081707e-007, 1.17861418e-006, 4.87081707e-007, 0.99999398, -5.18746674e-007, 1.17861418e-006, -5.18746674e-007, 0.999996006))
  952. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.574930549, 1, 0.574930549))
  953. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.459944069, 0.200000003, 0.344958335))
  954. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.49203968e-006, -0.804696083, -0.00953674316, 0.999995649, 4.87081707e-007, 1.17861418e-006, 4.87081707e-007, 0.99999398, -5.18746674e-007, 1.17861418e-006, -5.18746674e-007, 0.999996006))
  955. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.574930549, 1))
  956. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.459944069, 0.200000003, 0.200000003))
  957. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.644028664, 0.260459185, 0.00338745117, -0.258814365, 0.965921283, -6.16535544e-007, 0.965922654, 0.258814424, 1.1799857e-006, -9.00832674e-007, 5.63450158e-007, -0.999996722))
  958. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.574930549, 0.574930549))
  959. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.459944069, 0.200000003, 0.200000003))
  960. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.748274803, 0.667817831, -0.00335693359, -0.258814365, 0.965921283, -6.16535544e-007, -0.965922892, -0.258814543, -1.06915832e-006, 8.73740646e-007, -5.76488674e-007, 0.999996603))
  961. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.574930549, 0.574930549))
  962. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.459944069, 0.200000003, 0.200000003))
  963. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0340023041, 0.758163452, 0.00337219238, 0.965919077, -0.258812129, 1.38045289e-006, -0.258814603, -0.965916097, -6.79865479e-008, -3.18366801e-006, 1.44168735e-006, -0.999993563))
  964. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.574930549, 0.574930549))
  965. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.344958335, 0.919889033, 0.229972243))
  966. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00953674316, -2.12684727, -2.05636024e-006, -1.7843875e-005, 7.64243305e-006, -0.999997258, 5.75557351e-006, 0.999995351, 6.85732812e-006, 0.999996483, -5.11202961e-006, -1.59476949e-005))
  967. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.119585566, 2.27787471, 0.357606828))
  968. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.459944069, 0.200000003, 0.200000003))
  969. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0303163528, 0.758893013, 0.00337219238, 0.965919733, 0.258813649, 1.3213139e-006, 0.258812815, -0.965916812, 7.64615834e-007, -2.79114465e-006, 1.20699406e-006, -0.999993801))
  970. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.574930549, 0.574930549))
  971. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.344958484, 0.229972243))
  972. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00335693359, -0.585725784, -0.321406841, -1.83122029e-005, 7.66292214e-006, -0.99999696, 0.258825988, 0.965919435, 2.53971666e-006, 0.965920508, -0.258825004, -1.7540995e-005))
  973. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0712913945, 0.863545656, 0.233421817))
  974. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.344958484, 0.229972228))
  975. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00337219238, -0.586442947, 0.317743063, -1.82432341e-005, 7.66664743e-006, -0.999996543, -0.258814335, 0.965921223, 1.07241794e-005, 0.965922952, 0.258814842, -1.37735624e-005))
  976. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0712913945, 0.863545656, 0.233421817))
  977. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.459944069, 0.200000003, 0.200000003))
  978. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.643300056, 0.264136553, 0.00337219238, -0.258826196, -0.965919435, 5.58793545e-009, -0.965920866, 0.258825243, -1.36997551e-006, -5.16836735e-007, 3.08267772e-007, -0.999997199))
  979. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.574930549, 0.574930549))
  980. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.264467776, 0.229972139, 0.321961105))
  981. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00224284828, 0.0573778152, -0.000564575195, 0.999995649, 4.87081707e-007, 1.17861418e-006, 4.87081707e-007, 0.99999398, -5.18746674e-007, 1.17861418e-006, -5.18746674e-007, 0.999996006))
  982. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  983. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.229972228, 0.459944576, 0.229972243))
  984. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.977602005, -4.38094139e-006, -1.7843875e-005, 7.64243305e-006, -0.999997258, 5.75557351e-006, 0.999995351, 6.85732812e-006, 0.999996483, -5.11202961e-006, -1.59476949e-005))
  985. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.124185011, 0.863545656, 0.164430141))
  986. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.459944457, 0.68991667, 0.229972228))
  987. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09255981, -4.91738319e-006, 0, -5.61308116e-006, -0.999993682, 3.66941094e-007, 0.999995351, -4.64916229e-006, 1.0122385e-006, 1.40237171e-006, -6.34230673e-007, 0.999996066))
  988. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.787654757, 0.574930549, 0.574930549))
  989. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.459944576, 0.229972243))
  990. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00337219238, -0.747526169, 0.721681118, -1.8417064e-005, 7.72625208e-006, -0.999997079, 0.258825958, 0.965919435, 2.50898302e-006, 0.965920687, -0.258825034, -1.76921021e-005))
  991. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0712913945, 0.863545656, 0.233421817))
  992. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.229972228, 0.459944576, 0.229972243))
  993. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.977602005, -4.38094139e-006, -1.7843875e-005, 7.64243305e-006, -0.999997258, 5.75557351e-006, 0.999995351, 6.85732812e-006, 0.999996483, -5.11202961e-006, -1.59476949e-005))
  994. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0643922389, 0.863545656, 0.226522654))
  995. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.344958335, 0.459944576, 0.229972243))
  996. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00953674316, -2.12695217, -2.69711018e-006, -1.7843875e-005, 7.64243305e-006, -0.999997258, 5.75557351e-006, 0.999995351, 6.85732812e-006, 0.999996483, -5.11202961e-006, -1.59476949e-005))
  997. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.124185011, 2.27787471, 0.307012945))
  998. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.264467776, 0.229972139, 0.321961105))
  999. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00224334002, -0.517313004, -0.000534057617, 0.999995649, 4.87081707e-007, 1.17861418e-006, 4.87081707e-007, 0.99999398, -5.18746674e-007, 1.17861418e-006, -5.18746674e-007, 0.999996006))
  1000. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1001. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.229971901, 2.87465239, 0.200000003))
  1002. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.2382865e-005, -2.18458652, -0.00953674316, 0.999995649, 4.87081707e-007, 1.17861418e-006, 4.87081707e-007, 0.99999398, -5.18746674e-007, 1.17861418e-006, -5.18746674e-007, 0.999996006))
  1003. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.574930549))
  1004. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.459944069, 0.200000003, 0.200000003))
  1005. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.747545242, 0.664142132, -0.00337219238, -0.258826166, -0.965919733, -2.98023224e-008, 0.965920985, -0.258825272, 1.39488839e-006, 4.26360202e-007, -3.30619514e-007, 0.999997377))
  1006. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.574930549, 0.574930549))
  1007. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Light stone grey","Hitbox",Vector3.new(0.629971921, 4.07465267, 0.200000003))
  1008. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-005, -2.78458118, -0.00953674316, 0.999995649, 4.87081707e-007, 1.17861418e-006, 4.87081707e-007, 0.99999398, -5.18746674e-007, 1.17861418e-006, -5.18746674e-007, 0.999996006))
  1009. mesh("BlockMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.574930549))
  1010. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Wedge",Vector3.new(0.200000003, 1.14986122, 0.459944338))
  1011. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00953674316, -4.19638348, 5.00679016e-006, 1.6375714e-005, -7.68713653e-006, 0.999996006, 5.85103408e-006, 0.999993801, 6.60400838e-006, -0.999995589, 4.93833795e-006, 1.39055592e-005))
  1012. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.574930549, 1, 1))
  1013. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Wedge",Vector3.new(0.200000003, 0.574930549, 0.229972139))
  1014. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00953674316, -3.90885639, 2.11596489e-006, 1.67534308e-005, -7.60145485e-006, 0.999996006, 5.83659858e-006, 0.999993742, 6.57234341e-006, -0.99999553, 4.97791916e-006, 1.40940465e-005))
  1015. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.63242352, 1, 1))
  1016.  
  1017. mouse.Button1Down:connect(function()
  1018. if attack==false and attacktype==1 then
  1019. attacktype=2
  1020. attackone()
  1021. elseif attack==false and attacktype==2 then
  1022. attacktype=1
  1023. attacktwo()
  1024. end
  1025. end)
  1026. function attackone()
  1027. attack=true
  1028. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1029. for i=0,1,0.2 do
  1030. swait()
  1031. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1032. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1033. local h = 5
  1034. 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)
  1035. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1036. 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)
  1037. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1038. scfr = blcf
  1039. elseif not scfr then
  1040. scfr = blcf
  1041. end
  1042. 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)
  1043. end
  1044. so("http://roblox.com/asset/?id=199150686",Hitbox,1,1)
  1045. so("http://roblox.com/asset/?id=206083107",Hitbox,1,2)
  1046. for i=0,1,0.2 do
  1047. swait()
  1048. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1049. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1050. local h = 5
  1051. 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)
  1052. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1053. 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)
  1054. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1055. scfr = blcf
  1056. elseif not scfr then
  1057. scfr = blcf
  1058. end
  1059. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.4)
  1060. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(25)),.4)
  1061. 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)
  1062. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.4)
  1063. end
  1064. attack=false
  1065. con1:disconnect()
  1066. end
  1067.  
  1068. function attacktwo()
  1069. attack=true
  1070. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1071. for i=0,1,0.2 do
  1072. swait()
  1073. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1074. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1075. local h = 5
  1076. 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)
  1077. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1078. 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)
  1079. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1080. scfr = blcf
  1081. elseif not scfr then
  1082. scfr = blcf
  1083. end
  1084. 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)
  1085. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.4)
  1086. end
  1087. so("http://roblox.com/asset/?id=199146359",Hitbox,1,1)
  1088. so("http://roblox.com/asset/?id=206083107",Hitbox,1,1.5)
  1089. for i=0,1,1 do
  1090. swait()
  1091. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1092. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1093. local h = 5
  1094. 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)
  1095. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1096. 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)
  1097. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1098. scfr = blcf
  1099. elseif not scfr then
  1100. scfr = blcf
  1101. end
  1102. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
  1103. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(-45)),.4)
  1104. 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)
  1105. handleweld.C0=clerp(handleweld.C0,cf(0,-.5,-.5)*angles(math.rad(-35),math.rad(0),math.rad(0)),.4)
  1106. end
  1107. attack=false
  1108. con1:disconnect()
  1109. end
  1110.  
  1111. function attackthree()
  1112.  
  1113. end
  1114.  
  1115. idleanim=.4
  1116.  
  1117. while true do
  1118. swait()
  1119. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1120. local velderp=RootPart.Velocity.y
  1121. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1122. if equipped==true or equipped==false then
  1123. if attack==false then
  1124. idle=idle+1
  1125. else
  1126. idle=0
  1127. end
  1128. if idle>=500 then
  1129. if attack==false then
  1130. --Sheath()
  1131. end
  1132. end
  1133. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1134. Anim="Jump"
  1135. if attack==false then
  1136. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1137. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1138. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1139. 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)
  1140. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1141. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1142. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1143. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1144. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1145. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1146. end
  1147. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1148. Anim="Fall"
  1149. if attack==false then
  1150. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1151. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1152. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1153. 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)
  1154. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1155. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1156. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1157. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1158. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1159. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1160. end
  1161. elseif torvel<1 and hitfloor~=nil then
  1162. Anim="Idle"
  1163. if attack==false then
  1164. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(-35)),.3)
  1165. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(35)),.3)
  1166. 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)
  1167. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),.3)
  1168. 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)
  1169. 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)
  1170. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1171. end
  1172. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1173. Anim="Walk"
  1174. if attack==false then
  1175. --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1176. --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1177. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(-35)),.3)
  1178. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(35)),.3)
  1179. 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)
  1180. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-25)),.3)
  1181. --RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1182. --LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1183. 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)
  1184. 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)
  1185. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1186. end
  1187. elseif torvel>=22 and hitfloor~=nil then
  1188. Anim="Run"
  1189. if attack==false then
  1190. RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1191. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1192. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1193. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1194. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1195. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1196. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1197. end
  1198. end
  1199. end
  1200. end
Add Comment
Please, Sign In to add comment