XDMANFROMXDWORLD

ROBLOX Reaper Script ?

Jul 12th, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 83.05 KB | None | 0 0
  1. --[[Qarmory, if you stole this then youre a bigger duche than i am lol!]]--
  2. wait(1 / 60)
  3. Effects = { }
  4. local Player = game.Players.localPlayer
  5. local Character = Player.Character
  6. local effects = Instance.new('Model', Character)
  7. effects.Name = "Effects"
  8. local Humanoid = Character.Humanoid
  9. local mouse = Player:GetMouse()
  10. local m = Instance.new('Model', Character)
  11. m.Name = "WeaponModel"
  12. local LeftArm = Character["Left Arm"]
  13. local RightArm = Character["Right Arm"]
  14. local LeftLeg = Character["Left Leg"]
  15. local RightLeg = Character["Right Leg"]
  16. local Head = Character.Head
  17. local Torso = Character.Torso
  18. local cam = game.Workspace.CurrentCamera
  19. local RootPart = Character.HumanoidRootPart
  20. local RootJoint = RootPart.RootJoint
  21. local equipped = false
  22. local attack = false
  23. local Anim = 'Idle'
  24. local idle = 0
  25. local attacktype = 1
  26. local vt = Vector3.new
  27. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  28. local velocity = RootPart.Velocity.y
  29. local sine = 0
  30. local change = 1
  31. local mana = 0
  32. local it =Instance.new
  33.  
  34. local grabbed = false
  35. local cf = CFrame.new
  36. local mr = math.rad
  37. local angles = CFrame.Angles
  38. local ud = UDim2.new
  39. local c3 = Color3.new
  40.  
  41. local NeckCF = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  42.  
  43. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  44. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  45. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  46.  
  47. RSH, LSH = nil, nil
  48.  
  49. RW = Instance.new("Weld")
  50. LW = Instance.new("Weld")
  51.  
  52. RH = Torso["Right Hip"]
  53. LH = Torso["Left Hip"]
  54.  
  55. RSH = Torso["Right Shoulder"]
  56. LSH = Torso["Left Shoulder"]
  57.  
  58. RSH.Parent = nil
  59. LSH.Parent = nil
  60.  
  61. RW.Name = "RW"
  62. RW.Part0 = Torso
  63. RW.C0 = cf(1.5, 0.5, 0)
  64. RW.C1 = cf(0, 0.5, 0)
  65. RW.Part1 = RightArm
  66. RW.Parent = Torso
  67.  
  68. LW.Name = "LW"
  69. LW.Part0 = Torso
  70. LW.C0 = cf(-1.5, 0.5, 0)
  71. LW.C1 = cf(0, 0.5, 0)
  72. LW.Part1 = LeftArm
  73. LW.Parent = Torso
  74.  
  75. function clerp(a, b, t)
  76. return a:lerp(b, t)
  77. end
  78.  
  79.  
  80. local RbxUtility = LoadLibrary("RbxUtility")
  81. local Create = RbxUtility.Create
  82.  
  83. function RemoveOutlines(part)
  84. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  85. end
  86.  
  87. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  88. local Part = Create("Part"){
  89. Parent = Parent,
  90. Reflectance = Reflectance,
  91. Transparency = Transparency,
  92. CanCollide = false,
  93. Locked = true,
  94. BrickColor = BrickColor.new(tostring(BColor)),
  95. Name = Name,
  96. Size = Size,
  97. Material = Material,
  98. }
  99. RemoveOutlines(Part)
  100. return Part
  101. end
  102.  
  103. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  104. local Msh = Create(Mesh){
  105. Parent = Part,
  106. Offset = OffSet,
  107. Scale = Scale,
  108. }
  109. if Mesh == "SpecialMesh" then
  110. Msh.MeshType = MeshType
  111. Msh.MeshId = MeshId
  112. end
  113. return Msh
  114. end
  115.  
  116. ArtificialHB = Instance.new("BindableEvent", script)
  117. ArtificialHB.Name = "Heartbeat"
  118.  
  119. script:WaitForChild("Heartbeat")
  120.  
  121. frame = 1 / 30
  122. tf = 0
  123. allowframeloss = false
  124. tossremainder = false
  125. lastframe = tick()
  126. script.Heartbeat:Fire()
  127.  
  128. game:GetService("RunService").Heartbeat:connect(function(s, p)
  129. tf = tf + s
  130. if tf >= frame then
  131. if allowframeloss then
  132. script.Heartbeat:Fire()
  133. lastframe = tick()
  134. else
  135. for i = 1, math.floor(tf / frame) do
  136. script.Heartbeat:Fire()
  137. end
  138. lastframe = tick()
  139. end
  140. if tossremainder then
  141. tf = 0
  142. else
  143. tf = tf - frame * math.floor(tf / frame)
  144. end
  145. end
  146. end)
  147.  
  148. function swait(num)
  149. if num == 0 or num == nil then
  150. ArtificialHB.Event:wait()
  151. else
  152. for i = 0, num do
  153. ArtificialHB.Event:wait()
  154. end
  155. end
  156. end
  157.  
  158. function CreateWeld(Parent, Part0, Part1, C0, C1)
  159. local Weld = Create("Weld"){
  160. Parent = Parent,
  161. Part0 = Part0,
  162. Part1 = Part1,
  163. C0 = C0,
  164. C1 = C1,
  165. }
  166. return Weld
  167. end
  168.  
  169. function rayCast(Position, Direction, Range, Ignore)
  170. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  171. end
  172.  
  173. function CreateSound(id, par, vol, pit)
  174. coroutine.resume(coroutine.create(function()
  175. local sou = Instance.new("Sound", par or workspace)
  176. sou.Volume = vol
  177. sou.Pitch = pit or 1
  178. sou.SoundId = id
  179. swait()
  180. sou:play()
  181. game:GetService("Debris"):AddItem(sou, 6)
  182. end))
  183. end
  184.  
  185. Handle=CreatePart(m,Enum.Material.SmoothPlastic,0,1,"Really red","Handle",Vector3.new(0.399999976, 1.98000026, 0.300000012))
  186. HandleWeld=CreateWeld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.171703339, -0.00845432281, 1.05079269, 0.999912977, 0.00131422468, -0.0131317414, -0.0131096533, -0.015600008, -0.999792337, -0.00151880702, 0.999877512, -0.0155814216))
  187. CreateMesh("CylinderMesh",Handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  188. FakeHandle=CreatePart(m,Enum.Material.SmoothPlastic,0,1,"Really red","FakeHandle",Vector3.new(0.399999976, 1.98000026, 0.300000012))
  189. FakeHandleWeld=CreateWeld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000012, 0, 0, 0, 0.99999994, 2.87400326e-010, 0, 2.87400326e-010, 1.00000012))
  190. CreateMesh("CylinderMesh",FakeHandle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  191. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.219999999, 0.539999902, 0.219999999))
  192. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00999641418, 2.71751785, -0.00159263611, 1.00000012, 0, 0, 0, 1, -4.89586455e-007, 0, 4.90248567e-007, 1.00000012))
  193. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  194. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.449999869, 0.710000277))
  195. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, 1.87192869, -0.623038769, -1.00000012, 1.13621354e-007, -1.12690032e-007, -1.5925616e-007, -0.76604408, 0.642788231, -1.3038516e-008, 0.642788053, 0.766044021))
  196. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  197. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.230000168, 0.470000088))
  198. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.678504348, -3.19653034, -1.00000012, -3.81842256e-008, 1.5553087e-007, 1.55414455e-007, 1.18868593e-006, 1, -3.7252903e-008, 1, -1.188022e-006))
  199. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  200. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.220000163, 0.360000074))
  201. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00539636612, -2.75015545, 1.30182314, 0.999971151, 0.000330297276, -0.00759611651, 0.00462766644, 0.766258419, 0.642515957, 0.00603280962, -0.642532408, 0.766234696))
  202. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  203. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.239999875, 0.220000207))
  204. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00539493561, 2.73895788, -1.0421896, 0.999971211, 0.000330418348, -0.00759610767, -0.00462756725, -0.766258478, -0.642515838, -0.00603288133, 0.642532289, -0.766234815))
  205. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  206. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.399999976, 3.67000008, 0.300000012))
  207. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.29153442e-006, -1.6777854, -0.0237259865, 1.00000012, 0, 0, 0, 0.99619472, 0.0871556178, 5.82076609e-011, -0.0871556103, 0.996194839))
  208. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  209. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.259999871, 0.690000236))
  210. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.76837158e-007, -4.44096231, -0.484997451, -1.00000012, 1.14552677e-007, -1.21537596e-007, 1.41561031e-007, 0.965925634, -0.258819908, 8.80099833e-008, -0.258819878, -0.965925694))
  211. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  212. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.399999976, 0.540000021, 0.300000012))
  213. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-006, -3.15672684, -0.282786548, 1.00000012, 0, 0, 0, 0.996194661, -0.0871556774, 2.32830644e-010, 0.0871556625, 0.996194839))
  214. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  215. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.27000016, 0.550000191))
  216. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 4.42526388, -1.03425908, 1.00000012, 0, 0, 0, -0.965925813, 0.258819133, 0, -0.258819103, -0.965925932))
  217. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  218. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.360000163, 0.840000153))
  219. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, 3.72886276, -1.63047957, 1.00000012, 0, 0, 0, -1.00000012, 6.56293196e-007, 0, -6.56982593e-007, -1.00000012))
  220. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  221. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.399999976, 0.850000024, 0.300000012))
  222. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, -2.91184044, 1.72197342, 1.00000012, 0, 0, 0, 0.819152057, 0.573576689, 0, -0.57357657, 0.819151938))
  223. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  224. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.360000163, 0.970000029))
  225. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.398318052, -2.67175436, 1.00000012, 0, 0, 0, -8.78675564e-007, -1, 0, 1.00000012, -8.77947969e-007))
  226. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  227. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.239999995, 0.259999931, 0.319999993))
  228. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00999879837, -3.93248463, 0.748408318, 1.00000012, 0, 0, 0, 1, -4.89586455e-007, 0, 4.90248567e-007, 1.00000012))
  229. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  230. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.460000157, 1.1500001))
  231. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 4.28005934, -0.422626019, 1.00000012, 0, 0, 9.31322575e-010, -0.819152296, 0.573576212, 0, -0.573576093, -0.819152355))
  232. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  233. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.449999869, 0.520000219))
  234. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -4.27859831, 1.23466301, 1.00000012, 0, 0, 0, 0.819152117, -0.57357645, 9.31322575e-010, 0.573576391, 0.819152176))
  235. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  236. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.259999871, 0.78000021))
  237. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, -4.43847418, 1.65982461, 1.00000012, 0, 0, 0, 0.965925753, -0.258819282, 0, 0.258819282, 0.965925872))
  238. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  239. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.440000176, 0.450000167))
  240. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, 3.62456226, -1.78776872, 1.00000012, 0, 0, 0, -0.984807849, -0.173647866, 0, 0.173647851, -0.984807968))
  241. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  242. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.220000163, 0.360000074))
  243. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.90734863e-006, 2.38940191, -2.60514045, -1.00000012, -8.47503543e-008, 3.51574272e-008, 8.94069672e-008, -0.819151878, 0.573576808, -1.95577741e-008, 0.573576689, 0.819151938))
  244. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  245. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.400000155, 0.420000017))
  246. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.38418579e-006, 1.38498998, -3.13907766, 1.00000012, 0, 0, 0, -0.500000298, -0.866025329, 0, 0.866025209, -0.500000358))
  247. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  248. Part=CreatePart(m,Enum.Material.Neon,0,0,"Teal","Part",Vector3.new(0.25, 0.25, 0.25))
  249. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00999879837, -3.21248627, -1.13159263, 1.00000012, 0, 0, 0, 1, -4.89586455e-007, 0, 4.90248567e-007, 1.00000012))
  250. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  251. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.239999875, 0.340000212))
  252. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, -2.40059805, 2.92477083, -1.00000012, -8.47503543e-008, 2.95694917e-008, -8.66129994e-008, 0.819152117, -0.573576331, 2.42143869e-008, -0.573576272, -0.819152236))
  253. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  254. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.399999976, 0.540000021, 0.300000012))
  255. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, -2.84173918, -2.17655039, 1.00000012, 0, 0, 9.31322575e-010, 0.766045034, -0.642787158, 0, 0.64278692, 0.766044974))
  256. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  257. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.219999999, 0.460000157, 1.84000015))
  258. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-006, 4.10026407, -1.10925746, 1.00000012, 0, 0, 0, -0.965925813, 0.258819133, 0, -0.258819103, -0.965925932))
  259. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  260. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Dark red","Part",Vector3.new(0.219999999, 0.449999869, 0.520000219))
  261. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-006, -4.09880209, 2.26629663, 1.00000012, 0, 0, 0, 0.965925753, -0.258819282, 0, 0.258819282, 0.965925872))
  262. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  263. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Dark red","Part",Vector3.new(0.219999999, 0.360000163, 0.710000157))
  264. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, 2.63581657, -2.70031881, 1.00000012, 0, 0, 0, -0.819152534, -0.573576093, 4.65661287e-010, 0.573575974, -0.819152415))
  265. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  266. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Dark red","Part",Vector3.new(0.239999995, 0.259999931, 0.319999993))
  267. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0099978447, -2.65302324, 0.261572838, 1.00000012, 0, 0, 0, 0.939692616, 0.342020303, 2.32830644e-010, -0.342020243, 0.939692736))
  268. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  269. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.439999998, 0.249999925, 0.439999998))
  270. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-006, 2.57250786, -0.00159060955, 1.00000012, 0, 0, 0, 1, -4.89586455e-007, 0, 4.90248567e-007, 1.00000012))
  271. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  272. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Dark red","Part",Vector3.new(0.399999976, 0.470000029, 0.300000012))
  273. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, -1.62717199, 3.46052504, 1.00000012, 0, 0, 0, 0.258818895, 0.965926051, 0, -0.965925932, 0.258818895))
  274. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  275. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Dark red","Part",Vector3.new(0.239999995, 0.259999931, 0.319999993))
  276. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00999975204, -3.81249046, -0.941592574, 1.00000012, 0, 0, 0, 1, -4.89586455e-007, 0, 4.90248567e-007, 1.00000012))
  277. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  278. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Dark red","Part",Vector3.new(0.219999999, 0.360000163, 0.900000095))
  279. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, 0.0184775591, -2.90349102, 1.00000012, 0, 0, 2.32830644e-010, -0.0871563628, -0.99619472, 0, 0.99619472, -0.0871563926))
  280. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  281. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Sand blue","Part",Vector3.new(0.399999976, 0.470000029, 0.300000012))
  282. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-006, 1.69540644, 2.2838316, 1.00000012, 0, 0, 0, -0.707107127, 0.707106531, 0, -0.707106471, -0.707107246))
  283. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  284. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.399999976, 0.540000021, 0.300000012))
  285. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, -2.10930538, -3.27099419, 1.00000012, 0, 0, -4.65661287e-010, 0.422618419, -0.906307757, 0, 0.906307638, 0.422618449))
  286. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  287. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Dark red","Part",Vector3.new(0.219999999, 0.329999864, 2.67000031))
  288. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.76837158e-007, -0.158611894, -1.86818981, -1.00000012, 1.76951289e-008, -1.46217644e-007, -1.46101229e-007, 1.19263859e-006, 1, 1.86264515e-008, 0.99999994, -1.19276592e-006))
  289. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  290. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Dark red","Part",Vector3.new(0.219999999, 0.360000163, 1.07000005))
  291. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-007, 1.19499111, -3.09407806, 1.00000012, 0, 0, 0, -0.500000298, -0.866025329, 0, 0.866025209, -0.500000358))
  292. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  293. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Really black","Part",Vector3.new(0.219999999, 0.360000163, 1.00000012))
  294. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-007, 2.78988075, -2.44753766, 1.00000012, 0, 0, 0, -0.906308174, -0.422617465, 0, 0.422617376, -0.906308234))
  295. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  296. Part=CreatePart(m,Enum.Material.SmoothPlastic,0,0,"Dark red","Part",Vector3.new(0.399999976, 5.51000023, 0.300000012))
  297. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-006, -0.185009003, -8.34465027e-007, 1.00000012, 0, 0, 0, 0.99999994, 2.87400326e-010, 0, 2.87400326e-010, 1.00000012))
  298. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  299. Part=CreatePart(m,Enum.Material.Neon,0.25,0,"Dark red","Part",Vector3.new(0.219999999, 0.410000175, 0.640000105))
  300. PartWeld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-006, -1.44318247, -1.80669498, 1.00000012, 0, 0, 0, 0.499999285, -0.866025925, 0, 0.866025805, 0.499999285))
  301. CreateMesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 1))
  302. Hitbox=CreatePart(m,Enum.Material.SmoothPlastic,0,1,"Dark red","Hitbox",Vector3.new(0.399999976, 1.98000026, 4.19000006))
  303. HitboxWeld=CreateWeld(m,FakeHandle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0432858467, -3.24210644, 1.43164659, 1.00000012, 0, 0, 0, 0.99999994, 2.87400326e-010, 0, 2.87400326e-010, 1.00000012))
  304. CreateMesh("CylinderMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  305. Style = 5
  306.  
  307.  
  308. function GiveHat(Player)
  309. local Hat = Instance.new("Hat")
  310. Hat.Name = "Gas Mask"
  311. Hat.AttachmentPos = Vector3.new(0, 0.5, -0.1)
  312.  
  313. local MasterPart = Instance.new("Part", Hat)
  314. MasterPart.Name = "Handle"
  315. MasterPart.TopSurface = 0
  316. MasterPart.BottomSurface = 0
  317. MasterPart.BrickColor = BrickColor.new("Really black")
  318. MasterPart.FormFactor = "Custom"
  319. MasterPart.Size = Vector3.new(1.4, 1.4, 1.4)
  320. Instance.new("SpecialMesh", MasterPart).MeshType = "Head"
  321.  
  322. local Part = Instance.new("Part", Hat)
  323. Part.Name = "Glass"
  324. Part.TopSurface = 0
  325. Part.BottomSurface = 0
  326. Part.Transparency = 0.5
  327. Part.BrickColor = BrickColor.new("Institutional white")
  328. Part.FormFactor = "Custom"
  329. Part.Size = Vector3.new(1.15, 1.15, 1.15)
  330. Instance.new("SpecialMesh", Part).MeshType = "Head"
  331. local Weld = Instance.new("Weld")
  332. Weld.Part0 = Part
  333. Weld.Part1 = MasterPart
  334. Weld.C0 = CFrame.new(0, 0, 0.2)
  335. Weld.Parent = Weld.Part0
  336.  
  337. local Part = Instance.new("Part", Hat)
  338. Part.Name = "Cover"
  339. Part.TopSurface = 0
  340. Part.BottomSurface = 0
  341. Part.BrickColor = BrickColor.new("Really black")
  342. Part.FormFactor = "Custom"
  343. Part.Size = Vector3.new(1.15, 0.65, 1.15)
  344. Instance.new("CylinderMesh", Part)
  345. local Weld = Instance.new("Weld")
  346. Weld.Part0 = Part
  347. Weld.Part1 = MasterPart
  348. Weld.C0 = CFrame.new(0, 0.255, 0.225)
  349. Weld.Parent = Weld.Part0
  350.  
  351. if Style == 1 or Style == 5 then
  352. local Part = Instance.new("Part", Hat)
  353. Part.Name = "Filter Holder"
  354. Part.TopSurface = 0
  355. Part.BottomSurface = 0
  356. Part.BrickColor = BrickColor.new("Really black")
  357. Part.FormFactor = "Custom"
  358. Part.Size = Vector3.new(0.4, 0.3, 0.4)
  359. Instance.new("CylinderMesh", Part)
  360. local Weld = Instance.new("Weld")
  361. Weld.Part0 = Part
  362. Weld.Part1 = MasterPart
  363. Weld.C0 = CFrame.new(0, -0.85, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(105), 0, 0)
  364. Weld.Parent = Weld.Part0
  365.  
  366. local Part = Instance.new("Part", Hat)
  367. Part.Name = "Filter"
  368. Part.TopSurface = 0
  369. Part.BottomSurface = 0
  370. Part.BrickColor = BrickColor.new("Really black")
  371. Part.FormFactor = "Custom"
  372. Part.Size = Vector3.new(0.7, 0.5, 0.7)
  373. Instance.new("CylinderMesh", Part)
  374. local Weld = Instance.new("Weld")
  375. Weld.Part0 = Part
  376. Weld.Part1 = MasterPart
  377. Weld.C0 = CFrame.new(0, -1.25, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(105), 0, 0)
  378. Weld.Parent = Weld.Part0
  379. end
  380.  
  381. if Style == 2 or Style == 4 or Style == 5 then
  382. local Part = Instance.new("Part", Hat)
  383. Part.Name = "Filter Holder Left"
  384. Part.TopSurface = 0
  385. Part.BottomSurface = 0
  386. Part.BrickColor = BrickColor.new("Really black")
  387. Part.FormFactor = "Custom"
  388. Part.Size = Vector3.new(0.4, 0.3, 0.4)
  389. Instance.new("CylinderMesh", Part)
  390. local Weld = Instance.new("Weld")
  391. Weld.Part0 = Part
  392. Weld.Part1 = MasterPart
  393. Weld.C0 = CFrame.new(0, -0.85, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(105), math.rad(30), 0)
  394. Weld.Parent = Weld.Part0
  395.  
  396. local Part = Instance.new("Part", Hat)
  397. Part.Name = "Filter Left"
  398. Part.TopSurface = 0
  399. Part.BottomSurface = 0
  400. Part.BrickColor = BrickColor.new("Really black")
  401. Part.FormFactor = "Custom"
  402. Part.Size = Vector3.new(0.6, 0.3, 0.6)
  403. Instance.new("CylinderMesh", Part)
  404. local Weld = Instance.new("Weld")
  405. Weld.Part0 = Part
  406. Weld.Part1 = MasterPart
  407. Weld.C0 = CFrame.new(0, -1.15, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(105), math.rad(30), 0)
  408. Weld.Parent = Weld.Part0
  409. end
  410.  
  411. if Style == 3 or Style == 4 or Style == 5 then
  412. local Part = Instance.new("Part", Hat)
  413. Part.Name = "Filter Holder Right"
  414. Part.TopSurface = 0
  415. Part.BottomSurface = 0
  416. Part.BrickColor = BrickColor.new("Really black")
  417. Part.FormFactor = "Custom"
  418. Part.Size = Vector3.new(0.4, 0.3, 0.4)
  419. Instance.new("CylinderMesh", Part)
  420. local Weld = Instance.new("Weld")
  421. Weld.Part0 = Part
  422. Weld.Part1 = MasterPart
  423. Weld.C0 = CFrame.new(0, -0.85, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(105), math.rad(-30), 0)
  424. Weld.Parent = Weld.Part0
  425.  
  426. local Part = Instance.new("Part", Hat)
  427. Part.Name = "Filter Right"
  428. Part.TopSurface = 0
  429. Part.BottomSurface = 0
  430. Part.BrickColor = BrickColor.new("Really black")
  431. Part.FormFactor = "Custom"
  432. Part.Size = Vector3.new(0.6, 0.3, 0.6)
  433. Instance.new("CylinderMesh", Part)
  434. local Weld = Instance.new("Weld")
  435. Weld.Part0 = Part
  436. Weld.Part1 = MasterPart
  437. Weld.C0 = CFrame.new(0, -1.15, 0.05) * CFrame.fromEulerAnglesXYZ(math.rad(105), math.rad(-30), 0)
  438. Weld.Parent = Weld.Part0
  439. end
  440.  
  441. for _, Part in pairs(Hat:GetChildren()) do
  442. Part.CanCollide = false
  443. Part.Locked = true
  444. if Part:FindFirstChild("Weld") ~= nil then
  445. local Fixing = false
  446. local Joint = Part.Weld:Clone()
  447. Part.ChildRemoved:connect(function()
  448. if Fixing == false then
  449. Fixing = true
  450. Part:BreakJoints()
  451. wait()
  452. Joint.Part0.CFrame = Joint.Part1.CFrame * Joint.C1 * Joint.C0:inverse()
  453. local NewJoint = Joint:Clone()
  454. NewJoint.Parent = Part
  455. Part:MakeJoints()
  456. Fixing = false
  457. end
  458. end)
  459. end
  460. end
  461.  
  462. Hat.AncestryChanged:connect(function(Property)
  463. local Breathing = true
  464. coroutine.wrap(function()
  465. while true do
  466. if Hat.Parent == nil then break end
  467. if Hat.Parent:FindFirstChild("Humanoid") == nil then break end
  468. if Hat.Parent.Humanoid.Health <= 0 then break end
  469. wait()
  470. end
  471. Breathing = false
  472. end)()
  473. local Sound1 = Instance.new("Sound", Hat.Handle)
  474. Sound1.Name = "Hiss 1"
  475. Sound1.SoundId = "rbxasset://sounds/hit.wav"
  476. Sound1.Pitch = 5
  477. Sound1.Looped = true
  478. local Sound2 = Instance.new("Sound", Hat.Handle)
  479. Sound2.Name = "Hiss 2"
  480. Sound2.SoundId = "rbxasset://sounds/hit.wav"
  481. Sound2.Pitch = 5
  482. Sound2.Looped = true
  483. wait(0.1)
  484. while Breathing == true do
  485. Sound1.Pitch = 9
  486. Sound2.Pitch = 8
  487. Sound1:Play()
  488. Sound2:Play()
  489. for i = 0, 0.1, 0.0025 do
  490. if Breathing == false then break end
  491. Sound1.Volume = i
  492. Sound2.Volume = i
  493. wait()
  494. end
  495. Sound1:Stop()
  496. Sound2:Stop()
  497. wait(0.25)
  498. Sound1.Pitch = 6.5
  499. Sound2.Pitch = 7.5
  500. Sound1:Play()
  501. Sound2:Play()
  502. for i = 0.1, 0, -0.0025 do
  503. if Breathing == false then break end
  504. Sound1.Volume = i
  505. Sound2.Volume = i
  506. wait()
  507. end
  508. Sound1:Stop()
  509. Sound2:Stop()
  510. wait(0.5)
  511. end
  512. Sound1:Stop()
  513. Sound2:Stop()
  514. wait(0.1)
  515. Sound1:Remove()
  516. Sound2:Remove()
  517. end)
  518.  
  519. Hat.Parent = Player.Character
  520. end
  521.  
  522.  
  523. GiveHat(game:GetService("Players").LocalPlayer)
  524.  
  525. local function getclosest(obj, distance)
  526. local last, lastx = distance + 1
  527. for i, v in pairs(workspace:GetChildren()) do
  528. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  529. local t = v.Torso
  530. local dist = (t.Position - obj.Position).magnitude
  531. if dist <= distance then
  532. if dist < last then
  533. last = dist
  534. lastx = v
  535. end
  536. end
  537. end
  538. end
  539. return lastx
  540. end
  541.  
  542. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  543. if hit.Parent==nil then
  544. return
  545. end
  546. local h=hit.Parent:FindFirstChild("Humanoid")
  547. for _,v in pairs(hit.Parent:children()) do
  548. if v:IsA("Humanoid") then
  549. h=v
  550. end
  551. end
  552. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  553. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  554. end
  555. if hit.Parent.className=="Hat" then
  556. hit=hit.Parent.Parent:findFirstChild("Head")
  557. end
  558. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  559. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  560. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  561. return
  562. end]]
  563. -- hs(hit,1.2)
  564. local c=Instance.new("ObjectValue")
  565. c.Name="creator"
  566. c.Value=game:service("Players").LocalPlayer
  567. c.Parent=h
  568. game:GetService("Debris"):AddItem(c,.5)
  569. local Damage=math.random(minim,maxim)
  570. -- h:TakeDamage(Damage)
  571. local blocked=false
  572. local block=hit.Parent:findFirstChild("Block")
  573. if block~=nil then
  574. print(block.className)
  575. if block.className=="NumberValue" then
  576. if block.Value>0 then
  577. blocked=true
  578. if decreaseblock==nil then
  579. block.Value=block.Value-1
  580. end
  581. end
  582. end
  583. if block.className=="IntValue" then
  584. if block.Value>0 then
  585. blocked=true
  586. if decreaseblock~=nil then
  587. block.Value=block.Value-1
  588. end
  589. end
  590. end
  591. end
  592. if blocked==false then
  593. -- h:TakeDamage(Damage)
  594. HitHealth=h.Health
  595. h.Health=h.Health-Damage
  596.  
  597. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Lost Soul" then
  598. print("gained spree")
  599. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
  600. end
  601. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  602. else
  603. h.Health=h.Health-(Damage/2)
  604. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  605. end
  606.  
  607. if Type=="Knockdown" then
  608. local hum=hit.Parent.Humanoid
  609. hum.PlatformStand=true
  610. coroutine.resume(coroutine.create(function(HHumanoid)
  611. swait(1)
  612. HHumanoid.PlatformStand=false
  613. end),hum)
  614. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  615. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  616. local bodvol=Instance.new("BodyVelocity")
  617. bodvol.velocity=angle*knockback
  618. bodvol.P=5000
  619. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  620. bodvol.Parent=hit
  621. local rl=Instance.new("BodyAngularVelocity")
  622. rl.P=3000
  623. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  624. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  625. rl.Parent=hit
  626. game:GetService("Debris"):AddItem(bodvol,.5)
  627. game:GetService("Debris"):AddItem(rl,.5)
  628. elseif Type=="Snare" then
  629. Charge=Charge+1
  630. coroutine.resume(coroutine.create(function(Part,Hum)
  631. swait(30)
  632. for i=1,5 do
  633. swait(5)
  634. CreateSound("rbxasset://sounds\\unsheath.wav",hit,1,2)
  635. MoonEffect(BrickColor.new("White"),hit.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,2,.5,.5,.5,0.07)
  636. newdam=math.random(1,5)
  637. if blocked==false then
  638. Hum:TakeDamage(newdam)
  639. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  640. else
  641. Hum:TakeDamage(newdam/2)
  642. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  643. end
  644. end
  645. end),hit,h)
  646. elseif Type=="Normal" then
  647. local vp=Instance.new("BodyVelocity")
  648. vp.P=500
  649. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  650. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  651. if KnockbackType==1 then
  652. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  653. elseif KnockbackType==2 then
  654. vp.velocity=Property.CFrame.lookVector*knockback
  655. end
  656. if knockback>0 then
  657. vp.Parent=hit.Parent.Torso
  658. end
  659. game:GetService("Debris"):AddItem(vp,.5)
  660. elseif Type=="Up" then
  661. local bodyVelocity=Instance.new("BodyVelocity")
  662. bodyVelocity.velocity=vt(0,60,0)
  663. bodyVelocity.P=5000
  664. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  665. bodyVelocity.Parent=hit
  666. game:GetService("Debris"):AddItem(bodyVelocity,1)
  667. local rl=Instance.new("BodyAngularVelocity")
  668. rl.P=3000
  669. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  670. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  671. rl.Parent=hit
  672. game:GetService("Debris"):AddItem(rl,.5)
  673. elseif Type=="Snare" then
  674. local bp=Instance.new("BodyPosition")
  675. bp.P=2000
  676. bp.D=100
  677. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  678. bp.position=hit.Parent.Torso.Position
  679. bp.Parent=hit.Parent.Torso
  680. game:GetService("Debris"):AddItem(bp,1)
  681. elseif Type=="Target" then
  682. local Targetting = false
  683. if Targetting==false then
  684. ZTarget=hit.Parent.Torso
  685. coroutine.resume(coroutine.create(function(Part)
  686. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  687. swait(5)
  688. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  689. end),ZTarget)
  690. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  691. local targetgui=Instance.new("BillboardGui")
  692. targetgui.Parent=ZTarget
  693. targetgui.Size=UDim2.new(10,100,10,100)
  694. local targ=Instance.new("ImageLabel")
  695. targ.Parent=targetgui
  696. targ.BackgroundTransparency=1
  697. targ.Image="rbxassetid://234376725"
  698. targ.Size=UDim2.new(1,0,1,0)
  699. cam.CameraType="Scriptable"
  700. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  701. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  702. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  703. Targetting=true
  704. RocketTarget=ZTarget
  705. for i=1,Property do
  706. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  707. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  708. swait()
  709. end
  710. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  711. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  712. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  713. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  714. end
  715. Targetting=false
  716. RocketTarget=nil
  717. targetgui.Parent=nil
  718. cam.CameraType="Custom"
  719. end
  720. end
  721. local debounce=Instance.new("BoolValue")
  722. debounce.Name="DebounceHit"
  723. debounce.Parent=hit.Parent
  724. debounce.Value=true
  725. game:GetService("Debris"):AddItem(debounce,Delay)
  726. c=Instance.new("ObjectValue")
  727. c.Name="creator"
  728. c.Value=Player
  729. c.Parent=h
  730. game:GetService("Debris"):AddItem(c,.5)
  731.  
  732. end
  733. end
  734.  
  735.  
  736. function ShowDamage(Pos, Text, Time, Color)
  737. local Rate = (1 / 30)
  738. local Pos = (Pos or Vector3.new(0, 0, 0))
  739. local Text = (Text or "")
  740. local Time = (Time or 2)
  741. local Color = (Color or Color3.new(1, 0, 0))
  742. local EffectPart = CreatePart(workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  743. EffectPart.Anchored = true
  744. local BillboardGui = Instance.new("BillboardGui")
  745. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  746. BillboardGui.Adornee = EffectPart
  747. local TextLabel = Instance.new("TextLabel")
  748. TextLabel.BackgroundTransparency = 1
  749. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  750. TextLabel.Text = Text
  751. TextLabel.TextColor3 = Color
  752. TextLabel.TextScaled = true
  753. TextLabel.Font = Enum.Font.ArialBold
  754. TextLabel.Parent = BillboardGui
  755. BillboardGui.Parent = EffectPart
  756. game.Debris:AddItem(EffectPart, (Time + 0.1))
  757. EffectPart.Parent = game:GetService("Workspace")
  758. Delay(0, function()
  759. local Frames = (Time / Rate)
  760. for Frame = 1, Frames do
  761. wait(Rate)
  762. local Percent = (Frame / Frames)
  763. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  764. TextLabel.TextTransparency = Percent
  765. end
  766. if EffectPart and EffectPart.Parent then
  767. EffectPart:Destroy()
  768. end
  769. end)
  770. end
  771.  
  772. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  773. for _,c in pairs(workspace:children()) do
  774. local hum=c:findFirstChild("Humanoid")
  775. if hum~=nil then
  776. local head=c:findFirstChild("Torso")
  777. if head~=nil then
  778. local targ=head.Position-Part.Position
  779. local mag=targ.magnitude
  780. if mag<=magni and c.Name~=Player.Name then
  781. --Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,nil,1)
  782. Damagefunc(head, head, mindam,maxdam, knock, Type, RootPart, .1, "Hit2", 1)
  783. end
  784. end
  785. end
  786. end
  787. end
  788.  
  789.  
  790.  
  791. --[[Effect Functions]]--
  792.  
  793. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  794. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  795. prt.Anchored = true
  796. prt.CFrame = cframe
  797. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  798. game:GetService("Debris"):AddItem(prt, 10)
  799. if Type == 1 or Type == nil then
  800. table.insert(Effects, {
  801. prt,
  802. "Block1",
  803. delay,
  804. x3,
  805. y3,
  806. z3,
  807. msh
  808. })
  809. elseif Type == 2 then
  810. table.insert(Effects, {
  811. prt,
  812. "Block2",
  813. delay,
  814. x3,
  815. y3,
  816. z3,
  817. msh
  818. })
  819. end
  820. end
  821.  
  822. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  823. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  824. prt.Anchored = true
  825. prt.CFrame = cframe
  826. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  827. game:GetService("Debris"):AddItem(prt, 10)
  828. table.insert(Effects, {
  829. prt,
  830. "Cylinder",
  831. delay,
  832. x3,
  833. y3,
  834. z3,
  835. msh
  836. })
  837. end
  838.  
  839. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  840. local prt=CreatePart(workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  841. prt.Anchored=true
  842. prt.CFrame=cframe
  843. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  844. game:GetService("Debris"):AddItem(prt,2)
  845. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  846. for i=0,1,delay do
  847. swait()
  848. Part.Transparency=i
  849. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  850. end
  851. Part.Parent=nil
  852. end),prt,msh,(math.random(0,1)+math.random())/5)
  853. end
  854.  
  855. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  856. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  857. prt.Anchored = true
  858. prt.CFrame = cframe
  859. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  860. game:GetService("Debris"):AddItem(prt, 10)
  861. table.insert(Effects, {
  862. prt,
  863. "Cylinder",
  864. delay,
  865. x3,
  866. y3,
  867. z3,
  868. msh
  869. })
  870. end
  871.  
  872. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  873. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  874. prt.Anchored = true
  875. prt.CFrame = cframe
  876. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  877. game:GetService("Debris"):AddItem(prt, 10)
  878. table.insert(Effects, {
  879. prt,
  880. "Cylinder",
  881. delay,
  882. x3,
  883. y3,
  884. z3,
  885. msh
  886. })
  887. end
  888.  
  889. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  890. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  891. prt.Anchored = true
  892. prt.CFrame = cframe
  893. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  894. game:GetService("Debris"):AddItem(prt, 10)
  895. table.insert(Effects, {
  896. prt,
  897. "Cylinder",
  898. delay,
  899. x3,
  900. y3,
  901. z3,
  902. msh
  903. })
  904. end
  905.  
  906.  
  907. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  908. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  909. prt.Anchored = true
  910. prt.CFrame = cframe
  911. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  912. game:GetService("Debris"):AddItem(prt, 10)
  913. table.insert(Effects, {
  914. prt,
  915. "Cylinder",
  916. delay,
  917. x3,
  918. y3,
  919. z3,
  920. msh
  921. })
  922. end
  923.  
  924. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  925. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  926. prt.Anchored = true
  927. prt.CFrame = cframe
  928. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  929. game:GetService("Debris"):AddItem(prt, 10)
  930. table.insert(Effects, {
  931. prt,
  932. "Cylinder",
  933. delay,
  934. x3,
  935. y3,
  936. z3,
  937. msh
  938. })
  939. end
  940.  
  941. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  942. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  943. prt.Anchored = true
  944. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  945. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  946. local num = math.random(10, 50) / 1000
  947. game:GetService("Debris"):AddItem(prt, 10)
  948. table.insert(Effects, {
  949. prt,
  950. "Shatter",
  951. num,
  952. prt.CFrame,
  953. math.random() - math.random(),
  954. 0,
  955. math.random(50, 100) / 100
  956. })
  957. end
  958. --[[ V = The CFraming of the part]]--
  959. --[[EXAMPLE: ExampleWeld.C0 = clerp(ExampleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) ]]--
  960. --[[ ^ = The Rotations of the part]]--
  961.  
  962. --[[ ^ = The Rotations of the part]]--
  963.  
  964. local nr=NumberRange.new
  965. local ns=NumberSequence.new
  966. local cs=ColorSequence.new
  967. local nsk=NumberSequenceKeypoint.new
  968. --[[Particles]]--
  969. function particle(parent,col1,col2,lightemis,size,texture,transparency,zoffset,accel,drag,ltp,velinher,emisdir,enabled,lifetime,rate,rotation,rotspeed,speed,velspread)
  970. local fp=it("ParticleEmitter")
  971. fp.Parent=parent
  972. fp.Color=cs(col1,col2)
  973. fp.LightEmission=lightemis
  974. fp.Size=size
  975. fp.Texture=texture
  976. fp.Transparency=transparency
  977. fp.ZOffset=zoffset
  978. fp.Acceleration=accel
  979. fp.Drag=drag
  980. fp.LockedToPart=ltp
  981. fp.VelocityInheritance=velinher
  982. fp.EmissionDirection=emisdir
  983. fp.Enabled=enabled
  984. fp.Lifetime=lifetime
  985. fp.Rate=rate
  986. fp.Rotation=rotation
  987. fp.RotSpeed=rotspeed
  988. fp.Speed=speed
  989. fp.VelocitySpread=velspread
  990. return fp
  991. end
  992.  
  993.  
  994.  
  995. sizeseq=ns({nsk(0,4),nsk(.027,8.5),nsk(.184,9),nsk(1,10)})
  996. transseq=ns({nsk(0,.375),nsk(.4,1),nsk(1,1)})
  997. local icicleparti1=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.2,sizeseq,"http://www.roblox.com/asset/?id=329766994",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),15,nr(-360,360),nr(-30,30),nr(3),20)
  998. sizeseq=ns({nsk(0,5),nsk(.025,7.7),nsk(.192,9),nsk(1,10)})
  999. transseq=ns({nsk(0,.8),nsk(.3,1),nsk(1,1)})
  1000. local icicleparti2=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.3,sizeseq,"http://www.roblox.com/asset/?id=241594419",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),80,nr(-360,360),nr(-30,30),nr(3),20)
  1001. sizeseq=ns({nsk(0,.328),nsk(.075,3.11),nsk(.206,4.97),nsk(1,10)})
  1002. transseq=ns({nsk(0,.363),nsk(.107,1),nsk(1,1)})
  1003.  
  1004.  
  1005. --[[Attack Function]]--
  1006.  
  1007. function TriOrbs()
  1008. --for i=1,math.random(1,4)
  1009. local dacf=Torso.CFrame*angles(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1010. local dacf2=Torso.CFrame*angles(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1011. local dacf3=Torso.CFrame*angles(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
  1012. local icepart1=CreatePart(effects,"SmoothPlastic",0,0,BrickColor.new("Toothpaste"),"Ice",vt()) icepart1.Anchored=true
  1013. i1msh=CreateMesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(100,100,100))
  1014. icepart1.CFrame=dacf
  1015. local partic1=icicleparti2:Clone() partic1.Parent=icepart1 partic1.Enabled=true
  1016. for i=0,1,0.1 do
  1017. swait()
  1018. icepart1.CFrame=dacf
  1019. dacf=dacf*cf(0,math.random(400,800)/10,0)
  1020. end
  1021. local spread=vt((math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16,(math.random(-1,0)+math.random())*16)*(icepart1.Position-(icepart1.Position+vt(0,-1,0))).magnitude/100
  1022. local TheHit=mouse.Hit.p
  1023. local MouseLook=cf((icepart1.Position+TheHit)/2,TheHit+spread)
  1024. local hit,pos = rayCast(icepart1.Position,MouseLook.lookVector,999,Character)
  1025. local target1,distance1=rayCast(icepart1.Position,MouseLook.lookVector,999,Character)
  1026. --local target1,distance1=findNearestTorso(icepart1.Position)
  1027. local test1,dist1=mouse.Hit.p
  1028. local pos1=nil
  1029. local refpart1=CreatePart(effects,"SmoothPlastic",0,1,BrickColor.new("Toothpaste"),"Ref",vt()) refpart1.Anchored=true
  1030. if target1~=nil then
  1031. --pos1=target1.Position
  1032. refpart1.CFrame=cf(pos)*cf(math.random(-5,5),5,math.random(-5,5))
  1033. end
  1034. local move=40
  1035. for i=0,1,0.1 do
  1036. swait()
  1037. move=40-40*i
  1038. if hit~=nil then
  1039. refpart1.CFrame=cf(refpart1.Position,pos)
  1040. SphereEffect(BrickColor.new("Toothpaste"),icepart1.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
  1041. icepart1.CFrame=dacf
  1042. dacf=dacf*cf(0,move,0)
  1043. end
  1044. end
  1045. local laser1=CreatePart(effects,"SmoothPlastic",0,0,BrickColor.new("Toothpaste"),"Effect",vt())
  1046. laser1.Anchored=true
  1047. local lmsh1=CreateMesh("SpecialMesh",laser1,"Head","",vt(0,0,0),vt(10,1,10))
  1048. local ref=CreatePart(effects,"SmoothPlastic",0,1,BrickColor.new("Black"),"Reference",vt())
  1049. ref.Anchored=true
  1050. ref.CFrame=cf(0,0,0)
  1051. game:GetService("Debris"):AddItem(ref,1)
  1052. local ref1=CreatePart(effects,"SmoothPlastic",0,1,BrickColor.new("Black"),"Reference",vt())
  1053. ref1.Anchored=true
  1054. ref1.CFrame=cf(0,0,0)
  1055. game:GetService("Debris"):AddItem(ref1,5)
  1056. local ice1=0
  1057. for i=0,3,0.05 do
  1058. swait()
  1059. ice1=ice1+1
  1060. if hit~=nil then
  1061. if i>1 then
  1062. refpart1.CFrame=refpart1.CFrame*cf(0,0,-1.5)
  1063. end
  1064. local cfnew=cf(icepart1.Position,refpart1.Position)
  1065. local hit1,pos1=rayCast(icepart1.Position,cfnew.lookVector,9999,Character)
  1066. local mag1=(icepart1.Position-pos).magnitude
  1067. laser1.CFrame=CFrame.new((icepart1.Position+pos1)/2,pos1)*angles(1.57,0,0)
  1068. lmsh1.Scale=vt(10,mag1*5,10)
  1069. BlockEffect(BrickColor.new("Toothpaste"),cf(pos1),5,5,5,5,5,5,.1,1)
  1070. ref.CFrame=cf(pos1)
  1071. MagniDamage(ref,5,8,14,0,"Normal")
  1072. ref1.CFrame=cf(ref.Position)
  1073. if ice1%2==0 then
  1074. CreateSound("http://www.roblox.com/asset/?id=333476017",ref1,.3,1.4)
  1075. end
  1076. end
  1077. end
  1078. if hit~=nil then
  1079. local pos1=laser1.CFrame
  1080. local x1=lmsh1.Scale.X local y1=lmsh1.Scale.Y local z1=lmsh1.Scale.Z
  1081. HeadEffect(BrickColor.new("Toothpaste"),pos1,x1,y1,z1,1,1,1,.1)
  1082. end
  1083. SphereEffect(BrickColor.new("Toothpaste"),cf(icepart1.Position),100,100,100,5,5,5,.2)
  1084. icepart1.Parent=nil
  1085. refpart1.Parent=nil
  1086. laser1.Parent=nil
  1087. ref.Parent=nil
  1088. end
  1089.  
  1090.  
  1091. function Finale()
  1092. attack = true
  1093. CreateSound("http://www.roblox.com/asset/?id=320557487",RootPart,1,1)
  1094. local con = Hitbox.Touched:connect(function(hit)
  1095. Damagefunc(Hitbox, hit, 15, 25, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://199149221", .8)
  1096. end)
  1097. for i = 0, 1, 0.1 do
  1098. swait()
  1099. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  1100. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  1101. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), .3)
  1102. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(10), math.rad(0)), .3)
  1103. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1104. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1105. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1106. end
  1107. CreateSound("http://www.roblox.com/asset/?id=338586331",RootPart,1,1)
  1108. local orb=CreatePart(Character,"SmoothPlastic",0,0.5,BrickColor.new("Teal"),"Orb",vt())
  1109. orb.Anchored=true
  1110. local omsh=CreateMesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(1,1,1))
  1111. orb.CFrame=RootPart.CFrame*cf(0,1,-7.5)
  1112. local orb2=CreatePart(Character,"SmoothPlastic",0,0.5,BrickColor.new("Toothpaste"),"Orb",vt())
  1113. orb2.Anchored=true
  1114. local omsh2=CreateMesh("SpecialMesh",orb2,"Sphere","",vt(0,0,0),vt(1,1,1))
  1115. orb2.CFrame=RootPart.CFrame*cf(0,1,-7.6)
  1116. CreateSound("http://www.roblox.com/asset/?id=235097614",orb,1,1)
  1117. coroutine.resume(coroutine.create(function()
  1118. coroutine.resume(coroutine.create(function()
  1119. for i = 0,5,.5 do
  1120. swait()
  1121. omsh2.Scale=Vector3.new(10*i,1,1)
  1122. end
  1123. for i = 0,50,10 do
  1124. swait()
  1125. omsh2.Scale=Vector3.new(50,1*i,1)
  1126. end
  1127. end))
  1128. for i = 0,10,1 do
  1129. swait()
  1130. omsh.Scale=Vector3.new(10*i,1,1)
  1131. end
  1132. for i = 0,50,10 do
  1133. swait()
  1134. omsh.Scale=Vector3.new(100,1*i,1)
  1135. end
  1136. end))
  1137.  
  1138. for i = 0, 1, 0.2 do
  1139. swait()
  1140. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  1141. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  1142. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), .3)
  1143. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-80), math.rad(10), math.rad(0)), .3)
  1144. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1145. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1146. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(20),math.rad(-20)),.2)
  1147. end
  1148. for i = 0, 1, 0.1 do
  1149. swait()
  1150. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  1151. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  1152. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), .3)
  1153. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-80), math.rad(10), math.rad(0)), .3)
  1154. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1155. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1156. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(20),math.rad(-20)),.2)
  1157. end
  1158. shoottrail2(mouse,orb2)
  1159. for i=0,1,.1 do
  1160. swait()
  1161. end
  1162. coroutine.resume(coroutine.create(function()
  1163. for i = 0,1,.1 do
  1164. swait()
  1165. orb2.Transparency=i
  1166. orb.Transparency=i
  1167. end
  1168. orb.Parent=nil
  1169. orb2.Parent=nil
  1170. end))
  1171. con:disconnect()
  1172. attack = false
  1173. end
  1174.  
  1175.  
  1176. function attackone()
  1177. attack = true
  1178. CreateSound("http://www.roblox.com/asset/?id=320557487",RootPart,1,1)
  1179. local con = Hitbox.Touched:connect(function(hit)
  1180. Damagefunc(Hitbox, hit, 1000000, 10000000, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://199149221", .8)
  1181. end)
  1182. for i = 0, 1, 0.1 do
  1183. swait()
  1184. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  1185. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  1186. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), .3)
  1187. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(10), math.rad(0)), .3)
  1188. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1189. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1190. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1191. end
  1192. CreateSound("http://www.roblox.com/asset/?id=338586331",RootPart,1,1)
  1193. for i = 0, 1, 0.2 do
  1194. swait()
  1195. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  1196. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  1197. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), .3)
  1198. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-80), math.rad(10), math.rad(0)), .3)
  1199. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1200. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1201. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(20),math.rad(-20)),.2)
  1202. end
  1203. con:disconnect()
  1204. attack = false
  1205. end
  1206.  
  1207. local snund = false
  1208. function attacktwo()
  1209. attack = true
  1210. snund=true
  1211. CreateSound("http://www.roblox.com/asset/?id=320557537",RootPart,1,1)
  1212. local con = Hitbox.Touched:connect(function(hit)
  1213. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Snare", RootPart, .2, "rbxassetid://199149221", .8)
  1214. end)
  1215. for i = 0, 1, 0.1 do
  1216. swait()
  1217. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0-360*i)), .3)
  1218. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  1219. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), .3)
  1220. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(10), math.rad(0)), .3)
  1221. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1222. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1223. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1224. end
  1225. CreateSound("http://www.roblox.com/asset/?id=338586299",RootPart,1,1)
  1226. for i = 0, 1, 0.05 do
  1227. swait()
  1228. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(40),math.rad(0),math.rad(-70)),0.3)
  1229. Torso.Neck.C0 = clerp(Torso.Neck.C0,NeckCF *angles(math.rad(-20),math.rad(-30),math.rad(70)),.3)
  1230. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)),0.3)
  1231. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3)
  1232. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(-30)),0.3)
  1233. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3)
  1234. end
  1235. snund=false
  1236. con:disconnect()
  1237. attack = false
  1238. end
  1239.  
  1240. function attackthree()
  1241. attack = true
  1242. CreateSound("http://www.roblox.com/asset/?id=320557563",RootPart,1,1)
  1243. local con = Hitbox.Touched:connect(function(hit)
  1244. Damagefunc(Hitbox, hit, 10, 25, math.random(1, 5), "Snare", RootPart, .2, "rbxassetid://199149221", .8)
  1245. end)
  1246. for i = 0, 1, 0.1 do
  1247. swait()
  1248. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(40),math.rad(0),math.rad(-70)),0.3)
  1249. Torso.Neck.C0 = clerp(Torso.Neck.C0,NeckCF *angles(math.rad(-20),math.rad(-30),math.rad(70)),.3)
  1250. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)),0.3)
  1251. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3)
  1252. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(-30)),0.3)
  1253. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3)
  1254. end
  1255. Torso.Velocity=Head.CFrame.lookVector*100
  1256. CreateSound("http://www.roblox.com/asset/?id=338586331",RootPart,1,.8)
  1257. for i = 0, 1, 0.05 do
  1258. swait()
  1259. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  1260. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  1261. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), .3)
  1262. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(10), math.rad(0)), .3)
  1263. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1264. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1265. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1266. end
  1267. con:disconnect()
  1268. attack = false
  1269. end
  1270.  
  1271. local prep = false
  1272. function Luna()
  1273. attack = true
  1274. prep=true
  1275. CreateSound("http://www.roblox.com/asset/?id=315746833",RootPart,1,1)
  1276. SphereEffect(BrickColor.new("Really black"),RootPart.CFrame,1,1,1,5,5,5,.06)
  1277. MoonEffect(BrickColor.new("Pastel light blue"),RootPart.CFrame*cf(0,2,0),1,1,1,.5,.5,.5,.06)
  1278. while prep==true do
  1279. swait()
  1280. for i = 0, 1, 0.1 do
  1281. swait()
  1282. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(40),math.rad(0),math.rad(-70)),0.3)
  1283. Torso.Neck.C0 = clerp(Torso.Neck.C0,NeckCF *angles(math.rad(0),math.rad(-30),math.rad(70)),.3)
  1284. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(150)),0.3)
  1285. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3)
  1286. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(-30)),0.3)
  1287. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3)
  1288. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(90),math.rad(0-360*i),math.rad(90)),.2)
  1289. end
  1290. end
  1291.  
  1292. end
  1293. function LunarStrike()
  1294. prep=false
  1295. local con = Hitbox.Touched:connect(function(hit)
  1296. Damagefunc(Hitbox, hit, 20, 35, math.random(1, 5), "Snare", RootPart, .2, "rbxassetid://199149221", .8)
  1297. end)
  1298. CreateSound("http://www.roblox.com/asset/?id=315744661",RootPart,1,1)
  1299. SpecialEffect(BrickColor.new("White"),RootPart.CFrame,1,1,1,3,3,3,.08)
  1300. SpecialEffect(BrickColor.new("Pastel light blue"),RootPart.CFrame,1,1,1,3,3,3,.07)
  1301. RingEffect(BrickColor.new("Pastel blue-green"),RootPart.CFrame*cf(0,0,-5)*angles(math.rad(10,150),0,0),3,3,1,3,3,0,.07)
  1302. Torso.Velocity=Head.CFrame.lookVector*300
  1303. for i = 0, 1, 0.1 do
  1304. swait()
  1305. MagniDamage(RootPart,10,10,15,10,"Knockdown")
  1306. -- CylinderEffect(BrickColor.new("Pastel light blue"),RootPart.CFrame*angles(1.57,0,0),1,5,1,3,5,3,.07)
  1307. SphereEffect(BrickColor.new("Pastel blue-green"),RootPart.CFrame,1,1,1,3,3,3,.08)
  1308. RingEffect(BrickColor.new("Pastel blue-green"),RootPart.CFrame*cf(0,1,0),1,1,1,1,1,0,.07)
  1309. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0-360*i)), .3)
  1310. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .3)
  1311. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(130), math.rad(90)), .3)
  1312. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(10), math.rad(0)), .3)
  1313. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1314. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1315. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1316. end
  1317. SphereEffect(BrickColor.new("Pastel blue-green"),RootPart.CFrame*cf(0,0,-10)*angles(0,0,math.rad(80,130)),1,1,1,1,15,1,.06)
  1318. con:disconnect()
  1319. attack = false
  1320. end
  1321.  
  1322. spread=0
  1323. range=50
  1324. rangepower=25
  1325. function shoottrail3(mouse,baseprt)
  1326. coroutine.resume(coroutine.create(function(v)
  1327. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-mouse.Hit.p).magnitude/100
  1328. local dir = CFrame.new((baseprt.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  1329. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  1330. local rangepos = range*50
  1331. local function drawtrail(From,To)
  1332. local effectsmsh = Instance.new("SpecialMesh")
  1333. effectsmsh.Scale = Vector3.new(1,1,1)
  1334. effectsmsh.Name = "Mesh"
  1335. effectsmsh.MeshType = "Sphere"
  1336. effectsmsh.Scale=Vector3.new(5,5,5)
  1337. local effectsg = Instance.new("Part")
  1338. --effectsg.formFactor = 3
  1339. effectsg.CanCollide = false
  1340. effectsg.Name = "Eff"
  1341. effectsg.Material="Neon"
  1342. effectsg.Locked = true
  1343. effectsg.Anchored = true
  1344. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1345. effectsg.Parent = workspace
  1346. effectsmsh.Parent = effectsg
  1347. effectsg.BrickColor = BrickColor.new("Teal")
  1348. effectsg.Reflectance = 0
  1349.  
  1350. --particle.RotSpeed=NumberRange.new(20,20)
  1351. --particle.Rotation=NumberRange.new(180,180)
  1352. local LP = From
  1353. local point1 = To
  1354. local mg = (LP - point1).magnitude
  1355. effectsmsh.Scale = Vector3.new(5,50,50)
  1356. effectsg.CFrame=CFrame.new((LP+point1)/2,point1)
  1357. MoonEffect(BrickColor.new("Toothpaste"),effectsg.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,.5,.5,.5,.07)
  1358. coroutine.resume(coroutine.create(function()
  1359. swait()
  1360. effectsg.Parent = nil
  1361. end))
  1362. end
  1363. local newpos = baseprt.Position
  1364. local inc = rangepower/10
  1365. repeat
  1366. swait()
  1367. rangepos = rangepos - 10
  1368. --dir = dir * CFrame.Angles(math.rad(-1),0,0)
  1369. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1370. drawtrail(newpos,pos)
  1371. local list = game.Workspace:children()
  1372. local torso = nil
  1373. local dist = 20
  1374. local temp = nil
  1375. local human = nil
  1376. local temp2 = nil
  1377. for x = 1, #list do
  1378. temp2 = list[x]
  1379. if (temp2.className == "Model") and (temp2.Name~=Character.Name) then
  1380. temp = temp2:findFirstChild("Torso")
  1381. human = temp2:findFirstChild("Humanoid")
  1382. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1383. if (temp.Position - pos).magnitude < dist then
  1384. torso = temp
  1385. dist = (temp.Position - pos).magnitude
  1386. end
  1387. end
  1388. end
  1389. end
  1390. if torso~=nil then
  1391. dir=CFrame.new(pos,torso.Position)
  1392. end
  1393. newpos = newpos + (dir.lookVector * inc)
  1394. if hit ~= nil then
  1395. rangepos = 0
  1396. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1397. hum = hit.Parent.Humanoid
  1398. tTorso=hit.Parent.Torso
  1399. --Damagefunc1(hit,20,30)
  1400. MagniDamage(hit,1000000,1000000000,1000000000,1000000000000,"Knockdown")
  1401. attackdebounce=false
  1402. --ADmg(hum,hit)
  1403. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1404. hum = hit.Parent.Parent.Humanoid
  1405. tTorso=hit.Parent.Parent.Torso
  1406. MagniDamage(hit.Parent.Parent.Torso,1000000,100000,1000000000,10000000000000,"Knockdown")
  1407. --Damagefunc1(hit.Parent.Parent.Torso,20,30)
  1408. attackdebounce=false
  1409. --ADmg(hum,hit)
  1410. end
  1411. for i=1,math.random(3,6) do
  1412. BreakEffect(BrickColor.new("Really black"),CFrame.new(newpos),0.5,math.random(5,20),0.5)
  1413. end
  1414. CreateSound("http://roblox.com/asset/?id=3264793",hit,1,math.random()+math.random()+1)
  1415. SphereEffect(BrickColor.new("Really black"),CFrame.new(newpos),2,2,2,3,3,3,.07)
  1416. BlockEffect(BrickColor.new("Really black"),CFrame.new(newpos),2,2,2,2,2,2,.07,1)
  1417. MoonEffect(BrickColor.new("Really black"),CFrame.new(newpos),2,2,2,.5,.5,.5,.07)
  1418. end
  1419. until rangepos <= 0
  1420. end))
  1421. end
  1422.  
  1423. function shoottrail2(mouse,baseprt)
  1424. coroutine.resume(coroutine.create(function(v)
  1425. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-mouse.Hit.p).magnitude/100
  1426. local dir = CFrame.new((baseprt.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  1427. local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,Character)
  1428. local rangepos = range*50
  1429. local function drawtrail(From,To)
  1430. local effectsmsh = Instance.new("SpecialMesh")
  1431. effectsmsh.Scale = Vector3.new(1,1,1)
  1432. effectsmsh.Name = "Mesh"
  1433. effectsmsh.MeshType = "Sphere"
  1434. effectsmsh.Scale=Vector3.new(5,5,5)
  1435. local effectsg = Instance.new("Part")
  1436. --effectsg.formFactor = 3
  1437. effectsg.CanCollide = false
  1438. effectsg.Name = "Eff"
  1439. effectsg.Material="Neon"
  1440. effectsg.Locked = true
  1441. effectsg.Anchored = true
  1442. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1443. effectsg.Parent = workspace
  1444. effectsmsh.Parent = effectsg
  1445. effectsg.BrickColor = BrickColor.new("Teal")
  1446. effectsg.Reflectance = 0
  1447. --particle.RotSpeed=NumberRange.new(20,20)
  1448. --particle.Rotation=NumberRange.new(180,180)
  1449. local LP = From
  1450. local point1 = To
  1451. local mg = (LP - point1).magnitude
  1452. effectsmsh.Scale = Vector3.new(50,50,50)
  1453. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  1454. RingEffect(BrickColor.new("Toothpaste"),effectsg.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,2,2,2,.07)
  1455.  
  1456. coroutine.resume(coroutine.create(function()
  1457. swait()
  1458. effectsg.Parent = nil
  1459. end))
  1460. end
  1461. local newpos = baseprt.Position
  1462. local inc = rangepower/10
  1463. repeat
  1464. swait()
  1465. rangepos = rangepos - 10
  1466. --dir = dir * CFrame.Angles(math.rad(-1),0,0)
  1467. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  1468. drawtrail(newpos,pos)
  1469. local list = game.Workspace:children()
  1470. local torso = nil
  1471. local dist = 100
  1472. local temp = nil
  1473. local human = nil
  1474. local temp2 = nil
  1475. --[[ for x = 1, #list do
  1476. temp2 = list[x]
  1477. if (temp2.className == "Model") and (temp2.Name~=Character.Name) then
  1478. temp = temp2:findFirstChild("Torso")
  1479. human = temp2:findFirstChild("Humanoid")
  1480. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1481. if (temp.Position - pos).magnitude < dist then
  1482. torso = temp
  1483. dist = (temp.Position - pos).magnitude
  1484. end
  1485. end
  1486. end
  1487. end]]
  1488. if torso~=nil then
  1489. dir=CFrame.new(pos,torso.Position)
  1490. end
  1491. newpos = newpos + (dir.lookVector * inc)
  1492. if hit ~= nil then
  1493. rangepos = 0
  1494. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1495. hum = hit.Parent.Humanoid
  1496. tTorso=hit.Parent.Torso
  1497. --Damagefunc1(hit,20,30)
  1498. MagniDamage(hit,10000,20000,30004,50004,"Knockdown")
  1499. attackdebounce=false
  1500. --ADmg(hum,hit)
  1501. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  1502. hum = hit.Parent.Parent.Humanoid
  1503. tTorso=hit.Parent.Parent.Torso
  1504. MagniDamage(hit.Parent.Parent.Torso,20,30,55,0,"Knockdown")
  1505. --Damagefunc1(hit.Parent.Parent.Torso,20,30)
  1506. attackdebounce=false
  1507. --ADmg(hum,hit)
  1508. end
  1509. for i=1,math.random(3,6) do
  1510. BreakEffect(BrickColor.new("Teal"),CFrame.new(newpos),0.5,math.random(5,20),0.5)
  1511. end
  1512. CreateSound("http://roblox.com/asset/?id=3264793",hit,1,math.random()+math.random()+1)
  1513. local refpart1=CreatePart(Workspace,"SmoothPlastic",0,1,BrickColor.new("Toothpaste"),"Ref",vt())
  1514. refpart1.Anchored=true
  1515. refpart1.CFrame=cf(newpos)
  1516. game.Debris:AddItem(refpart1,.5)
  1517. MagniDamage(refpart1,1000,1000000,100000,1000000,"Knockdown")
  1518. SphereEffect(BrickColor.new("Teal"),CFrame.new(newpos),2,2,2,13,13,13,.07)
  1519. BlockEffect(BrickColor.new("Teal"),CFrame.new(newpos),2,2,2,12,12,12,.07,1)
  1520. MoonEffect(BrickColor.new("Teal"),CFrame.new(newpos),2,2,2,.5,.5,.5,.07)
  1521. end
  1522. until rangepos <= 0
  1523. end))
  1524. end
  1525.  
  1526.  
  1527. function Comet()
  1528. attack=true
  1529. for i = 0, 1, 0.1 do
  1530. swait()
  1531. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-40),math.rad(0),math.rad(-70)),0.3)
  1532. Torso.Neck.C0 = clerp(Torso.Neck.C0,NeckCF *angles(math.rad(40),math.rad(0),math.rad(70)),.3)
  1533. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(150)),0.3)
  1534. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.3)
  1535. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  1536. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3)
  1537. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(90),math.rad(0-360*i),math.rad(90)),.2)
  1538. end
  1539. for i = 0, 1, 0.1 do
  1540. swait()
  1541. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-40),math.rad(0),math.rad(-70)),0.3)
  1542. Torso.Neck.C0 = clerp(Torso.Neck.C0,NeckCF *angles(math.rad(40),math.rad(0),math.rad(70)),.3)
  1543. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(150)),0.3)
  1544. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3)
  1545. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  1546. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3)
  1547. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(90),math.rad(0-360*i),math.rad(90)),.2)
  1548. end
  1549. MoonEffect(BrickColor.new("Pastel light blue"),RootPart.CFrame*cf(0,2,0),1,1,1,.5,.5,.5,.06)
  1550. SphereEffect(BrickColor.new("Pastel light blue"),Handle.CFrame,2,2,2,3,5,3,.05)
  1551. coroutine.resume(coroutine.create(function()
  1552. for i, v in pairs(m:children()) do
  1553. if (v:IsA("BasePart")) then
  1554. v.Transparency=1
  1555. end
  1556. end
  1557. end))
  1558. CreateSound("http://www.roblox.com/asset/?id=233091161",RightArm,1,1)
  1559. shoottrail3(mouse,RightArm)
  1560. for i = 0, 1, 0.1 do
  1561. swait()
  1562. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(40),math.rad(0),math.rad(70)),0.3)
  1563. Torso.Neck.C0 = clerp(Torso.Neck.C0,NeckCF *angles(math.rad(-40),math.rad(30),math.rad(-70)),.3)
  1564. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(100), math.rad(100)),0.3)
  1565. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3)
  1566. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),0.3)
  1567. LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(0)),0.3)
  1568. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.2)
  1569. end
  1570.  
  1571. SphereEffect(BrickColor.new("Pastel light blue"),Handle.CFrame,2,2,2,3,5,3,.05)
  1572. coroutine.resume(coroutine.create(function()
  1573. for i, v in pairs(m:children()) do
  1574. if (v:IsA("BasePart")) then
  1575. v.Transparency=0
  1576. end
  1577. Handle.Transparency=1
  1578. Hitbox.Transparency=1
  1579. FakeHandle.Transparency=1
  1580. end
  1581. end))
  1582. attack=false
  1583. end
  1584. function Eclipse()
  1585. attack=true
  1586. for i = 0,1,.1 do
  1587. swait()
  1588. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * angles(math.rad(50), math.rad(-50), math.rad(-50)), .3)
  1589. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-50), math.rad(0), math.rad(60)), .3)
  1590. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1591. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
  1592. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1593. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
  1594. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1595. end
  1596. for i = 0,1,.1 do
  1597. swait()
  1598. if i == .4 then
  1599. coroutine.resume(coroutine.create(function()
  1600. for i, v in pairs(Character:children()) do
  1601. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1602. v.Transparency=1
  1603. end
  1604. if (v:IsA("Hat")) then
  1605. v.Handle.Transparency=1
  1606. end
  1607. Head.face.Transparency=1
  1608. end
  1609. for i, v in pairs(m:children()) do
  1610. if (v:IsA("BasePart")) then
  1611. v.Transparency=1
  1612. end
  1613. end
  1614. end))
  1615. RingEffect(BrickColor.new("Teal"),Torso.CFrame*angles(math.rad(50),math.rad(0),math.rad(0)),2,2,1,1,1,0,0.07)
  1616. end
  1617. Torso.Velocity=RootPart.CFrame.lookVector*75
  1618. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
  1619. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-50), math.rad(0), math.rad(0)), .3)
  1620. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1621. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
  1622. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1623. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
  1624. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1625. end
  1626. for i = 1,8,1 do
  1627. local ef=CreatePart(workspace,"SmoothPlastic",0,1,BrickColor.new("Black"),"Effect",vt())
  1628. ef.Anchored=true
  1629. ef.CFrame=RootPart.CFrame*cf(0,0,-7.5*i)
  1630. CreateSound("http://www.roblox.com/asset/?id=231917788",ef,1,1)
  1631. MagniDamage(ef,12,20,35,10,"Knockdown")
  1632. --SphereEffect(BrickColor.new("Black"),ef.CFrame*angles(0,0,0),50,50,50,-5,-5,-5,0.08)
  1633. game:GetService("Debris"):AddItem(ef,.5)
  1634. SphereEffect(BrickColor.new("Really black"),ef.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.5,5,.5,0.03)
  1635. end
  1636. RootPart.CFrame=RootPart.CFrame*cf(0,0,-35)
  1637.  
  1638. coroutine.resume(coroutine.create(function()
  1639. for i, v in pairs(Character:children()) do
  1640. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1641. v.Transparency=0
  1642. end
  1643. if (v:IsA("Hat")) then
  1644. v.Handle.Transparency=0
  1645. end
  1646. Head.face.Transparency=0
  1647. end
  1648. for i, v in pairs(m:children()) do
  1649. if (v:IsA("BasePart")) then
  1650. v.Transparency=0
  1651. end
  1652. end
  1653. Hitbox.Transparency=1
  1654. Handle.Transparency=1
  1655. FakeHandle.Transparency=1
  1656. end))
  1657. RootPart.CFrame=RootPart.CFrame*cf(0,0,-35)
  1658. for i = 0,1,.1 do
  1659. swait()
  1660. if i == .1 then
  1661. coroutine.resume(coroutine.create(function()
  1662. for i, v in pairs(Character:children()) do
  1663. if (v:IsA("BasePart") and v.Name~="HumanoidRootPart") then
  1664. v.Transparency=0
  1665. end
  1666. if (v:IsA("Hat")) then
  1667. v.Handle.Transparency=0
  1668. end
  1669. Head.face.Transparency=0
  1670. end
  1671. for i, v in pairs(m:children()) do
  1672. if (v:IsA("BasePart")) then
  1673. v.Transparency=0
  1674. end
  1675. Handle.Transparency=1
  1676. FakeHandle.Transparency=1
  1677. Hitbox.Transparency=1
  1678. end
  1679. end))
  1680. RingEffect(BrickColor.new("Teal"),Torso.CFrame*angles(math.rad(50),math.rad(0),math.rad(0)),2,2,1,1,1,0,0.07)
  1681. end
  1682. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -5, -1) * angles(math.rad(50), math.rad(0), math.rad(0)), .3)
  1683. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-50), math.rad(0), math.rad(0)), .3)
  1684. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1685. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
  1686. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1687. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
  1688. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1689. end
  1690.  
  1691. attack=false
  1692. end
  1693.  
  1694. --[[Attacks]]--
  1695.  
  1696. mouse.Button1Down:connect(function()
  1697. if attack == false and attacktype == 1 then
  1698. attacktype=2
  1699. attackone()
  1700. elseif attack == false and attacktype == 2 then
  1701. attacktype=3
  1702. attacktwo()
  1703. elseif attack == false and attacktype == 3 then
  1704. attacktype=1
  1705. attackthree()
  1706. end
  1707. end)
  1708.  
  1709. mouse.KeyDown:connect(function(k)
  1710. k = k:lower()
  1711. if attack == false and k == 'z' then
  1712. Luna()
  1713. elseif attack == false and k == 'x' then
  1714. Comet()
  1715. elseif attack == false and k == 'c' then
  1716. Eclipse()
  1717. elseif attack == false and k == 'v' then
  1718. Finale()
  1719. elseif attack == false and k == 'b' then
  1720. TriOrbs()
  1721. end
  1722. end)
  1723.  
  1724. mouse.KeyUp:connect(function(k)
  1725. k = k:lower()
  1726. if attack == true and k == 'z' then
  1727. LunarStrike()
  1728. prep=false
  1729. end
  1730. end)
  1731.  
  1732. --[[Movement Detection]]--
  1733.  
  1734. while true do
  1735. swait()
  1736. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1737. velocity = RootPart.Velocity.y
  1738. sine = sine + change
  1739. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1740. if equipped == true or equipped == false then
  1741. if RootPart.Velocity.y > 1 and hit == nil then
  1742. Anim = "Jump"
  1743. if attack == false then
  1744. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1745. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1746. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1747. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1748. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1749. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1750. end
  1751. elseif RootPart.Velocity.y < -1 and hit == nil then
  1752. Anim = "Fall"
  1753. if attack == false then
  1754. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(5), math.rad(0)), .3)
  1755. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1756. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(80)), .3)
  1757. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(10), math.rad(0)), .3)
  1758. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1759. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(10)), .3)
  1760. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1761. end
  1762. elseif Torsovelocity < 1 and hit ~= nil then
  1763. Anim = "Idle"
  1764. if attack == false then
  1765. change = 1
  1766. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(5), math.rad(-50)), .3)
  1767. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(60)), .3)
  1768. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1769. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(10), math.rad(0)), .3)
  1770. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  1771. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(5)), .3)
  1772. FakeHandleWeld.C0=clerp(FakeHandleWeld.C0,cf(0,0,0)*angles(math.rad(-70),math.rad(-10),math.rad(-20)),.2)
  1773. end
  1774. elseif Torsovelocity > 2 and hit ~= nil then
  1775. Anim = "Walk"
  1776. if attack == false then
  1777. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3)
  1778. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(10)), .3)
  1779. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(50)), .3)
  1780. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1781. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1782. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1783. end
  1784. end
  1785. end
  1786. if #Effects > 0 then
  1787. for e = 1, #Effects do
  1788. if Effects[e] ~= nil then
  1789. local Thing = Effects[e]
  1790. if Thing ~= nil then
  1791. local Part = Thing[1]
  1792. local Mode = Thing[2]
  1793. local Delay = Thing[3]
  1794. local IncX = Thing[4]
  1795. local IncY = Thing[5]
  1796. local IncZ = Thing[6]
  1797. if Thing[1].Transparency <= 1 then
  1798. if Thing[2] == "Block1" then
  1799. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1800. Mesh = Thing[1].Mesh
  1801. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1802. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1803. elseif Thing[2] == "Block2" then
  1804. Thing[1].CFrame = Thing[1].CFrame
  1805. Mesh = Thing[7]
  1806. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1807. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1808. elseif Thing[2] == "Cylinder" then
  1809. Mesh = Thing[1].Mesh
  1810. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1811. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1812. elseif Thing[2] == "Blood" then
  1813. Mesh = Thing[7]
  1814. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1815. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1816. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1817. elseif Thing[2] == "Elec" then
  1818. Mesh = Thing[1].Mesh
  1819. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1820. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1821. elseif Thing[2] == "Disappear" then
  1822. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1823. elseif Thing[2] == "Shatter" then
  1824. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1825. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1826. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1827. Thing[6] = Thing[6] + Thing[5]
  1828. end
  1829. else
  1830. Part.Parent = nil
  1831. table.remove(Effects, e)
  1832. end
  1833. end
  1834. end
  1835. end
  1836. end
  1837. end
  1838.  
  1839. script = nil
Add Comment
Please, Sign In to add comment