Advertisement
Robloxian_Scripter

Golden demon

Mar 20th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 91.54 KB | None | 0 0
  1. Player=owner
  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. mana=0
  52. local CurrentMode = "Unsheathed"
  53. plr = owner
  54. asdasd = plr.Name
  55. ws = game.Workspace[asdasd]
  56. --NFSBOYLOL EDIT
  57. Player.CanLoadCharacterAppearance = false
  58. Character.Humanoid.MaxHealth = math.huge
  59. Character.Humanoid.JumpPower = 100
  60. Character.Humanoid.WalkSpeed = (90)
  61. function clearshirt() for i,v in pairs(Player:GetChildren()) do
  62. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") then v:remove()
  63. end
  64. end
  65. end
  66. --FUNCTIONS AND HUMANOID STATS
  67. Lighting = game.Lighting
  68. skybox = Instance.new("Sky", Lighting)
  69.  
  70. skybox.SkyboxBk = "rbxassetid://83166908"
  71. skybox.SkyboxDn = "rbxassetid://83166908"
  72. skybox.SkyboxFt = "rbxassetid://83166908"
  73. skybox.SkyboxLf = "rbxassetid://83166908"
  74. skybox.SkyboxRt = "rbxassetid://83166908"
  75. skybox.SkyboxUp = "rbxassetid://83166908"
  76. --SKYBOX
  77.  
  78. Character.Humanoid.NameDisplayDistance = 0
  79. Character.Humanoid.HealthDisplayDistance = 0
  80. Character.Head.BrickColor = BrickColor.new(255,0,0)
  81. Character.Head.face.Texture = "http://www.roblox.com/asset/?id=259421287"
  82. Character.Head.Mesh.MeshId = "http://www.roblox.com/asset/?id=21057410"
  83. Character.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=64886449"
  84. Character.Head.Mesh.Scale = Vector3.new(1,1,1)
  85. Character.Head.Mesh.VertexColor = Vector3.new(0.7,0.7,0.7)
  86. Character.Head.Material = "Neon"
  87.  
  88. shirt = Instance.new("Shirt", Character)
  89. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=359403460"
  90.  
  91. pants = Instance.new("Pants", Character)
  92. pants.PantsTemplate = "http://www.roblox.com/asset/?id=359404229"
  93. --SHIRT AND PANTS
  94. game.Workspace.Base.Material = "Marble"
  95. game.Workspace.Base.BrickColor = BrickColor.new("Gold")
  96. --BASEPLATE
  97. local particleemitter = Instance.new("ParticleEmitter", ws.Torso)
  98. particleemitter.VelocitySpread = 180
  99. particleemitter.Lifetime = NumberRange.new(0.2)
  100. particleemitter.Speed = NumberRange.new(2)
  101. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2), NumberSequenceKeypoint.new(1, 10)})
  102. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  103. particleemitter.Rate = 100
  104. particleemitter.Rotation = NumberRange.new(-45, 45)
  105. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  106. particleemitter.LightEmission = 0
  107. particleemitter.Color = ColorSequence.new(Color3.new(255,255,0), Color3.new(255,210,0)) --Color here
  108.  
  109. local firee = Instance.new("Fire")
  110. firee.Parent = ws.Head
  111. firee.Size = ("3")
  112. firee.Color = Color3.new(90,90,90)
  113. firee.SecondaryColor = Color3.new(90,90,0)
  114. --PARTICLES+FIRE
  115. music = Instance.new("Sound", Character)
  116. music.SoundId ="http://www.roblox.com/asset/?id=182202730"
  117. music.Volume = 0.6
  118. music.Looped = true
  119. wait(0.1)
  120. music:Play()
  121. --MUSIC
  122.  
  123.  
  124.  
  125.  
  126.  
  127. --NFSBOYLOL EDIT
  128. --save shoulders
  129. RSH, LSH=nil, nil
  130. --welds
  131. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  132. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  133. LH=Torso["Left Hip"]
  134. RH=Torso["Right Hip"]
  135. TorsoColor=Torso.BrickColor
  136. function NoOutline(Part)
  137. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  138. end
  139. player=Player
  140. ch=Character
  141. RSH=ch.Torso["Right Shoulder"]
  142. LSH=ch.Torso["Left Shoulder"]
  143. --
  144. RSH.Parent=nil
  145. LSH.Parent=nil
  146. --
  147. RW.Name="Right Shoulder"
  148. RW.Part0=ch.Torso
  149. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  150. RW.C1=cf(0, 0.5, 0)
  151. RW.Part1=ch["Right Arm"]
  152. RW.Parent=ch.Torso
  153. --
  154. LW.Name="Left Shoulder"
  155. LW.Part0=ch.Torso
  156. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  157. LW.C1=cf(0, 0.5, 0)
  158. LW.Part1=ch["Left Arm"]
  159. LW.Parent=ch.Torso
  160.  
  161. local function weldBetween(a, b)
  162. local weldd = Instance.new("ManualWeld")
  163. weldd.Part0 = a
  164. weldd.Part1 = b
  165. weldd.C0 = CFrame.new()
  166. weldd.C1 = b.CFrame:inverse() * a.CFrame
  167. weldd.Parent = a
  168. return weldd
  169. end
  170.  
  171. function nooutline(part)
  172. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  173. end
  174.  
  175. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  176. local fp=it("Part")
  177. fp.formFactor=formfactor
  178. fp.Parent=parent
  179. fp.Reflectance=reflectance
  180. fp.Transparency=transparency
  181. fp.CanCollide=false
  182. fp.Locked=true
  183. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  184. fp.Name=name
  185. fp.Size=size
  186. fp.Position=Character.Torso.Position
  187. nooutline(fp)
  188. fp.Material=material
  189. fp:BreakJoints()
  190. return fp
  191. end
  192.  
  193. function swait(num)
  194. if num==0 or num==nil then
  195. game:service'RunService'.Heartbeat:wait(0)
  196. else
  197. for i=0,num do
  198. game:service'RunService'.Heartbeat:wait(0)
  199. end
  200. end
  201. end
  202.  
  203. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  204. local mesh=it(Mesh)
  205. mesh.Parent=part
  206. if Mesh=="SpecialMesh" then
  207. mesh.MeshType=meshtype
  208. mesh.MeshId=meshid
  209. end
  210. mesh.Offset=offset
  211. mesh.Scale=scale
  212. return mesh
  213. end
  214.  
  215. function weld(parent,part0,part1,c0,c1)
  216. local weld=it("Weld")
  217. weld.Parent=parent
  218. weld.Part0=part0
  219. weld.Part1=part1
  220. weld.C0=c0
  221. weld.C1=c1
  222. return weld
  223. end
  224.  
  225.  
  226. local function CFrameFromTopBack(at, top, back)
  227. local right = top:Cross(back)
  228. return CFrame.new(at.x, at.y, at.z,
  229. right.x, top.x, back.x,
  230. right.y, top.y, back.y,
  231. right.z, top.z, back.z)
  232. end
  233.  
  234. function Triangle(a, b, c)
  235. local edg1 = (c-a):Dot((b-a).unit)
  236. local edg2 = (a-b):Dot((c-b).unit)
  237. local edg3 = (b-c):Dot((a-c).unit)
  238. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  239. a, b, c = a, b, c
  240. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  241. a, b, c = b, c, a
  242. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  243. a, b, c = c, a, b
  244. else
  245. assert(false, "unreachable")
  246. end
  247.  
  248. local len1 = (c-a):Dot((b-a).unit)
  249. local len2 = (b-a).magnitude - len1
  250. local width = (a + (b-a).unit*len1 - c).magnitude
  251.  
  252. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  253.  
  254. local list = {}
  255.  
  256. if len1 > 0.01 then
  257. local w1 = Instance.new('WedgePart', m)
  258. game:GetService("Debris"):AddItem(w1,5)
  259. w1.Material = "SmoothPlastic"
  260. w1.FormFactor = 'Custom'
  261. w1.BrickColor = BrickColor.new("Gold")
  262. w1.Transparency = 0
  263. w1.Reflectance = 0
  264. w1.Material = "Neon"
  265. w1.CanCollide = false
  266. NoOutline(w1)
  267. local sz = Vector3.new(0.2, width, len1)
  268. w1.Size = sz
  269. local sp = Instance.new("SpecialMesh",w1)
  270. sp.MeshType = "Wedge"
  271. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  272. w1:BreakJoints()
  273. w1.Anchored = true
  274. w1.Parent = workspace
  275. w1.Transparency = 0.3
  276. table.insert(Effects,{w1,"Disappear",.03})
  277. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  278. table.insert(list,w1)
  279. end
  280. if len2 > 0.01 then
  281. local w2 = Instance.new('WedgePart', m)
  282. game:GetService("Debris"):AddItem(w2,5)
  283. w2.Material = "SmoothPlastic"
  284. w2.FormFactor = 'Custom'
  285. w2.BrickColor = BrickColor.new("Gold")
  286. w2.Transparency = 0
  287. w2.Reflectance = 0
  288. w2.Material = "Neon"
  289. w2.CanCollide = false
  290. NoOutline(w2)
  291. local sz = Vector3.new(0.2, width, len2)
  292. w2.Size = sz
  293. local sp = Instance.new("SpecialMesh",w2)
  294. sp.MeshType = "Wedge"
  295. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  296. w2:BreakJoints()
  297. w2.Anchored = true
  298. w2.Parent = workspace
  299. w2.Transparency = 0.3
  300. table.insert(Effects,{w2,"Disappear",.03})
  301. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  302. table.insert(list,w2)
  303. end
  304. return unpack(list)
  305. end
  306.  
  307.  
  308. so = function(id,par,vol,pit)
  309. coroutine.resume(coroutine.create(function()
  310. local sou = Instance.new("Sound",par or workspace)
  311. sou.Volume=vol
  312. sou.Pitch=pit or 1
  313. sou.SoundId=id
  314. swait()
  315. sou:play()
  316. game:GetService("Debris"):AddItem(sou,6)
  317. end))
  318. end
  319.  
  320. function clerp(a,b,t)
  321. local qa = {QuaternionFromCFrame(a)}
  322. local qb = {QuaternionFromCFrame(b)}
  323. local ax, ay, az = a.x, a.y, a.z
  324. local bx, by, bz = b.x, b.y, b.z
  325. local _t = 1-t
  326. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  327. end
  328.  
  329. function QuaternionFromCFrame(cf)
  330. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  331. local trace = m00 + m11 + m22
  332. if trace > 0 then
  333. local s = math.sqrt(1 + trace)
  334. local recip = 0.5/s
  335. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  336. else
  337. local i = 0
  338. if m11 > m00 then
  339. i = 1
  340. end
  341. if m22 > (i == 0 and m00 or m11) then
  342. i = 2
  343. end
  344. if i == 0 then
  345. local s = math.sqrt(m00-m11-m22+1)
  346. local recip = 0.5/s
  347. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  348. elseif i == 1 then
  349. local s = math.sqrt(m11-m22-m00+1)
  350. local recip = 0.5/s
  351. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  352. elseif i == 2 then
  353. local s = math.sqrt(m22-m00-m11+1)
  354. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  355. end
  356. end
  357. end
  358.  
  359. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  360. local xs, ys, zs = x + x, y + y, z + z
  361. local wx, wy, wz = w*xs, w*ys, w*zs
  362. local xx = x*xs
  363. local xy = x*ys
  364. local xz = x*zs
  365. local yy = y*ys
  366. local yz = y*zs
  367. local zz = z*zs
  368. 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))
  369. end
  370.  
  371. function QuaternionSlerp(a, b, t)
  372. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  373. local startInterp, finishInterp;
  374. if cosTheta >= 0.0001 then
  375. if (1 - cosTheta) > 0.0001 then
  376. local theta = math.acos(cosTheta)
  377. local invSinTheta = 1/math.sin(theta)
  378. startInterp = math.sin((1-t)*theta)*invSinTheta
  379. finishInterp = math.sin(t*theta)*invSinTheta
  380. else
  381. startInterp = 1-t
  382. finishInterp = t
  383. end
  384. else
  385. if (1+cosTheta) > 0.0001 then
  386. local theta = math.acos(-cosTheta)
  387. local invSinTheta = 1/math.sin(theta)
  388. startInterp = math.sin((t-1)*theta)*invSinTheta
  389. finishInterp = math.sin(t*theta)*invSinTheta
  390. else
  391. startInterp = t-1
  392. finishInterp = t
  393. end
  394. end
  395. 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
  396. end
  397.  
  398. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  399. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  400. end
  401.  
  402. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  403. if hit.Parent==nil then
  404. return
  405. end
  406. local h=hit.Parent:FindFirstChild("Humanoid")
  407. for _,v in pairs(hit.Parent:children()) do
  408. if v:IsA("Humanoid") then
  409. h=v
  410. end
  411. end
  412. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  413. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  414. end
  415. if hit.Parent.className=="Hat" then
  416. hit=hit.Parent.Parent:findFirstChild("Head")
  417. end
  418. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  419. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  420. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  421. return
  422. end]]
  423. -- hs(hit,1.2)
  424. local c=Instance.new("ObjectValue")
  425. c.Name="creator"
  426. c.Value=owner
  427. c.Parent=h
  428. game:GetService("Debris"):AddItem(c,.5)
  429. local Damage=math.huge
  430. -- h:TakeDamage(Damage)
  431. local blocked=false
  432. local block=hit.Parent:findFirstChild("Block")
  433. if block~=nil then
  434. print(block.className)
  435. if block.className=="NumberValue" then
  436. if block.Value>0 then
  437. blocked=true
  438. if decreaseblock==nil then
  439. block.Value=block.Value-1
  440. end
  441. end
  442. end
  443. if block.className=="IntValue" then
  444. if block.Value>0 then
  445. blocked=true
  446. if decreaseblock~=nil then
  447. block.Value=block.Value-1
  448. end
  449. end
  450. end
  451. end
  452. if blocked==false then
  453. -- h:TakeDamage(Damage)
  454. h.Health=h.Health-Damage
  455. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  456. else
  457. h.Health=h.Health-(Damage/2)
  458. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  459. end
  460. if Type=="Knockdown" then
  461. local hum=hit.Parent.Humanoid
  462. hum.PlatformStand=true
  463. coroutine.resume(coroutine.create(function(HHumanoid)
  464. swait(1)
  465. HHumanoid.PlatformStand=false
  466. end),hum)
  467. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  468. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  469. local bodvol=Instance.new("BodyVelocity")
  470. bodvol.velocity=angle*knockback
  471. bodvol.P=5000
  472. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  473. bodvol.Parent=hit
  474. local rl=Instance.new("BodyAngularVelocity")
  475. rl.P=3000
  476. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  477. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  478. rl.Parent=hit
  479. game:GetService("Debris"):AddItem(bodvol,.5)
  480. game:GetService("Debris"):AddItem(rl,.5)
  481. elseif Type=="Normal" then
  482. local vp=Instance.new("BodyVelocity")
  483. vp.P=500
  484. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  485. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  486. if KnockbackType==1 then
  487. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  488. elseif KnockbackType==2 then
  489. vp.velocity=Property.CFrame.lookVector*knockback
  490. end
  491. if knockback>0 then
  492. vp.Parent=hit.Parent.Torso
  493. end
  494. game:GetService("Debris"):AddItem(vp,.5)
  495. elseif Type=="Up" then
  496. local bodyVelocity=Instance.new("BodyVelocity")
  497. bodyVelocity.velocity=vt(0,60,0)
  498. bodyVelocity.P=5000
  499. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  500. bodyVelocity.Parent=hit
  501. game:GetService("Debris"):AddItem(bodyVelocity,1)
  502. local rl=Instance.new("BodyAngularVelocity")
  503. rl.P=3000
  504. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  505. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  506. rl.Parent=hit
  507. game:GetService("Debris"):AddItem(rl,.5)
  508. elseif Type=="Snare" then
  509. local bp=Instance.new("BodyPosition")
  510. bp.P=2000
  511. bp.D=100
  512. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  513. bp.position=hit.Parent.Torso.Position
  514. bp.Parent=hit.Parent.Torso
  515. game:GetService("Debris"):AddItem(bp,1)
  516. elseif Type=="Target" then
  517. local Targetting = false
  518. if Targetting==false then
  519. ZTarget=hit.Parent.Torso
  520. coroutine.resume(coroutine.create(function(Part)
  521. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  522. swait(5)
  523. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  524. end),ZTarget)
  525. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  526. local targetgui=Instance.new("BillboardGui")
  527. targetgui.Parent=ZTarget
  528. targetgui.Size=UDim2.new(10,100,10,100)
  529. local targ=Instance.new("ImageLabel")
  530. targ.Parent=targetgui
  531. targ.BackgroundTransparency=1
  532. targ.Image="rbxassetid://4834067"
  533. targ.Size=UDim2.new(1,0,1,0)
  534. cam.CameraType="Scriptable"
  535. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  536. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  537. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  538. Targetting=true
  539. RocketTarget=ZTarget
  540. for i=1,Property do
  541. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  542. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  543. swait()
  544. end
  545. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  546. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  547. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  548. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  549. end
  550. Targetting=false
  551. RocketTarget=nil
  552. targetgui.Parent=nil
  553. cam.CameraType="Custom"
  554. end
  555. end
  556. local debounce=Instance.new("BoolValue")
  557. debounce.Name="DebounceHit"
  558. debounce.Parent=hit.Parent
  559. debounce.Value=true
  560. game:GetService("Debris"):AddItem(debounce,Delay)
  561. c=Instance.new("ObjectValue")
  562. c.Name="creator"
  563. c.Value=Player
  564. c.Parent=h
  565. game:GetService("Debris"):AddItem(c,.5)
  566. end
  567. end
  568.  
  569.  
  570. function ShowDamage(Pos, Text, Time, Color)
  571. local Rate = (1 / 30)
  572. local Pos = (Pos or Vector3.new(0, 0, 0))
  573. local Text = (Text or "")
  574. local Time = (Time or 2)
  575. local Color = (Color or Color3.new(1, 0, 0))
  576. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  577. EffectPart.Anchored = true
  578. local BillboardGui = Instance.new("BillboardGui")
  579. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  580. BillboardGui.Adornee = EffectPart
  581. local TextLabel = Instance.new("TextLabel")
  582. TextLabel.BackgroundTransparency = 1
  583. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  584. TextLabel.Text = Text
  585. TextLabel.TextColor3 = Color
  586. TextLabel.TextScaled = true
  587. TextLabel.Font = Enum.Font.ArialBold
  588. TextLabel.Parent = BillboardGui
  589. BillboardGui.Parent = EffectPart
  590. game.Debris:AddItem(EffectPart, (Time + 0.1))
  591. EffectPart.Parent = game:GetService("Workspace")
  592. Delay(0, function()
  593. local Frames = (Time / Rate)
  594. for Frame = 1, Frames do
  595. wait(Rate)
  596. local Percent = (Frame / Frames)
  597. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  598. TextLabel.TextTransparency = Percent
  599. end
  600. if EffectPart and EffectPart.Parent then
  601. EffectPart:Destroy()
  602. end
  603. end)
  604. end
  605.  
  606. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Handle",Vector3.new(0.34799999, 2.78399992, 0.34799999))
  607. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00324273, 0.013961792, -0.00828075409, -1.38366803e-013, -0.999999881, 4.25688995e-009, 2.4656245e-007, -4.25688951e-009, -1, 1, -1.373172e-013, 2.4656245e-007))
  608. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  609. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Gold","Hitbox",Vector3.new(1.04400003, 6.35600042, 0.600000024))
  610. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000308990479, -5.48094559, -2.00271606e-005, 1, 6.10120843e-011, -1.08637464e-014, -6.10120843e-011, 1, 7.57154339e-011, 1.08637574e-014, -7.57154339e-011, 1))
  611. mesh("BlockMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  612. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  613. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -0.00242900848, 2.16260338, 1.38366803e-013, -2.4656245e-007, -1, -0.999999702, -4.25688862e-009, -1.37317173e-013, -4.25688862e-009, 0.999999702, -2.46562365e-007))
  614. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903))
  615. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  616. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.90548706, -0.270383835, 1.38366803e-013, -2.4656245e-007, -1, -0.707106292, 0.707106471, -1.74345999e-007, 0.707106471, 0.707106292, -1.74345757e-007))
  617. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.226199999, 0.379320025, 1.68895996))
  618. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Gold","Part",Vector3.new(0.200000003, 0.34799999, 0.812000036))
  619. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000484466553, -0.232157588, -1.08489037, -1.6391111e-007, -2.91180186e-007, -0.999989986, -0.999989986, 2.34624395e-007, 1.63911025e-007, 2.34622007e-007, 1, -2.91177315e-007))
  620. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.628719985, 1, 1))
  621. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  622. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.1207962, -1.77352905, -1.94793994e-008, -1.96046472e-007, -1, 0.707106471, 0.707106292, -1.52399679e-007, 0.707106292, -0.707106471, 1.24851695e-007))
  623. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903))
  624. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.200000003, 0.812000036, 0.591600001))
  625. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000144004822, -7.46494102, -8.79764557e-005, 4.47029542e-008, 2.42425131e-007, 0.999980867, -2.50834205e-007, 1, -2.42420526e-007, -0.999980867, -2.5083898e-007, 4.47030146e-008))
  626. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.628719985, 1, 1))
  627. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999))
  628. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0605430603, -4.62282181, 0.00242900848, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013))
  629. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.190239996, 0.25752002, 0.723839939))
  630. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  631. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.90548706, -0.270383835, 1.38366803e-013, -2.4656245e-007, -1, -0.707106292, 0.707106471, -1.74345999e-007, 0.707106471, 0.707106292, -1.74345757e-007))
  632. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.187919989, 0.477920026, 1.68895996))
  633. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.34799999, 0.34799999))
  634. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.232713461, -1.89698601, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463))
  635. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  636. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.231999993, 0.200000003, 0.34799999))
  637. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.174778461, -1.66498375, 9.53674316e-006, 1, -2.34479103e-012, -1.42102626e-014, 2.34479103e-012, 1, -2.89901436e-012, 2.04982668e-014, 2.89901436e-012, 1))
  638. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.580000103, 1))
  639. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(1.04400003, 4.75600052, 0.200000003))
  640. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000287055969, -4.68094635, -3.14712524e-005, 0.999985695, 6.10369533e-011, -1.79689095e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689129e-014, -7.57438556e-011, 0.999985695))
  641. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983))
  642. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999))
  643. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.055480957, 0.00242888927, 4.62282181, 1.38366803e-013, -2.4656245e-007, -1, 0.999999881, 1.91580511e-008, 1.33643137e-013, 1.91580511e-008, -0.999999881, 2.46562422e-007))
  644. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.230839998, 0.200680032, 2.79675961))
  645. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.579999983, 0.812000036, 0.200000003))
  646. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.58329582, -0.00271689892, 0.00253105164, -7.87626959e-008, 0.999999642, -2.45072926e-007, -0.999999464, 8.51500772e-008, -4.54507015e-010, 1.08588507e-008, 2.02850984e-007, 0.999999642))
  647. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.798079908, 0.843320072, 0.58927989))
  648. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  649. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.91083908, -0.265031815, 1.38366803e-013, -2.4656245e-007, -1, -0.70710659, -0.707106471, 1.743458e-007, -0.707106471, 0.70710659, -1.74346027e-007))
  650. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.187919989, 0.477920026, 1.68895996))
  651. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  652. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.11735535, -1.77697182, 5.58765407e-008, -2.23627353e-007, -1, 0.707106352, -0.707106411, 1.97639011e-007, -0.707106411, -0.707106352, 1.18617642e-007))
  653. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903))
  654. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  655. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.21653748, 2.8604393, 1.38366803e-013, -2.4656245e-007, -1, 0.707106769, 0.707106709, -1.74345857e-007, 0.707106709, -0.707106769, 1.74346084e-007))
  656. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.214599997, 0.428039998, 1.68895996))
  657. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  658. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.91083908, -0.265031815, 1.38366803e-013, -2.4656245e-007, -1, -0.70710659, -0.707106471, 1.743458e-007, -0.707106471, 0.70710659, -1.74346027e-007))
  659. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.214599997, 0.428039998, 1.68895996))
  660. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.44659999, 0.200000003, 0.371199995))
  661. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00553905964, -0.620464325, 0.00238800049, 0.999994755, 4.21545732e-009, 1.69303116e-013, -4.2154511e-009, 1, -2.46550314e-007, -1.77448632e-013, 2.46551593e-007, 0.999994755))
  662. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  663. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  664. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.12079048, -0.461172104, -1.20904753e-008, -2.04617493e-007, -1, 0.70710665, 0.70710659, -1.53235618e-007, 0.70710659, -0.70710665, 1.36137132e-007))
  665. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903))
  666. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.812000036, 0.200000003, 0.579999983))
  667. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.58329773, -0.00251197815, 0.00270497799, 4.25687707e-009, -1, 2.46565747e-007, 1.65165096e-013, -2.46565747e-007, -1, 1, 4.25687707e-009, 1.64115493e-013))
  668. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.526639998, 1))
  669. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.200000003, 0.812000036, 0.34799999))
  670. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.294445038, 1.4429245, 0.00253105164, 0.965925753, -0.258819014, 6.3815186e-008, 0.258819014, 0.965925753, -2.38160979e-007, -1.38366803e-013, 2.4656245e-007, 1))
  671. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  672. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  673. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.12079048, -0.461172104, -1.20904753e-008, -2.04617493e-007, -1, 0.70710665, 0.70710659, -1.53235618e-007, 0.70710659, -0.70710665, 1.36137132e-007))
  674. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903))
  675. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999))
  676. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0605430603, -4.62282181, 0.00242900848, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013))
  677. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.229680017, 0.249400035, 0.650759876))
  678. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  679. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.90548706, -0.270383835, 1.38366803e-013, -2.4656245e-007, -1, -0.707106292, 0.707106471, -1.74345999e-007, 0.707106471, 0.707106292, -1.74345757e-007))
  680. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.214599997, 0.428039998, 1.68895996))
  681. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(1.04400003, 0.231999993, 0.34799999))
  682. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28609848, -1.26961899, 0.00253105164, 0.707106709, -0.707106769, 1.74346084e-007, 0.707106769, 0.707106709, -1.74345857e-007, -1.38366803e-013, 2.4656245e-007, 1))
  683. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  684. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.21653748, 2.8604393, 1.38366803e-013, -2.4656245e-007, -1, 0.707106769, 0.707106709, -1.74345857e-007, 0.707106709, -0.707106769, 1.74346084e-007))
  685. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.187919989, 0.477920026, 1.68895996))
  686. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  687. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.21997452, 2.85700226, 1.38366803e-013, -2.4656245e-007, -1, 0.70710659, -0.70710665, 1.74346042e-007, -0.70710665, -0.70710659, 1.74345828e-007))
  688. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.214599997, 0.428039998, 1.68895996))
  689. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  690. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -2.18717003, 1.162413, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013))
  691. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.187919989, 0.477920026, 1.68895996))
  692. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  693. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -2.18717003, 1.162413, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013))
  694. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.214599997, 0.428039998, 1.68895996))
  695. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  696. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.11734962, -0.464616776, 4.62869565e-008, -2.3199955e-007, -1, 0.707106471, -0.70710659, 1.96778231e-007, -0.70710659, -0.707106471, 1.31318558e-007))
  697. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903))
  698. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.579999983, 0.200000003, 0.34799999))
  699. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000606894493, -1.54850197, -4.76837158e-006, 1, -2.34479103e-012, -1.42102626e-014, 2.34479103e-012, 1, -2.89901436e-012, 2.04982668e-014, 2.89901436e-012, 1))
  700. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  701. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  702. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -2.18717003, -1.15753412, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013))
  703. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.214599997, 0.428039998, 1.68895996))
  704. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.34799999, 0.34799999))
  705. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.23126626, -1.89697075, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463))
  706. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.580000222, 1, 1))
  707. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(1.04400003, 0.231999993, 0.34799999))
  708. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.859739304, -1.87621498, 0.00253105164, 0.70710659, 0.70710659, -1.74345828e-007, -0.70710659, 0.70710659, -1.74346027e-007, -1.38366803e-013, 2.4656245e-007, 1))
  709. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.200000003, 0.34799999, 0.34799999))
  710. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.58202362, 0.00305497646, 0.00253105164, 1.91577065e-008, -1, 2.46562593e-007, 0.999994159, 1.91577474e-008, -8.742213e-008, 4.37109904e-008, 2.46561086e-007, 0.999994159))
  711. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  712. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  713. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.58260727, -0.577546716, 1.38366803e-013, -2.4656245e-007, -1, -3.40592123e-008, 0.999999821, -2.46562394e-007, 0.999999821, 3.40592123e-008, 1.29969047e-013))
  714. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903))
  715. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.44659999, 0.69599998, 0.371199995))
  716. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00555098057, -1.02645874, 0.00238800049, 0.999994278, 4.2154551e-009, 1.69303035e-013, -4.21544888e-009, 0.999999523, -2.46550201e-007, -1.77448632e-013, 2.46551593e-007, 0.999994755))
  717. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  718. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  719. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -0.0024292469, 2.16260338, 1.38366803e-013, -2.4656245e-007, -1, -0.999999702, -6.38615347e-008, -1.22620908e-013, -6.38615347e-008, 0.999999702, -2.46562365e-007))
  720. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903))
  721. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.200000003, 0.463999987, 0.34799999))
  722. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000650644302, -1.8385067, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463))
  723. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  724. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.200000003, 4.75600052, 0.200000003))
  725. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000156164169, -4.68094444, -0.000274658203, 0.999971211, 5.13775689e-011, -1.44165397e-014, -5.13864507e-011, 1, 6.64499566e-011, 8.34828473e-015, -6.64783784e-011, 0.999971211))
  726. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.580000401, 1, 0.69599992))
  727. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  728. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.21997452, 2.85700226, 1.38366803e-013, -2.4656245e-007, -1, 0.70710659, -0.70710665, 1.74346042e-007, -0.70710665, -0.70710659, 1.74345828e-007))
  729. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.226199999, 0.379320025, 1.68895996))
  730. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999))
  731. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0605430603, 0.00242888927, 4.62282181, 1.38366803e-013, -2.4656245e-007, -1, 0.999999881, 1.91580511e-008, 1.33643137e-013, 1.91580511e-008, -0.999999881, 2.46562422e-007))
  732. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.230839998, 0.200680032, 2.79675961))
  733. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  734. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -2.18717003, -1.15753412, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013))
  735. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.226199999, 0.379320025, 1.68895996))
  736. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  737. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -2.18717003, -1.15753412, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013))
  738. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.187919989, 0.477920026, 1.68895996))
  739. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.200000003, 0.231999993, 0.200000003))
  740. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000268936157, -7.1749382, -0.000166773796, -2.98020346e-008, 2.42384317e-007, 0.999980867, -2.50883971e-007, 1, -2.42379713e-007, -0.999980867, -2.50888746e-007, -2.98019742e-008))
  741. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.698320508, 1.00999999, 0.590207934))
  742. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.44659999, 1.15999997, 0.371199995))
  743. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00572288036, 0.249307632, 0.00253105164, 0.999997973, 4.25688151e-009, 1.37316929e-013, -4.25688196e-009, 0.999998093, -2.46561967e-007, -1.38366789e-013, 2.46562422e-007, 0.999999881))
  744. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  745. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.44659999, 0.200000003, 0.371199995))
  746. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00575697422, 1.22929001, 0.00253105164, 1, 4.25689928e-009, 1.49599246e-013, -4.25689928e-009, 1, -2.46565691e-007, -1.50648848e-013, 2.46565691e-007, 1))
  747. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  748. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  749. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.11734962, -0.464616776, 4.62869565e-008, -2.3199955e-007, -1, 0.707106471, -0.70710659, 1.96778231e-007, -0.70710659, -0.707106471, 1.31318558e-007))
  750. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903))
  751. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.200000003, 0.579999983, 0.34799999))
  752. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.347447634, -1.78050041, 0.000102043152, 0.999989986, 6.10373974e-011, -1.79689739e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999989986))
  753. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  754. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  755. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.21653748, 2.8604393, 1.38366803e-013, -2.4656245e-007, -1, 0.707106769, 0.707106709, -1.74345857e-007, 0.707106709, -0.707106769, 1.74346084e-007))
  756. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.226199999, 0.379320025, 1.68895996))
  757. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999))
  758. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.055480957, -4.62282181, 0.00242900848, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013))
  759. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.229680017, 0.249400035, 0.650759876))
  760. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.696000099, 0.231999993, 0.34799999))
  761. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.872640967, -2.18717003, 0.00248718262, 1, 4.25688995e-009, 1.37317214e-013, -4.25688995e-009, 1, -2.4656245e-007, -1.38366803e-013, 2.4656245e-007, 1))
  762. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  763. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.91083908, -0.265031815, 1.38366803e-013, -2.4656245e-007, -1, -0.70710659, -0.707106471, 1.743458e-007, -0.707106471, 0.70710659, -1.74346027e-007))
  764. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.226199999, 0.379320025, 1.68895996))
  765. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  766. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -2.18717003, 1.162413, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013))
  767. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.226199999, 0.379320025, 1.68895996))
  768. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Institutional white","Part",Vector3.new(0.200000003, 1.50800002, 1.04400003))
  769. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.53131104e-005, -7.8129406, 0.00018453598, 4.47029258e-008, 2.42408902e-007, 0.999980867, -2.50858221e-007, 1, -2.42404298e-007, -0.999980867, -2.50863025e-007, 4.47029933e-008))
  770. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.581159949, 1, 1))
  771. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(1.04400003, 0.231999993, 0.34799999))
  772. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000666975975, -2.18694496, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463))
  773. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  774. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.11735535, -1.77697182, 5.58765407e-008, -2.23627353e-007, -1, 0.707106352, -0.707106411, 1.97639011e-007, -0.707106411, -0.707106352, 1.18617642e-007))
  775. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903))
  776. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.231999993, 0.200000003, 0.34799999))
  777. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.173270226, -1.66498375, 0.0001039505, 0.999997854, 6.10373974e-011, -1.7969128e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79691145e-014, -7.57154339e-011, 0.999997854))
  778. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.580000103, 1))
  779. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  780. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.58260727, 0.582428694, -3.71006301e-008, -2.2971102e-007, -1, 2.55454324e-008, 0.999999821, -2.29710963e-007, 0.999999821, -2.55454431e-008, -3.71006159e-008))
  781. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903))
  782. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(1.04400003, 0.231999993, 0.34799999))
  783. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.863862991, -1.87209129, 0.00253105164, 0.70710659, -0.70710659, 1.74346027e-007, 0.70710659, 0.70710659, -1.74345828e-007, -1.38366803e-013, 2.4656245e-007, 1))
  784. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  785. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.58260727, -0.577546716, 1.38366803e-013, -2.4656245e-007, -1, -3.40592123e-008, 0.999999821, -2.46562394e-007, 0.999999821, 3.40592123e-008, 1.29969047e-013))
  786. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903))
  787. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999))
  788. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.21997452, 2.85700226, 1.38366803e-013, -2.4656245e-007, -1, 0.70710659, -0.70710665, 1.74346042e-007, -0.70710665, -0.70710659, 1.74345828e-007))
  789. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.187919989, 0.477920026, 1.68895996))
  790. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.580000043, 4.75600052, 0.200000003))
  791. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0001963377, -4.68094635, -9.53674316e-005, 0.999990404, 6.10373974e-011, -1.79689874e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57154339e-011, 0.999990404))
  792. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.638000011))
  793. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(1.04400003, 0.231999993, 0.34799999))
  794. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.28197098, -1.27374649, 0.00253105164, 0.707106709, 0.707106769, -1.74345885e-007, -0.707106769, 0.707106709, -1.74346056e-007, -1.38366803e-013, 2.4656245e-007, 1))
  795. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.200000003, 0.34799999, 0.34799999))
  796. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.116648793, -1.89650726, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463))
  797. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  798. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  799. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.58260727, 0.582428694, -3.71006301e-008, -2.2971102e-007, -1, 2.55454324e-008, 0.999999821, -2.29710963e-007, 0.999999821, -2.55454431e-008, -3.71006159e-008))
  800. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903))
  801. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.44659999, 0.200000003, 0.371199995))
  802. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00563848019, -0.388711929, 0.00253295898, 0.99999404, 4.25686464e-009, 1.37316401e-013, -4.25686508e-009, 0.999994159, -2.46561001e-007, -1.38366789e-013, 2.46562422e-007, 0.999999881))
  803. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  804. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.34799999, 0.34799999, 0.200000003))
  805. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.58329582, -0.00271689892, 0.00253105164, -7.87626959e-008, 0.999999642, -2.45072926e-007, -0.999999464, 8.51500772e-008, -4.54507015e-010, 1.08588507e-008, 2.02850984e-007, 0.999999642))
  806. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.595080018, 0.683239937))
  807. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999))
  808. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0605430603, 0.00242888927, 4.62282181, 1.38366803e-013, -2.4656245e-007, -1, 0.999999881, 1.91580511e-008, 1.33643137e-013, 1.91580511e-008, -0.999999881, 2.46562422e-007))
  809. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.190239996, 0.25752002, 2.79675961))
  810. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.200000003, 0.231999993, 0.34799999))
  811. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.347726822, -1.60689163, -9.05990601e-005, 0.99999994, 6.59379218e-011, -1.80878482e-014, -6.59667876e-011, 1, -5.95150595e-011, 2.41627922e-014, 5.94866378e-011, 0.99999994))
  812. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.580000103, 1, 1))
  813. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999))
  814. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.1207962, -1.77352905, -1.94793994e-008, -1.96046472e-007, -1, 0.707106471, 0.707106292, -1.52399679e-007, 0.707106292, -0.707106471, 1.24851695e-007))
  815. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903))
  816. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.696000099, 0.231999993, 0.34799999))
  817. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.870689273, -2.18681908, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463))
  818. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Gold","Part",Vector3.new(0.200000003, 0.34799999, 0.812000036))
  819. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000425338745, -0.231835961, -1.08489037, -4.08055101e-009, 2.02203083e-007, 0.99999994, 0.99999994, 2.42933169e-007, 4.08050749e-009, -2.42933169e-007, 1, -2.02203097e-007))
  820. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.628719985, 1, 1))
  821. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Institutional white","Part",Vector3.new(0.812000036, 0.200000003, 0.812000036))
  822. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.58329773, -0.00251197815, 0.00270497799, 4.25687707e-009, -1, 2.46565747e-007, 1.65165096e-013, -2.46565747e-007, -1, 1, 4.25687707e-009, 1.64115493e-013))
  823. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.444280028, 1))
  824. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999))
  825. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.055480957, -4.62282181, 0.00242900848, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013))
  826. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.190239996, 0.25752002, 0.723839939))
  827. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.44659999, 0.200000003, 0.371199995))
  828. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00563395023, 0.887273788, 0.00253295898, 0.999990106, 4.25684776e-009, 1.37315859e-013, -4.25684821e-009, 0.999990225, -2.46560035e-007, -1.38366789e-013, 2.46562422e-007, 0.999999881))
  829. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  830. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.200000003, 0.34799999, 0.34799999))
  831. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.348541379, -1.89650154, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463))
  832. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  833. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.579999983, 0.812000036, 0.200000003))
  834. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.58329582, -0.00271689892, 0.00253105164, -7.87626959e-008, 0.999999642, -2.45072926e-007, -0.999999464, 8.51500772e-008, -4.54507015e-010, 1.08588507e-008, 2.02850984e-007, 0.999999642))
  835. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.835199952, 0.808520079, 0.58927989))
  836. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.44659999, 0.200000003, 0.371199995))
  837. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00555217266, -1.43245697, 0.00238800049, 0.999993682, 4.21545243e-009, 1.69302926e-013, -4.21544666e-009, 0.999998927, -2.46550059e-007, -1.77448618e-013, 2.46551593e-007, 0.999994755))
  838. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1))
  839. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Gold","Part",Vector3.new(0.200000003, 0.34799999, 0.34799999))
  840. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.115347862, -1.89650726, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463))
  841. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  842. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999))
  843. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.055480957, 0.00242888927, 4.62282181, 1.38366803e-013, -2.4656245e-007, -1, 0.999999881, 1.91580511e-008, 1.33643137e-013, 1.91580511e-008, -0.999999881, 2.46562422e-007))
  844. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.190239996, 0.25752002, 2.79675961))
  845. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Gold","Part",Vector3.new(0.200000003, 0.812000036, 0.34799999))
  846. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.300365448, 1.44133759, 0.00253105164, 0.965925753, 0.258819014, -6.3814916e-008, -0.258819014, 0.965925753, -2.38161064e-007, -1.38366803e-013, 2.4656245e-007, 1))
  847. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1))
  848.  
  849. local Lite = it("PointLight",Torso)
  850. Lite.Color = Color3.new(255, 255, 0)
  851. Lite.Range = 8
  852. Lite.Brightness = 10
  853. Lite.Shadows = true
  854.  
  855. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  856. local prt=part("Custom",workspace,"Neon",0,0,"Gold","Effect",vt(0.5,0.5,0.5))
  857. prt.Anchored=true
  858. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  859. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  860. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  861. CF=Part.CFrame
  862. Numbb=0
  863. randnumb=math.random()-math.random()
  864. for i=0,1,0.05 do
  865. wait()
  866. CF=CF*cf(0,1,0)
  867. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  868. Part.CFrame=CF*euler(Numbb,0,0)
  869. Part.Transparency=i
  870. Numbb=Numbb+randnumb
  871. end
  872. Part.Parent=nil
  873. end),prt)
  874. end
  875. --BreakEffect(BrickColor.new("Gold"),Hitbox.CFrame,0.5,math.random(5,20),0.5)
  876.  
  877. function attackone()
  878. attack=true
  879. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  880. for i=0,1,0.1 do
  881. swait()
  882. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(120),math.rad(0),math.rad(20)),.3)
  883. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
  884. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  885. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  886. handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(70),math.rad(-10),math.rad(0)),.3)
  887. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  888. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  889. end
  890. so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,1)
  891. so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,1)
  892. hitconasdf = Hitbox.Touched:connect(function(hit)
  893. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  894. if hum12 and not hum12:IsDescendantOf(Character) then
  895. so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
  896. for i = 1,10 do
  897. BreakEffect(BrickColor.new("Gold"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
  898. end
  899. hitconasdf:disconnect()
  900. end
  901. end)
  902. for i=0,1,0.1 do
  903. swait()
  904. local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  905. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  906. local h = 5
  907. 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)
  908. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  909. 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)
  910. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  911. scfr = blcf
  912. elseif not scfr then
  913. scfr = blcf
  914. end
  915. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(110),math.rad(-90),math.rad(20)),.3)
  916. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
  917. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  918. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  919. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-60),math.rad(-10),math.rad(0)),.3)
  920. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  921. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  922. end
  923. attack=false
  924. con:disconnect()
  925. scfr = nil
  926. pcall(function()
  927. hitconasdf:disconnect()
  928. end)
  929. end
  930.  
  931. function attacktwo()
  932. attack=true
  933. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  934. for i=0,1,0.1 do
  935. swait()
  936. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3)
  937. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
  938. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  939. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  940. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-30),math.rad(-10),math.rad(0)),.3)
  941. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  942. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  943. end
  944. so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,.9)
  945. so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,.9)
  946. hitconasdf = Hitbox.Touched:connect(function(hit)
  947. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  948. if hum12 and not hum12:IsDescendantOf(Character) then
  949. so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
  950. for i = 1,10 do
  951. BreakEffect(BrickColor.new("Gold"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
  952. end
  953. hitconasdf:disconnect()
  954. end
  955. end)
  956. for i=0,1,0.1 do
  957. swait()
  958. local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  959. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  960. local h = 5
  961. 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)
  962. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  963. 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)
  964. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  965. scfr = blcf
  966. elseif not scfr then
  967. scfr = blcf
  968. end
  969. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-50),math.rad(90)),.3)
  970. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
  971. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  972. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  973. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-50),math.rad(10),math.rad(0)),.3)
  974. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  975. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  976. end
  977. attack=false
  978. con:disconnect()
  979. scfr = nil
  980. pcall(function()
  981. hitconasdf:disconnect()
  982. end)
  983. end
  984.  
  985. function Stab()
  986. attack=true
  987. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  988. for i=0,1,0.1 do
  989. swait()
  990. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  991. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(60)),.3)
  992. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(20),math.rad(90)),.3)
  993. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-20),math.rad(-90)),.3)
  994. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  995. RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  996. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  997. end
  998. hitconasdf = Hitbox.Touched:connect(function(hit)
  999. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1000. if hum12 and not hum12:IsDescendantOf(Character) then
  1001. so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
  1002. for i = 1,10 do
  1003. BreakEffect(BrickColor.new("Gold"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
  1004. end
  1005. hitconasdf:disconnect()
  1006. end
  1007. end)
  1008. so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,.9)
  1009. so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,.9)
  1010. for i=0,1,0.1 do
  1011. swait()
  1012. local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  1013. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1014. local h = 5
  1015. 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)
  1016. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1017. 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)
  1018. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1019. scfr = blcf
  1020. elseif not scfr then
  1021. scfr = blcf
  1022. end
  1023. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  1024. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-80)),.4)
  1025. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  1026. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.4)
  1027. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  1028. RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
  1029. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.4)
  1030. end
  1031. con:disconnect()
  1032. attack=false
  1033. scfr = nil
  1034. pcall(function()
  1035. hitconasdf:disconnect()
  1036. end)
  1037. end
  1038.  
  1039. function Spin()
  1040. attack=true
  1041. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1042. hitconasdf = Hitbox.Touched:connect(function(hit)
  1043. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1044. if hum12 and not hum12:IsDescendantOf(Character) then
  1045. so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
  1046. for i = 1,10 do
  1047. BreakEffect(BrickColor.new("Gold"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
  1048. end
  1049. hitconasdf:disconnect()
  1050. end
  1051. end)
  1052. for i=0,1,1 do
  1053. so("http://roblox.com/asset/?id=154965962",Hitbox,1,1)
  1054. so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,1)
  1055. swait()
  1056. for i=0,1,0.1 do
  1057. swait()
  1058. local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  1059. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1060. local h = 5
  1061. 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)
  1062. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1063. 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)
  1064. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1065. scfr = blcf
  1066. elseif not scfr then
  1067. scfr = blcf
  1068. end
  1069. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(90),math.rad(0),math.rad(-50)),.3)
  1070. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*angles(math.rad(90),math.rad(0),math.rad(50)),.3)
  1071. LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.3)
  1072. RH.C0=clerp(RH.C0,cf(1,-.5,-1)*angles(math.rad(-20),math.rad(90),math.rad(0)),.3)
  1073. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*euler(6*i,0,0),.5)
  1074. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(30)),1)
  1075. end
  1076. end
  1077. attack=false
  1078. con:disconnect()
  1079. scfr = nil
  1080. pcall(function()
  1081. hitconasdf:disconnect()
  1082. end)
  1083. end
  1084.  
  1085. function ContAttack()
  1086. attack=true
  1087. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1088. hitconasdf = Hitbox.Touched:connect(function(hit)
  1089. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1090. if hum12 and not hum12:IsDescendantOf(Character) then
  1091. so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
  1092. for i = 1,10 do
  1093. BreakEffect(BrickColor.new("Gold"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
  1094. end
  1095. hitconasdf:disconnect()
  1096. end
  1097. end)
  1098. for i=1,4 do
  1099. swait()
  1100. for i=0,1,0.2 do
  1101. swait()
  1102. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(120),math.rad(0),math.rad(20)),.3)
  1103. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
  1104. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1105. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1106. handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(70),math.rad(-10),math.rad(0)),.3)
  1107. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1108. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  1109. end
  1110. so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,1)
  1111. so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,1)
  1112. for i=0,1,0.2 do
  1113. swait()
  1114. local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  1115. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1116. local h = 5
  1117. 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)
  1118. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1119. 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)
  1120. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1121. scfr = blcf
  1122. elseif not scfr then
  1123. scfr = blcf
  1124. end
  1125. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(110),math.rad(-90),math.rad(20)),.3)
  1126. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
  1127. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1128. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1129. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-60),math.rad(-10),math.rad(0)),.3)
  1130. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1131. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  1132. end
  1133. for i=0,1,0.2 do
  1134. swait()
  1135. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3)
  1136. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
  1137. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1138. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1139. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-30),math.rad(-10),math.rad(0)),.3)
  1140. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
  1141. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
  1142. end
  1143. so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,.9)
  1144. so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,.9)
  1145. for i=0,1,0.2 do
  1146. swait()
  1147. local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
  1148. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1149. local h = 5
  1150. 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)
  1151. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1152. 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)
  1153. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1154. scfr = blcf
  1155. elseif not scfr then
  1156. scfr = blcf
  1157. end
  1158. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-50),math.rad(90)),.3)
  1159. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
  1160. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1161. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1162. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-50),math.rad(10),math.rad(0)),.3)
  1163. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1164. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
  1165. end
  1166. end
  1167. attack=false
  1168. con:disconnect()
  1169. scfr = nil
  1170. pcall(function()
  1171. hitconasdf:disconnect()
  1172. end)
  1173. end
  1174.  
  1175.  
  1176. function Sheathe()
  1177. attack = true
  1178. so("http://www.roblox.com/asset/?id=273797222",Hitbox,1,.9)
  1179. CurrentMode = "Sheathed"
  1180. for i = 0,1,0.1 do
  1181. swait()
  1182. handleweld.Part0 = Torso
  1183. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1184. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.3)
  1185. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(190),math.rad(0),math.rad(0)),.3)
  1186. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(20),math.rad(-10)),.3)
  1187. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1188. 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)),.3)
  1189. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1190. end
  1191. attack = false
  1192. end
  1193.  
  1194. function Unsheathe()
  1195. attack = true
  1196. CurrentMode = "Unsheathed"
  1197. so("http://www.roblox.com/asset/?id=239169404",Hitbox,1,.9)
  1198. for i = 0,1,0.1 do
  1199. swait()
  1200. handleweld.Part0 = RightArm
  1201. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  1202. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1203. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(200),math.rad(0),math.rad(0)),.3)
  1204. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(-30),math.rad(-30)),.3)
  1205. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1206. 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)),.3)
  1207. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
  1208. end
  1209. scfr = nil
  1210. attack = false
  1211. end
  1212.  
  1213. local Sit = false
  1214.  
  1215. mouse.Button1Down:connect(function()
  1216. if attack==false then
  1217. if attacktype==1 and CurrentMode == "Unsheathed" then
  1218. attack=true
  1219. attacktype=2
  1220. attackone()
  1221. elseif attacktype==2 and CurrentMode == "Unsheathed" then
  1222. attack=true
  1223. attacktype=1
  1224. attacktwo()
  1225. end
  1226. end
  1227. end)
  1228.  
  1229.  
  1230. mouse.KeyDown:connect(function(k)
  1231. k=k:lower()
  1232. if k=='q' then
  1233. if attack==false and CurrentMode == "Unsheathed" then
  1234. Stab()
  1235. end
  1236. elseif k=='e' then
  1237. if attack==false and CurrentMode == "Unsheathed" then
  1238. Spin()
  1239. end
  1240. elseif k=='r' then
  1241. if attack==false and CurrentMode == "Unsheathed" then
  1242. ContAttack()
  1243. end
  1244. elseif k=='f' then
  1245. if attack==false and CurrentMode == "Unsheathed" then
  1246. Sheathe()
  1247. elseif k=='f' then
  1248. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1249. Unsheathe()
  1250. end
  1251. end
  1252. elseif k=='t' then
  1253. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1254. Sit = true
  1255. Humanoid.WalkSpeed = 0
  1256. elseif k=='t' then
  1257. if attack==false and Sit == true and CurrentMode == "Sheathed" then
  1258. Sit = false
  1259. Humanoid.WalkSpeed = 16
  1260. end
  1261. end
  1262.  
  1263. end
  1264. end)
  1265.  
  1266.  
  1267. local sine = 0
  1268. local change = 1
  1269. local val = 0
  1270.  
  1271. while true do
  1272. swait()
  1273. sine = sine + change
  1274. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1275. local velderp=RootPart.Velocity.y
  1276. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1277. if equipped==true or equipped==false then
  1278. if attack==false then
  1279. idle=idle+1
  1280. else
  1281. idle=0
  1282. end
  1283. if idle>=500 then
  1284. if attack==false then
  1285. end
  1286. end
  1287. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1288. Anim="Jump"
  1289. if attack==false and Sit == false and CurrentMode == "Unsheathed" then
  1290. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1291. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1292. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(50),math.rad(0),math.rad(30)),.3)
  1293. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-40),math.rad(5),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1294. LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1295. handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(-10),math.rad(0)),.3)
  1296. end
  1297. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1298. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1299. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1300. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(30)),.3)
  1301. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-30)),.3)
  1302. LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1303. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1304. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1305. end
  1306. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1307. Anim="Fall"
  1308. if attack==false and Sit == false and CurrentMode == "Unsheathed" then
  1309. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1310. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1311. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-5),math.rad(0),math.rad(20)),.3)
  1312. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-40),math.rad(5),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1313. LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1314. handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(-10),math.rad(0)),.3)
  1315. end
  1316. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1317. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1318. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1319. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(50)),.3)
  1320. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1321. LH.C0=clerp(LH.C0,cf(-1,-.5,-.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1322. RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1323. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1324. end
  1325. elseif torvel<1 and hitfloor~=nil then
  1326. Anim="Idle"
  1327. if attack==false and Sit == false and CurrentMode == "Unsheathed" then
  1328. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1329. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(40)),.3)
  1330. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(20)),.3)
  1331. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(20),math.rad(-10)),.3)
  1332. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1333. 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)),.3)
  1334. handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(-10),math.rad(0)),.3)
  1335. end
  1336. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1337. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1338. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
  1339. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(5)),.3)
  1340. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-5)),.3)
  1341. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1342. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1343. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1344. end
  1345. if attack==false and Sit == true and CurrentMode == "Sheathed" then
  1346. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1347. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1348. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-10),math.rad(0),math.rad(5)),.3)
  1349. LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(30)),.3)
  1350. LH.C0=clerp(LH.C0,cf(-1,.7,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1351. RH.C0=clerp(RH.C0,cf(1,-.5,-.5)*angles(math.rad(0),math.rad(90),math.rad(70))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1352. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1353. end
  1354. elseif torvel>2 and hitfloor~=nil then
  1355. Anim="Walk"
  1356. if attack==false and Sit == false and CurrentMode == "Unsheathed" then
  1357. change=3
  1358. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1359. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1360. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-5),math.rad(0),math.rad(20)),.3)
  1361. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-30),math.rad(5),math.rad(-10)),.3)
  1362. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1363. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  1364. handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(15),math.rad(-10),math.rad(0)),.3)
  1365. end
  1366. if attack==false and Sit == false and CurrentMode == "Sheathed" then
  1367. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1368. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1369. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(30*math.cos(sine/10)),math.rad(0),math.rad(5)),.3)
  1370. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-30*math.cos(sine/10)),math.rad(0),math.rad(-5)),.3)
  1371. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1372. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1373. handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
  1374. end
  1375. end
  1376. end
  1377. if #Effects>0 then
  1378. for e=1,#Effects do
  1379. if Effects[e]~=nil then
  1380. local Thing=Effects[e]
  1381. if Thing~=nil then
  1382. local Part=Thing[1]
  1383. local Mode=Thing[2]
  1384. local Delay=Thing[3]
  1385. local IncX=Thing[4]
  1386. local IncY=Thing[5]
  1387. local IncZ=Thing[6]
  1388. if Thing[1].Transparency<=1 then
  1389. if Thing[2]=="Block1" then
  1390. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1391. Mesh=Thing[1].Mesh
  1392. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1393. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1394. elseif Thing[2]=="Cylinder" then
  1395. Mesh=Thing[1].Mesh
  1396. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1397. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1398. elseif Thing[2]=="Blood" then
  1399. Mesh=Thing[7]
  1400. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1401. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1402. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1403. elseif Thing[2]=="Elec" then
  1404. Mesh=Thing[1].Mesh
  1405. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1406. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1407. elseif Thing[2]=="Disappear" then
  1408. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1409. end
  1410. else
  1411. Part.Parent=nil
  1412. table.remove(Effects,e)
  1413. end
  1414. end
  1415. end
  1416. end
  1417. end
  1418. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement