Sevakot

Untitled

Mar 15th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.75 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. cloaked=false
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. deb=false
  38. equipped=true
  39. hand=false
  40. MMouse=nil
  41. combo=0
  42. mana=0
  43. trispeed=.2
  44. attackmode='none'
  45. local idle=0
  46. local Anim="Idle"
  47. local Effects={}
  48. local gun=false
  49. local shoot=false
  50. player=nil
  51. mana=0
  52.  
  53. mouse=Player:GetMouse()
  54. --save shoulders
  55. RSH, LSH=nil, nil
  56. --welds
  57. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  58. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  59. LH=Torso["Left Hip"]
  60. RH=Torso["Right Hip"]
  61. TorsoColor=Torso.BrickColor
  62. function NoOutline(Part)
  63. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  64. end
  65. player=Player
  66. ch=Character
  67. RSH=ch.Torso["Right Shoulder"]
  68. LSH=ch.Torso["Left Shoulder"]
  69. --
  70. RSH.Parent=nil
  71. LSH.Parent=nil
  72. --
  73. RW.Name="Right Shoulder"
  74. RW.Part0=ch.Torso
  75. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  76. RW.C1=cf(0, 0.5, 0)
  77. RW.Part1=ch["Right Arm"]
  78. RW.Parent=ch.Torso
  79. --
  80. LW.Name="Left Shoulder"
  81. LW.Part0=ch.Torso
  82. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  83. LW.C1=cf(0, 0.5, 0)
  84. LW.Part1=ch["Left Arm"]
  85. LW.Parent=ch.Torso
  86.  
  87. Player=game:GetService('Players').LocalPlayer
  88. Character=Player.Character
  89. Mouse=Player:GetMouse()
  90. m=Instance.new('Model',Character)
  91.  
  92.  
  93. local function weldBetween(a, b)
  94. local weldd = Instance.new("ManualWeld")
  95. weldd.Part0 = a
  96. weldd.Part1 = b
  97. weldd.C0 = CFrame.new()
  98. weldd.C1 = b.CFrame:inverse() * a.CFrame
  99. weldd.Parent = a
  100. return weldd
  101. end
  102.  
  103. function swait(num)
  104. if num==0 or num==nil then
  105. game:service'RunService'.Stepped:wait(0)
  106. else
  107. for i=0,num do
  108. game:service'RunService'.Stepped:wait(0)
  109. end
  110. end
  111. end
  112.  
  113. function nooutline(part)
  114. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  115. end
  116.  
  117. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  118. local fp=it("Part")
  119. fp.formFactor=formfactor
  120. fp.Parent=parent
  121. fp.Reflectance=reflectance
  122. fp.Transparency=transparency
  123. fp.CanCollide=false
  124. fp.Locked=true
  125. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  126. fp.Name=name
  127. fp.Size=size
  128. fp.Position=Character.Torso.Position
  129. nooutline(fp)
  130. fp.Material=material
  131. fp:BreakJoints()
  132. return fp
  133. end
  134.  
  135. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  136. local mesh=it(Mesh)
  137. mesh.Parent=part
  138. if Mesh=="SpecialMesh" then
  139. mesh.MeshType=meshtype
  140. mesh.MeshId=meshid
  141. end
  142. mesh.Offset=offset
  143. mesh.Scale=scale
  144. return mesh
  145. end
  146.  
  147. function weld(parent,part0,part1,c0,c1)
  148. local weld=it("Weld")
  149. weld.Parent=parent
  150. weld.Part0=part0
  151. weld.Part1=part1
  152. weld.C0=c0
  153. weld.C1=c1
  154. return weld
  155. end
  156.  
  157.  
  158. local function CFrameFromTopBack(at, top, back)
  159. local right = top:Cross(back)
  160. return CFrame.new(at.x, at.y, at.z,
  161. right.x, top.x, back.x,
  162. right.y, top.y, back.y,
  163. right.z, top.z, back.z)
  164. end
  165.  
  166. function Triangle(a, b, c)
  167. local edg1 = (c-a):Dot((b-a).unit)
  168. local edg2 = (a-b):Dot((c-b).unit)
  169. local edg3 = (b-c):Dot((a-c).unit)
  170. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  171. a, b, c = a, b, c
  172. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  173. a, b, c = b, c, a
  174. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  175. a, b, c = c, a, b
  176. else
  177. assert(false, "unreachable")
  178. end
  179.  
  180. local len1 = (c-a):Dot((b-a).unit)
  181. local len2 = (b-a).magnitude - len1
  182. local width = (a + (b-a).unit*len1 - c).magnitude
  183.  
  184. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  185.  
  186. local list = {}
  187.  
  188. local TrailColor = ("Dark grey")
  189.  
  190. if len1 > 0.01 then
  191. local w1 = Instance.new('WedgePart', m)
  192. game:GetService("Debris"):AddItem(w1,5)
  193. w1.Material = "SmoothPlastic"
  194. w1.FormFactor = 'Custom'
  195. w1.BrickColor = BrickColor.new(TrailColor)
  196. w1.Transparency = 0
  197. w1.Reflectance = 0
  198. w1.Material = "SmoothPlastic"
  199. w1.CanCollide = false
  200. NoOutline(w1)
  201. local sz = Vector3.new(0.2, width, len1)
  202. w1.Size = sz
  203. local sp = Instance.new("SpecialMesh",w1)
  204. sp.MeshType = "Wedge"
  205. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  206. w1:BreakJoints()
  207. w1.Anchored = true
  208. w1.Parent = workspace
  209. w1.Transparency = 0.7
  210. table.insert(Effects,{w1,"Disappear",.01})
  211. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  212. table.insert(list,w1)
  213. end
  214.  
  215. if len2 > 0.01 then
  216. local w2 = Instance.new('WedgePart', m)
  217. game:GetService("Debris"):AddItem(w2,5)
  218. w2.Material = "SmoothPlastic"
  219. w2.FormFactor = 'Custom'
  220. w2.BrickColor = BrickColor.new(TrailColor)
  221. w2.Transparency = 0
  222. w2.Reflectance = 0
  223. w2.Material = "SmoothPlastic"
  224. w2.CanCollide = false
  225. NoOutline(w2)
  226. local sz = Vector3.new(0.2, width, len2)
  227. w2.Size = sz
  228. local sp = Instance.new("SpecialMesh",w2)
  229. sp.MeshType = "Wedge"
  230. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  231. w2:BreakJoints()
  232. w2.Anchored = true
  233. w2.Parent = workspace
  234. w2.Transparency = 0.7
  235. table.insert(Effects,{w2,"Disappear",.01})
  236. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  237. table.insert(list,w2)
  238. end
  239. return unpack(list)
  240. end
  241.  
  242.  
  243. so = function(id,par,vol,pit)
  244. coroutine.resume(coroutine.create(function()
  245. local sou = Instance.new("Sound",par or workspace)
  246. sou.Volume=vol
  247. sou.Pitch=pit or 1
  248. sou.SoundId=id
  249. swait()
  250. sou:play()
  251. game:GetService("Debris"):AddItem(sou,6)
  252. end))
  253. end
  254.  
  255. function clerp(a,b,t)
  256. local qa = {QuaternionFromCFrame(a)}
  257. local qb = {QuaternionFromCFrame(b)}
  258. local ax, ay, az = a.x, a.y, a.z
  259. local bx, by, bz = b.x, b.y, b.z
  260. local _t = 1-t
  261. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  262. end
  263.  
  264. function QuaternionFromCFrame(cf)
  265. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  266. local trace = m00 + m11 + m22
  267. if trace > 0 then
  268. local s = math.sqrt(1 + trace)
  269. local recip = 0.5/s
  270. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  271. else
  272. local i = 0
  273. if m11 > m00 then
  274. i = 1
  275. end
  276. if m22 > (i == 0 and m00 or m11) then
  277. i = 2
  278. end
  279. if i == 0 then
  280. local s = math.sqrt(m00-m11-m22+1)
  281. local recip = 0.5/s
  282. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  283. elseif i == 1 then
  284. local s = math.sqrt(m11-m22-m00+1)
  285. local recip = 0.5/s
  286. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  287. elseif i == 2 then
  288. local s = math.sqrt(m22-m00-m11+1)
  289. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  290. end
  291. end
  292. end
  293.  
  294. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  295. local xs, ys, zs = x + x, y + y, z + z
  296. local wx, wy, wz = w*xs, w*ys, w*zs
  297. local xx = x*xs
  298. local xy = x*ys
  299. local xz = x*zs
  300. local yy = y*ys
  301. local yz = y*zs
  302. local zz = z*zs
  303. 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))
  304. end
  305.  
  306. function QuaternionSlerp(a, b, t)
  307. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  308. local startInterp, finishInterp;
  309. if cosTheta >= 0.0001 then
  310. if (1 - cosTheta) > 0.0001 then
  311. local theta = math.acos(cosTheta)
  312. local invSinTheta = 1/math.sin(theta)
  313. startInterp = math.sin((1-t)*theta)*invSinTheta
  314. finishInterp = math.sin(t*theta)*invSinTheta
  315. else
  316. startInterp = 1-t
  317. finishInterp = t
  318. end
  319. else
  320. if (1+cosTheta) > 0.0001 then
  321. local theta = math.acos(-cosTheta)
  322. local invSinTheta = 1/math.sin(theta)
  323. startInterp = math.sin((t-1)*theta)*invSinTheta
  324. finishInterp = math.sin(t*theta)*invSinTheta
  325. else
  326. startInterp = t-1
  327. finishInterp = t
  328. end
  329. end
  330. 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
  331. end
  332.  
  333. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  334.  
  335.  
  336. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  337. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  338. end
  339.  
  340. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  341. if hit.Parent==nil then
  342. return
  343. end
  344. h=hit.Parent:FindFirstChild("Humanoid")
  345. for _,v in pairs(hit.Parent:children()) do
  346. if v:IsA("Humanoid") then
  347. h=v
  348. end
  349. end
  350. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  351. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  352. end
  353. if hit.Parent.className=="Hat" then
  354. hit=hit.Parent.Parent:findFirstChild("Head")
  355. end
  356. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  357. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  358. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  359. return
  360. end]]
  361. -- hs(hit,1.2)
  362. c=Instance.new("ObjectValue")
  363. c.Name="creator"
  364. c.Value=game:service("Players").LocalPlayer
  365. c.Parent=h
  366. game:GetService("Debris"):AddItem(c,.5)
  367. Damage=math.random(minim,maxim)
  368. -- h:TakeDamage(Damage)
  369. blocked=false
  370. block=hit.Parent:findFirstChild("Block")
  371. if block~=nil then
  372. print(block.className)
  373. if block.className=="NumberValue" then
  374. if block.Value>0 then
  375. blocked=true
  376. if decreaseblock==nil then
  377. block.Value=block.Value-1
  378. end
  379. end
  380. end
  381. if block.className=="IntValue" then
  382. if block.Value>0 then
  383. blocked=true
  384. if decreaseblock~=nil then
  385. block.Value=block.Value-1
  386. end
  387. end
  388. end
  389. end
  390. if blocked==false then
  391. -- h:TakeDamage(Damage)
  392. h.Health=h.Health-Damage
  393. showDamage(hit.Parent,Damage,.5,BrickColor.new("Cyan"))
  394. else
  395. h.Health=h.Health-(Damage/2)
  396. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  397. end
  398. if Type=="Knockdown" then
  399. hum=hit.Parent.Humanoid
  400. hum.PlatformStand=true
  401. coroutine.resume(coroutine.create(function(HHumanoid)
  402. swait(1)
  403. HHumanoid.PlatformStand=false
  404. end),hum)
  405. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  406. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  407. local bodvol=Instance.new("BodyVelocity")
  408. bodvol.velocity=angle*knockback
  409. bodvol.P=5000
  410. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  411. bodvol.Parent=hit
  412. rl=Instance.new("BodyAngularVelocity")
  413. rl.P=3000
  414. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  415. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  416. rl.Parent=hit
  417. game:GetService("Debris"):AddItem(bodvol,.5)
  418. game:GetService("Debris"):AddItem(rl,.5)
  419. elseif Type=="Normal" then
  420. vp=Instance.new("BodyVelocity")
  421. vp.P=500
  422. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  423. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  424. if KnockbackType==1 then
  425. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  426. elseif KnockbackType==2 then
  427. vp.velocity=Property.CFrame.lookVector*knockback
  428. end
  429. if knockback>0 then
  430. vp.Parent=hit.Parent.Torso
  431. end
  432. game:GetService("Debris"):AddItem(vp,.5)
  433. elseif Type=="Up" then
  434. local bodyVelocity=Instance.new("BodyVelocity")
  435. bodyVelocity.velocity=vt(0,60,0)
  436. bodyVelocity.P=5000
  437. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  438. bodyVelocity.Parent=hit
  439. game:GetService("Debris"):AddItem(bodyVelocity,1)
  440. rl=Instance.new("BodyAngularVelocity")
  441. rl.P=3000
  442. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  443. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  444. rl.Parent=hit
  445. game:GetService("Debris"):AddItem(rl,.5)
  446. elseif Type=="Snare" then
  447. bp=Instance.new("BodyPosition")
  448. bp.P=2000
  449. bp.D=100
  450. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  451. bp.position=hit.Parent.Torso.Position
  452. bp.Parent=hit.Parent.Torso
  453. game:GetService("Debris"):AddItem(bp,1)
  454. elseif Type=="Target" then
  455. if Targetting==false then
  456. ZTarget=hit.Parent.Torso
  457. coroutine.resume(coroutine.create(function(Part)
  458. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  459. swait(5)
  460. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  461. end),ZTarget)
  462. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  463. targetgui=Instance.new("BillboardGui")
  464. targetgui.Parent=ZTarget
  465. targetgui.Size=UDim2.new(10,100,10,100)
  466. targ=Instance.new("ImageLabel")
  467. targ.Parent=targetgui
  468. targ.BackgroundTransparency=1
  469. targ.Image="rbxassetid://4834067"
  470. targ.Size=UDim2.new(1,0,1,0)
  471. cam.CameraType="Scriptable"
  472. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  473. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  474. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  475. Targetting=true
  476. RocketTarget=ZTarget
  477. for i=1,Property do
  478. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  479. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  480. swait()
  481. end
  482. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  483. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  484. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  485. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  486. end
  487. Targetting=false
  488. RocketTarget=nil
  489. targetgui.Parent=nil
  490. cam.CameraType="Custom"
  491. end
  492. end
  493. debounce=Instance.new("BoolValue")
  494. debounce.Name="DebounceHit"
  495. debounce.Parent=hit.Parent
  496. debounce.Value=true
  497. game:GetService("Debris"):AddItem(debounce,Delay)
  498. c=Instance.new("ObjectValue")
  499. c.Name="creator"
  500. c.Value=Player
  501. c.Parent=h
  502. game:GetService("Debris"):AddItem(c,.5)
  503. CRIT=false
  504. hitDeb=true
  505. AttackPos=6
  506. end
  507. end
  508.  
  509. showDamage=function(Char,Dealt,du,Color)
  510. m=Instance.new("Model")
  511. m.Name=tostring(Dealt)
  512. h=Instance.new("Humanoid")
  513. h.Health=0
  514. h.MaxHealth=0
  515. h.Parent=m
  516. c=Instance.new("Part")
  517. c.Transparency=0
  518. c.BrickColor=Color
  519. c.Name="Head"
  520. c.TopSurface=0
  521. c.BottomSurface=0
  522. c.formFactor="Plate"
  523. c.Size=Vector3.new(1,.4,1)
  524. ms=Instance.new("CylinderMesh")
  525. ms.Scale=Vector3.new(.8,.8,.8)
  526. if CRIT==true then
  527. ms.Scale=Vector3.new(1,1.25,1)
  528. end
  529. ms.Parent=c
  530. c.Reflectance=0
  531. Instance.new("BodyGyro").Parent=c
  532. c.Parent=m
  533. if Char:findFirstChild("Head")~=nil then
  534. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  535. elseif Char.Parent:findFirstChild("Head")~=nil then
  536. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  537. end
  538. f=Instance.new("BodyPosition")
  539. f.P=2000
  540. f.D=100
  541. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  542. f.position=c.Position+Vector3.new(0,3,0)
  543. f.Parent=c
  544. game:GetService("Debris"):AddItem(m,.5+du)
  545. c.CanCollide=false
  546. m.Parent=workspace
  547. c.CanCollide=false
  548. end
  549.  
  550. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.200000003, 0.200000003, 0.510347784))
  551. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0134277344, -1.08377826, 0.236021042, -0.999991059, 1.64970497e-005, -3.57626704e-005, -1.64969497e-005, -0.999997199, -5.89981786e-010, -3.53156356e-005, -1.55431202e-015, 0.999991059))
  552. mesh("BlockMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 1))
  553. Barrel=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Barrel",Vector3.new(0.400000036, 0.600000024, 0.400000006))
  554. Barrelweld=weld(m,handle,Barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0165214539, -0.556964874, 1.65633035, -0.999990225, -1.64588746e-005, -3.51069939e-005, 3.59414771e-005, 5.92924765e-010, -0.99999088, 1.65416641e-005, -0.999996066, -2.07900868e-007))
  555. mesh("BlockMesh",Barrel,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  556. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  557. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-8.77380371e-005, -0.551608682, 0.933853149, 0.999982119, 4.92241179e-006, 4.47023922e-007, -4.92275558e-006, 0.999994397, 5.18727006e-011, -1.34108632e-006, -6.88231694e-011, 0.999982119))
  558. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 0.850579739))
  559. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.263679713, 0.680464089, 0.200000003))
  560. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000255584717, 1.23079586, 0.679197311, 0.999982119, 2.09204348e-010, 4.47023922e-007, -6.14797824e-010, 0.999994397, 7.37476746e-012, -1.34108632e-006, -2.21242469e-011, 0.999982119))
  561. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.850579739))
  562. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.255169868))
  563. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.86645508e-005, -0.424460649, 0.127323151, 0.999991059, 2.60244997e-006, 5.95537131e-008, -2.60263118e-006, 0.999997079, 2.07900612e-007, -5.06588549e-007, -2.07909366e-007, 0.999991059))
  564. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425283134, 0.425283283, 1))
  565. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.04139137, 0.340232015, 0.255173892))
  566. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.466564178, -0.424417496, -0.00016784668, -2.27435266e-005, -0.999994159, 1.75410797e-011, 7.063058e-005, -1.58892144e-009, -0.999982119, 0.999982119, -2.27441906e-005, 6.97365176e-005))
  567. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  568. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.255169958))
  569. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.7220459e-005, -0.0845518112, 0.127305984, 0.999982119, 1.79009203e-006, 4.76829882e-007, -1.79047493e-006, 0.999994397, 7.47768514e-012, -1.37088864e-006, -2.3080815e-011, 0.999982119))
  570. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.425290078, 1))
  571. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.425283313, 0.200000003))
  572. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.14440918e-005, -0.254490614, -0.0425262451, 0.999982119, 4.47815211e-007, 5.0665767e-007, -4.48213513e-007, 0.999994397, 9.08723097e-012, -1.40071279e-006, -2.40636955e-011, 0.999982119))
  573. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425283134, 1, 0.425283164))
  574. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.255173951, 1.44598627, 0.595405817))
  575. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000183105469, 1.35827327, 0.551862717, 0.999982119, 2.09204348e-010, 4.47023922e-007, -6.14797824e-010, 0.999994397, 7.37476746e-012, -1.34108632e-006, -2.21242469e-011, 0.999982119))
  576. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.61610174, 0.255173981, 0.255173892))
  577. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.254119873, -0.721702576, -0.000198364258, -2.27435994e-005, -0.999994636, -3.5085157e-011, 7.10776076e-005, -1.54646851e-009, -0.999982119, 0.999982119, -2.27442943e-005, 7.01835525e-005))
  578. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  579. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.263679713, 0.200000003, 0.425289869))
  580. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00115585327, -0.551612258, 0.636695862, 0.999982119, 4.92261825e-006, 8.94047844e-007, -4.92297022e-006, 0.999994636, 6.63678834e-011, -1.78811024e-006, -8.55193139e-011, 0.999982119))
  581. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.850580096, 1))
  582. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.680463791, 0.200000003, 0.200000003))
  583. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.976444304, -0.294725418, -0.00431060791, -2.27435994e-005, -0.999994636, -3.5085157e-011, 7.10776076e-005, -1.54646851e-009, -0.999982119, 0.999982119, -2.27442943e-005, 7.01835525e-005))
  584. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.425290078, 0.850579798))
  585. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.42528984, 0.200000003, 0.255173892))
  586. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.27387559, -0.636722565, -0.00016784668, -2.49764744e-005, -0.999994636, -3.70836695e-011, 7.10776076e-005, -1.7011863e-009, -0.999982119, 0.999982119, -2.49771983e-005, 7.01835525e-005))
  587. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.425290078, 1))
  588. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.200000003, 0.200000003, 0.255173892))
  589. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.10395718, -0.764104843, -0.000137329102, -2.49764744e-005, -0.999994636, -3.70836695e-011, 7.10776076e-005, -1.7011863e-009, -0.999982119, 0.999982119, -2.49771983e-005, 7.01835525e-005))
  590. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 1))
  591. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.425289929, 0.340231895))
  592. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0043182373, 1.2733295, 0.0848426819, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  593. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 1))
  594. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.340231895))
  595. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00423049927, 1.01876116, 0.0848426819, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  596. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 1))
  597. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.255173951, 0.200000003, 0.255173892))
  598. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.0424911976, 0.97628212, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  599. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.850580096, 1))
  600. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  601. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.48498535e-005, 0.084962368, 1.18850517, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  602. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.212644935, 0.212645039, 0.425289869))
  603. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Cyan","Part",Vector3.new(0.255173951, 0.200000003, 0.200000003))
  604. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.48498535e-005, 0.084962368, 1.18850517, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  605. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.425290078, 0.850579798))
  606. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.680464029, 0.200000003))
  607. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00429153442, -0.976130962, 0.297080994, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  608. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 0.425289869))
  609. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.255173951, 0.200000003, 0.595405877))
  610. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.10351563e-005, 0.594237328, 0.551851273, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  611. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.425290078, 1))
  612. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.425289869))
  613. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.169742584, 0.0849318504, 1.06118011, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  614. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.425290078, 1))
  615. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.510348022, 0.200000003))
  616. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00430297852, 1.23086357, -0.127353668, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  617. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 0.425289869))
  618. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.255173951, 0.200000003, 0.850579739))
  619. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.34057617e-005, 2.1647141, 0.424444199, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  620. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.850580096, 1))
  621. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.255173951, 0.595406055, 0.200000003))
  622. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.339458823, 1.0612278, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  623. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.425289869))
  624. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.425289899, 0.200000003, 0.200000003))
  625. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.91821289e-005, 0.084962368, 1.3158741, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  626. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.425290078, 0.425289869))
  627. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.510347903))
  628. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0848655701, 0.551791668, -5.91278076e-005, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  629. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 1))
  630. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.425289869))
  631. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.169647217, 0.0849175453, 1.06118774, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  632. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.425290078, 1))
  633. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.425290108, 0.200000003))
  634. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.254673719, -0.212312698, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  635. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 0.425289869))
  636. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.425289869))
  637. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00430297852, 1.52808881, 0.0424671173, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  638. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 1))
  639. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 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.21206665, -0.933796644, 0.679149628, -0.999982119, -5.58144457e-005, -8.9405512e-007, 5.58141619e-005, -0.999994636, 3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  641. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 0.850579798))
  642. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  643. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.127262115, 0.933843374, 0.679164886, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  644. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 0.850579739))
  645. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.255173951, 0.200000003, 0.340231895))
  646. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.14440918e-005, -2.1647017, -2.0980835e-005, -0.999982119, -5.58144457e-005, -8.9405512e-007, 5.58141619e-005, -0.999994636, 3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  647. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.850580096, 1))
  648. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.510347903))
  649. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0848960876, 0.551814079, -1.90734863e-005, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  650. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 1))
  651. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.200000003, 0.200000003, 0.255173892))
  652. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.44389164, -0.764112473, -0.000137329102, -2.53405306e-005, -0.999997318, -2.07920962e-007, 7.14656417e-005, 2.06129954e-007, -0.999991059, 0.999991059, -2.53409107e-005, 7.10185996e-005))
  653. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 1))
  654. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  655. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.551600099, -0.891397476, 0.0849647522, -1.96261317e-005, -0.999994636, -7.89959209e-011, 7.10781751e-005, -1.28376709e-009, -0.999982119, 0.999982119, -1.96267902e-005, 7.018412e-005))
  656. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 0.425289869))
  657. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.255173862, 0.255174011, 0.595405817))
  658. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000217437744, -1.61367238, -0.551843643, -0.999982119, -3.15852139e-006, -8.79772415e-007, -3.15889542e-006, 0.999994636, -2.42164191e-007, 1.77383481e-006, -2.42149667e-007, -0.999982119))
  659. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  660. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.34022662, 0.200000003))
  661. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.7220459e-005, 0.0848674774, 0.509426713, 0.999991059, 2.60264824e-006, 5.06588549e-007, -9.53623385e-007, 2.06911025e-007, 0.999991059, 2.60283809e-006, -0.999997318, 2.06918429e-007))
  662. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425283134, 1, 0.425283164))
  663. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  664. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.551610351, -0.891412735, 0.0848731995, 2.05404231e-005, 0.999994636, 3.72684752e-007, 7.10960012e-005, 3.71262161e-007, -0.999982119, -0.999982119, 2.05411197e-005, -7.02019315e-005))
  665. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 0.425289869))
  666. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  667. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.551705599, 0.933855057, 0.0848388672, -2.27403962e-005, -0.999994636, -5.9601156e-008, -7.10774912e-005, -5.80205715e-008, 0.999982119, -0.999982119, 2.27410965e-005, -7.0183436e-005))
  668. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.850580096, 0.425289869))
  669. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  670. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.551692009, 0.933879852, 0.0849609375, 2.27179899e-005, 0.999994636, -5.9531132e-008, -7.10859167e-005, 6.11118125e-008, 0.999982119, 0.999982119, -2.27186792e-005, 7.0191847e-005))
  671. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.850580096, 0.425289869))
  672. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.255168587, 0.200000003))
  673. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000110626221, 0.127298355, 0.169516325, 0.999982119, 2.23781717e-006, 9.2386108e-007, -1.81791984e-006, -1.01918163e-009, 0.999982119, 2.2382028e-006, -0.999994636, -1.0023522e-009))
  674. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 1, 0.425289869))
  675. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  676. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00854873657, -1.57516098, 0.185529709, -0.999982119, -7.21350352e-006, -8.5031279e-006, -3.48015419e-006, 0.937103271, -0.349032491, 1.13240894e-005, -0.349036932, -0.937091589))
  677. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 0.425289869))
  678. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.200000003, 0.425284624, 0.200000003))
  679. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000102996826, -0.0424919128, 0.0849627256, 0.999991059, 5.58147876e-005, 8.0466998e-007, 1.25170482e-006, -2.72474687e-009, -0.999991059, -5.58146457e-005, 0.999997318, -2.77701706e-009))
  680. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 0.425289869))
  681. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Wedge",Vector3.new(0.200000003, 0.255174011, 0.255173892))
  682. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00849533081, -1.76611137, 0.0303249359, -0.999982119, -7.41118401e-006, -9.01437488e-006, -3.18791808e-006, 0.928048849, -0.372439235, 1.19559481e-005, -0.372443885, -0.928037345))
  683. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 1))
  684. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.200000003, 0.425284624, 0.200000003))
  685. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000106811523, 0.0424900055, 0.0849499702, -0.999982119, -4.47962549e-007, -6.40648068e-007, -1.53471046e-006, -1.13678156e-009, 0.999982119, -4.48370002e-007, 0.999994636, 1.12173104e-009))
  686. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 0.425289869))
  687. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.255168587, 0.200000003))
  688. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000118255615, -0.12729454, 0.169492006, -0.999982119, -5.62619716e-005, -9.83487553e-007, 1.87754631e-006, -2.7208622e-009, -0.999982119, 5.62616806e-005, -0.999994636, 2.79091061e-009))
  689. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 1, 0.425289869))
  690. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  691. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0847396851, 0.933885574, 0.0847232342, 0.999982119, 5.58591455e-005, 8.98660801e-007, -1.7927232e-006, -2.00105266e-008, 0.999982119, 5.58588581e-005, -0.999994636, -1.99453289e-008))
  692. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 0.425289869))
  693. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.200000003, 0.2551741, 0.200000003))
  694. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0849990845, 0.339661598, -0.212226868, -0.999982119, -5.5915436e-005, -7.77094101e-007, -5.59151522e-005, 0.999994636, 1.02350157e-006, 1.67109829e-006, 1.02357262e-006, -0.999982119))
  695. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 1, 0.425289869))
  696. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  697. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0849323273, 0.806465149, 0.169761658, 2.44998719e-005, 0.999994636, 1.26530392e-006, -7.12289184e-005, -1.2636109e-006, 0.999982119, 0.999982119, -2.45006886e-005, 7.03348342e-005))
  698. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.425290078, 0.425289869))
  699. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.255173951, 0.425290108, 0.255173951))
  700. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 1.86757088, -0.127286911, -0.999982119, -5.5915436e-005, -7.77094101e-007, -5.59151522e-005, 0.999994636, 1.02350157e-006, 1.67109829e-006, 1.02357262e-006, -0.999982119))
  701. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  702. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.200000003, 0.2551741, 0.200000003))
  703. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0848350525, 0.339640617, -0.212226868, -0.999982119, -5.5915436e-005, -7.77094101e-007, -5.59151522e-005, 0.999994636, 1.02350157e-006, 1.67109829e-006, 1.02357262e-006, -0.999982119))
  704. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 1, 0.425289869))
  705. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.255173951, 0.340232044, 0.510347784))
  706. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.8064816, 1.14440918e-005, 0.999982119, 5.58740467e-005, 1.35518712e-006, 5.58737629e-005, -0.999994636, -1.12400812e-006, 2.2491804e-006, 1.12411249e-006, -0.999982119))
  707. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  708. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  709. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0848121643, 0.933847427, 0.0847399235, 0.999982119, 5.58591455e-005, 8.98660801e-007, -1.7927232e-006, -2.00105266e-008, 0.999982119, 5.58588581e-005, -0.999994636, -1.99453289e-008))
  710. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 0.425289869))
  711. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  712. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0849186182, 0.806528091, 0.169620514, -2.46491363e-005, -0.999994636, -5.97645396e-007, -7.32047774e-005, -5.95885183e-007, 0.999982119, -0.999982119, 2.46499039e-005, -7.23107005e-005))
  713. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.425290078, 0.425289869))
  714.  
  715. function effect(Color,Ref,LP,P1,returnn)
  716. if LP==nil or P1==nil then return end
  717. local effectsmsh=Instance.new("CylinderMesh")
  718. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  719. effectsmsh.Name="Mesh"
  720. local effectsg=Instance.new("Part")
  721. NoOutline(effectsg)
  722. effectsg.formFactor=3
  723. effectsg.CanCollide=false
  724. effectsg.Name="Eff"
  725. effectsg.Locked=true
  726. effectsg.Anchored=true
  727. effectsg.Size=Vector3.new(0.5,1,0.5)
  728. effectsg.Parent=workspace
  729. effectsmsh.Parent=effectsg
  730. effectsg.BrickColor=BrickColor.new(Color)
  731. effectsg.Reflectance=Ref
  732. local point1=P1
  733. local mg=(LP.p - point1.p).magnitude
  734. effectsg.Size=Vector3.new(0.5,mg,0.5)
  735. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  736. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  737. game:GetService("Debris"):AddItem(effectsg,2)
  738. if returnn then return effectsg end
  739. if not returnn then
  740. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  741. end
  742. end
  743.  
  744. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  745. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  746. prt.Anchored=true
  747. prt.CFrame=cframe
  748. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  749. game:GetService("Debris"):AddItem(prt,2)
  750. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  751. end
  752.  
  753. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  754. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  755. prt.Anchored=true
  756. prt.CFrame=cframe
  757. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  758. game:GetService("Debris"):AddItem(prt,2)
  759. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  760. end
  761.  
  762. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  763. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  764. prt.Anchored=true
  765. prt.CFrame=cframe
  766. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  767. game:GetService("Debris"):AddItem(prt,2)
  768. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  769. end
  770.  
  771.  
  772. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  773. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  774. prt.Anchored=true
  775. prt.CFrame=cframe
  776. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  777. game:GetService("Debris"):AddItem(prt,2)
  778. coroutine.resume(coroutine.create(function(Part,Mesh)
  779. for i=0,1,delay do
  780. swait()
  781. Part.CFrame=Part.CFrame
  782. Part.Transparency=i
  783. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  784. end
  785. Part.Parent=nil
  786. end),prt,msh)
  787. end
  788.  
  789. function LaserBarrage(Prt,Parent)
  790. attack=true
  791. --so("BeamLockon",Prt,1,1)
  792. local efprt=part(3,Parent,"SmoothPlastic",0,0.5,BrickColor.new("Cyan"),"Effect",vt(0.2,0.2,0.2))
  793. efprt.Anchored=true
  794. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  795. spread=vt(0,0,0)*(Prt.Position-Mouse.Hit.p).magnitude/100
  796. --spread=vt(0,0,0)
  797. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  798. game:GetService("Debris"):AddItem(Part,6)
  799. local TheHit=Mouse.Hit.p
  800. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded)
  801. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  802. so("Elec",Prt,0.2,1)
  803. local tefprt=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  804. tefprt.CFrame=cf(pos)
  805. MagicCircle(BrickColor.new("Cyan"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04)
  806. so("Elec",tefprt,0.3,1)
  807. game:GetService("Debris"):AddItem(tefprt,3)
  808. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  809. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  810. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  811. hit.Parent.Humanoid:TakeDamage(15)
  812. end
  813. end
  814. local mag=(Prt.Position-pos).magnitude
  815. MagicCylinder(BrickColor.new("Cyan"),Part.CFrame,1,mag*5,1,0.5,0,0.5,0.05)
  816. Part.Parent=nil
  817. end),efprt,efmsh,spread)
  818. end
  819.  
  820. function Laser(Part,Dmg)
  821. sp = Part.Position
  822. dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0)
  823. local hit,pos = rayCast(sp,dirr.lookVector,100,Character)
  824. local las=Instance.new("Part",Character)
  825. las.Material = "SmoothPlastic"
  826. las.Anchored=true
  827. las.Locked=true
  828. las.CanCollide=false
  829. las.TopSurface=0
  830. las.BottomSurface=0
  831. las.FormFactor = "Custom"
  832. las.BrickColor=BrickColor.new("Cyan")
  833. las.Size=Vector3.new(1,1,1)
  834. las.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  835. local msh=Instance.new("SpecialMesh",las)
  836. mag = (Part.Position-pos).magnitude
  837. msh.Scale=Vector3.new(0.1,mag,0.1)
  838. coroutine.resume(coroutine.create(function(Part,Mesh)
  839. for i = 0,1,0.1 do
  840. wait()
  841. Part.Transparency = Part.Transparency + 0.1
  842. Mesh.Scale = Mesh.Scale + Vector3.new(0.15,0.7,0.15)
  843. end
  844. Part.Parent = nil
  845. end),las,msh)
  846. if pos ~= nil then
  847. local las2=Instance.new("Part",Character)
  848. las2.Material = "SmoothPlastic"
  849. las2.Anchored=true
  850. las2.Locked=true
  851. las2.CanCollide=false
  852. las2.TopSurface=0
  853. las2.BottomSurface=0
  854. las2.FormFactor = "Custom"
  855. las2.BrickColor=BrickColor.new("Cyan")
  856. las2.Size=Vector3.new(1,1,1)
  857. --las2.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  858. las2.CFrame=CFrame.new(pos) *CFrame.Angles(math.rad(90),0,0)
  859. local msh=Instance.new("SpecialMesh",las2)
  860. msh.MeshType = "Sphere"
  861. mag = (Part.Position-pos).magnitude
  862. msh.Scale=Vector3.new(0.1,0.1,0.1)
  863. coroutine.resume(coroutine.create(function(Part,Mesh)
  864. --wait(10)
  865. for i = 0,1,0.1 do
  866. wait()
  867. Part.Transparency = Part.Transparency + 0.1
  868. Mesh.Scale = Mesh.Scale + Vector3.new(0.5,0,0.5)
  869. end
  870. Part.Parent = nil
  871. end),las2,msh)
  872. end
  873. if hit ~= nil and pos ~= nil then
  874. if hit.Parent.className == "Hat" then
  875. hit:BreakJoints()
  876. hit.Velocity = Vector3.new(math.random(-5,5),20,math.random(-5,5))
  877. end
  878. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  879. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  880. hit.Parent.Humanoid:TakeDamage(Dmg)
  881. end
  882. end
  883. --[[if hit.className == "Part" and hit.Parent:findFirstChild("Humanoid") == nil then
  884. end ]]
  885. end
  886. end
  887.  
  888. ShootSounds = {233370753,233370772}
  889.  
  890. function PlaySound(id, pitch, parent, volume)
  891. if volume == nil then volume=tonumber(1) end
  892. local Sound = Instance.new("Sound")
  893. Sound.Name = "Epicosound"
  894. Sound.SoundId = "rbxassetid://"..id
  895. Sound.Volume = volume
  896. Sound.Pitch = pitch
  897. Sound.Looped = false
  898. Sound.Parent = parent
  899. wait()
  900. Sound:Play()
  901. game:service'Debris':AddItem(Sound, 8)
  902. end
  903.  
  904. ShootSounds = {233370753,233370772}
  905.  
  906. ShootSound = function(part)
  907. local shot=math.random(1, #ShootSounds)
  908. PlaySound(ShootSounds[shot], 1, part)
  909. end
  910.  
  911. function Shoot1()
  912. attack = true
  913. for i = 0,1,0.2 do
  914. swait()
  915. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  916. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  917. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)),.3)
  918. LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.5, -1) * angles(math.rad(0), math.rad(80), math.rad(100)),.3)
  919. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  920. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.3)
  921. end
  922. ShootSound(Barrel)
  923. LaserBarrage(Barrel,m)
  924. MagicCircle(BrickColor.new("Cyan"),Barrel.CFrame,.5,.5,.5,.5,.5,.5,0.06)
  925. for i = 0,1,0.1 do
  926. swait()
  927. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-30)),.2)
  928. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(30)),.2)
  929. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-20)),.3)
  930. LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.5, -1) * angles(math.rad(0), math.rad(50), math.rad(130)),.3)
  931. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.2)
  932. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(5)),.2)
  933. end
  934. attack = false
  935. end
  936.  
  937. function Shoot2()
  938. attack = true
  939. for i = 0,1,0.07 do
  940. swait()
  941. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  942. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-80)),.2)
  943. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)),.2)
  944. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)),.2)
  945. RH.C0=clerp(RH.C0,cf(.6,-1,.5)*angles(math.rad(0),math.rad(20),math.rad(0)),.2)
  946. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.2)
  947. end
  948. ShootSound(Barrel)
  949. LaserBarrage(Barrel,m)
  950. MagicCircle(BrickColor.new("Cyan"),Barrel.CFrame,.5,.5,.5,.5,.5,.5,0.06)
  951. for i = 0,1,0.1 do
  952. swait()
  953. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  954. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-80)),.2)
  955. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 1, 0) * angles(math.rad(0), math.rad(50), math.rad(140)),.2)
  956. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)),.2)
  957. RH.C0=clerp(RH.C0,cf(.6,-1,.5)*angles(math.rad(0),math.rad(20),math.rad(0)),.2)
  958. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.2)
  959. end
  960. attack = false
  961. end
  962.  
  963. function Shoot3()
  964. attack = true
  965. for i = 0,1,0.07 do
  966. swait()
  967. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,2)* angles(math.rad(30),math.rad(0),-5*i),.2)
  968. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.2)
  969. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  970. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-80)),.2)
  971. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(60)),.2)
  972. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(70)),.2)
  973. end
  974. for i = 0,1,0.1 do
  975. swait()
  976. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  977. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-80)),.2)
  978. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  979. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)),.2)
  980. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(30)),.2)
  981. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(30)),.2)
  982. end
  983. ShootSound(Barrel)
  984. LaserBarrage(Barrel,m)
  985. MagicCircle(BrickColor.new("Cyan"),Barrel.CFrame,.5,.5,.5,.5,.5,.5,0.06)
  986. for i = 0,1,0.1 do
  987. swait()
  988. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  989. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-80)),.2)
  990. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)),.2)
  991. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-50)),.2)
  992. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20)),.2)
  993. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
  994. end
  995. attack = false
  996. end
  997.  
  998. function SpinShot()
  999. attack = true
  1000. for i=0,1,0.9 do
  1001. swait()
  1002. for i = 0,1,0.1 do
  1003. swait()
  1004. ShootSound(Barrel)
  1005. Laser(Barrel,20)
  1006. MagicCircle(BrickColor.new("Cyan"),Barrel.CFrame,.5,.5,.5,.5,.5,.5,0.06)
  1007. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,2)* angles(math.rad(20),math.rad(0),-5*i),.3)
  1008. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.3)
  1009. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.3)
  1010. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)),.3)
  1011. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(60)),.3)
  1012. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(70)),.3)
  1013. end
  1014. end
  1015. attack = false
  1016. end
  1017.  
  1018. mouse.Button1Down:connect(function()
  1019. if attack==false then
  1020. if attacktype == 1 then
  1021. attack = true
  1022. attacktype = 2
  1023. Shoot1()
  1024. elseif attacktype == 2 then
  1025. attack = true
  1026. attacktype = 3
  1027. Shoot2()
  1028. elseif attacktype == 3 then
  1029. attack = true
  1030. attacktype = 1
  1031. Shoot3()
  1032. end
  1033. end
  1034. end)
  1035.  
  1036. mouse.KeyDown:connect(function(k)
  1037. k=k:lower()
  1038. if k=='q' then
  1039. if attack==false then
  1040. SpinShot()
  1041. end
  1042. end
  1043. end)
  1044.  
  1045.  
  1046. local sine = 0
  1047. local change = 1
  1048. local val = 0
  1049.  
  1050. while true do
  1051. swait()
  1052. sine = sine + change
  1053. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1054. local velderp=RootPart.Velocity.y
  1055. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1056. if equipped==true or equipped==false then
  1057. if attack==false then
  1058. idle=idle+1
  1059. else
  1060. idle=0
  1061. end
  1062. if idle>=500 then
  1063. if attack==false then
  1064. --Sheath()
  1065. end
  1066. end
  1067. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1068. Anim="Jump"
  1069. if attack==false then
  1070. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1071. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  1072. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)),.2)
  1073. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)),.2)
  1074. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.2)
  1075. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20)),.2)
  1076. end
  1077. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1078. Anim="Fall"
  1079. if attack==false then
  1080. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  1081. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  1082. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)),.2)
  1083. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)),.2)
  1084. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20)),.2)
  1085. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10)),.2)
  1086. end
  1087. elseif torvel<1 and hitfloor~=nil then
  1088. Anim="Idle"
  1089. if attack==false then
  1090. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  1091. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  1092. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)),.2)
  1093. LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.5, -1) * angles(math.rad(0), math.rad(80), math.rad(100)),.2)
  1094. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.2)
  1095. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.2)
  1096. end
  1097. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1098. Anim="Walk"
  1099. if attack==false then
  1100. change=3
  1101. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-30)),.2)
  1102. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(-5),math.rad(30)),.2)
  1103. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)),.2)
  1104. LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.5, -1) * angles(math.rad(0), math.rad(80), math.rad(100)),.2)
  1105. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.2)
  1106. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(10)),.2)
  1107. end
  1108. elseif torvel>=22 and hitfloor~=nil then
  1109. Anim="Run"
  1110. if attack==false then
  1111. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1112. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1113. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)),.2)
  1114. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)),.2)
  1115. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.2)
  1116. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.2)
  1117. end
  1118. end
  1119. end
  1120. if #Effects>0 then
  1121. --table.insert(Effects,{prt,"Block1",delay})
  1122. for e=1,#Effects do
  1123. if Effects[e]~=nil then
  1124. --for j=1,#Effects[e] do
  1125. local Thing=Effects[e]
  1126. if Thing~=nil then
  1127. local Part=Thing[1]
  1128. local Mode=Thing[2]
  1129. local Delay=Thing[3]
  1130. local IncX=Thing[4]
  1131. local IncY=Thing[5]
  1132. local IncZ=Thing[6]
  1133. if Thing[2]=="DecreaseStat" then
  1134. Thing[5]=Thing[5]-1
  1135. if Thing[5]<=0 then
  1136. if Thing[1]:findFirstChild("Stats")~=nil then
  1137. Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
  1138. end
  1139. table.remove(Effects,e)
  1140. end
  1141. end
  1142. if Thing[2]=="Shoot" then
  1143. local Look=Thing[1]
  1144. local hit,pos = rayCast(Thing[4],Look,20,m)
  1145. local mag=(Thing[4]-pos).magnitude
  1146. MagicHead(BrickColor.new("Cyan"),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.5,0,.5,0.1)
  1147. Thing[4]=Thing[4]+(Look*20)
  1148. Thing[3]=Thing[3]-1
  1149. if hit~=nil then
  1150. Thing[3]=0
  1151. if Thing[8]==1 then
  1152. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,10,20,math.random(1,5),nil,nil,true)
  1153. elseif Thing[8]==2 then
  1154. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"NormalDecreaseMvmt1",RootPart,10,20,math.random(1,5),nil,nil,true)
  1155. end
  1156. ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Cyan"),"Reference",vt())
  1157. ref.Anchored=true
  1158. ref.CFrame=cf(pos)
  1159. MagicCircle(BrickColor.new("Cyan"),cf(pos),5,5,5,1,1,1,0.03)
  1160. game:GetService("Debris"):AddItem(ref,1)
  1161. end
  1162. if Thing[3]<=0 then
  1163. table.remove(Effects,e)
  1164. end
  1165. end
  1166. if Thing[2]=="CylinderClang" then
  1167. if Thing[3]<=1 then
  1168. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  1169. Thing[7]=Thing[1].CFrame
  1170. effect("Cyan",0,Thing[8],Thing[7])
  1171. Thing[8]=Thing[7]
  1172. Thing[3]=Thing[3]+Thing[4]
  1173. else
  1174. Part.Parent=nil
  1175. table.remove(Effects,e)
  1176. end
  1177. --[[Mesh=Thing[7]
  1178. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1179. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  1180. end
  1181. if Thing[2]~="Shoot" and Thing[2]~="DecreaseStat" then
  1182. if Thing[1].Transparency<=1 then
  1183. if Thing[2]=="Block1" then
  1184. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1185. Mesh=Thing[7]
  1186. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1187. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1188. elseif Thing[2]=="Block2" then
  1189. Thing[1].CFrame=Thing[1].CFrame
  1190. Mesh=Thing[7]
  1191. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1192. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1193. elseif Thing[2]=="Cylinder" then
  1194. Mesh=Thing[7]
  1195. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1196. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1197. elseif Thing[2]=="Blood" then
  1198. Mesh=Thing[7]
  1199. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1200. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1201. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1202. elseif Thing[2]=="Elec" then
  1203. Mesh=Thing[1].Mesh
  1204. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1205. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1206. elseif Thing[2]=="Disappear" then
  1207. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1208. end
  1209. else
  1210. Part.Parent=nil
  1211. table.remove(Effects,e)
  1212. end
  1213. end
  1214. end
  1215. --end
  1216. end
  1217. end
  1218. end
  1219. end
Add Comment
Please, Sign In to add comment