Advertisement
simplistic27

Ear Bleed

Oct 5th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.24 KB | None | 0 0
  1. --COVER YOUR EARS MOTHERFUCKER.
  2.  
  3. Player=game:GetService("Players").LocalPlayer
  4. Character=Player.Character
  5. PlayerGui=Player.PlayerGui
  6. Backpack=Player.Backpack
  7. Torso=Character.Torso
  8. Head=Character.Head
  9. Humanoid=Character.Humanoid
  10. Humanoid.WalkSpeed = 999
  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. mana=0
  55.  
  56. mouse=Player:GetMouse()
  57. --save shoulders
  58. RSH, LSH=nil, nil
  59. --welds
  60. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  61. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  62. LH=Torso["Left Hip"]
  63. RH=Torso["Right Hip"]
  64. TorsoColor=Torso.BrickColor
  65. function NoOutline(Part)
  66. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  67. end
  68. player=Player
  69. ch=Character
  70. RSH=ch.Torso["Right Shoulder"]
  71. LSH=ch.Torso["Left Shoulder"]
  72. --
  73. RSH.Parent=nil
  74. LSH.Parent=nil
  75. --
  76. RW.Name="Right Shoulder"
  77. RW.Part0=ch.Torso
  78. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  79. RW.C1=cf(0, 0.5, 0)
  80. RW.Part1=ch["Right Arm"]
  81. RW.Parent=ch.Torso
  82. --
  83. LW.Name="Left Shoulder"
  84. LW.Part0=ch.Torso
  85. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  86. LW.C1=cf(0, 0.5, 0)
  87. LW.Part1=ch["Left Arm"]
  88. LW.Parent=ch.Torso
  89.  
  90. Player=game:GetService('Players').LocalPlayer
  91. Character=Player.Character
  92. Mouse=Player:GetMouse()
  93. m=Instance.new('Model',Character)
  94.  
  95.  
  96. local function weldBetween(a, b)
  97. local weldd = Instance.new("ManualWeld")
  98. weldd.Part0 = a
  99. weldd.Part1 = b
  100. weldd.C0 = CFrame.new()
  101. weldd.C1 = b.CFrame:inverse() * a.CFrame
  102. weldd.Parent = a
  103. return weldd
  104. end
  105.  
  106. function swait(num)
  107. if num==0 or num==nil then
  108. game:service'RunService'.Stepped:wait(0)
  109. else
  110. for i=0,num do
  111. game:service'RunService'.Stepped:wait(0)
  112. end
  113. end
  114. end
  115.  
  116. function nooutline(part)
  117. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  118. end
  119.  
  120. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  121. local fp=it("Part")
  122. fp.formFactor=formfactor
  123. fp.Parent=parent
  124. fp.Reflectance=reflectance
  125. fp.Transparency=transparency
  126. fp.CanCollide=false
  127. fp.Locked=true
  128. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  129. fp.Name=name
  130. fp.Size=size
  131. fp.Position=Character.Torso.Position
  132. nooutline(fp)
  133. fp.Material=material
  134. fp:BreakJoints()
  135. return fp
  136. end
  137.  
  138. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  139. local mesh=it(Mesh)
  140. mesh.Parent=part
  141. if Mesh=="SpecialMesh" then
  142. mesh.MeshType=meshtype
  143. mesh.MeshId=meshid
  144. end
  145. mesh.Offset=offset
  146. mesh.Scale=scale
  147. return mesh
  148. end
  149.  
  150. function weld(parent,part0,part1,c0,c1)
  151. local weld=it("Weld")
  152. weld.Parent=parent
  153. weld.Part0=part0
  154. weld.Part1=part1
  155. weld.C0=c0
  156. weld.C1=c1
  157. return weld
  158. end
  159.  
  160.  
  161. local function CFrameFromTopBack(at, top, back)
  162. local right = top:Cross(back)
  163. return CFrame.new(at.x, at.y, at.z,
  164. right.x, top.x, back.x,
  165. right.y, top.y, back.y,
  166. right.z, top.z, back.z)
  167. end
  168.  
  169. function Triangle(a, b, c)
  170. local edg1 = (c-a):Dot((b-a).unit)
  171. local edg2 = (a-b):Dot((c-b).unit)
  172. local edg3 = (b-c):Dot((a-c).unit)
  173. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  174. a, b, c = a, b, c
  175. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  176. a, b, c = b, c, a
  177. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  178. a, b, c = c, a, b
  179. else
  180. assert(false, "unreachable")
  181. end
  182.  
  183. local len1 = (c-a):Dot((b-a).unit)
  184. local len2 = (b-a).magnitude - len1
  185. local width = (a + (b-a).unit*len1 - c).magnitude
  186.  
  187. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  188.  
  189. local list = {}
  190.  
  191. local TrailColor = ("Dark grey")
  192.  
  193. if len1 > 0.01 then
  194. local w1 = Instance.new('WedgePart', m)
  195. game:GetService("Debris"):AddItem(w1,5)
  196. w1.Material = "SmoothPlastic"
  197. w1.FormFactor = 'Custom'
  198. w1.BrickColor = BrickColor.new(TrailColor)
  199. w1.Transparency = 0
  200. w1.Reflectance = 0
  201. w1.Material = "SmoothPlastic"
  202. w1.CanCollide = false
  203. NoOutline(w1)
  204. local sz = Vector3.new(0.2, width, len1)
  205. w1.Size = sz
  206. local sp = Instance.new("SpecialMesh",w1)
  207. sp.MeshType = "Wedge"
  208. sp.Scale = Vector3.new(0,1,2) * sz/w1.Size
  209. w1:BreakJoints()
  210. w1.Anchored = true
  211. w1.Parent = workspace
  212. w1.Transparency = 0.7
  213. table.insert(Effects,{w1,"Disappear",.01})
  214. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  215. table.insert(list,w1)
  216. end
  217.  
  218. if len2 > 0.01 then
  219. local w2 = Instance.new('WedgePart', m)
  220. game:GetService("Debris"):AddItem(w2,5)
  221. w2.Material = "SmoothPlastic"
  222. w2.FormFactor = 'Custom'
  223. w2.BrickColor = BrickColor.new(TrailColor)
  224. w2.Transparency = 0
  225. w2.Reflectance = 0
  226. w2.Material = "SmoothPlastic"
  227. w2.CanCollide = false
  228. NoOutline(w2)
  229. local sz = Vector3.new(0.2, width, len2)
  230. w2.Size = sz
  231. local sp = Instance.new("SpecialMesh",w2)
  232. sp.MeshType = "Wedge"
  233. sp.Scale = Vector3.new(0,1,2) * sz/w2.Size
  234. w2:BreakJoints()
  235. w2.Anchored = true
  236. w2.Parent = workspace
  237. w2.Transparency = 0.7
  238. table.insert(Effects,{w2,"Disappear",.01})
  239. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  240. table.insert(list,w2)
  241. end
  242. return unpack(list)
  243. end
  244.  
  245.  
  246. so = function(id,par,vol,pit)
  247. coroutine.resume(coroutine.create(function()
  248. local sou = Instance.new("Sound",par or workspace)
  249. sou.Volume=vol
  250. sou.Pitch=pit or 999
  251. sou.SoundId=id
  252. swait()
  253. sou:play()
  254. game:GetService("Debris"):AddItem(sou,999)
  255. end))
  256. end
  257.  
  258. function clerp(a,b,t)
  259. local qa = {QuaternionFromCFrame(a)}
  260. local qb = {QuaternionFromCFrame(b)}
  261. local ax, ay, az = a.x, a.y, a.z
  262. local bx, by, bz = b.x, b.y, b.z
  263. local _t = 1-t
  264. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  265. end
  266.  
  267. function QuaternionFromCFrame(cf)
  268. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  269. local trace = m00 + m11 + m22
  270. if trace > 0 then
  271. local s = math.sqrt(1 + trace)
  272. local recip = 0.5/s
  273. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  274. else
  275. local i = 0
  276. if m11 > m00 then
  277. i = 1
  278. end
  279. if m22 > (i == 0 and m00 or m11) then
  280. i = 2
  281. end
  282. if i == 0 then
  283. local s = math.sqrt(m00-m11-m22+1)
  284. local recip = 0.5/s
  285. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  286. elseif i == 1 then
  287. local s = math.sqrt(m11-m22-m00+1)
  288. local recip = 0.5/s
  289. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  290. elseif i == 2 then
  291. local s = math.sqrt(m22-m00-m11+1)
  292. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  293. end
  294. end
  295. end
  296.  
  297. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  298. local xs, ys, zs = x + x, y + y, z + z
  299. local wx, wy, wz = w*xs, w*ys, w*zs
  300. local xx = x*xs
  301. local xy = x*ys
  302. local xz = x*zs
  303. local yy = y*ys
  304. local yz = y*zs
  305. local zz = z*zs
  306. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  307. end
  308.  
  309. function QuaternionSlerp(a, b, t)
  310. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  311. local startInterp, finishInterp;
  312. if cosTheta >= 0.0001 then
  313. if (1 - cosTheta) > 0.0001 then
  314. local theta = math.acos(cosTheta)
  315. local invSinTheta = 1/math.sin(theta)
  316. startInterp = math.sin((1-t)*theta)*invSinTheta
  317. finishInterp = math.sin(t*theta)*invSinTheta
  318. else
  319. startInterp = 1-t
  320. finishInterp = t
  321. end
  322. else
  323. if (1+cosTheta) > 0.0001 then
  324. local theta = math.acos(-cosTheta)
  325. local invSinTheta = 1/math.sin(theta)
  326. startInterp = math.sin((t-1)*theta)*invSinTheta
  327. finishInterp = math.sin(t*theta)*invSinTheta
  328. else
  329. startInterp = t-1
  330. finishInterp = t
  331. end
  332. end
  333. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  334. end
  335.  
  336. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  337.  
  338.  
  339. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  340. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  341. end
  342.  
  343. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  344. if hit.Parent==nil then
  345. return
  346. end
  347. h=hit.Parent:FindFirstChild("Humanoid")
  348. for _,v in pairs(hit.Parent:children()) do
  349. if v:IsA("Humanoid") then
  350. h=v
  351. end
  352. end
  353. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  354. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  355. end
  356. if hit.Parent.className=="Hat" then
  357. hit=hit.Parent.Parent:findFirstChild("Head")
  358. end
  359. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  360. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  361. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  362. return
  363. end]]
  364. -- hs(hit,1.2)
  365. c=Instance.new("ObjectValue")
  366. c.Name="creator"
  367. c.Value=game:service("Players").LocalPlayer
  368. c.Parent=h
  369. game:GetService("Debris"):AddItem(c,.5)
  370. Damage=math.random(minim,maxim)
  371. -- h:TakeDamage(Damage)
  372. blocked=false
  373. block=hit.Parent:findFirstChild("Block")
  374. if block~=nil then
  375. print(block.className)
  376. if block.className=="NumberValue" then
  377. if block.Value>0 then
  378. blocked=true
  379. if decreaseblock==nil then
  380. block.Value=block.Value-1
  381. end
  382. end
  383. end
  384. if block.className=="IntValue" then
  385. if block.Value>0 then
  386. blocked=true
  387. if decreaseblock~=nil then
  388. block.Value=block.Value-1
  389. end
  390. end
  391. end
  392. end
  393. if blocked==false then
  394. -- h:TakeDamage(Damage)
  395. h.Health=h.Health-Damage
  396. showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
  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,2)
  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,2)
  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,2)
  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,2)
  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. HandleA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HandleA",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  554. HandleAweld=weld(m,Character["Right Arm"],HandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.14440918e-005, 0, 0.800000191, -0.999999821, -2.98023188e-008, 0, 0, 0, 1, -2.98023224e-008, 0.999999702, 0))
  555. mesh("SpecialMesh",HandleA,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.22000003, 1.11999989, 1.48000002))
  556. MagicPrtA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","MagicPrtA",Vector3.new(0.400000066, 0.200000003, 0.400000006))
  557. MagicPrtAweld=weld(m,HandleA,MagicPrtA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.100000858, 3.81469727e-006, 0.999999642, -2.98023064e-008, 2.98023188e-008, 2.98023064e-008, -4.47034836e-008, -0.999999285, 2.98023188e-008, 0.999999404, -2.98023153e-008))
  558. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  559. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599983215, -1.0995748, 0.200019836, 0.999999821, -5.43913802e-006, 3.44865896e-008, -3.44864155e-008, 3.01454435e-008, 0.999999344, -5.43913711e-006, -1, 3.01452339e-008))
  560. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  561. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  562. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998951, 0, -0.600002289, -2.98023224e-008, 0, 0.999999821, 0, 1, 0, -0.999999821, 0, -2.98023224e-008))
  563. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.539999962, 0.539999962, 1.48000002))
  564. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.20000005, 1))
  565. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600006104, -0.599998951, 0, -0.999999821, 0, -2.98023224e-008, -2.98023188e-008, 0, 0.999999702, 0, 1, 0))
  566. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  567. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599983215, -1.29950213, 0.400028229, 0.999999523, -6.69091787e-006, 3.448665e-008, -3.44863018e-008, 3.01455501e-008, 0.999993145, -6.69091651e-006, -0.999999702, 3.0145106e-008))
  568. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  569. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  570. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599973679, 0.100389957, -2.67028809e-005, -0.999999821, 7.28699251e-006, -2.98029086e-008, -2.98028944e-008, 7.16782753e-013, 0.999999344, 7.28699115e-006, 1, -4.99611745e-013))
  571. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  572. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599981308, 0.0995743275, 0.19997406, 0.999999344, 5.36441803e-006, -3.42694264e-008, -4.46758364e-009, 5.93965268e-008, -0.999999225, -5.54323105e-006, 0.999999881, 5.9397351e-008))
  573. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  574. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  575. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599973679, -0.100358725, 0.399974823, 0.999999464, -7.28698978e-006, -2.98017078e-008, -2.98017504e-008, -2.82443882e-013, -0.999998987, 7.28699115e-006, 1, -4.99611745e-013))
  576. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  577. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  578. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599981308, 0.0995743275, 0.200027466, -0.999999523, -5.43913802e-006, -8.94069458e-008, 5.96046235e-008, 3.01454435e-008, -0.999999225, 5.4391362e-006, -1, -3.01443492e-008))
  579. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  580. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  581. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599994659, -1.29949927, 0.399971008, -0.999999821, 6.75052434e-006, -2.98028091e-008, -2.98025888e-008, 1.03027981e-012, 0.99999243, 6.75052297e-006, 1, -8.29105447e-013))
  582. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  583. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  584. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599975586, -0.100389719, 0.400028229, -0.999999225, 7.25718564e-006, -8.9407493e-008, 8.9407493e-008, -1.14667997e-012, -0.999998987, -7.21248216e-006, -0.999999583, 5.01831974e-013))
  585. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  586. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.799999952, 0.200000003))
  587. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599983215, -0.599738359, -0.200023651, -0.999999821, 6.83996359e-006, -2.98027985e-008, -2.98027842e-008, 7.42544481e-013, 0.999999344, 6.83996223e-006, 1, -5.38696854e-013))
  588. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  589. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599979401, -1.0995748, 0.199981689, -0.999999642, 5.46872616e-006, -2.51180481e-008, -2.51182009e-008, -3.01454435e-008, 0.999999344, 5.46872525e-006, 0.999999821, 3.01455607e-008))
  590. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  591. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.799999952, 0.200000003))
  592. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599994659, -0.599813223, 0.199977875, -0.999999821, 4.69404995e-006, -2.98026279e-008, -2.98026137e-008, 5.29311675e-013, 0.999999344, 4.69404904e-006, 1, -3.89419237e-013))
  593. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.400000006, 0.220000014, 0.200000003))
  594. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599994659, 0.600000381, 0, 2.98012424e-008, -4.69401448e-006, -0.999994099, 0.999996483, -4.54851326e-013, 2.98017682e-008, 2.14393451e-011, -0.999997139, 4.69402175e-006))
  595. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  596. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  597. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599973679, -1.29961014, -2.67028809e-005, -0.999999821, 7.28699251e-006, -2.98029086e-008, -2.98028944e-008, 7.16782753e-013, 0.999999344, 7.28699115e-006, 1, -4.99611745e-013))
  598. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  599. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599990845, -0.0995154381, -3.05175781e-005, -0.999999821, 6.75052434e-006, -2.9802866e-008, -2.98028517e-008, 6.63480122e-013, 0.999999344, 6.75052297e-006, 1, -4.62297626e-013))
  600. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  601. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, -1.20000076, 0.999999642, 0, 0, 0, 1, 0, 0, 0, 0.999999642))
  602. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.22000003, 1.11999989, 1.48000002))
  603. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  604. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599990845, -1.09951615, -3.05175781e-005, -0.999999821, 6.75052434e-006, -2.9802866e-008, -2.98028517e-008, 6.63480122e-013, 0.999999344, 6.75052297e-006, 1, -4.62297626e-013))
  605.  
  606. HandleB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HandleB",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  607. HandleBweld=weld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00098991394, 3.05175781e-005, 0.800000191, 0.999999464, 8.36810372e-008, -4.47034836e-008, -5.96046448e-008, 1.96981595e-008, -0.999999702, -8.36810443e-008, 0.999999702, 1.96981613e-008))
  608. mesh("SpecialMesh",HandleB,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.22000003, 1.11999989, 1.48000002))
  609. MagicPrtB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","MagicPrtB",Vector3.new(0.400000066, 0.200000003, 0.400000006))
  610. MagicPrtBweld=weld(m,HandleB,MagicPrtB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00100708008, -0.100000858, 3.43322754e-005, -0.999999285, 8.94069316e-008, 8.36810301e-008, -8.36810017e-008, 2.50053187e-008, -0.999999285, -7.45057633e-008, -0.999999106, -1.01041664e-008))
  611. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  612. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, -1.20000029, 0.999998927, -1.49011434e-008, 2.75411323e-014, -1.49011434e-008, 0.999999404, 7.10542736e-015, 2.75411323e-014, 7.10542736e-015, 0.999999642))
  613. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.22000003, 1.11999989, 1.48000002))
  614. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  615. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599981308, -1.09957433, 0.199989319, -0.999999285, 5.52832898e-006, -2.51180712e-008, -2.51181635e-008, -3.01454222e-008, 0.999999344, 5.51342691e-006, 0.999999523, 3.01455501e-008))
  616. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  617. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.20000005, 1))
  618. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600004196, -0.599998713, 0, -0.999999166, -3.55271368e-015, -2.98023508e-008, -2.98022798e-008, 8.8817842e-015, 0.999999702, -1.49011434e-008, 0.999999404, 7.10542736e-015))
  619. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.799999952, 0.200000003))
  620. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600004196, -0.599812984, 0.199977875, -0.999999344, 4.69386441e-006, -2.9802635e-008, -2.98025782e-008, 5.54223334e-013, 0.999999344, 4.67896234e-006, 0.999999583, -3.92574862e-013))
  621. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  622. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599975586, 0.0995745659, 0.19997406, 0.999998689, 5.24520738e-006, -3.42694086e-008, -4.46761206e-009, 5.93964842e-008, -0.999999225, -5.52832762e-006, 0.999999523, 5.9397351e-008))
  623. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  624. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  625. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599988937, -1.29949903, 0.399974823, -0.999999166, 6.76512536e-006, -2.98028446e-008, -2.98025498e-008, 1.02673425e-012, 0.99999243, 6.75022238e-006, 0.999999404, -8.2600593e-013))
  626. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  627. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  628. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599973679, -0.100358725, 0.399974823, 0.999998868, -7.40587484e-006, -2.98016953e-008, -2.98017575e-008, -2.93098879e-013, -0.999998987, 7.28666373e-006, 0.999999344, -4.92050845e-013))
  629. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  630. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  631. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599992752, -0.0995156765, -3.43322754e-005, -0.999999166, 6.76512536e-006, -2.98029015e-008, -2.98027913e-008, 6.73239242e-013, 0.999999344, 6.75022238e-006, 0.999999404, -4.56523708e-013))
  632. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  633. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599983215, -1.2996099, -2.67028809e-005, -0.999999106, 7.30156671e-006, -2.98029335e-008, -2.98028553e-008, 7.35411732e-013, 0.999999344, 7.28666373e-006, 0.999999344, -4.92050845e-013))
  634. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  635. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599988937, -1.09957433, 0.200023651, 0.999999285, -5.52832898e-006, 3.44866038e-008, -3.44863622e-008, 3.01454222e-008, 0.999999344, -5.51342691e-006, -0.999999523, 3.0145241e-008))
  636. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  637. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  638. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998713, 0, -0.600000381, -2.98022726e-008, 1.77635684e-014, 0.999999821, -1.49011434e-008, 0.999999404, 7.10542736e-015, -0.999999166, -3.55271368e-015, -2.98023508e-008))
  639. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.539999962, 0.539999962, 1.48000002))
  640. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  641. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599985123, -1.29950166, 0.400032043, 0.999998868, -6.85453233e-006, 3.44866748e-008, -3.44862556e-008, 3.01455572e-008, 0.999993145, -6.83962935e-006, -0.999999106, 3.01451237e-008))
  642. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  643. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  644. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599977493, -0.100389481, 0.400024414, -0.999998808, 7.33136903e-006, -8.94075214e-008, 8.94074077e-008, -1.15818466e-012, -0.999998987, -7.28666373e-006, -0.999999046, 5.22248911e-013))
  645. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  646. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.799999952, 0.200000003))
  647. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599985123, -0.599738121, -0.200023651, -0.999999106, 6.95884e-006, -2.98028127e-008, -2.98027487e-008, 7.47846229e-013, 0.999999344, 6.94393748e-006, 0.999999344, -5.43565193e-013))
  648. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  649. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599985123, 0.0995743275, 0.200031281, -0.999998987, -5.30481157e-006, -8.94069601e-008, 5.9604556e-008, 3.01454079e-008, -0.999999225, 5.4985253e-006, -0.999999583, -3.01443599e-008))
  650. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  651. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.400000006, 0.220000014, 0.200000003))
  652. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599994421, 0.599998474, -3.81469727e-006, 2.98012459e-008, -4.69401175e-006, -0.999994099, 0.999996006, -1.19209062e-007, 2.98017913e-008, -2.98018108e-008, -0.999996841, 4.69402084e-006))
  653. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  654. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  655. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599990845, -1.09951591, -3.43322754e-005, -0.999999166, 6.76512536e-006, -2.98029015e-008, -2.98027913e-008, 6.73239242e-013, 0.999999344, 6.75022238e-006, 0.999999404, -4.56523708e-013))
  656. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  657. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599983215, 0.100389719, -2.67028809e-005, -0.999999106, 7.30156671e-006, -2.98029335e-008, -2.98028553e-008, 7.35411732e-013, 0.999999344, 7.28666373e-006, 0.999999344, -4.92050845e-013))
  658.  
  659. local PE1 = Instance.new("ParticleEmitter",MagicPrtA)
  660. PE1.Color = ColorSequence.new(Color3.new (255, 0, 127))
  661. PE1.LightEmission = NumberSequence.new(0.2)
  662. PE1.Size = NumberSequence.new(1.1)
  663. PE1.Texture = "http://www.roblox.com/asset/?id=258908759"
  664. PE1.Lifetime = NumberRange.new(.5)
  665. PE1.Rate = 10
  666. PE1.Transparency = NumberSequence.new(0.2)
  667. PE1.LightEmission = NumberSequence.new(0.2)
  668. PE1.Rotation = NumberRange.new(100)
  669. PE1.Speed = NumberRange.new(0)
  670. PE1.RotSpeed = NumberRange.new(100)
  671.  
  672. local PE2 = Instance.new("ParticleEmitter",MagicPrtB)
  673. PE2.Color = ColorSequence.new(Color3.new (255, 0, 127))
  674. PE2.LightEmission = NumberSequence.new(0.2)
  675. PE2.Size = NumberSequence.new(1.1)
  676. PE2.Texture = "http://www.roblox.com/asset/?id=258908759"
  677. PE2.Lifetime = NumberRange.new(.5)
  678. PE2.Rate = 10
  679. PE2.Transparency = NumberSequence.new(0.2)
  680. PE2.LightEmission = NumberSequence.new(0.2)
  681. PE2.Rotation = NumberRange.new(100)
  682. PE2.Speed = NumberRange.new(0)
  683. PE2.RotSpeed = NumberRange.new(100)
  684.  
  685. so("http://www.roblox.com/asset/?id=159257147",workspace,1,1)
  686.  
  687. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  688. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  689. prt.Anchored=true
  690. prt.CFrame=cframe
  691. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  692. game:GetService("Debris"):AddItem(prt,2)
  693. coroutine.resume(coroutine.create(function(Part,Mesh)
  694. for i=0,1,delay do
  695. swait()
  696. Part.CFrame=Part.CFrame
  697. Part.Transparency=i
  698. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  699. end
  700. Part.Parent=nil
  701. end),prt,msh)
  702. end
  703. --example: MagicCircle(BrickColor.new(""),ExamplePart.CFrame,0,0,0,0,0,0,0.01)
  704.  
  705. MagicCircle(BrickColor.new("Hot pink"),Torso.CFrame,1,1,1,5,5,5,0.01)
  706.  
  707. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  708. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  709. prt.Anchored=true
  710. prt.CFrame=cframe
  711. local PE1 = Instance.new("ParticleEmitter",prt)
  712. PE1.Color = ColorSequence.new(Color3.new (255, 0, 127))
  713. PE1.LightEmission = NumberSequence.new(0.2)
  714. PE1.Size = NumberSequence.new(2)
  715. PE1.Texture = "http://www.roblox.com/asset/?id=258908759"
  716. PE1.Lifetime = NumberRange.new(5)
  717. PE1.Rate = 10
  718. PE1.Transparency = NumberSequence.new(0.2)
  719. PE1.LightEmission = NumberSequence.new(0.2)
  720. PE1.Speed = NumberRange.new(0)
  721. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  722. game:GetService("Debris"):AddItem(prt,2)
  723. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  724. for i=0,1,delay do
  725. swait()
  726. Part.Transparency=i
  727. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  728. end
  729. Part.Parent=nil
  730. end),prt,msh,(math.random(0,2)+math.random())/5)
  731. end
  732. --example: MagicRing(BrickColor.new(""),ExamplePart.CFrame,0,0,0,0,0,0,0.01)
  733.  
  734. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  735. local msh1 = it("BlockMesh")
  736. msh1.Scale = vt(0.5,0.5,0.5)
  737. local S=it("Part")
  738. S.Material = "SmoothPlastic"
  739. S.Name="Effect"
  740. S.formFactor=0
  741. S.Size=vt(x1,y1,z1)
  742. S.BrickColor=color
  743. S.Reflectance = 0
  744. S.TopSurface=0
  745. S.BottomSurface=0
  746. S.Transparency=0
  747. S.Anchored=true
  748. S.CanCollide=false
  749. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  750. S.Parent=workspace
  751. msh1.Parent = S
  752. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.1,0.1,0.1) Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  753. end
  754.  
  755. function attackone()
  756. attack = true
  757. for i = 0,1,0.1 do
  758. swait()
  759. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.8)
  760. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(50)),.8)
  761. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-20)),.8)
  762. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.5) * angles(math.rad(70), math.rad(0), math.rad(50)),.8)
  763. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(100),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  764. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  765. end
  766. for i = 0,1,0.1 do
  767. swait()
  768. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),.8)
  769. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  770. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)),.8)
  771. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)),.8)
  772. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  773. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  774. end
  775. for i = 0,1,1 do
  776. so("http://www.roblox.com/asset/?id=185295584",workspace,1,1)
  777. MagicCircle(BrickColor.new("Hot pink"),MagicPrtA.CFrame,0.1,0.1,0.1,0.8,0.8,0.8,0.06)
  778. MagicRing(BrickColor.new("Hot pink"),MagicPrtA.CFrame,0.1,0.1,0.1,1,1,1,0.06)
  779. MMMAGIC(MagicPrtA,2,2,2,0,0,0,BrickColor.new("Hot pink"))
  780. end
  781. for i = 0,1,0.2 do
  782. swait()
  783. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),.8)
  784. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  785. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)),.8)
  786. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)),.8)
  787. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  788. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  789. end
  790. attack = false
  791. end
  792.  
  793. function attacktwo()
  794. attack = true
  795. for i = 0,1,0.1 do
  796. swait()
  797. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),.8)
  798. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-80)),.8)
  799. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.8)
  800. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-30)),.8)
  801. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  802. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  803. end
  804. for i = 0,1,0.1 do
  805. swait()
  806. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.8)
  807. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(50)),.8)
  808. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.8)
  809. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)),.8)
  810. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(100),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  811. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  812. end
  813. for i = 0,1,1 do
  814. so("http://www.roblox.com/asset/?id=185295584",workspace,1,1)
  815. MagicCircle(BrickColor.new("Hot pink"),MagicPrtB.CFrame,0.1,0.1,0.1,0.8,0.8,0.8,0.06)
  816. MagicRing(BrickColor.new("Hot pink"),MagicPrtB.CFrame,0.1,0.1,0.1,1,1,1,0.06)
  817. MMMAGIC(MagicPrtB,2,2,2,0,0,0,BrickColor.new("Hot pink"))
  818. end
  819. for i = 0,1,0.2 do
  820. swait()
  821. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.8)
  822. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(50)),.8)
  823. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.8)
  824. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)),.8)
  825. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(100),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  826. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  827. end
  828. attack = false
  829. end
  830.  
  831. function attackthree()
  832. attack = true
  833. for i = 0,1,0.1 do
  834. swait()
  835. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.8)
  836. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.8)
  837. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)),.8)
  838. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-20)),.8)
  839. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  840. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  841. end
  842. for i = 0,1,0.1 do
  843. swait()
  844. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  845. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  846. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-70)),.8)
  847. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(70)),.8)
  848. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  849. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  850. end
  851. for i = 0,1,1 do
  852. so("http://www.roblox.com/asset/?id=185302814",workspace,1,1)
  853. MagicCircle(BrickColor.new("Hot pink"),Torso.CFrame*cf(0,0,-5),0.5,0.5,0.5,2,2,2,0.06)
  854. MagicRing(BrickColor.new("Hot pink"),Torso.CFrame*cf(0,0,-5),0.5,0.5,0.5,2,2,2,0.06)
  855. end
  856. for i = 0,1,0.2 do
  857. swait()
  858. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  859. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  860. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-70)),.8)
  861. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(70)),.8)
  862. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  863. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  864. end
  865. attack = false
  866. end
  867.  
  868. mouse.Button1Down:connect(function()
  869. if attacktype == 1 then
  870. attacktype = 2
  871. attackone()
  872. elseif attacktype == 2 then
  873. attacktype = 3
  874. attacktwo()
  875. elseif attacktype == 3 then
  876. attacktype = 1
  877. attackthree()
  878. end
  879. end)
  880.  
  881. mouse.KeyDown:connect(function(k)
  882. k=k:lower()
  883.  
  884. end)
  885.  
  886.  
  887. local sine = 0
  888. local change = 1
  889. local val = 0
  890.  
  891. while true do
  892. swait()
  893. sine = sine + change
  894. local torvel=(RootPart.Velocity*Vector3.new(1,0,2)).magnitude
  895. local velderp=RootPart.Velocity.y
  896. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  897. if equipped==true or equipped==false then
  898. if attack==false then
  899. idle=idle+1
  900. else
  901. idle=0
  902. end
  903. if idle>=500 then
  904. if attack==false then
  905. --Sheath()
  906. end
  907. end
  908. if RootPart.Velocity.y > 1 and hitfloor==nil then
  909. Anim="Jump"
  910. if attack==false then
  911. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.8)
  912. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.8)
  913. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(40)),.8)
  914. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-40)),.8)
  915. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  916. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  917. end
  918. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  919. Anim="Fall"
  920. if attack==false then
  921. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.8)
  922. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.8)
  923. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(70)),.8)
  924. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-70)),.8)
  925. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  926. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  927. end
  928. elseif torvel<1 and hitfloor~=nil then
  929. Anim="Idle"
  930. if attack==false then
  931. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),.8)
  932. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(30)),.8)
  933. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)),.8)
  934. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)),.8)
  935. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(100),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  936. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  937. end
  938. elseif torvel>2 and hitfloor~=nil then
  939. Anim="Walk"
  940. if attack==false then
  941. change=3
  942. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.8)
  943. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.8)
  944. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90*math.cos(sine/1)), math.rad(0), math.rad(15)),.8)
  945. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90*math.cos(sine/1)), math.rad(0), math.rad(-15)),.8)
  946. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.8)
  947. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.8)
  948. end
  949. end
  950. end
  951. if #Effects>0 then
  952. --table.insert(Effects,{prt,"Block1",delay})
  953. for e=1,#Effects do
  954. if Effects[e]~=nil then
  955. --for j=1,#Effects[e] do
  956. local Thing=Effects[e]
  957. if Thing~=nil then
  958. local Part=Thing[1]
  959. local Mode=Thing[2]
  960. local Delay=Thing[3]
  961. local IncX=Thing[4]
  962. local IncY=Thing[5]
  963. local IncZ=Thing[6]
  964. if Thing[1].Transparency<=1 then
  965. if Thing[2]=="Block1" then
  966. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  967. Mesh=Thing[1].Mesh
  968. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  969. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  970. elseif Thing[2]=="Cylinder" then
  971. Mesh=Thing[1].Mesh
  972. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  973. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  974. elseif Thing[2]=="Blood" then
  975. Mesh=Thing[7]
  976. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  977. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  978. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  979. elseif Thing[2]=="Elec" then
  980. Mesh=Thing[1].Mesh
  981. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  982. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  983. elseif Thing[2]=="Disappear" then
  984. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  985. end
  986. else
  987. Part.Parent=nil
  988. table.remove(Effects,e)
  989. end
  990. end
  991. --end
  992. end
  993. end
  994. end
  995. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement