spoonish

miniboomboom

Apr 23rd, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 147.46 KB | None | 0 0
  1. --[[
  2. Thanks for using Build-To-Lua by jarredbcv.
  3. Thanks to Cri_SB [Cri] for some sounds in the script
  4. Script by 123jl123
  5. Enjoy and don't leak
  6. ]]--
  7.  
  8. print("Thanks to Cri_SB [Cri] for some sounds in the script.")
  9. print("Script made by 123jl123.")
  10. print("If you logged this, please don't leak it. I worked hard on creating this script, seeing others use it without my permission/not given from me will anger me.")
  11. print("Thanks for reading this, enjoy using the script!")
  12.  
  13.  
  14.  
  15. New = function(Object, Parent, Name, Data)
  16. local Object = Instance.new(Object)
  17. for Index, Value in pairs(Data or {}) do
  18. Object[Index] = Value
  19. end
  20. Object.Parent = Parent
  21. Object.Name = Name
  22. return Object
  23. end
  24. local LoPa = game:GetService("Players").LocalPlayer
  25. local C = LoPa.Character
  26.  
  27. LaserMinigun = New("Model",C,"LaserMinigun",{})
  28. Gunpart = New("Model",LaserMinigun,"Gunpart",{})
  29. FrontHandle = New("Part",Gunpart,"FrontHandle",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.334096551, 0.668193102, 0.334096551),CFrame = CFrame.new(30.8316956, 0.787470937, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  30. Mesh = New("CylinderMesh",FrontHandle,"Mesh",{})
  31. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 0.787470937, -52.0672684, 0, 1, -9.58144665e-06, -3.50177879e-06, 9.58144665e-06, 1, 1, -7.96212211e-19, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  32. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  33. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 0.787470937, -52.5127258, 1.30714124e-17, 1, -9.58144665e-06, -3.50178084e-06, 9.58144665e-06, 1, 1, 1.19431811e-18, 3.50177652e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  34. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  35. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  36. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  37. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(31.0544128, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  38. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  39. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.222731024, 0.445462048),CFrame = CFrame.new(31.2771492, 0.787470937, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  40. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  41. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.556827545, 0.111365512, 0.556827545),CFrame = CFrame.new(31.2771492, 0.787470937, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  42. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  43. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 0.787470937, -52.0672684, 0, 1, -9.58144665e-06, -3.50177879e-06, 9.58144665e-06, 1, 1, -7.96212211e-19, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  44. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  45. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 0.787470937, -52.5127258, 1.30714124e-17, 1, -9.58144665e-06, -3.50178084e-06, 9.58144665e-06, 1, 1, 1.19431811e-18, 3.50177652e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  46. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  47. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  48. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  49. FrontPart = New("Part",Gunpart,"FrontPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(31.4998779, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  50. Mesh = New("CylinderMesh",FrontPart,"Mesh",{})
  51. gun4 = New("Part",Gunpart,"gun4",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 0.787470937, -52.5127258, 1.30714124e-17, 1, -9.58144665e-06, -3.50178084e-06, 9.58144665e-06, 1, 1, 1.19431811e-18, 3.50177652e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  52. Mesh = New("CylinderMesh",gun4,"Mesh",{})
  53. gun1 = New("Part",Gunpart,"gun1",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 0.564739823, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  54. Mesh = New("CylinderMesh",gun1,"Mesh",{})
  55. gun3 = New("Part",Gunpart,"gun3",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 1.01019299, -52.2899971, 0, 1, 0, 1, 0, 0, 0, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  56. Mesh = New("CylinderMesh",gun3,"Mesh",{})
  57. gun2 = New("Part",Gunpart,"gun2",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.111365512, 0.111365512, 0.111365512),CFrame = CFrame.new(31.5666943, 0.787470937, -52.0672684, 0, 1, -9.58144665e-06, -3.50177879e-06, 9.58144665e-06, 1, 1, -7.96212211e-19, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  58. Mesh = New("CylinderMesh",gun2,"Mesh",{})
  59. PowerHolder = New("Model",LaserMinigun,"PowerHolder",{})
  60. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 0.222731024, 1.11365509),CFrame = CFrame.new(27.7135086, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  61. Mesh = New("CylinderMesh",Part,"Mesh",{})
  62. Model = New("Model",Part,"Model",{})
  63. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(27.7135086, 0.787473083, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  64. Mesh = New("CylinderMesh",Part,"Mesh",{})
  65. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(27.7135086, 0.787473083, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  66. Mesh = New("CylinderMesh",Part,"Mesh",{})
  67. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  68. Mesh = New("CylinderMesh",Part,"Mesh",{})
  69. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  70. Mesh = New("CylinderMesh",Part,"Mesh",{})
  71. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  72. Mesh = New("CylinderMesh",Part,"Mesh",{})
  73. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(27.7135086, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  74. Mesh = New("CylinderMesh",Part,"Mesh",{})
  75. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  76. Mesh = New("CylinderMesh",Part,"Mesh",{})
  77. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  78. Mesh = New("CylinderMesh",Part,"Mesh",{})
  79. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  80. Mesh = New("CylinderMesh",Part,"Mesh",{})
  81. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.9362354, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  82. Mesh = New("CylinderMesh",Part,"Mesh",{})
  83. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  84. Mesh = New("CylinderMesh",Part,"Mesh",{})
  85. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  86. Mesh = New("CylinderMesh",Part,"Mesh",{})
  87. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  88. Mesh = New("CylinderMesh",Part,"Mesh",{})
  89. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(27.4907799, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  90. Mesh = New("CylinderMesh",Part,"Mesh",{})
  91. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 0.222731024, 1.11365509),CFrame = CFrame.new(29.4953289, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  92. Mesh = New("CylinderMesh",Part,"Mesh",{})
  93. Model = New("Model",Part,"Model",{})
  94. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  95. Mesh = New("CylinderMesh",Part,"Mesh",{})
  96. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  97. Mesh = New("CylinderMesh",Part,"Mesh",{})
  98. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  99. Mesh = New("CylinderMesh",Part,"Mesh",{})
  100. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  101. Mesh = New("CylinderMesh",Part,"Mesh",{})
  102. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(29.4953289, 0.787473083, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  103. Mesh = New("CylinderMesh",Part,"Mesh",{})
  104. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  105. Mesh = New("CylinderMesh",Part,"Mesh",{})
  106. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  107. Mesh = New("CylinderMesh",Part,"Mesh",{})
  108. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  109. Mesh = New("CylinderMesh",Part,"Mesh",{})
  110. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  111. Mesh = New("CylinderMesh",Part,"Mesh",{})
  112. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(29.4953289, 0.787473083, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  113. Mesh = New("CylinderMesh",Part,"Mesh",{})
  114. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.445462048, 0.445462048),CFrame = CFrame.new(29.4953289, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  115. Mesh = New("CylinderMesh",Part,"Mesh",{})
  116. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.7180557, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  117. Mesh = New("CylinderMesh",Part,"Mesh",{})
  118. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  119. Mesh = New("CylinderMesh",Part,"Mesh",{})
  120. Part = New("Part",Model,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.222731024, 0.222731024),CFrame = CFrame.new(29.2726021, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  121. Mesh = New("CylinderMesh",Part,"Mesh",{})
  122. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.222731024, 0.890924096),CFrame = CFrame.new(29.7180557, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  123. Mesh = New("CylinderMesh",Part,"Mesh",{})
  124. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  125. Mesh = New("CylinderMesh",Part,"Mesh",{})
  126. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  127. Mesh = New("CylinderMesh",Part,"Mesh",{})
  128. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  129. Mesh = New("CylinderMesh",Part,"Mesh",{})
  130. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(28.1589584, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  131. Mesh = New("CylinderMesh",Part,"Mesh",{})
  132. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 0.564742088, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  133. Mesh = New("CylinderMesh",Part,"Mesh",{})
  134. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 1.01020408, -52.7354622, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  135. Mesh = New("CylinderMesh",Part,"Mesh",{})
  136. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 0.564742088, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  137. Mesh = New("CylinderMesh",Part,"Mesh",{})
  138. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.222731024, 0.111365512),CFrame = CFrame.new(29.0498734, 1.01020408, -51.8445435, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  139. Mesh = New("CylinderMesh",Part,"Mesh",{})
  140. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(29.9407845, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  141. Mesh = New("CylinderMesh",Part,"Mesh",{})
  142. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(30.1635113, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  143. Mesh = New("CylinderMesh",Part,"Mesh",{})
  144. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(30.38624, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  145. Mesh = New("CylinderMesh",Part,"Mesh",{})
  146. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.668193102, 0.445462048),CFrame = CFrame.new(30.1635113, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  147. Mesh = New("CylinderMesh",Part,"Mesh",{})
  148. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(30.6089668, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  149. Mesh = New("CylinderMesh",Part,"Mesh",{})
  150. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(29.0498734, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  151. Mesh = New("CylinderMesh",Part,"Mesh",{})
  152. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 1.11365509, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1.00000644, 0.707109809, 0.70710659, 0, 0.707112432, -0.707108617, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  153. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 2.00457907, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787482023, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  154. Mesh = New("CylinderMesh",Part,"Mesh",{})
  155. Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.500002861, 0.866023839, 0, 0.866023839, -0.500002861, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  156. Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.86602217, 0.500005305, 0, 0.500005305, -0.86602217, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  157. Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.965924263, 0.258825034, 0, 0.258825064, -0.965924263, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  158. Neon = New("Part",PowerHolder,"Neon",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Size = Vector3.new(0.957743406, 0.957743406, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1, 0.25882262, 0.965924919, 0, 0.965924919, -0.25882262, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  159. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.11365509, 1.11365509, 0.445462048),CFrame = CFrame.new(28.6044273, 0.787477553, -52.2899971, 0, 0, -1.00000024, 0, 1, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  160. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.3363862, 0.222731024, 1.3363862),CFrame = CFrame.new(28.8271465, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  161. Mesh = New("CylinderMesh",Part,"Mesh",{})
  162. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.3363862, 0.222731024, 1.3363862),CFrame = CFrame.new(28.381691, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  163. Mesh = New("CylinderMesh",Part,"Mesh",{})
  164. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.668193102, 0.222731024, 0.668193102),CFrame = CFrame.new(28.1589584, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  165. Mesh = New("CylinderMesh",Part,"Mesh",{})
  166. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.668193102, 0.222731024),CFrame = CFrame.new(26.9784832, 0.787473083, -52.2899971, -5.52762662e-11, 1.00582838e-05, 1.00000024, -3.50170376e-06, -1.00000024, 1.00582838e-05, 1, -3.50170421e-06, 9.06084097e-11),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  167. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.512281358, 0.111365512),CFrame = CFrame.new(26.7446499, 1.07702565, -52.2899971, -2.95597852e-11, 1, -9.58144665e-06, -3.50171308e-06, 9.58144665e-06, 1, 1, 6.30961949e-11, 3.50171308e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  168. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(26.7111912, 0.787473083, -52.2899971, -5.53331096e-11, -0.258809268, 0.965928495, -3.50170376e-06, -0.965928495, -0.258809268, 1, -3.38240966e-06, -9.06219896e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  169. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.668193102, 0.111365512),CFrame = CFrame.new(26.6666946, 0.475645214, -52.2899971, -2.95597852e-11, 1, -9.58144665e-06, -3.50171308e-06, 9.58144665e-06, 1, 1, 6.30961949e-11, 3.50171308e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  170. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.579100668, 0.111365512),CFrame = CFrame.new(26.4769592, 0.766716778, -52.2899971, -5.52867474e-11, -0.258809447, 0.96592921, -3.50170421e-06, -0.96592921, -0.258809447, 1, -3.38241125e-06, -9.06220293e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  171. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.289550334, 0.111365512),CFrame = CFrame.new(26.8782501, 0.787470937, -52.2899971, -5.69528105e-11, -1, 1.04902101e-05, -3.50170967e-06, -1.04902101e-05, -1, 1, -9.36864822e-11, -3.50170967e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  172. Mesh = New("CylinderMesh",Part,"Mesh",{})
  173. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(29.4953289, 1.41111994, -52.7354622, -5.50513524e-11, 0.258828878, 0.965923965, -3.50170421e-06, -0.965923965, 0.258828878, 1, -3.38236441e-06, 9.06395599e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  174. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(29.4953289, 1.41111994, -51.8445435, -5.50513524e-11, 0.258828878, 0.965923965, -3.50170421e-06, -0.965923965, 0.258828878, 1, -3.38236441e-06, 9.06395599e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  175. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.178184807, 0.890924096, 0.178184807),CFrame = CFrame.new(29.4285202, 1.67839265, -52.2899971, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  176. Mesh = New("CylinderMesh",Part,"Mesh",{})
  177. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.445462048, 0.111365512),CFrame = CFrame.new(29.4285202, 1.67839265, -51.9559135, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  178. Mesh = New("CylinderMesh",Part,"Mesh",{})
  179. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.445462048, 0.111365512),CFrame = CFrame.new(29.4285202, 1.67839265, -52.6240959, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  180. Mesh = New("CylinderMesh",Part,"Mesh",{})
  181. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.222731024, 0.779558599, 0.222731024),CFrame = CFrame.new(29.4285202, 1.67839491, -52.2900124, 0.258829474, -8.57335749e-07, 0.96592164, -0.965925694, 6.97467476e-06, 0.258828104, -7.9870224e-06, -0.999998629, 8.24248048e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  182. Mesh = New("CylinderMesh",Part,"Mesh",{})
  183. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.4907551, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  184. Mesh = New("CylinderMesh",Part,"Mesh",{})
  185. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 0.564739823, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  186. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 1.01020193, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  187. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 1.01020193, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  188. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.111365512, 0.668193102, 0.111365512),CFrame = CFrame.new(27.2680531, 0.564739823, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  189. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 0.564739823, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  190. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 1.01020193, -52.5127258, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  191. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 1.01020193, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  192. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.133638605, 0.445462048, 0.133638605),CFrame = CFrame.new(27.2680531, 0.564739823, -52.0672684, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  193. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.890924096, 0.111365512, 0.890924096),CFrame = CFrame.new(27.0452919, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  194. Mesh = New("CylinderMesh",Part,"Mesh",{})
  195. Part = New("Part",PowerHolder,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.445462048, 0.222731024, 0.445462048),CFrame = CFrame.new(27.0452919, 0.787473083, -52.2899971, -8.0732131e-12, 1, -9.58144665e-06, -3.50177834e-06, 9.58144665e-06, 1, 1, 4.13820089e-11, 3.50177834e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  196. Mesh = New("CylinderMesh",Part,"Mesh",{})
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208. Handle = New("Part",LaserMinigun,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1.22300005, 4.51200008, 1.11099994),CFrame = CFrame.new(28.6618481, 0.8217237, -52.2899971, -2.95597852e-11, 1, -9.58144665e-06, -3.50171308e-06, 9.58144665e-06, 1, 1, 6.30961949e-11, 3.50171308e-06),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221. MiniDroid = New("Model",C,"MiniDroid",{})
  222. armor = New("Model",MiniDroid,"armor",{})
  223. Main = New("Model",armor,"Main",{})
  224. Part = New("Part",Main,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.100000001, 0.800000012, 0.800000012),CFrame = CFrame.new(30.9500008, 1.7000351, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  225. Part = New("Part",armor,"Part",{BrickColor = BrickColor.new("black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.899999976, 0.699999988, 0.899999976),CFrame = CFrame.new(30.9499989, 1.80003405, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  226. Mesh = New("SpecialMesh",Part,"Mesh",{})
  227. Part = New("Part",armor,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 0.50999999, 1),CFrame = CFrame.new(30.9499989, 1.90003407, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  228. Mesh = New("SpecialMesh",Part,"Mesh",{})
  229. Part = New("Part",armor,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 0.5, 1),CFrame = CFrame.new(30.9499989, 1.70003402, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  230. Mesh = New("SpecialMesh",Part,"Mesh",{})
  231. Neon = New("Model",MiniDroid,"Neon",{})
  232. LaPart = New("Part",Neon,"LaPart",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.100000001, 0.949999988, 0.949999988),CFrame = CFrame.new(30.9500008, 1.80000031, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  233. FirePart = New("Part",Neon,"FirePart",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,Transparency = 0.5,Shape = Enum.PartType.Ball,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(30.9499989, 1.65004444, -103.050003, 0, 0, 1, 0, -1.00000024, 0, 1.00000024, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
  234. miniHandle = New("Part",MiniDroid,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(30.9500008, 1.80504608, -103.050003, 0, 0, 1, -1, 0, 0, 0, -1, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  235.  
  236.  
  237.  
  238.  
  239.  
  240. Glow1 = Color3.new(1,0,0)
  241. Glow2 = Color3.new(0,0,0)
  242.  
  243. GlowParticle = Instance.new("ParticleEmitter",FirePart)
  244. GlowParticle.LightEmission = 1
  245. GlowParticle.Color = ColorSequence.new(Glow1,Glow2)
  246. GlowParticle.Size = NumberSequence.new(0,20)
  247. GlowParticle.Texture = "http://www.roblox.com/asset/?id=52620985"
  248. GlowParticle.Transparency = NumberSequence.new(0,1)
  249. GlowParticle.LockedToPart = true
  250. GlowParticle.Lifetime = NumberRange.new(1)
  251. GlowParticle.Rate= 1
  252. GlowParticle.Speed =NumberRange.new(0)
  253. GlowParticle.Enabled = false
  254.  
  255.  
  256.  
  257.  
  258. GlowParticle2 = Instance.new("ParticleEmitter",FirePart)
  259. GlowParticle2.LightEmission = .7
  260. GlowParticle2.Color = ColorSequence.new(Glow1,Glow2)
  261. GlowParticle2.Size = NumberSequence.new(0,1)
  262. GlowParticle2.Texture = "http://www.roblox.com/asset/?id=589325350"
  263. GlowParticle2.Transparency = NumberSequence.new(0,1)
  264. GlowParticle2.LockedToPart = false
  265. GlowParticle2.Lifetime = NumberRange.new(0.2)
  266. GlowParticle2.Rate= 150
  267. GlowParticle2.Speed =NumberRange.new(3)
  268. GlowParticle2.Acceleration = Vector3.new(0, -10.5, 0)
  269.  
  270.  
  271.  
  272.  
  273.  
  274. local all,last = {}
  275. function scan(p)
  276. for _,v in pairs(p:GetChildren()) do
  277. if (v:IsA("BasePart")) then
  278. if (last) then
  279. local w = Instance.new("Weld")
  280. w.Part0,w.Part1 = last,v
  281. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  282. w.Parent = last
  283. end
  284. table.insert(all,v)
  285. last = v
  286. end
  287. scan(v)
  288. end
  289. end
  290. scan(LaserMinigun)
  291.  
  292. scan(MiniDroid)
  293. for _,v in pairs(all) do v.Anchored = false v.CanCollide = false end
  294. MiniDroid.Parent = C
  295. LaserMinigun.Parent = C
  296.  
  297.  
  298. Main:Destroy()
  299.  
  300. Effects = { }
  301. Rapid = false
  302. local Player = game.Players.localPlayer
  303. local Character = Player.Character
  304. local Humanoid = Character.Humanoid
  305. local mouse = Player:GetMouse()
  306. local LeftArm = Character["Left Arm"]
  307. local RightArm = Character["Right Arm"]
  308. local LeftLeg = Character["Left Leg"]
  309. local RightLeg = Character["Right Leg"]
  310. local Head = Character.Head
  311. local Torso = Character.Torso
  312. local cam = game.Workspace.CurrentCamera
  313. local RootPart = Character.HumanoidRootPart
  314. local RootJoint = RootPart.RootJoint
  315. local equipped = false
  316. local attack = false
  317. local Anim = 'Idle'
  318. local idle = 0
  319. local attacktype = 1
  320. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  321. local velocity = RootPart.Velocity.y
  322. local sine = 0
  323. local change = 1
  324. local grabbed = false
  325. local cn = CFrame.new
  326. local mr = math.rad
  327. local angles = CFrame.Angles
  328. local ud = UDim2.new
  329. local c3 = Color3.new
  330. local slashDamage = 15
  331. local dir = {w = 0, s = 0, a = 0, d = 0}
  332. local dir2 = {w = 0, s = 0, a = 0, d = 0}
  333. killcom=true
  334. trans = 1
  335. sentrymode = false
  336. sentrywait = false
  337. local LightMod = Instance.new("Model", Character)
  338. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  339. Humanoid.Animator:Destroy()
  340. npcanim = Character.Animate:Clone()
  341. ultwait=false
  342.  
  343.  
  344.  
  345.  
  346. Character.Animate:Destroy()
  347.  
  348.  
  349. local function makeLightning(Par, Start, End, Width, Length, RandomScale, ArcScale, Num1)
  350. local oldParts = {}
  351. for _,v in pairs(Par:GetChildren()) do
  352. v.CFrame = CFrame.new(5e5, 5e5, 5e5)
  353. table.insert(oldParts, v)
  354. end
  355. local Distance = (Start-End).Magnitude
  356. local ArcScale = ArcScale or 1
  357. local RandomScale = RandomScale or 0
  358. local Last = Start
  359. local IterNum = 0
  360.  
  361. while Par.Parent do
  362. IterNum = IterNum + 1
  363. local New = nil
  364. if (Last-End).Magnitude < Length then
  365. New = CFrame.new(End)
  366. else
  367. if (End-Last).Magnitude < Length*2 then
  368. RandomScale = RandomScale*0.1
  369. ArcScale = ArcScale*0.5
  370. end
  371. local Direct = CFrame.new(Last,End)
  372. New = Direct*CFrame.Angles(math.rad(math.random(-RandomScale/4,RandomScale*ArcScale)),math.rad(math.random(-RandomScale,RandomScale)),math.rad(math.random(-RandomScale,RandomScale)))
  373. New = New*CFrame.new(0,0,-Length)
  374. end
  375. local Trail = nil
  376. if oldParts[IterNum] then
  377. Trail = oldParts[IterNum]
  378. Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("Really red")) or BrickColor.new("Really red")
  379. Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width)
  380. Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0)
  381. oldParts[IterNum] = nil
  382. game:GetService("Debris"):AddItem(Trail, .03)
  383. else
  384. Trail = Instance.new("Part")
  385. Trail.Name = "Part"
  386. Trail.FormFactor = "Custom"
  387. Trail.BrickColor = ((Num1 % 2 == 0) and BrickColor.new("Really red")) or BrickColor.new("Really red")
  388. Trail.Transparency = 0
  389. Trail.Anchored = true
  390. Trail.CanCollide = false
  391. Trail.Locked = true
  392. Trail.BackSurface = "SmoothNoOutlines"
  393. Trail.BottomSurface = "SmoothNoOutlines"
  394. Trail.FrontSurface = "SmoothNoOutlines"
  395. Trail.LeftSurface = "SmoothNoOutlines"
  396. Trail.RightSurface = "SmoothNoOutlines"
  397. Trail.TopSurface = "SmoothNoOutlines"
  398. Trail.Material = "Neon"
  399. Trail.Size = Vector3.new(Width, (Last-New.p).Magnitude, Width)
  400. Trail.CFrame = CFrame.new(New.p, Last)*CFrame.Angles(math.rad(90),0,0)*CFrame.new(0, -(Last-New.p).Magnitude/2, 0)
  401. Trail.Parent = Par
  402. game:GetService("Debris"):AddItem(Trail, .03)
  403. end
  404. Last = New.p
  405. if (Last-End).Magnitude < 1 then
  406. break
  407. end
  408. end
  409. for _,v in pairs(oldParts) do
  410. v:Destroy()
  411. end
  412. end
  413.  
  414.  
  415.  
  416. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  417. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  418. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  419.  
  420. RSH, LSH = nil, nil
  421.  
  422.  
  423. DW = Instance.new("Weld")
  424. DW.Name = "GuW"
  425. DW.Part0 = Torso
  426. DW.C0 = cn(0, 50, 0)
  427. DW.C1 = cn(0, 0, 0)
  428. DW.Part1 = miniHandle
  429. DW.Parent = Torso
  430.  
  431.  
  432. GuW = Instance.new("Weld")
  433. GuW.Name = "GuW"
  434. GuW.Part0 = RightArm
  435. GuW.C0 = cn(0, -1, -1)
  436. GuW.C1 = cn(0, 0, 0)
  437. GuW.Part1 = Handle
  438. GuW.Parent = RightArm
  439.  
  440. RW = Instance.new("Weld")
  441. LW = Instance.new("Weld")
  442.  
  443.  
  444. RH = Torso["Right Hip"]
  445. LH = Torso["Left Hip"]
  446.  
  447. RSH = Torso["Right Shoulder"]
  448. LSH = Torso["Left Shoulder"]
  449.  
  450. RSH.Parent = nil
  451. LSH.Parent = nil
  452.  
  453. RW.Name = "RW"
  454. RW.Part0 = Torso
  455. RW.C0 = cn(1.5, 0.5, 0)
  456. RW.C1 = cn(0, 0.5, 0)
  457. RW.Part1 = RightArm
  458. RW.Parent = Torso
  459.  
  460. LW.Name = "LW"
  461. LW.Part0 = Torso
  462. LW.C0 = cn(-1.5, 0.5, 0)
  463. LW.C1 = cn(0, 0.5, 0)
  464. LW.Part1 = LeftArm
  465. LW.Parent = Torso
  466.  
  467. function clerp(a, b, t)
  468. local qa = {
  469. QuaternionFromCFrame(a)
  470. }
  471. local qb = {
  472. QuaternionFromCFrame(b)
  473. }
  474. local ax, ay, az = a.x, a.y, a.z
  475. local bx, by, bz = b.x, b.y, b.z
  476. local _t = 1 - t
  477. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  478. end
  479.  
  480. function QuaternionFromCFrame(cf)
  481. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  482. local trace = m00 + m11 + m22
  483. if trace > 0 then
  484. local s = math.sqrt(1 + trace)
  485. local recip = 0.5 / s
  486. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  487. else
  488. local i = 0
  489. if m11 > m00 then
  490. i = 1
  491. end
  492. if m22 > (i == 0 and m00 or m11) then
  493. i = 2
  494. end
  495. if i == 0 then
  496. local s = math.sqrt(m00 - m11 - m22 + 1)
  497. local recip = 0.5 / s
  498. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  499. elseif i == 1 then
  500. local s = math.sqrt(m11 - m22 - m00 + 1)
  501. local recip = 0.5 / s
  502. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  503. elseif i == 2 then
  504. local s = math.sqrt(m22 - m00 - m11 + 1)
  505. local recip = 0.5 / s
  506. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  507. end
  508. end
  509. end
  510.  
  511. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  512. local xs, ys, zs = x + x, y + y, z + z
  513. local wx, wy, wz = w * xs, w * ys, w * zs
  514. local xx = x * xs
  515. local xy = x * ys
  516. local xz = x * zs
  517. local yy = y * ys
  518. local yz = y * zs
  519. local zz = z * zs
  520. 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))
  521. end
  522.  
  523. function QuaternionSlerp(a, b, t)
  524. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  525. local startInterp, finishInterp;
  526. if cosTheta >= 0.0001 then
  527. if (1 - cosTheta) > 0.0001 then
  528. local theta = math.acos(cosTheta)
  529. local invSinTheta = 1 / math.sin(theta)
  530. startInterp = math.sin((1 - t) * theta) * invSinTheta
  531. finishInterp = math.sin(t * theta) * invSinTheta
  532. else
  533. startInterp = 1 - t
  534. finishInterp = t
  535. end
  536. else
  537. if (1 + cosTheta) > 0.0001 then
  538. local theta = math.acos(-cosTheta)
  539. local invSinTheta = 1 / math.sin(theta)
  540. startInterp = math.sin((t - 1) * theta) * invSinTheta
  541. finishInterp = math.sin(t * theta) * invSinTheta
  542. else
  543. startInterp = t - 1
  544. finishInterp = t
  545. end
  546. end
  547. 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
  548. end
  549.  
  550. function swait(num)
  551. if num == 0 or num == nil then
  552. game:service'RunService'.RenderStepped:wait(0)
  553. else
  554. for i = 0, num do
  555. game:service'RunService'.RenderStepped:wait(0)
  556. end
  557. end
  558. end
  559.  
  560. local RbxUtility = LoadLibrary("RbxUtility")
  561. local Create = RbxUtility.Create
  562.  
  563. function RemoveOutlines(part)
  564. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  565. end
  566.  
  567. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  568. local Part = Create("Part"){
  569. formFactor = FormFactor,
  570. Parent = Parent,
  571. Reflectance = Reflectance,
  572. Transparency = Transparency,
  573. CanCollide = false,
  574. Locked = true,
  575. BrickColor = BrickColor.new(tostring(BColor)),
  576. Name = Name,
  577. Size = Size,
  578. Material = Material,
  579. }
  580. RemoveOutlines(Part)
  581. return Part
  582. end
  583.  
  584. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  585. local Msh = Create(Mesh){
  586. Parent = Part,
  587. Offset = OffSet,
  588. Scale = Scale,
  589. }
  590. if Mesh == "SpecialMesh" then
  591. Msh.MeshType = MeshType
  592. Msh.MeshId = MeshId
  593. end
  594. return Msh
  595. end
  596.  
  597. function CreateWeld(Parent, Part0, Part1, C0, C1)
  598. local Weld = Create("Weld"){
  599. Parent = Parent,
  600. Part0 = Part0,
  601. Part1 = Part1,
  602. C0 = C0,
  603. C1 = C1,
  604. }
  605. return Weld
  606. end
  607.  
  608. function rayCast(Position, Direction, Range, Ignore)
  609. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  610. end
  611.  
  612. function CreateSound(id, par, vol, pit)
  613. coroutine.resume(coroutine.create(function()
  614. local sou = Instance.new("Sound", par or workspace)
  615. sou.Volume = vol
  616. sou.Pitch = pit or 1
  617. sou.SoundId = id
  618. wait()
  619. sou:play()
  620. game:GetService("Debris"):AddItem(sou, 6)
  621. end))
  622. end
  623.  
  624. local function getclosest(obj, distance)
  625. local last, lastx = distance + 1
  626. for i, v in pairs(workspace:GetChildren()) do
  627. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  628. local t = v.Torso
  629. local dist = (t.Position - obj.Position).magnitude
  630. if dist <= distance then
  631. if dist < last then
  632. last = dist
  633. lastx = v
  634. end
  635. end
  636. end
  637. end
  638. return lastx
  639. end
  640.  
  641. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  642. for i, v in pairs(hit:GetChildren()) do
  643. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  644. local find = v:FindFirstChild("Hitz")
  645. if not find then
  646. if v.Parent:findFirstChild("Head") then
  647. local BillG = Create("BillboardGui"){
  648. Parent = v.Parent.Head,
  649. Size = UDim2.new(1, 0, 1, 0),
  650. Adornee = v.Parent.Head,
  651. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  652. }
  653. local TL = Create("TextLabel"){
  654. Parent = BillG,
  655. Size = UDim2.new(3, 3, 3, 3),
  656. BackgroundTransparency = 1,
  657. Text = tostring(damage).."-",
  658. TextColor3 = Color1.Color,
  659. TextStrokeColor3 = Color2.Color,
  660. TextStrokeTransparency = 0,
  661. TextXAlignment = Enum.TextXAlignment.Center,
  662. TextYAlignment = Enum.TextYAlignment.Center,
  663. FontSize = Enum.FontSize.Size18,
  664. Font = "ArialBold",
  665. }
  666. coroutine.resume(coroutine.create(function()
  667. wait(0.001)
  668. for i = 0, 1, .1 do
  669. wait(.1)
  670. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  671. end
  672. BillG:Destroy()
  673. end))
  674. end
  675. v.Health = v.Health - damage
  676. local bool = Create("BoolValue"){
  677. Parent = v,
  678. Name = 'Hitz',
  679. }
  680. if HSound ~= nil and HPitch ~= nil then
  681. CreateSound(HSound, hit, 1, HPitch)
  682. end
  683. game:GetService("Debris"):AddItem(bool, cooldown)
  684. end
  685. end
  686. end
  687. end
  688.  
  689.  
  690. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  691. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  692. prt.Anchored = true
  693. prt.CFrame = cframe
  694. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  695. game:GetService("Debris"):AddItem(prt, 10)
  696. if Type == 1 or Type == nil then
  697. table.insert(Effects, {
  698. prt,
  699. "Block1",
  700. delay,
  701. x3,
  702. y3,
  703. z3,
  704. msh
  705. })
  706. elseif Type == 2 then
  707. table.insert(Effects, {
  708. prt,
  709. "Block2",
  710. delay,
  711. x3,
  712. y3,
  713. z3,
  714. msh
  715. })
  716. end
  717. end
  718.  
  719. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  720. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  721. prt.Anchored = true
  722. prt.CFrame = cframe
  723. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  724. game:GetService("Debris"):AddItem(prt, 10)
  725. table.insert(Effects, {
  726. prt,
  727. "Cylinder",
  728. delay,
  729. x3,
  730. y3,
  731. z3,
  732. msh
  733. })
  734. end
  735.  
  736. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  737. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  738. prt.Anchored = true
  739. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  740. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  741. game:GetService("Debris"):AddItem(prt, 10)
  742. table.insert(Effects, {
  743. prt,
  744. "Cylinder",
  745. delay,
  746. x3,
  747. y3,
  748. z3,
  749. msh
  750. })
  751. end
  752.  
  753. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  754. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  755. prt.Anchored = true
  756. prt.CFrame = cframe
  757. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  758. game:GetService("Debris"):AddItem(prt, 10)
  759. table.insert(Effects, {
  760. prt,
  761. "Cylinder",
  762. delay,
  763. x3,
  764. y3,
  765. z3,
  766. msh
  767. })
  768. end
  769.  
  770. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  771. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  772. prt.Anchored = true
  773. prt.CFrame = cframe
  774. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  775. game:GetService("Debris"):AddItem(prt, 10)
  776. table.insert(Effects, {
  777. prt,
  778. "Cylinder",
  779. delay,
  780. x3,
  781. y3,
  782. z3,
  783. msh
  784. })
  785. end
  786.  
  787. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  788. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  789. prt.Anchored = true
  790. prt.CFrame = cframe
  791. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  792. game:GetService("Debris"):AddItem(prt, 10)
  793. table.insert(Effects, {
  794. prt,
  795. "Cylinder",
  796. delay,
  797. x3,
  798. y3,
  799. z3,
  800. msh
  801. })
  802. end
  803.  
  804. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  805. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  806. prt.Anchored = true
  807. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  808. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  809. local num = math.random(10, 50) / 1000
  810. game:GetService("Debris"):AddItem(prt, 10)
  811. table.insert(Effects, {
  812. prt,
  813. "Shatter",
  814. num,
  815. prt.CFrame,
  816. math.random() - math.random(),
  817. 0,
  818. math.random(50, 100) / 100
  819. })
  820. end
  821.  
  822.  
  823.  
  824.  
  825. for i = 0, 1, 0.05 do
  826. swait()
  827. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  828. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  829. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  830. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  831. if Torsovelocity > 2 then
  832. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  833. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  834. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  835. elseif Torsovelocity < 1 then
  836. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  837. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  838. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  839. end
  840. end
  841. attack = false
  842.  
  843.  
  844.  
  845. game:GetService'RunService'.Stepped:connect(function()
  846. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  847. velocity = RootPart.Velocity.y
  848. sine = sine + change
  849. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  850. if equipped == true or equipped == false then
  851. if RootPart.Velocity.y > 1 and hit == nil then
  852. Anim = "Jump"
  853. if attack == false then
  854. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  855. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  856. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  857. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1)
  858. RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  859. LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  860. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1)
  861. DW.C0 = clerp(DW.C0, CFrame.new(1 + .5 * math.cos(sine / 30) ,0 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  862. end
  863. elseif RootPart.Velocity.y < 1 and hit == nil then
  864. Anim = "Fall"
  865. if attack == false then
  866. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  867. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  868. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(65), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  869. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(55 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1)
  870. RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  871. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  872. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1)
  873. DW.C0 = clerp(DW.C0, CFrame.new(1 + .5 * math.cos(sine / 30) ,8 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  874. end
  875. elseif Torsovelocity < 1 and hit ~= nil then
  876. Anim = "Idle"
  877. if attack == false then
  878. change = 1
  879. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
  880. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  881. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  882. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1)
  883. RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  884. LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  885. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1)
  886.  
  887. DW.C0 = clerp(DW.C0, CFrame.new(1 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  888. end
  889. elseif Torsovelocity > 1 and hit ~= nil then
  890. Anim = "Walk"
  891. if attack == false then
  892. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-45+5 * math.cos(sine / 5))), .2)
  893. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(5), math.rad(45+-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 12), .2)
  894. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 4), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 4))), 0.3)
  895. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 4), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 4)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 4))), 0.2)
  896. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  897. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  898. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  899. DW.C0 = clerp(DW.C0, CFrame.new(3+.1 * math.cos(sine / 5) , 3.05 - .1 * math.cos(sine / 3), 2.5 + .5 * math.cos(sine / 6)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  900. end
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919. end
  920. end
  921. if #Effects > 0 then
  922. for e = 1, #Effects do
  923. if Effects[e] ~= nil then
  924. local Thing = Effects[e]
  925. if Thing ~= nil then
  926. local Part = Thing[1]
  927. local Mode = Thing[2]
  928. local Delay = Thing[3]
  929. local IncX = Thing[4]
  930. local IncY = Thing[5]
  931. local IncZ = Thing[6]
  932. if Thing[1].Transparency <= 1 then
  933. if Thing[2] == "Block1" then
  934. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  935. local Mesh = Thing[1].Mesh
  936. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  937. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  938. elseif Thing[2] == "Block2" then
  939. Thing[1].CFrame = Thing[1].CFrame
  940. local Mesh = Thing[7]
  941. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  942. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  943. elseif Thing[2] == "Cylinder" then
  944. local Mesh = Thing[1].Mesh
  945. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  946. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  947. elseif Thing[2] == "Blood" then
  948. local Mesh = Thing[7]
  949. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  950. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  951. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  952. elseif Thing[2] == "Elec" then
  953. local Mesh = Thing[1].Mesh
  954. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  955. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  956. elseif Thing[2] == "Disappear" then
  957. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  958. elseif Thing[2] == "Shatter" then
  959. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  960. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  961. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  962. Thing[6] = Thing[6] + Thing[5]
  963. end
  964. else
  965. Part.Parent = nil
  966. table.remove(Effects, e)
  967. end
  968. end
  969. end
  970. end
  971. end
  972. end)
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001. RemoveOutlines = function(part)
  1002.  
  1003. part.TopSurface = 10
  1004. end
  1005.  
  1006. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1007.  
  1008. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  1009. RemoveOutlines(Part)
  1010. return Part
  1011. end
  1012.  
  1013. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1014.  
  1015. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1016. if Mesh == "SpecialMesh" then
  1017. Msh.MeshType = MeshType
  1018. Msh.MeshId = MeshId
  1019. end
  1020. return Msh
  1021. end
  1022.  
  1023. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  1024.  
  1025. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1026. return Weld
  1027. end
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044. CFuncs = {
  1045. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1046.  
  1047. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  1048. RemoveOutlines(Part)
  1049. return Part
  1050. end
  1051. }
  1052. ,
  1053. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1054.  
  1055. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1056. if Mesh == "SpecialMesh" then
  1057. Msh.MeshType = MeshType
  1058. Msh.MeshId = MeshId
  1059. end
  1060. return Msh
  1061. end
  1062. }
  1063. ,
  1064. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1065.  
  1066. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1067. if Mesh == "SpecialMesh" then
  1068. Msh.MeshType = MeshType
  1069. Msh.MeshId = MeshId
  1070. end
  1071. return Msh
  1072. end
  1073. }
  1074. ,
  1075. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  1076.  
  1077. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1078. return Weld
  1079. end
  1080. }
  1081. ,
  1082. Sound = {Create = function(id, par, vol, pit)
  1083.  
  1084. coroutine.resume(coroutine.create(function()
  1085.  
  1086. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  1087. wait()
  1088. S:play()
  1089. game:GetService("Debris"):AddItem(S, 6)
  1090. end
  1091. ))
  1092. end
  1093. }
  1094. ,
  1095. articleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1096.  
  1097. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  1098. return fp
  1099. end
  1100. }
  1101. }
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1108.  
  1109. if hit.Parent == nil then
  1110. return
  1111. end
  1112. local h = hit.Parent:FindFirstChild("Humanoid")
  1113. for _,v in pairs(hit.Parent:children()) do
  1114. if v:IsA("Humanoid") then
  1115. h = v
  1116. end
  1117. end
  1118. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
  1119. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1120. return
  1121. end
  1122. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1123. game:GetService("Debris"):AddItem(c, 0.5)
  1124. if HitSound ~= nil and HitPitch ~= nil then
  1125. CreateSound(HitSound, hit, 1, HitPitch)
  1126. end
  1127. local Damage = math.random(minim, maxim)
  1128. local blocked = false
  1129. local block = hit.Parent:findFirstChild("Block")
  1130. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1131. blocked = true
  1132. block.Value = block.Value - 1
  1133. print(block.Value)
  1134. end
  1135. if blocked == false then
  1136. h.Health = h.Health - Damage
  1137. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1138. else
  1139. h.Health = h.Health - Damage / 2
  1140. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1141. end
  1142. if Type == "Knockdown" then
  1143. local hum = hit.Parent.Humanoid
  1144. hum.PlatformStand = true
  1145. coroutine.resume(coroutine.create(function(HHumanoid)
  1146.  
  1147. swait(0.001)
  1148. HHumanoid.PlatformStand = false
  1149. end
  1150. ), hum)
  1151. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1152. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1153. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1154. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1155. game:GetService("Debris"):AddItem(rl, 0.5)
  1156. elseif Type == "Normal" then
  1157. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  1158. if knockback > 0 then
  1159. vp.Parent = hit.Parent.HumanoidRootPart
  1160. end
  1161. game:GetService("Debris"):AddItem(vp, 0.5)
  1162. elseif Type == "Up" then
  1163. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1164. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1165. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1166. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1167. elseif Type == "Snare" then
  1168. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1169. local bp = Create("BodyPosition")({P = 200, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.HumanoidRootPart.Position + Vector3.new(0, -5, 0), Parent = hit.Parent.HumanoidRootPart})
  1170. local rl2 = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500, 500, 500) * 10, angularvelocity = Vector3.new(math.random(-15,15), math.random(-0, 0), math.random(-15,15)), Parent = hit})
  1171. game:GetService("Debris"):AddItem(rl2, 0.01)
  1172. game:GetService("Debris"):AddItem(bp, .1)
  1173. hit.Parent.Humanoid.PlatformStand = true
  1174.  
  1175.  
  1176. wait(0.001)
  1177. hit.Parent.Humanoid.PlatformStand = false
  1178. elseif Type == "Freeze" then
  1179. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.HumanoidRootPart.Position, Parent = hit.Parent.HumanoidRootPart})
  1180. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.HumanoidRootPart, cframe = hit.Parent.HumanoidRootPart.CFrame})
  1181. hit.Parent.HumanoidRootPart.Anchored = true
  1182. coroutine.resume(coroutine.create(function(Part)
  1183.  
  1184. swait(0.005)
  1185. Part.Anchored = false
  1186. end
  1187. ), hit.Parent.HumanoidRootPart)
  1188. game:GetService("Debris"):AddItem(BodPos, 3)
  1189. game:GetService("Debris"):AddItem(BodGy, 3)
  1190. end
  1191. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1192. game:GetService("Debris"):AddItem(debounce, Delay)
  1193. c = Instance.new("ObjectValue")
  1194. c.Name = "creator"
  1195. c.Value = Player
  1196. c.Parent = h
  1197. game:GetService("Debris"):AddItem(c, 0.5)
  1198. end
  1199. end
  1200.  
  1201. ShowDamage = function(Pos, Text, Time, Color)
  1202.  
  1203. local Rate = 0.033333333333333
  1204. if not Pos then
  1205. local Pos = Vector3.new(0, 0, 0)
  1206. end
  1207. local Text = Text or ""
  1208. local Time = Time or 2
  1209. if not Color then
  1210. local Color = Color3.new(1, 0, 1)
  1211. end
  1212. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1213. EffectPart.Anchored = true
  1214. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1215. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1216. game.Debris:AddItem(EffectPart, Time + 0.1)
  1217. EffectPart.Parent = game:GetService("Workspace")
  1218. delay(0, function()
  1219.  
  1220. local Frames = Time / Rate
  1221. for Frame = 1, Frames do
  1222. wait(Rate)
  1223. local Percent = Frame / Frames
  1224. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1225. TextLabel.TextTransparency = Percent
  1226. end
  1227. if EffectPart and EffectPart.Parent then
  1228. EffectPart:Destroy()
  1229. end
  1230. end
  1231. )
  1232. end
  1233.  
  1234. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  1235.  
  1236. for _,c in pairs(workspace:children()) do
  1237. local hum = c:findFirstChild("Humanoid")
  1238. if hum ~= nil then
  1239. local head = c:findFirstChild("HumanoidRootPart")
  1240. if head ~= nil then
  1241. local targ = head.Position - Part.Position
  1242. local mag = targ.magnitude
  1243. if mag <= magni and c.Name ~= Player.Name then
  1244. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  1245. end
  1246. end
  1247. end
  1248. end
  1249. end
  1250. MagniKILL = function(Part, magni, knock, Type)
  1251.  
  1252. for _,c in pairs(workspace:children()) do
  1253. local hum = c:findFirstChild("Humanoid")
  1254. if hum ~= nil then
  1255. local head = c:findFirstChild("Head")
  1256. if head ~= nil then
  1257. local targ = head.Position - Part.Position
  1258. local mag = targ.magnitude
  1259. if mag <= magni and c.Name ~= Player.Name then
  1260. hum.Health = 0
  1261. end
  1262. end
  1263. end
  1264. end
  1265. end
  1266.  
  1267. EffectModel = Instance.new("Model", Character)
  1268. EffectModel.Name = "Effects"
  1269. Effects = {
  1270. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1271.  
  1272. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1273. prt.Anchored = true
  1274. prt.CFrame = cframe
  1275. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1276. game:GetService("Debris"):AddItem(prt, 10)
  1277. if Type == 1 or Type == nil then
  1278. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1279. else
  1280. if Type == 2 then
  1281. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1282. end
  1283. end
  1284. end
  1285. }
  1286. ,
  1287. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1288.  
  1289. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1290. prt.Anchored = true
  1291. prt.CFrame = cframe
  1292. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1293. game:GetService("Debris"):AddItem(prt, 10)
  1294. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1295. end
  1296. }
  1297. ,
  1298. Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1299.  
  1300. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1301. prt.Anchored = true
  1302. prt.CFrame = cframe
  1303. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1304. game:GetService("Debris"):AddItem(prt, 10)
  1305. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1306. end
  1307. }
  1308. ,
  1309. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1310.  
  1311. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1312. prt.Anchored = true
  1313. prt.CFrame = cframe
  1314. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1315. game:GetService("Debris"):AddItem(prt, 10)
  1316. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1317. end
  1318. }
  1319. ,
  1320. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1321.  
  1322. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1323. prt.Anchored = true
  1324. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1325. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1326. game:GetService("Debris"):AddItem(prt, 10)
  1327. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1328. end
  1329. }
  1330. ,
  1331. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  1332.  
  1333. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1334. prt.Anchored = true
  1335. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1336. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1337. local num = math.random(10, 50) / 1000
  1338. game:GetService("Debris"):AddItem(prt, 10)
  1339. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  1340. end
  1341. }
  1342. }
  1343. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1344.  
  1345. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1346. prt.Anchored = true
  1347. prt.CFrame = cframe
  1348. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1349. game:GetService("Debris"):AddItem(prt, 10)
  1350. if Type == 1 or Type == nil then
  1351. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1352. else
  1353. if Type == 2 then
  1354. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1355. end
  1356. end
  1357. end
  1358.  
  1359. CreateSound = function(id, par, vol, pit)
  1360.  
  1361. coroutine.resume(coroutine.create(function()
  1362.  
  1363. local sou = Instance.new("Sound", par or workspace)
  1364. sou.Volume = vol
  1365. sou.Pitch = pit or 1
  1366. sou.SoundId = id
  1367. swait()
  1368. sou:play()
  1369. game:GetService("Debris"):AddItem(sou, 6)
  1370. end
  1371. ))
  1372. end
  1373.  
  1374. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1375.  
  1376. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1377. prt.Anchored = true
  1378. prt.CFrame = cframe
  1379. prt.Material = "Neon"
  1380. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1381. game:GetService("Debris"):AddItem(prt, 10)
  1382. coroutine.resume(coroutine.create(function(Part, Mesh)
  1383.  
  1384. for i = 0, 6, delay do
  1385. swait()
  1386. Part.Transparency = i
  1387. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1388. end
  1389. Part.Parent = nil
  1390. end
  1391. ), prt, msh)
  1392. end
  1393. LigLaser = function(mouse, partt, SpreadAmount)
  1394.  
  1395. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1396. local MainPos = partt.Position
  1397. local MainPos2 = mouse + SpreadVectors
  1398. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1399. local speed = 1000
  1400. local num = 1
  1401. coroutine.resume(coroutine.create(function()
  1402.  
  1403. repeat
  1404. swait()
  1405. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1406. local mag = (MainPos - pos).magnitude
  1407.  
  1408. MainPos = MainPos + MouseLook.lookVector * speed
  1409. num = num - 1
  1410. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1411. if hit ~= nil then
  1412. num = 0
  1413. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1414. refpart.Anchored = true
  1415. refpart.CFrame = CFrame.new(pos)
  1416. game:GetService("Debris"):AddItem(refpart, 2)
  1417. end
  1418.  
  1419. do
  1420. if num <= 0 then
  1421. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1422. refpart.Anchored = true
  1423. refpart.CFrame = CFrame.new(pos)
  1424. if hit ~= nil then
  1425. for i = 0,5 do
  1426.  
  1427. makeLightning(LightMod, partt.Position, refpart.Position, 0.17, 4, 30, 1, 10)
  1428. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  1429. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.2)
  1430. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.2)
  1431. MagniDamage(refpart, 3, .05, .2, 6, "Normal")
  1432. swait()
  1433. end
  1434.  
  1435.  
  1436. end
  1437. game:GetService("Debris"):AddItem(refpart, 0)
  1438. end
  1439. end
  1440. until num <= 0
  1441. end
  1442. ))
  1443. end
  1444. bigLigLaser = function(mouse, partt, SpreadAmount)
  1445.  
  1446. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1447. local MainPos = partt.Position
  1448. local MainPos2 = mouse + SpreadVectors
  1449. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1450. local speed = 1000
  1451. local num = 1
  1452. coroutine.resume(coroutine.create(function()
  1453.  
  1454. repeat
  1455. swait()
  1456. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1457. local mag = (MainPos - pos).magnitude
  1458.  
  1459. MainPos = MainPos + MouseLook.lookVector * speed
  1460. num = num - 1
  1461. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1462. if hit ~= nil then
  1463. num = 0
  1464. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1465. refpart.Anchored = true
  1466. refpart.CFrame = CFrame.new(pos)
  1467. game:GetService("Debris"):AddItem(refpart, 2)
  1468. end
  1469.  
  1470. do
  1471. if num <= 0 then
  1472. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1473. refpart.Anchored = true
  1474. refpart.CFrame = CFrame.new(pos)
  1475. if hit ~= nil then
  1476. for i = 0,1 do
  1477.  
  1478. makeLightning(LightMod, partt.Position, refpart.Position, 0.3, 4, 20, 1, 10)
  1479. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  1480. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.2)
  1481. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.2)
  1482. MagniDamage(refpart, 3, 5, 10, 8, "Snare")
  1483. swait()
  1484. end
  1485.  
  1486.  
  1487. end
  1488. game:GetService("Debris"):AddItem(refpart, 0)
  1489. end
  1490. end
  1491. until num <= 0
  1492. end
  1493. ))
  1494. end
  1495.  
  1496.  
  1497. shoottraildd = function(mouse, partt, SpreadAmount)
  1498.  
  1499. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1500. local MainPos = partt.Position
  1501. local MainPos2 = mouse + SpreadVectors
  1502. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1503. local speed = 1000
  1504. local num = 1
  1505. coroutine.resume(coroutine.create(function()
  1506.  
  1507. repeat
  1508. swait()
  1509. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1510. local mag = (MainPos - pos).magnitude
  1511. Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.195, 0, -0.195, 0.15)
  1512. MainPos = MainPos + MouseLook.lookVector * speed
  1513. num = num - 1
  1514. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1515. if hit ~= nil then
  1516. num = 0
  1517. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1518. refpart.Anchored = true
  1519. refpart.CFrame = CFrame.new(pos)
  1520. game:GetService("Debris"):AddItem(refpart, 2)
  1521. end
  1522. do
  1523. if num <= 0 then
  1524. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1525. refpart.Anchored = true
  1526. refpart.CFrame = CFrame.new(pos)
  1527. if hit ~= nil then
  1528. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  1529. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  1530. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  1531. MagniDamage(refpart, 3, 10, 15, 0, "Normal")
  1532. end
  1533. game:GetService("Debris"):AddItem(refpart, 0)
  1534. end
  1535. end
  1536. until num <= 0
  1537. end
  1538. ))
  1539. end
  1540.  
  1541. shoottraildd2 = function(mouse, partt, SpreadAmount)
  1542.  
  1543. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1544. local MainPos = partt.Position
  1545. local MainPos2 = mouse + SpreadVectors
  1546. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1547. local speed = 100099999999999999
  1548. local num = 1
  1549. coroutine.resume(coroutine.create(function()
  1550.  
  1551. repeat
  1552. swait()
  1553. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1554. local mag = (MainPos - pos).magnitude
  1555. Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.5, 0, -0.5, .5)
  1556. MainPos = MainPos + MouseLook.lookVector * speed
  1557. num = num - 1
  1558. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1559. if hit ~= nil then
  1560. num = 0
  1561. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1562. refpart.Anchored = true
  1563. refpart.CFrame = CFrame.new(pos)
  1564. game:GetService("Debris"):AddItem(refpart, 2)
  1565. end
  1566. do
  1567. if num <= 0 then
  1568. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1569. refpart.Anchored = true
  1570. refpart.CFrame = CFrame.new(pos)
  1571. if hit ~= nil then
  1572. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  1573. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  1574. BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.1)
  1575. MagniDamage(refpart, 3, 20, 40, 0, "Snare")
  1576. end
  1577. game:GetService("Debris"):AddItem(refpart, 0)
  1578. end
  1579. end
  1580. until num <= 0
  1581. end
  1582. ))
  1583. end
  1584.  
  1585.  
  1586. function idleanim2()
  1587. for i = 0, 1, 0.1 do
  1588. swait()
  1589. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1) * angles(math.rad(0), math.rad(0), math.rad(10)), .2)
  1590. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0 + 0.7 * math.cos(sine / 25)), math.rad(0), math.rad(-10)), .2)
  1591. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.0) * angles(math.rad(0), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  1592. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(0 - 1 * math.cos(sine / 25))), 0.2)
  1593. RH.C0 = clerp(RH.C0, cn(1, -.7 - 0.0 * math.cos(sine / 25), -.3) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(-0), math.rad(50 + 1.1 * math.cos(sine / 25))), .2)
  1594. LH.C0 = clerp(LH.C0, cn(-1, -.6 - 0.0 * math.cos(sine / 25), -.3) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(-0), math.rad(-40 + 1.1 * math.cos(sine / 25))), .2)
  1595. GuW.C0 = clerp(GuW.C0, CFrame.new(-1.4,-1.5,0) * angles(math.rad(-0), math.rad(0), math.rad(90)), 0.1)
  1596. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1597. end
  1598. end
  1599.  
  1600. function MinShotAttackAnim1()
  1601.  
  1602. for i = 0, 1, 0.3 do
  1603. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.hit.p.x,Torso.Position.y,mouse.hit.p.z))
  1604. swait()
  1605.  
  1606. if Torsovelocity > 1 then
  1607. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0), math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  1608. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5))), .2)
  1609. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  1610. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  1611. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50) + RootPart.RotVelocity.Y / 70, math.rad(50 * math.cos(sine / 4)+ RootPart.RotVelocity.Y / 10)), .3)
  1612. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50) + RootPart.RotVelocity.Y / 70, math.rad(50 * math.cos(sine / 4))), .3)
  1613. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  1614. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1615. elseif Torsovelocity < 1 then
  1616.  
  1617.  
  1618.  
  1619. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  1620. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  1621. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  1622. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  1623. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  1624. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  1625. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  1626. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1627. end
  1628. end
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637. end
  1638.  
  1639.  
  1640. function ShotAttackAnim1()
  1641. for i = 0, 1, 0.3 do
  1642.  
  1643. swait()
  1644.  
  1645. if Torsovelocity > 1 then
  1646. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  1647. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 12), .2)
  1648. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  1649. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  1650. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  1651. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  1652. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  1653. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1654. elseif Torsovelocity < 1 then
  1655.  
  1656.  
  1657.  
  1658. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  1659. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  1660. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  1661. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  1662. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  1663. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  1664. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  1665. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1666. end
  1667. end
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676. end
  1677.  
  1678.  
  1679. function ShotAttackAnim2()
  1680. for i = 0, 2, 0.1 do
  1681. swait()
  1682.  
  1683. if Torsovelocity > 2 then
  1684. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-45+5 * math.cos(sine / 5))), .2)
  1685. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(5), math.rad(45+-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  1686. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 4), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 4))), 0.3)
  1687. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 4), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 4)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 4))), 0.2)
  1688. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  1689. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  1690. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  1691. DW.C0 = clerp(DW.C0, CFrame.new(4+.1 * math.cos(sine / 5) , 7.05 - .1 * math.cos(sine / 3), 2.5 + .1 * math.cos(sine / 6)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  1692. elseif Torsovelocity < 1 then
  1693.  
  1694.  
  1695. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
  1696. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  1697. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(25), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  1698. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5 + -.1 * math.cos(sine / 25), -.0) * angles(math.rad(15 + 3 * math.cos(sine / 25)), math.rad(0), math.rad(-25 + 3 * math.cos(sine / 25))), 0.1)
  1699. RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  1700. LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  1701. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(-05), math.rad(90)), 0.1)
  1702.  
  1703. DW.C0 = clerp(DW.C0, CFrame.new(2 + .1 * math.cos(sine / 5) ,7 + -.2 * math.cos(sine / 20), 0 + .1 * math.cos(sine / 5)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.05)
  1704. end
  1705. end
  1706. end
  1707.  
  1708. function ShotAttackAnim3()
  1709. for i = 0, 2, 0.1 do
  1710. swait()
  1711.  
  1712. if Torsovelocity > 2 then
  1713. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  1714. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  1715. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  1716. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(125 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  1717. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  1718. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  1719. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  1720. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1721. elseif Torsovelocity < 1 then
  1722.  
  1723.  
  1724. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  1725. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  1726. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  1727. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(125 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  1728. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(4 + 2 * math.cos(sine / 25))), .2)
  1729. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(-20 + 2 * math.cos(sine / 25))), .2)
  1730. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  1731. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1732. end
  1733. end
  1734.  
  1735.  
  1736.  
  1737. for i = 0, 1, 0.4 do
  1738. swait()
  1739.  
  1740. if Torsovelocity > 2 then
  1741. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  1742. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  1743. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1)
  1744. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  1745. RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  1746. LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4), .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  1747. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  1748. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1749. elseif Torsovelocity < 1 then
  1750.  
  1751.  
  1752. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  1753. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  1754. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1)
  1755. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  1756. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
  1757. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
  1758. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  1759. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1760. end
  1761. end
  1762. end
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771. function holding()
  1772.  
  1773.  
  1774.  
  1775.  
  1776. while Rapid == true and attack==true and sentrymode == false do
  1777.  
  1778. attack = true
  1779.  
  1780.  
  1781. MinShotAttackAnim1()
  1782. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  1783. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  1784. shoottraildd(mouse.Hit.p, gun1, .55)
  1785.  
  1786. MinShotAttackAnim1()
  1787. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  1788. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  1789. shoottraildd(mouse.Hit.p, gun2, .55)
  1790. MinShotAttackAnim1()
  1791. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  1792. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  1793. shoottraildd(mouse.Hit.p, gun3, .55)
  1794. MinShotAttackAnim1()
  1795. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  1796. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", RootPart, 1, 1.5)
  1797. shoottraildd(mouse.Hit.p, gun4, .55)
  1798. end
  1799.  
  1800.  
  1801.  
  1802. attack = false
  1803. end
  1804.  
  1805. mouse.KeyUp:connect(function(k)
  1806. if k == "z" and Rapid == true then
  1807. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", RootPart, 1, 2)
  1808. Rapid = false
  1809. Effects.Ring.Create (BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, .1,.1,0,0.08)
  1810. Effects.Ring.Create (BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, .1,.1,0,0.1)
  1811.  
  1812. end
  1813. end)
  1814.  
  1815.  
  1816.  
  1817. mouse.KeyDown:connect(function(k)
  1818. if k == "z" and sentrymode == false and attack == false then
  1819. attack = true
  1820. Rapid = true
  1821. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=162611981", RootPart, 1, 1)
  1822. MinShotAttackAnim1()
  1823. MinShotAttackAnim1()
  1824. for i = 0,10 do
  1825. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  1826. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  1827. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  1828. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, 1, 1, 1, 2, 2, 2, 0.1)
  1829. Effects.Ring.Create (BrickColor.new("Really red"), gun1.CFrame, 2.1, 2.1, .1, -.3,-.3,0,0.07)
  1830. MinShotAttackAnim1()
  1831. end
  1832. holding()
  1833. end
  1834. end)
  1835.  
  1836.  
  1837.  
  1838.  
  1839. mouse.KeyDown:connect(function(k)
  1840.  
  1841.  
  1842. if attack == false and k == "x" and sentrymode == false then
  1843.  
  1844.  
  1845.  
  1846.  
  1847. attack = true
  1848. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=316030607", LaPart, 5, 3)
  1849. for i=1,5 do
  1850.  
  1851. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1852. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1853. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1854. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1855. ShotAttackAnim1()
  1856. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1857. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1858. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1859. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1860. ShotAttackAnim1()
  1861. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1862. BlockEffect(BrickColor.new("Really red"), gun2.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1863. BlockEffect(BrickColor.new("Really red"), gun3.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1864. BlockEffect(BrickColor.new("Really red"), gun4.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1865.  
  1866. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 0, 0, 0, 60, 60, 60, 0.4)
  1867. ShotAttackAnim1()
  1868. end
  1869. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=633129949", LaPart, 10, 1)
  1870. for i=1,2 do
  1871. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 20, 20, 20, 50, 50, 50, 0.12)
  1872. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 20, 20, 20, 30, 30, 30, 0.09)
  1873. BlockEffect(BrickColor.new("Really red"), gun1.CFrame, 10, 10, 10, 20, 20, 20, 0.06)
  1874. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, 3, 3, 3, 10, 10, 10, 0.045)
  1875. end
  1876. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1877.  
  1878.  
  1879. MagniDamage(gun1, 15, 20, 69, 99, "Normal")
  1880. ShotAttackAnim3()
  1881.  
  1882.  
  1883.  
  1884.  
  1885. for i=1,2 do
  1886. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1887. ShotAttackAnim1()
  1888. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1889. ShotAttackAnim1()
  1890. BlockEffect(BrickColor.new("Really black"), gun1.CFrame, .1, .1, .1, 1, 1, 1, 0.045)
  1891. ShotAttackAnim1()
  1892. end
  1893.  
  1894. attack = false
  1895.  
  1896. end
  1897.  
  1898.  
  1899.  
  1900. if k == "r" and attack == false then
  1901. attack=true
  1902. while Torsovelocity < 1 do
  1903. attack=true
  1904. idleanim2()
  1905.  
  1906.  
  1907.  
  1908. end
  1909. attack=false
  1910.  
  1911. end
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920. if k == "v" and sentrymode == false and attack == false and ultwait==false then
  1921. ultwait=true
  1922. attack = true
  1923. Humanoid.WalkSpeed = 69
  1924. local Sond = Create("Sound")({Volume = 1.5, Pitch = 1.2, SoundId = "http://www.roblox.com/asset/?id=195322948", Parent = Character or workspace})
  1925. wait()
  1926. Sond:play()
  1927.  
  1928. for i = 0, 1, 0.1 do
  1929. swait()
  1930.  
  1931.  
  1932.  
  1933. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  1934. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  1935. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  1936. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  1937. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  1938. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  1939. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  1940. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1941.  
  1942. end
  1943.  
  1944.  
  1945. for i = 0, 2, 0.1 do
  1946. swait(0.001)
  1947.  
  1948. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.1)
  1949.  
  1950.  
  1951. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  1952. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
  1953. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  1954. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(90 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2)
  1955. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .2)
  1956. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2)
  1957. GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1958. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1959.  
  1960. end
  1961.  
  1962.  
  1963. for i = 0, 58, 0.1 do
  1964. swait()
  1965. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, .6,.6,0,0.08)
  1966. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, .6,.6,0,0.1)
  1967. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, -.5, -.5, -.5, 0.1,2)
  1968.  
  1969. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  1970. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
  1971. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.1)
  1972. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-45), math.rad(-45 - 1 * math.cos(sine / 25))), 0.1)
  1973. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1)
  1974. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2)
  1975. GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1976. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1977.  
  1978. end
  1979. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 0, 0, 0, 20,20,20, 0.05,1)
  1980. for i = 0, 55, 0.1 do
  1981. swait(0.001)
  1982. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.08)
  1983. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 1,1,0,0.1)
  1984. Effects.Break.Create (BrickColor.new("Really red"), LeftArm.CFrame, 6, .1, .1)
  1985. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, .1, .1, .1, 0.05,2)
  1986. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(-50)), .01)
  1987. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
  1988. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  1989. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(120 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(-45 - 1 * math.cos(sine / 25))), 0.2)
  1990. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.2 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1)
  1991. LH.C0 = clerp(LH.C0, cn(-.9, -.7 - 0.2 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  1992. GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1993. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  1994.  
  1995. end
  1996. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 0, 0, 0, 30,30,30, 0.05,1)
  1997. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260434750", Character, 2, .7)
  1998. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=209833293", Character, 2, 2)
  1999. for i = 0, 10, 0.1 do
  2000. swait()
  2001.  
  2002. Effects.Wave.Create (BrickColor.new("Really red"), Torso.CFrame, .1, .1, .1, .5,10000,.5,0.08)
  2003. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 17,17,0,0.08)
  2004. Effects.Ring.Create (BrickColor.new("Really red"), LeftArm.CFrame, .1, .1, .1, 17,17,0,0.1)
  2005. Effects.Break.Create (BrickColor.new("Really red"), LeftArm.CFrame, 76, .1, .1)
  2006. BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 40, 40, 40, 70,70,70, 0.05,1)
  2007.  
  2008.  
  2009. MagniKILL(Torso, 80,99,99999999, 0, "Normal")
  2010.  
  2011. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2012. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), .2)
  2013. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2014. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(160 + 1 * math.cos(sine / 25)), math.rad(-0), math.rad(-0 - 1 * math.cos(sine / 25))), 0.2)
  2015. RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(0 + 0 * math.cos(sine / 25))), .1)
  2016. LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(-0 + 0 * math.cos(sine / 25))), .2)
  2017. GuW.C0 = clerp(GuW.C0, CFrame.new(0,-1.3,-1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2018. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2019.  
  2020. end
  2021. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260435164", Character, 2, .7)
  2022.  
  2023. for i = 0, 1, 0.1 do
  2024. swait(0.001)
  2025.  
  2026.  
  2027.  
  2028. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2029. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  2030. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(10), math.rad(-40 - .01 * math.cos(sine / 25)), math.rad(-0 + 0.1 * math.cos(sine / 25))), 0.2)
  2031. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2032. RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.0 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  2033. LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.0 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 0 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 0 * math.cos(sine / 25))), .2)
  2034. GuW.C0 = clerp(GuW.C0, CFrame.new(-2,-1.3,0) * angles(math.rad(-90), math.rad(0), math.rad(90)), 0.1)
  2035. DW.C0 = clerp(DW.C0, CFrame.new(3.5 + .5 * math.cos(sine / 30) ,3 + -.2 * math.cos(sine / 20), 2.5 + .5 * math.cos(sine / 40)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2036.  
  2037. end
  2038. Humanoid.WalkSpeed = 69
  2039. Sond:Destroy()
  2040.  
  2041. attack = false
  2042. wait(0.001)
  2043. ultwait=false
  2044. end
  2045.  
  2046. if k == "e" then
  2047.  
  2048. if sentrymode== false then
  2049. if attack == false then
  2050. GlowParticle.Enabled = true
  2051. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=876800936", LaPart, 1.5, 1.5)
  2052. sentrymode= true
  2053. end
  2054. else
  2055. sentrymode=false
  2056. GlowParticle.Enabled = false
  2057. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231107923", LaPart, 3, 1.5)
  2058. end
  2059. end
  2060.  
  2061. end)
  2062. mouse.Button1Down:connect(function(key)
  2063. if attack == false and sentrymode == false then
  2064. attack = true
  2065. ShotAttackAnim2()
  2066. BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18)
  2067. BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12)
  2068. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=410543238", LaPart, 0.5, 1.6)
  2069. bigLigLaser(mouse.Hit.p, LaPart, 0)
  2070. ShotAttackAnim2()
  2071. attack = false
  2072. end
  2073. end)
  2074.  
  2075. Humanoid.MaxHealth = 5009999999999999999999999999e999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  2076. wait()
  2077. Humanoid.Health = Humanoid.MaxHealth
  2078.  
  2079.  
  2080. ------------------------------------------------------------------------------------------------
  2081. local HiveMind = {}
  2082.  
  2083. function HiveMind:new(owner)
  2084. self.__index = self
  2085. local o = {mind = {}, mindState = "FOLLOW", victimObject = nil}
  2086. o.owner = owner
  2087. setmetatable(o, self)
  2088. return o
  2089. end
  2090.  
  2091. function HiveMind:add(model, humanoid, torso)
  2092. if model and humanoid and torso then
  2093. table.insert(self.mind, {model = model, humanoid = humanoid,
  2094. torso = torso})
  2095. local hiv = self
  2096. local lastJump = 0
  2097. torso.Touched:connect(function(object)
  2098. local hive = false
  2099. if hiv.owner.Character
  2100. and object:IsDescendantOf(hiv.owner.Character) == false
  2101. then
  2102. for i = 1, #hiv.mind do
  2103. if object:IsDescendantOf(hiv.mind[i].model) then
  2104. hive = true
  2105. break
  2106. end
  2107. end
  2108. if not hive then
  2109. local hum = object.Parent
  2110. and object.Parent:FindFirstChild("Humanoid")
  2111. if hum then
  2112. hum:TakeDamage(1)
  2113. end
  2114. elseif time() - lastJump > 2 then
  2115. lastJump = time(0) + math.random()*1
  2116. humanoid.Jump = true
  2117. end
  2118. end
  2119. end)
  2120. end
  2121. end
  2122.  
  2123. function HiveMind:cleanupHive()
  2124. local i = 1
  2125. while i <= #self.mind do
  2126. if self.mind[i].model:IsDescendantOf(game) == false
  2127. or self.mind[i].humanoid.Health == 0 then
  2128. table.remove(self.mind, i)
  2129. else
  2130. i = i + 1
  2131. end
  2132. end
  2133. end
  2134.  
  2135. function HiveMind:getOrbitNumberFromUnitNumber(i)
  2136. local circleNumber = 0
  2137. while self:getUnitsInOrbit(circleNumber) < i do
  2138. i = i - self:getUnitsInOrbit(circleNumber)
  2139. circleNumber = circleNumber + 1
  2140. end
  2141. return circleNumber, i
  2142. end
  2143.  
  2144. function HiveMind:getOrbitDiameter(orbitNumber)
  2145. return math.pi*(orbitNumber*14)
  2146. end
  2147.  
  2148. function HiveMind:getUnitsInOrbit(orbitNumber)
  2149. return math.floor(self:getOrbitDiameter(orbitNumber)/5)
  2150. end
  2151.  
  2152. function HiveMind:lineup(location)
  2153. for i = 1, #self.mind do
  2154. local row = (i - 1) % 3
  2155. local column = math.floor((i - 1) / 3)
  2156. local xOffset, yOffset
  2157. if row == 0 then
  2158. xOffset = -7
  2159. elseif row == 1 then
  2160. xOffset = 0
  2161. else
  2162. xOffset = 7
  2163. end
  2164. yOffset = column * 7
  2165. local position = location * CFrame.new(xOffset, 0, yOffset)
  2166. self.mind[i].humanoid:MoveTo(position.p, workspace.Base)
  2167. end
  2168. end
  2169.  
  2170. function HiveMind:ownerTorso()
  2171. return self.owner.Character
  2172. and self.owner.Character:FindFirstChild("Torso")
  2173. end
  2174. function HiveMind:update()
  2175. self:cleanupHive()
  2176. if self.owner.Character then
  2177. local ownerTorso = self.owner.Character:FindFirstChild("Torso")
  2178. if ownerTorso then
  2179. if (self.mindState == "FOLLOW") then
  2180. local hiveSpawn = ownerTorso.CFrame * CFrame.new(0, 0, 9)
  2181. self:lineup(hiveSpawn)
  2182. elseif (self.mindState == "CIRCLE") then
  2183. self:circle(ownerTorso.Position)
  2184. elseif (self.mindState == "ATTACK") then
  2185. self:crowdAttack()
  2186. elseif (self.mindState == "Deffend") then
  2187. self:deffend()
  2188. elseif (self.mindState == "GOTO") then
  2189. self:pushToTarget()
  2190. end
  2191. end
  2192. end
  2193. end
  2194. local me = game:GetService("Players").LocalPlayer
  2195. local hiveMind = HiveMind:new(me)
  2196.  
  2197. ------------------------------------------------------------------------------------------------
  2198.  
  2199. function findNearestTorso(pos,dist2)
  2200. local list = game.Workspace:children()
  2201. local torso = nil
  2202. if dist2 == nil then
  2203. dist2=50
  2204.  
  2205. end
  2206. local dist = dist2
  2207. local temp = nil
  2208. local human = nil
  2209. local temp2 = nil
  2210. for x = 1, #list do
  2211. temp2 = list[x]
  2212. if (temp2.className == "Model") and (temp2 ~= Character) then
  2213. temp = temp2:findFirstChild("HumanoidRootPart")
  2214. human = temp2:findFirstChild("Humanoid")
  2215. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2216. if (temp.Position - pos).magnitude < dist then
  2217. torso = temp
  2218.  
  2219. dist = (temp.Position - pos).magnitude
  2220. else
  2221.  
  2222. end
  2223.  
  2224.  
  2225.  
  2226.  
  2227. end
  2228. end
  2229. end
  2230. return torso
  2231. end
  2232.  
  2233.  
  2234. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240. if sentrymode == true and sonarwait == false then
  2241. sonarwait = true
  2242.  
  2243. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=752527668", LaPart, 2, 0.8)
  2244.  
  2245. wait(0.001)
  2246. sonarwait = false
  2247. end
  2248.  
  2249.  
  2250.  
  2251.  
  2252. wait()
  2253. if sentrymode == true then
  2254.  
  2255. local target = findNearestTorso(Character.HumanoidRootPart.Position,30)
  2256. if target ~= nil then
  2257. ShotAttackAnim2()
  2258. if sentrywait == false then
  2259. sentrywait = true
  2260. attack= true
  2261.  
  2262.  
  2263. BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 6, 6, 6, 0.18)
  2264. BlockEffect(BrickColor.new("Really red"), LaPart.CFrame, 0, 0, 0, 2, 2, 2, 0.12)
  2265. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433584", LaPart, 1.5, .8)
  2266. LigLaser(target.Position, LaPart, 0)
  2267. wait()
  2268. attack= false
  2269. sentrywait = false
  2270. end
  2271.  
  2272.  
  2273. end
  2274.  
  2275. end
  2276. end)
  2277.  
  2278.  
  2279. sonarwait = false
  2280.  
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290. FaceIdList = {'117930174'}
  2291. FaceId = FaceIdList[math.random(1,#FaceIdList)]
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297. local YourName = game.Players.LocalPlayer.Name
  2298. Character = Player.Character
  2299.  
  2300.  
  2301. Heartbeat = Instance.new("BindableEvent")
  2302. Heartbeat.Name = "Heartbeat"
  2303. Heartbeat.Parent = script
  2304. frame = 0.03333333333333333
  2305. tf = 0
  2306.  
  2307. game:GetService("RunService").Heartbeat:connect(function(s, p)
  2308. tf = tf + s
  2309. if tf >= frame then
  2310. for i = 1, math.floor(tf / frame) do
  2311. Heartbeat:Fire()
  2312. end
  2313. tf = tf - frame * math.floor(tf / frame)
  2314. end
  2315. end)
  2316. local nscale = Instance.new("NumberValue")
  2317. nscale.Value = 1
  2318. nscale.Parent = nil
  2319. nscale.Changed:connect(function()
  2320. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2321. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2322. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2323. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2324. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2325. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2326. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2327. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2328. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2329. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2330. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2331. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2332. end)
  2333.  
  2334. function makegloo(paren, co, ci, parto, parti, nam)
  2335. local gloo = Instance.new("Glue")
  2336. gloo.Name = nam
  2337. gloo.C0 = co
  2338. gloo.C1 = ci
  2339. gloo.Part0 = parto
  2340. gloo.Part1 = parti
  2341. gloo.Parent = paren
  2342. end
  2343. function makejoint(paren, co, ci, parto, parti, nam)
  2344. local gloo = Instance.new("Motor6D")
  2345. gloo.Name = nam
  2346. gloo.C0 = co
  2347. gloo.C1 = ci
  2348. gloo.Part0 = parto
  2349. gloo.Part1 = parti
  2350. gloo.Parent = paren
  2351. end
  2352. function maketouchy(parent, limb, cframe)
  2353. local pr = Instance.new("Part")
  2354. pr.Name = "touchy"
  2355. pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  2356. pr.Transparency = 1
  2357. pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5)
  2358. pr.CanCollide = true
  2359. pr.Anchored = false
  2360. pr.Parent = parent
  2361. local w = Instance.new("Weld")
  2362. w.Part0 = pr
  2363. w.Part1 = limb
  2364. w.C0 = cframe
  2365. w.Parent = pr
  2366. end
  2367. --[[ function swait(num)
  2368. if num == 0 or num == nil then
  2369. Heartbeat.Event:wait()
  2370. else
  2371. for i = 1, num do
  2372. Heartbeat.Event:wait()
  2373. end
  2374. end
  2375. end
  2376. --]]
  2377. modz = Instance.new("Model")
  2378. modz.Name = "efx"
  2379. modz.Parent = Character
  2380.  
  2381. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2382. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2383. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2384. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2385. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2386. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2387. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2388. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2389. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2390. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2391. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2392. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2393. local nscale = Instance.new("NumberValue")
  2394. nscale.Value = 1
  2395. nscale.Parent = nil
  2396. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2397. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2398. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2399. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2400. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2401. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2402. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2403. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2404. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2405. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2406. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2407. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2408.  
  2409.  
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.  
  2421. sWaiting=false
  2422. wait3=false
  2423. shotval = 0
  2424.  
  2425. npcname = ""..Character.Name.."'s Combine"
  2426.  
  2427.  
  2428. Character.ChildAdded:connect(function(object)
  2429. if object.Name == npcname then
  2430. hiveMind:add(object, object:WaitForChild("Humanoid"),
  2431. object:WaitForChild("Torso"))
  2432. end
  2433. end)
  2434. game:GetService("RunService").Stepped:connect(function()
  2435. hiveMind:update()
  2436. end)
  2437.  
  2438. function makenoob(cfrem, scalo, rags)
  2439. nscale.Value = scalo
  2440. local md = Instance.new("Model")
  2441. md.Name = ""..Character.Name.."'s Combine"
  2442. md.Parent = Character
  2443. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=220230512", md, 1, 1)
  2444. wait(.5)
  2445. local hu = Instance.new("Humanoid")
  2446. hu.RigType = "R6"
  2447. hu.MaxHealth = 150 * scalo
  2448. hu.Health = 150 * scalo
  2449. hu.Parent = md
  2450. hu.DisplayDistanceType="Viewer"
  2451. hu.HealthDisplayDistance=100
  2452. hu.NameDisplayDistance=100
  2453. hu.NameOcclusion="EnemyOcclusion"
  2454. local anm = Instance.new("Animator")
  2455. anm.Parent = hu
  2456. local forthisnpcanim = npcanim:Clone()
  2457. forthisnpcanim.Parent = md
  2458. hu.PlatformStand = true
  2459. local light = function(part)
  2460. part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5)
  2461. end
  2462. local hd = Instance.new("Part")
  2463. hd.Name = "Head"
  2464. hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  2465. hd.TopSurface = "Smooth"
  2466. hd.BottomSurface = "Inlet"
  2467. hd.Locked = true
  2468. hd.BrickColor = BrickColor.new("Pastel brown")
  2469. hd.CanCollide = true
  2470. hd.Anchored = false
  2471. light(hd)
  2472. hd.Parent = md
  2473. local hm = Instance.new("SpecialMesh")
  2474. hm.MeshType = "Head"
  2475. hm.Scale = Vector3.new(1.25, 1.25, 1.25)
  2476. hm.Parent = hd
  2477.  
  2478.  
  2479.  
  2480. shirt = Instance.new("Shirt", md)
  2481. shirt.Name = "Shirt"
  2482. pants = Instance.new("Pants", md)
  2483. pants.Name = "Pants"
  2484. md.Shirt.ShirtTemplate = "rbxassetid://49257392"
  2485. md.Pants.PantsTemplate = "rbxassetid://49257378"
  2486. function loada(anim)
  2487. local loaded = md.Humanoid:LoadAnimation(anim)
  2488. return loaded
  2489. end
  2490. IdleA = New("Animation",md,"Idle",{AnimationId = "rbxassetid://243282565"})
  2491. IdleAnim = loada(IdleA)
  2492.  
  2493. local hf = Instance.new("Decal")
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501. FaceId = FaceIdList[math.random(1,#FaceIdList)]
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507. hf.Texture = "rbxassetid://"..FaceId
  2508.  
  2509. hf.Face = "Front"
  2510. hf.Parent = hd
  2511. local hrpa = Instance.new("Part")
  2512. hrpa.Name = "HumanoidRootPart"
  2513. hrpa.TopSurface, hrpa.BottomSurface = 0, 0
  2514. hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  2515. hrpa.Transparency = 1
  2516. hrpa.CanCollide = false
  2517. hrpa.Locked = true
  2518. light(hrpa)
  2519. hrpa.Parent = md
  2520. local tagbomb = Instance.new("BoolValue")
  2521. tagbomb.Name = "tagbomb"
  2522. tagbomb.Value = false
  2523. tagbomb.Parent = hrpa
  2524. local learm = Instance.new("Part")
  2525. learm.Name = "Left Arm"
  2526. learm.BrickColor = BrickColor.new("Pastel brown")
  2527. learm.CanCollide = false
  2528. learm.Locked = true
  2529. learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  2530. light(learm)
  2531. learm.Parent = md
  2532. local riarm = Instance.new("Part")
  2533. riarm.Name = "Right Arm"
  2534. riarm.BrickColor = BrickColor.new("Pastel brown")
  2535. riarm.CanCollide = false
  2536. riarm.Locked = true
  2537. light(riarm)
  2538. riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  2539. riarm.Parent = md
  2540. local leleg = Instance.new("Part")
  2541. leleg.Name = "Left Leg"
  2542. leleg.BrickColor = BrickColor.new("Navy blue")
  2543. leleg.CanCollide = false
  2544. leleg.Locked = true
  2545. light(leleg)
  2546. leleg.BottomSurface = 0
  2547. leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  2548. leleg.Parent = md
  2549. local rileg = Instance.new("Part")
  2550. rileg.Name = "Right Leg"
  2551. rileg.BrickColor = BrickColor.new("Navy blue")
  2552. rileg.CanCollide = false
  2553. rileg.Locked = true
  2554. light(rileg)
  2555. rileg.BottomSurface = 0
  2556. rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  2557. rileg.Parent = md
  2558. local tor = Instance.new("Part")
  2559. tor.Name = "Torso"
  2560. tor.BrickColor = BrickColor.new("Really red")
  2561. tor.Locked = true
  2562. light(tor)
  2563. tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  2564. tor.LeftSurface, tor.RightSurface = "Weld", "Weld"
  2565. tor.Parent = md
  2566. md.PrimaryPart = hrpa
  2567. md:SetPrimaryPartCFrame(cfrem)
  2568. md:makeJoints()
  2569. makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint")
  2570. makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck")
  2571.  
  2572. if rags == true then
  2573. makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  2574. makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  2575. makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  2576. makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  2577. maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0))
  2578. maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0))
  2579. maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0))
  2580. maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0))
  2581. elseif rags == false then
  2582. makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  2583. makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  2584. makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  2585. makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  2586. hu.PlatformStand = false
  2587.  
  2588. end
  2589.  
  2590.  
  2591. local Solhat = Instance.new("Accessory")
  2592. Solhat.AttachmentPos = Vector3.new(0, .3, 0)
  2593. local SHH = Instance.new("Part",Solhat)
  2594. SHH.Name = "Handle"
  2595. SHH.CanCollide=false
  2596. local SHHMesh = Instance.new("SpecialMesh",SHH)
  2597. SHHMesh.Parent = SHH
  2598. SHHMesh.MeshId = "rbxassetid://31152467"
  2599. SHHMesh.TextureId = "rbxassetid://32002857"
  2600. SHHMesh.Scale = Vector3.new(1, 1, 1)
  2601. SHHMesh.VertexColor = Vector3.new(1, 1, 1)
  2602.  
  2603.  
  2604.  
  2605. nscale.Value = 1
  2606.  
  2607. wait()
  2608. Solhat.Parent = md
  2609. Thegun = Instance.new("Part",riarm)
  2610. Thegun.CanCollide=false
  2611. Thegun.Size = Vector3.new(1,1,1)
  2612. ThegunW = Instance.new("Weld")
  2613. ThegunW.Name = "GuW"
  2614. ThegunW.Part0 = riarm
  2615. ThegunW.C0 = cn(-.5, -2.4, -.4)*angles(0,0,3.2)
  2616. ThegunW.C1 = cn(0, 0, 0)
  2617. ThegunW.Part1 = Thegun
  2618. ThegunW.Parent = riarm
  2619. local ThegunMesh = Instance.new("SpecialMesh",Thegun)
  2620. ThegunMesh.Parent = Thegun
  2621. ThegunMesh.MeshId = "rbxassetid://477158943"
  2622. ThegunMesh.TextureId = "rbxassetid://477158949"
  2623. ThegunMesh.Scale = Vector3.new(0.04, 0.035, 0.04)
  2624. ThegunMesh.VertexColor = Vector3.new(0.2, 0, 0)
  2625. Thegun2 = Instance.new("Part",md)
  2626. Thegun2.CanCollide=false
  2627. Thegun2.Size = Vector3.new(.1,.1,.1)
  2628. Thegun2.Name = "Shoot"
  2629. ThegunW2 = Instance.new("Weld")
  2630. ThegunW2.Name = "GuW"
  2631. ThegunW2.Part0 = riarm
  2632. ThegunW2.C0 = cn(-0.4,-4.6,-.45)*angles(0,0,0)
  2633. ThegunW2.C1 = cn(0, 0, 0)
  2634. ThegunW2.Part1 = Thegun2
  2635. ThegunW2.Parent = riarm
  2636. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  2637. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  2638.  
  2639. BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  2640. BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  2641. wait(0.5)
  2642. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183921414", tor, 1, 1)
  2643. IdleAnim:Play()
  2644. wait(2.5)
  2645. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=183953820", tor, 2, 1)
  2646. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  2647. if md ~= nil and hu.Health > 0 and sentrymode == false then
  2648. if md ~= nil and hu.Health > 0 and sentrymode == false then
  2649.  
  2650. if killcom==true or sentrymode == true and sWaiting==false then
  2651.  
  2652. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=282061033", Torso, .5, 1)
  2653.  
  2654.  
  2655.  
  2656. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  2657. BlockEffect(BrickColor.new("Really black"), tor.CFrame, 160, 160, 160, -5, -5, -5, 0.04)
  2658.  
  2659. BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  2660. BlockEffect(BrickColor.new("Really red"), tor.CFrame, 160, 160, 160, -14, -14, -14, 0.06)
  2661.  
  2662.  
  2663.  
  2664. hu.Health = 0
  2665. game:service'Debris':AddItem(md, .0);
  2666. end
  2667.  
  2668.  
  2669.  
  2670.  
  2671.  
  2672. hu.WalkSpeed = 69.5
  2673. local target2 = findNearestTorso(hrpa.Position,60)
  2674. if target2 ~= nil then
  2675. hu:MoveTo(target2.Position, target2)
  2676.  
  2677. end
  2678.  
  2679. local target3 = findNearestTorso(hrpa.Position,45)
  2680.  
  2681. if target3 ~= nil then
  2682. hu.WalkSpeed = 0
  2683. tor.CFrame = CFrame.new(tor.Position, target3.Position) * CFrame.Angles(0,math.rad(0),0) * CFrame.new(0,0,(dir2.s))
  2684. end
  2685.  
  2686. if target3 ~= nil and wait3==false and sentrymode == false then
  2687. wait3=true
  2688.  
  2689. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=419268760", LaPart, 3, .7)
  2690. shoottraildd2(target3.Position, Thegun2, 1)
  2691. local PointLight = Instance.new("PointLight", Thegun2);
  2692. PointLight.Color = Color3.new(1,0,0)
  2693. PointLight.Brightness = 50;
  2694. PointLight.Range = 10
  2695. game:service'Debris':AddItem(PointLight, .02);
  2696. wait(2.2)
  2697. wait3=false
  2698.  
  2699.  
  2700.  
  2701. --Torso.CFrame = CFrame.new(Torso.Position, mouse.Hit.p) * CFrame.Angles(0,math.rad(0),0) * CFrame.new(0,0,(dir.s))
  2702.  
  2703.  
  2704. end
  2705.  
  2706. end
  2707.  
  2708. for i,v in pairs(Character:GetChildren()) do
  2709. if ""..Character.Name.."'s Combine" then
  2710.  
  2711.  
  2712.  
  2713. if hu.Health == 0 and md ~= nil and killcom==false and sWaiting==false then
  2714. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=160622487", Torso, .6, 1)
  2715.  
  2716.  
  2717. game:service'Debris':AddItem(md, 3);
  2718.  
  2719. end
  2720. end
  2721. return md
  2722.  
  2723. end
  2724. end
  2725. end)
  2726.  
  2727.  
  2728.  
  2729. end
  2730.  
  2731.  
  2732.  
  2733.  
  2734.  
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745. function makecircle(cfrem, scalo)
  2746. local mcir1 = Instance.new("Part")
  2747. mcir1.Anchored = true
  2748. mcir1.CanCollide = false
  2749. mcir1.Size = Vector3.new(0.2, 0.2, 0.2)
  2750. mcir1.Transparency = 1
  2751. mcir1.CFrame = cfrem
  2752. mcir1.Parent = modz
  2753. game.Debris:AddItem(mcir1, 8)
  2754. local d1 = Instance.new("Decal")
  2755. d1.Texture = "rbxassetid://0"
  2756. d1.Face = "Front"
  2757. d1.Parent = mcir1
  2758. local d2 = Instance.new("Decal")
  2759. d2.Texture = "rbxassetid://0"
  2760. d2.Face = "Back"
  2761. d2.Parent = mcir1
  2762. local bme = Instance.new("BlockMesh")
  2763. bme.Parent = mcir1
  2764. for _ = 1, 9 do
  2765. swait()
  2766. bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3)
  2767. end
  2768. coroutine.resume(coroutine.create(function()
  2769. swait(15)
  2770. for _ = 1, 12 do
  2771. swait()
  2772. d1.Transparency = d1.Transparency + 0.08
  2773. d2.Transparency = d2.Transparency + 0.08
  2774. end
  2775. mcir1:Destroy()
  2776. end))
  2777. return mcir1
  2778. end
  2779. function spawnnoob(circlecf, noobcf, scalez, ragd)
  2780. local aearae = makecircle(circlecf, scalez)
  2781. local nananb
  2782.  
  2783. nananb = makenoob(aearae.CFrame * noobcf, scalez, false)
  2784.  
  2785. return nananb
  2786. end
  2787. mouse.KeyDown:connect(function(k)
  2788. if k == "c" and attack == false and sentrymode == false then
  2789. if killcom==false then
  2790. killcom=true
  2791. else
  2792. killcom=false
  2793. spawnnoob(RootPart.CFrame * cn((math.random(-5,5)), 10, (math.random(-0,5))) * angles(mr(90), 0, 0), cn(0, 0, 0) * angles(mr(-90), 0, 0), 1, false)
  2794.  
  2795. end
  2796.  
  2797.  
  2798. end
  2799. end)
  2800.  
  2801. --[[
  2802. BlockEffect(BrickColor.new("Royal purple"), Firepart1.CFrame, 1, 1, 1, 3, 3, 3, 0.06)
  2803. BlockEffect(BrickColor.new("Eggplant"), Firepart1.CFrame, 1, 1, 1, 2.8, 2.8, 2.8, 0.06)
  2804. BlockEffect(BrickColor.new("Royal purple"), Firepart2.CFrame, 1, 1, 1, 3, 3, 3, 0.06)
  2805. BlockEffect(BrickColor.new("Eggplant"), Firepart2.CFrame, 1, 1, 1, 2.8, 2.8, 2.8, 0.06)
  2806. --]]
Add Comment
Please, Sign In to add comment