Advertisement
MESCRIPT

testing script

Jul 31st, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 75.82 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. local chil = workspace:GetChildren()
  19. for i,v in pairs(chil) do
  20. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  21. v:Destroy()
  22. end
  23. end
  24. Camera0 = Instance.new("Camera")
  25. Model1 = Instance.new("Model")
  26. Part2 = Instance.new("Part")
  27. Part3 = Instance.new("Part")
  28. UnionOperation4 = Instance.new("UnionOperation")
  29. Part5 = Instance.new("Part")
  30. PointLight6 = Instance.new("PointLight")
  31. RotateV7 = Instance.new("RotateV")
  32. Model8 = Instance.new("Model")
  33. Script9 = Instance.new("Script")
  34. SpawnLocation10 = Instance.new("SpawnLocation")
  35. Decal11 = Instance.new("Decal")
  36. Model12 = Instance.new("Model")
  37. Model13 = Instance.new("Model")
  38. UnionOperation14 = Instance.new("UnionOperation")
  39. Beam15 = Instance.new("Beam")
  40. Sound16 = Instance.new("Sound")
  41. Motor6D17 = Instance.new("Motor6D")
  42. Motor6D18 = Instance.new("Motor6D")
  43. Motor6D19 = Instance.new("Motor6D")
  44. Motor6D20 = Instance.new("Motor6D")
  45. Motor6D21 = Instance.new("Motor6D")
  46. ManualWeld22 = Instance.new("ManualWeld")
  47. ManualWeld23 = Instance.new("ManualWeld")
  48. UnionOperation24 = Instance.new("UnionOperation")
  49. BillboardGui25 = Instance.new("BillboardGui")
  50. TextLabel26 = Instance.new("TextLabel")
  51. TextLabel27 = Instance.new("TextLabel")
  52. Script28 = Instance.new("Script")
  53. ManualWeld29 = Instance.new("ManualWeld")
  54. Decal30 = Instance.new("Decal")
  55. Part31 = Instance.new("Part")
  56. Sound32 = Instance.new("Sound")
  57. Sound33 = Instance.new("Sound")
  58. Sound34 = Instance.new("Sound")
  59. Sound35 = Instance.new("Sound")
  60. Sound36 = Instance.new("Sound")
  61. Sound37 = Instance.new("Sound")
  62. Sound38 = Instance.new("Sound")
  63. Sound39 = Instance.new("Sound")
  64. Sound40 = Instance.new("Sound")
  65. Sound41 = Instance.new("Sound")
  66. Sound42 = Instance.new("Sound")
  67. Motor6D43 = Instance.new("Motor6D")
  68. MeshPart44 = Instance.new("MeshPart")
  69. ManualWeld45 = Instance.new("ManualWeld")
  70. MeshPart46 = Instance.new("MeshPart")
  71. ManualWeld47 = Instance.new("ManualWeld")
  72. MeshPart48 = Instance.new("MeshPart")
  73. ManualWeld49 = Instance.new("ManualWeld")
  74. MeshPart50 = Instance.new("MeshPart")
  75. ManualWeld51 = Instance.new("ManualWeld")
  76. MeshPart52 = Instance.new("MeshPart")
  77. ManualWeld53 = Instance.new("ManualWeld")
  78. MeshPart54 = Instance.new("MeshPart")
  79. Weld55 = Instance.new("Weld")
  80. Humanoid56 = Instance.new("Humanoid")
  81. Part57 = Instance.new("Part")
  82. SpecialMesh58 = Instance.new("SpecialMesh")
  83. Script59 = Instance.new("Script")
  84. Sound60 = Instance.new("Sound")
  85. Pants61 = Instance.new("Pants")
  86. Shirt62 = Instance.new("Shirt")
  87. Part63 = Instance.new("Part")
  88. ManualWeld64 = Instance.new("ManualWeld")
  89. Part65 = Instance.new("Part")
  90. ManualWeld66 = Instance.new("ManualWeld")
  91. MeshPart67 = Instance.new("MeshPart")
  92. Part68 = Instance.new("Part")
  93. Part69 = Instance.new("Part")
  94. Part70 = Instance.new("Part")
  95. Part71 = Instance.new("Part")
  96. ManualWeld72 = Instance.new("ManualWeld")
  97. Part73 = Instance.new("Part")
  98. ManualWeld74 = Instance.new("ManualWeld")
  99. Part75 = Instance.new("Part")
  100. ManualWeld76 = Instance.new("ManualWeld")
  101. Part77 = Instance.new("Part")
  102. ManualWeld78 = Instance.new("ManualWeld")
  103. Part79 = Instance.new("Part")
  104. ManualWeld80 = Instance.new("ManualWeld")
  105. Sound81 = Instance.new("Sound")
  106. Camera0.Parent = mas
  107. Camera0.CFrame = CFrame.new(62.9721527, 89.4157257, -37.9126358, 0.974982738, -0.0902482718, 0.203135103, -0, 0.913868308, 0.406010807, -0.222280473, -0.395853519, 0.891005874)
  108. Camera0.CoordinateFrame = CFrame.new(62.9721527, 89.4157257, -37.9126358, 0.974982738, -0.0902482718, 0.203135103, -0, 0.913868308, 0.406010807, -0.222280473, -0.395853519, 0.891005874)
  109. Camera0.Focus = CFrame.new(62.5658875, 88.603714, -39.6946259, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  110. Camera0.focus = CFrame.new(62.5658875, 88.603714, -39.6946259, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  111. Model1.Parent = mas
  112. Part2.Parent = Model1
  113. Part2.CFrame = CFrame.new(-60.4126663, 5.55689383, -162.584, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  114. Part2.Orientation = Vector3.new(0, 0, 90)
  115. Part2.Position = Vector3.new(-60.4126663, 5.55689383, -162.584)
  116. Part2.Rotation = Vector3.new(0, 0, 90)
  117. Part2.Transparency = 1
  118. Part2.Size = Vector3.new(2.05412745, 77.9478531, 77.9478531)
  119. Part2.Anchored = true
  120. Part2.BottomSurface = Enum.SurfaceType.Smooth
  121. Part2.Material = Enum.Material.SmoothPlastic
  122. Part2.TopSurface = Enum.SurfaceType.Smooth
  123. Part2.Shape = Enum.PartType.Cylinder
  124. Part3.Parent = Model1
  125. Part3.CFrame = CFrame.new(-60.7876701, 16.9518814, -163.129044, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  126. Part3.Position = Vector3.new(-60.7876701, 16.9518814, -163.129044)
  127. Part3.Color = Color3.new(0, 0, 1)
  128. Part3.Transparency = 1
  129. Part3.Size = Vector3.new(11.8312006, 21.6499958, 12.28965)
  130. Part3.Anchored = true
  131. Part3.BottomSurface = Enum.SurfaceType.Smooth
  132. Part3.BrickColor = BrickColor.new("Really blue")
  133. Part3.TopSurface = Enum.SurfaceType.Smooth
  134. Part3.brickColor = BrickColor.new("Really blue")
  135. UnionOperation4.Parent = Model1
  136. UnionOperation4.CFrame = CFrame.new(-60.9096642, 16.953928, -162.126114, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  137. UnionOperation4.Orientation = Vector3.new(0, 90, 0)
  138. UnionOperation4.Position = Vector3.new(-60.9096642, 16.953928, -162.126114)
  139. UnionOperation4.Rotation = Vector3.new(0, 90, 0)
  140. UnionOperation4.Color = Color3.new(0, 0, 1)
  141. UnionOperation4.Size = Vector3.new(78.035202, 28.0076447, 76.9837036)
  142. UnionOperation4.BrickColor = BrickColor.new("Really blue")
  143. UnionOperation4.CanCollide = false
  144. UnionOperation4.brickColor = BrickColor.new("Really blue")
  145. Part5.Parent = Model1
  146. Part5.CFrame = CFrame.new(-60.7826767, 1.45502901, -163.163986, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  147. Part5.Position = Vector3.new(-60.7826767, 1.45502901, -163.163986)
  148. Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  149. Part5.Size = Vector3.new(86.9104919, 2.91001558, 85.2406006)
  150. Part5.Anchored = true
  151. Part5.BottomSurface = Enum.SurfaceType.Smooth
  152. Part5.BrickColor = BrickColor.new("Really black")
  153. Part5.TopParamA = -0.10000000149012
  154. Part5.TopParamB = 0.10000000149012
  155. Part5.TopSurface = Enum.SurfaceType.Motor
  156. Part5.TopSurfaceInput = Enum.InputType.Constant
  157. Part5.brickColor = BrickColor.new("Really black")
  158. PointLight6.Parent = Part5
  159. PointLight6.Range = 45
  160. PointLight6.Brightness = 0.60000002384186
  161. RotateV7.Parent = Part5
  162. RotateV7.C0 = CFrame.new(0, 1.45500779, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  163. RotateV7.C1 = CFrame.new(1.03999996, -14.04, 0.129999995, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  164. RotateV7.Part0 = Part5
  165. RotateV7.Part1 = UnionOperation4
  166. RotateV7.part1 = UnionOperation4
  167. RotateV7.BaseAngle = 1.5707963705063
  168. Model8.Name = "CompiledScripts"
  169. Model8.Parent = mas
  170. Script9.Name = "Script1"
  171. Script9.Parent = Model8
  172. table.insert(cors,sandbox(Script9,function()
  173. --Converted with ttyyuu12345's model to script plugin v4
  174. function sandbox(var,func)
  175. local env = getfenv(func)
  176. local newenv = setmetatable({},{
  177. __index = function(self,k)
  178. if k=="script" then
  179. return var
  180. else
  181. return env[k]
  182. end
  183. end,
  184. })
  185. setfenv(func,newenv)
  186. return func
  187. end
  188. cors = {}
  189. mas = Instance.new("Model",game:GetService("Lighting"))
  190. local chil = workspace:GetChildren()
  191. for i,v in pairs(chil) do
  192. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  193. v:Destroy()
  194. end
  195. end
  196. Camera0 = Instance.new("Camera")
  197. Model1 = Instance.new("Model")
  198. Part2 = Instance.new("Part")
  199. Part3 = Instance.new("Part")
  200. UnionOperation4 = Instance.new("UnionOperation")
  201. Part5 = Instance.new("Part")
  202. PointLight6 = Instance.new("PointLight")
  203. RotateV7 = Instance.new("RotateV")
  204. Camera0.Parent = mas
  205. Camera0.CFrame = CFrame.new(49.1692734, 97.6309052, -100.860832, 0.492994905, -0.474186033, 0.729454339, -0, 0.838422179, 0.545021236, -0.870032191, -0.268692702, 0.413337886)
  206. Camera0.CoordinateFrame = CFrame.new(49.1692734, 97.6309052, -100.860832, 0.492994905, -0.474186033, 0.729454339, -0, 0.838422179, 0.545021236, -0.870032191, -0.268692702, 0.413337886)
  207. Camera0.Focus = CFrame.new(-60.7826767, 15.4788857, -163.163986, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  208. Camera0.focus = CFrame.new(-60.7826767, 15.4788857, -163.163986, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  209. Model1.Parent = mas
  210. Part2.Parent = Model1
  211. Part2.CFrame = CFrame.new(-60.4126663, 5.55689383, -162.584, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  212. Part2.Orientation = Vector3.new(0, 0, 90)
  213. Part2.Position = Vector3.new(-60.4126663, 5.55689383, -162.584)
  214. Part2.Rotation = Vector3.new(0, 0, 90)
  215. Part2.Transparency = 1
  216. Part2.Size = Vector3.new(2.05412745, 77.9478531, 77.9478531)
  217. Part2.Anchored = true
  218. Part2.BottomSurface = Enum.SurfaceType.Smooth
  219. Part2.Material = Enum.Material.SmoothPlastic
  220. Part2.TopSurface = Enum.SurfaceType.Smooth
  221. Part2.Shape = Enum.PartType.Cylinder
  222. Part3.Parent = Model1
  223. Part3.CFrame = CFrame.new(-60.7876701, 16.9518814, -163.129044, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  224. Part3.Position = Vector3.new(-60.7876701, 16.9518814, -163.129044)
  225. Part3.Color = Color3.new(0, 0, 1)
  226. Part3.Transparency = 1
  227. Part3.Size = Vector3.new(11.8312006, 21.6499958, 12.28965)
  228. Part3.Anchored = true
  229. Part3.BottomSurface = Enum.SurfaceType.Smooth
  230. Part3.BrickColor = BrickColor.new("Really blue")
  231. Part3.TopSurface = Enum.SurfaceType.Smooth
  232. Part3.brickColor = BrickColor.new("Really blue")
  233. UnionOperation4.Parent = Model1
  234. UnionOperation4.CFrame = CFrame.new(-60.9096642, 16.953928, -162.126114, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  235. UnionOperation4.Orientation = Vector3.new(0, 90, 0)
  236. UnionOperation4.Position = Vector3.new(-60.9096642, 16.953928, -162.126114)
  237. UnionOperation4.Rotation = Vector3.new(0, 90, 0)
  238. UnionOperation4.Color = Color3.new(0, 0, 1)
  239. UnionOperation4.Size = Vector3.new(78.035202, 28.0076447, 76.9837036)
  240. UnionOperation4.BrickColor = BrickColor.new("Really blue")
  241. UnionOperation4.CanCollide = false
  242. UnionOperation4.brickColor = BrickColor.new("Really blue")
  243. Part5.Parent = Model1
  244. Part5.CFrame = CFrame.new(-60.7826767, 1.45502901, -163.163986, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  245. Part5.Position = Vector3.new(-60.7826767, 1.45502901, -163.163986)
  246. Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  247. Part5.Size = Vector3.new(86.9104919, 2.91001558, 85.2406006)
  248. Part5.Anchored = true
  249. Part5.BottomSurface = Enum.SurfaceType.Smooth
  250. Part5.BrickColor = BrickColor.new("Really black")
  251. Part5.TopParamA = -0.10000000149012
  252. Part5.TopParamB = 0.10000000149012
  253. Part5.TopSurface = Enum.SurfaceType.Motor
  254. Part5.TopSurfaceInput = Enum.InputType.Constant
  255. Part5.brickColor = BrickColor.new("Really black")
  256. PointLight6.Parent = Part5
  257. PointLight6.Range = 45
  258. PointLight6.Brightness = 0.60000002384186
  259. RotateV7.Parent = Part5
  260. RotateV7.C0 = CFrame.new(0, 1.45500779, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  261. RotateV7.C1 = CFrame.new(1.03999996, -14.04, 0.129999995, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  262. RotateV7.Part0 = Part5
  263. RotateV7.Part1 = UnionOperation4
  264. RotateV7.part1 = UnionOperation4
  265. RotateV7.BaseAngle = 1.5707963705063
  266. for i,v in pairs(mas:GetChildren()) do
  267. v.Parent = workspace
  268. pcall(function() v:MakeJoints() end)
  269. end
  270. mas:Destroy()
  271. for i,v in pairs(cors) do
  272. spawn(function()
  273. pcall(v)
  274. end)
  275. end
  276.  
  277. end))
  278. SpawnLocation10.Parent = mas
  279. SpawnLocation10.CFrame = CFrame.new(-66.3779449, 6.8100419, -182.183731, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  280. SpawnLocation10.Orientation = Vector3.new(0, 180, 0)
  281. SpawnLocation10.Position = Vector3.new(-66.3779449, 6.8100419, -182.183731)
  282. SpawnLocation10.Rotation = Vector3.new(-180, 0, -180)
  283. SpawnLocation10.Transparency = 1
  284. SpawnLocation10.Size = Vector3.new(6, 0.200000048, 6)
  285. SpawnLocation10.Anchored = true
  286. SpawnLocation10.BackSurface = Enum.SurfaceType.Weld
  287. SpawnLocation10.BottomSurface = Enum.SurfaceType.Weld
  288. SpawnLocation10.FrontSurface = Enum.SurfaceType.Weld
  289. SpawnLocation10.LeftSurface = Enum.SurfaceType.Weld
  290. SpawnLocation10.RightSurface = Enum.SurfaceType.Weld
  291. SpawnLocation10.TopSurface = Enum.SurfaceType.Smooth
  292. Decal11.Parent = SpawnLocation10
  293. Decal11.Texture = "rbxasset://Textures/SpawnLocation.png"
  294. Decal11.Face = Enum.NormalId.Top
  295. Model12.Name = "Jevil"
  296. Model12.Parent = mas
  297. Model13.Name = "Jevil"
  298. Model13.Parent = Model12
  299. Model13.PrimaryPart = Part31
  300. UnionOperation14.Name = "Torso"
  301. UnionOperation14.Parent = Model13
  302. UnionOperation14.CFrame = CFrame.new(-34.545414, 9.70564556, -145.660187, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  303. UnionOperation14.Orientation = Vector3.new(0, 180, 0)
  304. UnionOperation14.Position = Vector3.new(-34.545414, 9.70564556, -145.660187)
  305. UnionOperation14.Rotation = Vector3.new(-180, 0, -180)
  306. UnionOperation14.Color = Color3.new(0.239216, 0.0823529, 0.521569)
  307. UnionOperation14.Size = Vector3.new(2.00003052, 2.00002933, 1.00000763)
  308. UnionOperation14.BrickColor = BrickColor.new("Dark indigo")
  309. UnionOperation14.Material = Enum.Material.SmoothPlastic
  310. UnionOperation14.brickColor = BrickColor.new("Dark indigo")
  311. UnionOperation14.UsePartColor = true
  312. Beam15.Name = "Neck"
  313. Beam15.Parent = UnionOperation14
  314. Beam15.Attachment0 = nil
  315. Beam15.Attachment1 = nil
  316. Beam15.FaceCamera = true
  317. Beam15.LightEmission = 1
  318. Beam15.LightInfluence = 1
  319. Beam15.Segments = 50
  320. Beam15.Texture = "rbxassetid://1134824633"
  321. Beam15.TextureLength = 5
  322. Beam15.TextureMode = Enum.TextureMode.Static
  323. Beam15.TextureSpeed = 2
  324. Beam15.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
  325. Beam15.Width0 = 0.5
  326. Beam15.Width1 = 0.5
  327. Sound16.Name = "Die"
  328. Sound16.Parent = UnionOperation14
  329. Sound16.MaxDistance = 300
  330. Sound16.EmitterSize = 35
  331. Sound16.MinDistance = 35
  332. Sound16.SoundId = "rbxassetid://2150821806"
  333. Sound16.Volume = 2
  334. Motor6D17.Name = "Head"
  335. Motor6D17.Parent = UnionOperation14
  336. Motor6D17.C1 = CFrame.new(-3.9100647e-05, -1.49995828, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  337. Motor6D17.Part0 = UnionOperation14
  338. Motor6D17.Part1 = UnionOperation24
  339. Motor6D17.part1 = UnionOperation24
  340. Motor6D18.Name = "RArm"
  341. Motor6D18.Parent = UnionOperation14
  342. Motor6D18.C1 = CFrame.new(-1.50003719, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  343. Motor6D18.Part0 = UnionOperation14
  344. Motor6D18.Part1 = MeshPart46
  345. Motor6D18.part1 = MeshPart46
  346. Motor6D19.Name = "LArm"
  347. Motor6D19.Parent = UnionOperation14
  348. Motor6D19.C1 = CFrame.new(1.49996281, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  349. Motor6D19.Part0 = UnionOperation14
  350. Motor6D19.Part1 = MeshPart44
  351. Motor6D19.part1 = MeshPart44
  352. Motor6D20.Name = "RLeg"
  353. Motor6D20.Parent = UnionOperation14
  354. Motor6D20.C1 = CFrame.new(-0.500037193, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  355. Motor6D20.Part0 = UnionOperation14
  356. Motor6D20.Part1 = MeshPart48
  357. Motor6D20.part1 = MeshPart48
  358. Motor6D21.Name = "LLeg"
  359. Motor6D21.Parent = UnionOperation14
  360. Motor6D21.C1 = CFrame.new(0.499962807, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  361. Motor6D21.Part0 = UnionOperation14
  362. Motor6D21.Part1 = MeshPart50
  363. Motor6D21.part1 = MeshPart50
  364. ManualWeld22.Name = "Weld"
  365. ManualWeld22.Parent = UnionOperation14
  366. ManualWeld22.C1 = CFrame.new(-0.78031826, -0.03125, 0.0429611206, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  367. ManualWeld22.Part0 = UnionOperation14
  368. ManualWeld22.Part1 = Part70
  369. ManualWeld22.part1 = Part70
  370. ManualWeld23.Name = "Weld"
  371. ManualWeld23.Parent = UnionOperation14
  372. ManualWeld23.C1 = CFrame.new(-0.00518035889, -0.798576832, -0.415435791, -1, 0, 1.6e-05, 0, -1, 0, 1.6e-05, 0, 1)
  373. ManualWeld23.Part0 = UnionOperation14
  374. ManualWeld23.Part1 = MeshPart67
  375. ManualWeld23.part1 = MeshPart67
  376. UnionOperation24.Name = "Head"
  377. UnionOperation24.Parent = Model13
  378. UnionOperation24.CFrame = CFrame.new(-34.5454521, 11.2056036, -145.660156, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  379. UnionOperation24.Orientation = Vector3.new(0, 180, 0)
  380. UnionOperation24.Position = Vector3.new(-34.5454521, 11.2056036, -145.660156)
  381. UnionOperation24.Rotation = Vector3.new(-180, 0, -180)
  382. UnionOperation24.Color = Color3.new(0.639216, 0.635294, 0.647059)
  383. UnionOperation24.Size = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  384. UnionOperation24.BrickColor = BrickColor.new("Medium stone grey")
  385. UnionOperation24.Material = Enum.Material.SmoothPlastic
  386. UnionOperation24.brickColor = BrickColor.new("Medium stone grey")
  387. UnionOperation24.UsePartColor = true
  388. BillboardGui25.Name = "Nametag"
  389. BillboardGui25.Parent = UnionOperation24
  390. BillboardGui25.Size = UDim2.new(4, 0, 4, 0)
  391. BillboardGui25.AlwaysOnTop = true
  392. BillboardGui25.StudsOffset = Vector3.new(0, 2, 0)
  393. TextLabel26.Name = "Title"
  394. TextLabel26.Parent = BillboardGui25
  395. TextLabel26.Size = UDim2.new(1, 0, 0.25, 0)
  396. TextLabel26.BackgroundColor = BrickColor.new("Institutional white")
  397. TextLabel26.BackgroundColor3 = Color3.new(1, 1, 1)
  398. TextLabel26.BackgroundTransparency = 1
  399. TextLabel26.BorderSizePixel = 0
  400. TextLabel26.ClipsDescendants = true
  401. TextLabel26.Font = Enum.Font.Bodoni
  402. TextLabel26.FontSize = Enum.FontSize.Size14
  403. TextLabel26.Text = "Jevil"
  404. TextLabel26.TextColor = BrickColor.new("Alder")
  405. TextLabel26.TextColor3 = Color3.new(0.807843, 0.0941177, 1)
  406. TextLabel26.TextScaled = true
  407. TextLabel26.TextSize = 14
  408. TextLabel26.TextWrap = true
  409. TextLabel26.TextWrapped = true
  410. TextLabel27.Name = "HP"
  411. TextLabel27.Parent = BillboardGui25
  412. TextLabel27.Position = UDim2.new(0, 0, 0.25, 0)
  413. TextLabel27.Size = UDim2.new(1, 0, 0.100000001, 0)
  414. TextLabel27.BackgroundColor = BrickColor.new("Institutional white")
  415. TextLabel27.BackgroundColor3 = Color3.new(1, 1, 1)
  416. TextLabel27.BackgroundTransparency = 1
  417. TextLabel27.BorderSizePixel = 0
  418. TextLabel27.ClipsDescendants = true
  419. TextLabel27.Font = Enum.Font.Fantasy
  420. TextLabel27.FontSize = Enum.FontSize.Size48
  421. TextLabel27.Text = "0/0"
  422. TextLabel27.TextColor = BrickColor.new("Crimson")
  423. TextLabel27.TextColor3 = Color3.new(0.72549, 0, 0)
  424. TextLabel27.TextScaled = true
  425. TextLabel27.TextSize = 45
  426. TextLabel27.TextWrap = true
  427. TextLabel27.TextWrapped = true
  428. Script28.Parent = BillboardGui25
  429. table.insert(cors,sandbox(Script28,function()
  430. wait(0.05)
  431. Humanoid = script.Parent.Parent.Parent:FindFirstChildOfClass("Humanoid")
  432. script.Parent.HP.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  433.  
  434. Humanoid.Changed:connect(function()
  435. if Humanoid.Health > Humanoid.MaxHealth/2 then
  436. script.Parent.HP.TextColor3 = Color3.new(175/255,1,175/255)
  437. end
  438. if Humanoid.Health > Humanoid.MaxHealth then
  439. script.Parent.HP.TextColor3 = Color3.new(175/255,1,225/255)
  440. end
  441. if Humanoid.Health > Humanoid.MaxHealth * 1.5 then
  442. script.Parent.HP.TextColor3 = Color3.new(175/255,1,1)
  443. end
  444. if Humanoid.Health > Humanoid.MaxHealth * 3 then
  445. script.Parent.HP.TextColor3 = Color3.new(175/255,220/255,1)
  446. end
  447. if Humanoid.Health > Humanoid.MaxHealth * 10 then
  448. script.Parent.HP.TextColor3 = Color3.new(175/255,175/255,1)
  449. end
  450. if Humanoid.Health < Humanoid.MaxHealth/2 then
  451. script.Parent.HP.TextColor3 = Color3.new(210/255,1,175/255)
  452. end
  453. if Humanoid.Health < Humanoid.MaxHealth/2.5 then
  454. script.Parent.HP.TextColor3 = Color3.new(230/255,1,175/255)
  455. end
  456. if Humanoid.Health < Humanoid.MaxHealth/3 then
  457. script.Parent.HP.TextColor3 = Color3.new(1,1,175/255)
  458. end
  459. if Humanoid.Health < Humanoid.MaxHealth/5 then
  460. script.Parent.HP.TextColor3 = Color3.new(1,225/255,175/255)
  461. end
  462. if Humanoid.Health < Humanoid.MaxHealth/7.5 then
  463. script.Parent.HP.TextColor3 = Color3.new(1,200/255,175/255)
  464. end
  465. if Humanoid.Health < Humanoid.MaxHealth/10 then
  466. script.Parent.HP.TextColor3 = Color3.new(1,175/255,175/255)
  467. end
  468. if Humanoid.Health == 0 then
  469. script.Parent.HP.Text = "Dead"
  470. else
  471. script.Parent.HP.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  472. end
  473. if Humanoid.Health == math.huge then
  474. script.Parent.HP.Text = "Godded"
  475. script.Parent.HP.TextColor3 = Color3.new(175/255,175/255,175/255)
  476. end
  477. end)
  478. end))
  479. ManualWeld29.Name = "Weld"
  480. ManualWeld29.Parent = UnionOperation24
  481. ManualWeld29.C1 = CFrame.new(0, -0.859630585, -0.500030518, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  482. ManualWeld29.Part0 = UnionOperation24
  483. ManualWeld29.Part1 = MeshPart52
  484. ManualWeld29.part1 = MeshPart52
  485. Decal30.Name = "jevi;s"
  486. Decal30.Parent = UnionOperation24
  487. Decal30.Texture = "http://www.roblox.com/asset/?id=2637564199"
  488. Part31.Name = "HumanoidRootPart"
  489. Part31.Parent = Model13
  490. Part31.CFrame = CFrame.new(-34.5454521, 9.7056036, -145.660172, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  491. Part31.Orientation = Vector3.new(0, 180, 0)
  492. Part31.Position = Vector3.new(-34.5454521, 9.7056036, -145.660172)
  493. Part31.Rotation = Vector3.new(-180, 0, -180)
  494. Part31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  495. Part31.Transparency = 1
  496. Part31.Size = Vector3.new(2, 2, 1)
  497. Part31.Anchored = true
  498. Part31.BottomSurface = Enum.SurfaceType.Smooth
  499. Part31.BrickColor = BrickColor.new("Really black")
  500. Part31.Material = Enum.Material.SmoothPlastic
  501. Part31.TopSurface = Enum.SurfaceType.Smooth
  502. Part31.brickColor = BrickColor.new("Really black")
  503. Sound32.Name = "Chuckle"
  504. Sound32.Parent = Part31
  505. Sound32.MaxDistance = 300
  506. Sound32.EmitterSize = 35
  507. Sound32.MinDistance = 35
  508. Sound32.Pitch = 0.75
  509. Sound32.PlaybackSpeed = 0.75
  510. Sound32.SoundId = "rbxassetid://2545010175"
  511. Sound32.Volume = 5
  512. Sound33.Name = "ByeBye"
  513. Sound33.Parent = Part31
  514. Sound33.MaxDistance = 300
  515. Sound33.EmitterSize = 35
  516. Sound33.MinDistance = 35
  517. Sound33.Pitch = 0.75
  518. Sound33.PlaybackSpeed = 0.75
  519. Sound33.SoundId = "rbxassetid://2545211516"
  520. Sound33.Volume = 5
  521. Sound34.Name = "ChaosChaos"
  522. Sound34.Parent = Part31
  523. Sound34.MaxDistance = 300
  524. Sound34.EmitterSize = 35
  525. Sound34.MinDistance = 35
  526. Sound34.Pitch = 0.75
  527. Sound34.PlaybackSpeed = 0.75
  528. Sound34.SoundId = "rbxassetid://2545008459"
  529. Sound34.Volume = 5
  530. Sound35.Name = "Ha2"
  531. Sound35.Parent = Part31
  532. Sound35.MaxDistance = 300
  533. Sound35.EmitterSize = 35
  534. Sound35.MinDistance = 35
  535. Sound35.Pitch = 0.75
  536. Sound35.PlaybackSpeed = 0.75
  537. Sound35.SoundId = "rbxassetid://2606662454"
  538. Sound35.Volume = 5
  539. Sound36.Name = "Ha1"
  540. Sound36.Parent = Part31
  541. Sound36.MaxDistance = 300
  542. Sound36.EmitterSize = 35
  543. Sound36.MinDistance = 35
  544. Sound36.Pitch = 0.75
  545. Sound36.PlaybackSpeed = 0.75
  546. Sound36.SoundId = "rbxassetid://2606661976"
  547. Sound36.Volume = 5
  548. Sound37.Name = "Neo"
  549. Sound37.Parent = Part31
  550. Sound37.MaxDistance = 300
  551. Sound37.EmitterSize = 35
  552. Sound37.MinDistance = 35
  553. Sound37.Pitch = 0.75
  554. Sound37.PlaybackSpeed = 0.75
  555. Sound37.SoundId = "rbxassetid://2545018472"
  556. Sound37.Volume = 5
  557. Sound38.Name = "MeDoAnything"
  558. Sound38.Parent = Part31
  559. Sound38.MaxDistance = 300
  560. Sound38.EmitterSize = 35
  561. Sound38.MinDistance = 35
  562. Sound38.Pitch = 0.75
  563. Sound38.PlaybackSpeed = 0.75
  564. Sound38.SoundId = "rbxassetid://2544975373"
  565. Sound38.Volume = 5
  566. Sound39.Name = "OH"
  567. Sound39.Parent = Part31
  568. Sound39.MaxDistance = 300
  569. Sound39.EmitterSize = 35
  570. Sound39.MinDistance = 35
  571. Sound39.Pitch = 0.75
  572. Sound39.PlaybackSpeed = 0.75
  573. Sound39.SoundId = "rbxassetid://2545012765"
  574. Sound39.Volume = 5
  575. Sound40.Name = "Laugh"
  576. Sound40.Parent = Part31
  577. Sound40.MaxDistance = 300
  578. Sound40.EmitterSize = 35
  579. Sound40.MinDistance = 35
  580. Sound40.Pitch = 0.75
  581. Sound40.PlaybackSpeed = 0.75
  582. Sound40.SoundId = "rbxassetid://2545211765"
  583. Sound40.Volume = 5
  584. Sound41.Name = "Metamorph"
  585. Sound41.Parent = Part31
  586. Sound41.MaxDistance = 300
  587. Sound41.EmitterSize = 35
  588. Sound41.MinDistance = 35
  589. Sound41.Pitch = 0.75
  590. Sound41.PlaybackSpeed = 0.75
  591. Sound41.SoundId = "rbxassetid://2545011398"
  592. Sound41.Volume = 5
  593. Sound42.Name = "Deathed"
  594. Sound42.Parent = Part31
  595. Sound42.MaxDistance = 300
  596. Sound42.EmitterSize = 35
  597. Sound42.MinDistance = 35
  598. Sound42.Pitch = 0.75
  599. Sound42.PlaybackSpeed = 0.75
  600. Sound42.SoundId = "rbxassetid://2870495794"
  601. Sound42.Volume = 2
  602. Motor6D43.Name = "Root"
  603. Motor6D43.Parent = Part31
  604. Motor6D43.C1 = CFrame.new(3.9100647e-05, -4.17232513e-05, -2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  605. Motor6D43.Part0 = Part31
  606. Motor6D43.Part1 = UnionOperation14
  607. Motor6D43.part1 = UnionOperation14
  608. MeshPart44.Name = "Left Arm"
  609. MeshPart44.Parent = Model13
  610. MeshPart44.CFrame = CFrame.new(-33.0454521, 9.70554447, -145.660156, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  611. MeshPart44.Orientation = Vector3.new(0, 180, 0)
  612. MeshPart44.Position = Vector3.new(-33.0454521, 9.70554447, -145.660156)
  613. MeshPart44.Rotation = Vector3.new(-180, 0, -180)
  614. MeshPart44.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  615. MeshPart44.Size = Vector3.new(1.00004005, 2.00002551, 1)
  616. MeshPart44.BrickColor = BrickColor.new("Really black")
  617. MeshPart44.Material = Enum.Material.SmoothPlastic
  618. MeshPart44.brickColor = BrickColor.new("Really black")
  619. ManualWeld45.Name = "Weld"
  620. ManualWeld45.Parent = MeshPart44
  621. ManualWeld45.C1 = CFrame.new(-9.91821289e-05, 0.745017052, -6.10351563e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  622. ManualWeld45.Part0 = MeshPart44
  623. ManualWeld45.Part1 = Part69
  624. ManualWeld45.part1 = Part69
  625. MeshPart46.Name = "Right Arm"
  626. MeshPart46.Parent = Model13
  627. MeshPart46.CFrame = CFrame.new(-36.0454521, 9.70554447, -145.660156, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  628. MeshPart46.Orientation = Vector3.new(0, 180, 0)
  629. MeshPart46.Position = Vector3.new(-36.0454521, 9.70554447, -145.660156)
  630. MeshPart46.Rotation = Vector3.new(-180, 0, -180)
  631. MeshPart46.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  632. MeshPart46.Size = Vector3.new(1.00004005, 2.00002551, 1)
  633. MeshPart46.BrickColor = BrickColor.new("Really black")
  634. MeshPart46.Material = Enum.Material.SmoothPlastic
  635. MeshPart46.brickColor = BrickColor.new("Really black")
  636. ManualWeld47.Name = "Weld"
  637. ManualWeld47.Parent = MeshPart46
  638. ManualWeld47.C1 = CFrame.new(-9.91821289e-05, 0.74603796, -6.10351563e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  639. ManualWeld47.Part0 = MeshPart46
  640. ManualWeld47.Part1 = Part68
  641. ManualWeld47.part1 = Part68
  642. MeshPart48.Name = "Right Leg"
  643. MeshPart48.Parent = Model13
  644. MeshPart48.CFrame = CFrame.new(-35.0454521, 7.70554447, -145.660156, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  645. MeshPart48.Orientation = Vector3.new(0, 180, 0)
  646. MeshPart48.Position = Vector3.new(-35.0454521, 7.70554447, -145.660156)
  647. MeshPart48.Rotation = Vector3.new(-180, 0, -180)
  648. MeshPart48.Size = Vector3.new(1.00004005, 2.00002551, 1)
  649. MeshPart48.Material = Enum.Material.SmoothPlastic
  650. ManualWeld49.Name = "Weld"
  651. ManualWeld49.Parent = MeshPart48
  652. ManualWeld49.C1 = CFrame.new(-0.005859375, 0.722066402, -6.10351563e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  653. ManualWeld49.Part0 = MeshPart48
  654. ManualWeld49.Part1 = Part65
  655. ManualWeld49.part1 = Part65
  656. MeshPart50.Name = "Left Leg"
  657. MeshPart50.Parent = Model13
  658. MeshPart50.CFrame = CFrame.new(-34.0454521, 7.70554447, -145.660156, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  659. MeshPart50.Orientation = Vector3.new(0, 180, 0)
  660. MeshPart50.Position = Vector3.new(-34.0454521, 7.70554447, -145.660156)
  661. MeshPart50.Rotation = Vector3.new(-180, 0, -180)
  662. MeshPart50.Size = Vector3.new(1.00004005, 2.00002551, 1)
  663. MeshPart50.Material = Enum.Material.SmoothPlastic
  664. ManualWeld51.Name = "Weld"
  665. ManualWeld51.Parent = MeshPart50
  666. ManualWeld51.C1 = CFrame.new(-0.00918579102, 0.729078293, -6.10351563e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  667. ManualWeld51.Part0 = MeshPart50
  668. ManualWeld51.Part1 = Part63
  669. ManualWeld51.part1 = Part63
  670. MeshPart52.Name = "Hat"
  671. MeshPart52.Parent = Model13
  672. MeshPart52.CFrame = CFrame.new(-34.5454521, 12.0652342, -146.160187, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  673. MeshPart52.Orientation = Vector3.new(0, 180, 0)
  674. MeshPart52.Position = Vector3.new(-34.5454521, 12.0652342, -146.160187)
  675. MeshPart52.Rotation = Vector3.new(-180, 0, -180)
  676. MeshPart52.Color = Color3.new(0, 0.0627451, 0.690196)
  677. MeshPart52.Size = Vector3.new(2.75788856, 1.64599526, 2.41334939)
  678. MeshPart52.BrickColor = BrickColor.new("Dark blue")
  679. MeshPart52.CanCollide = false
  680. MeshPart52.Material = Enum.Material.SmoothPlastic
  681. MeshPart52.brickColor = BrickColor.new("Dark blue")
  682. ManualWeld53.Name = "Weld"
  683. ManualWeld53.Parent = MeshPart52
  684. ManualWeld53.C1 = CFrame.new(-1.04935455, 0.685663223, -1.0661087, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  685. ManualWeld53.Part0 = MeshPart52
  686. MeshPart54.Name = "Tail"
  687. MeshPart54.Parent = Model13
  688. MeshPart54.CFrame = CFrame.new(-34.5454521, 8.1354847, -147.260147, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  689. MeshPart54.Orientation = Vector3.new(0, 180, 0)
  690. MeshPart54.Position = Vector3.new(-34.5454521, 8.1354847, -147.260147)
  691. MeshPart54.Rotation = Vector3.new(-180, 0, -180)
  692. MeshPart54.Color = Color3.new(0.482353, 0.184314, 0.482353)
  693. MeshPart54.Size = Vector3.new(0.462002546, 1.40317202, 2.49498963)
  694. MeshPart54.BrickColor = BrickColor.new("Plum")
  695. MeshPart54.CanCollide = false
  696. MeshPart54.Material = Enum.Material.SmoothPlastic
  697. MeshPart54.brickColor = BrickColor.new("Plum")
  698. Weld55.Name = "Joint"
  699. Weld55.Parent = MeshPart54
  700. Weld55.C0 = CFrame.new(-3.81469727e-05, 1.57016039, -1.59996033, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  701. Weld55.Part0 = MeshPart54
  702. Weld55.Part1 = UnionOperation14
  703. Weld55.part1 = UnionOperation14
  704. Humanoid56.Parent = Model13
  705. Humanoid56.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  706. Humanoid56.Health = 6500
  707. Humanoid56.LeftLeg = MeshPart50
  708. Humanoid56.MaxHealth = 6500
  709. Humanoid56.MaxSlopeAngle = 89.900001525879
  710. Humanoid56.RightLeg = MeshPart48
  711. Humanoid56.Torso = Part31
  712. Humanoid56.maxHealth = 6500
  713. Part57.Name = "Wheelchair"
  714. Part57.Parent = Model13
  715. Part57.CFrame = CFrame.new(-34.5454521, 8.80547047, -145.660172, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  716. Part57.Orientation = Vector3.new(0, 180, 0)
  717. Part57.Position = Vector3.new(-34.5454521, 8.80547047, -145.660172)
  718. Part57.Rotation = Vector3.new(-180, 0, -180)
  719. Part57.Transparency = 1
  720. Part57.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  721. Part57.Anchored = true
  722. Part57.BottomSurface = Enum.SurfaceType.Smooth
  723. Part57.CanCollide = false
  724. Part57.Material = Enum.Material.SmoothPlastic
  725. Part57.TopSurface = Enum.SurfaceType.Smooth
  726. SpecialMesh58.Parent = Part57
  727. SpecialMesh58.MeshId = "rbxassetid://1226669573"
  728. SpecialMesh58.Scale = Vector3.new(2, 2, 2)
  729. SpecialMesh58.TextureId = "rbxassetid://1226669284"
  730. SpecialMesh58.MeshType = Enum.MeshType.FileMesh
  731. Script59.Name = "REOOFING"
  732. Script59.Parent = Model13
  733. table.insert(cors,sandbox(Script59,function()
  734. IT = Instance.new
  735. CF = CFrame.new
  736. VT = Vector3.new
  737. RAD = math.rad
  738. C3 = Color3.new
  739. UD2 = UDim2.new
  740. BRICKC = BrickColor.new
  741. ANGLES = CFrame.Angles
  742. EULER = CFrame.fromEulerAnglesXYZ
  743. COS = math.cos
  744. ACOS = math.acos
  745. SIN = math.sin
  746. ASIN = math.asin
  747. ABS = math.abs
  748. MRANDOM = math.random
  749. FLOOR = math.floor
  750.  
  751. local GYRO = nil
  752. local CHARACTER = script.Parent
  753. local HUMANOID = CHARACTER:FindFirstChildOfClass("Humanoid")
  754. local TORSO = CHARACTER.Torso
  755. local ROOT = CHARACTER.HumanoidRootPart
  756. local RIGHTARM = CHARACTER["Right Arm"]
  757. local LEFTARM = CHARACTER["Left Arm"]
  758. local RIGHTLEG = CHARACTER["Right Leg"]
  759. local LEFTLEG = CHARACTER["Left Leg"]
  760. RootJoint = ROOT["Root"]
  761. Neck = TORSO["Head"]
  762. RightShoulder = TORSO["RArm"]
  763. LeftShoulder = TORSO["LArm"]
  764. RightHip = TORSO["RLeg"]
  765. LeftHip = TORSO["LLeg"]
  766. local BODY = {}
  767. local CHAIR = CHARACTER.Wheelchair
  768. for index, CHILD in pairs(CHARACTER:GetDescendants()) do
  769. if (CHILD:IsA("BasePart") or CHILD:IsA("Decal") or CHILD:IsA("Beam")) and CHILD ~= ROOT and CHILD ~= CHAIR then
  770. table.insert(BODY,CHILD)
  771. end
  772. end
  773. local ATTACKING = false
  774. if script:FindFirstChild("Color") then
  775. script.Color.Parent = game.Lighting
  776. end
  777. local HIT = false
  778. local MUSIC = script.Music
  779. local DEAD = false
  780. MUSIC:Play()
  781. local CLUBSMESH = 2761335666
  782. local DIAMONDMESH = 1254392112
  783. local SPADEMESH = 2760895053
  784. local HEARTMESH = 105992239 --VT(3.5,3.5,3.5)
  785. local SCYTHEMESH = 455516381
  786. local SINE = 0
  787. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  788.  
  789. Debris = game:GetService("Debris")
  790.  
  791. local Effects = IT("Folder",CHARACTER)
  792.  
  793. --//=================================\\
  794. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  795. --\\=================================//
  796.  
  797. ArtificialHB = Instance.new("BindableEvent", script)
  798. ArtificialHB.Name = "ArtificialHB"
  799.  
  800. script:WaitForChild("ArtificialHB")
  801.  
  802. frame = 1/60
  803. tf = 0
  804. allowframeloss = false
  805. tossremainder = false
  806. lastframe = tick()
  807. script.ArtificialHB:Fire()
  808.  
  809. game:GetService("RunService").Heartbeat:connect(function(s, p)
  810. tf = tf + s
  811. if tf >= frame then
  812. if allowframeloss then
  813. script.ArtificialHB:Fire()
  814. lastframe = tick()
  815. else
  816. for i = 1, math.floor(tf / frame) do
  817. script.ArtificialHB:Fire()
  818. end
  819. lastframe = tick()
  820. end
  821. if tossremainder then
  822. tf = 0
  823. else
  824. tf = tf - frame * math.floor(tf / frame)
  825. end
  826. end
  827. end)
  828.  
  829. function PositiveAngle(NUMBER)
  830. if NUMBER >= 0 then
  831. NUMBER = 0
  832. end
  833. return NUMBER
  834. end
  835.  
  836. function NegativeAngle(NUMBER)
  837. if NUMBER <= 0 then
  838. NUMBER = 0
  839. end
  840. return NUMBER
  841. end
  842.  
  843. function Swait(NUMBER)
  844. if NUMBER == 0 or NUMBER == nil then
  845. ArtificialHB.Event:wait()
  846. else
  847. for i = 1, NUMBER do
  848. ArtificialHB.Event:wait()
  849. end
  850. end
  851. end
  852.  
  853. --//=================================\\
  854. --|| FUNCTIONS
  855. --\\=================================//
  856.  
  857. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  858. local NEWMESH = IT(MESH)
  859. if MESH == "SpecialMesh" then
  860. NEWMESH.MeshType = MESHTYPE
  861. if MESHID ~= "nil" and MESHID ~= "" then
  862. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  863. end
  864. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  865. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  866. end
  867. end
  868. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  869. NEWMESH.Scale = SCALE
  870. NEWMESH.Parent = PARENT
  871. return NEWMESH
  872. end
  873.  
  874. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  875. local NEWPART = IT("Part")
  876. NEWPART.formFactor = FORMFACTOR
  877. NEWPART.Reflectance = REFLECTANCE
  878. NEWPART.Transparency = TRANSPARENCY
  879. NEWPART.CanCollide = false
  880. NEWPART.Locked = true
  881. NEWPART.Anchored = true
  882. if ANCHOR == false then
  883. NEWPART.Anchored = false
  884. end
  885. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  886. NEWPART.Name = NAME
  887. NEWPART.Size = SIZE
  888. NEWPART.Position = TORSO.Position
  889. NEWPART.Material = MATERIAL
  890. NEWPART:BreakJoints()
  891. NEWPART.Parent = PARENT
  892. return NEWPART
  893. end
  894.  
  895. local function weldBetween(a, b)
  896. local weldd = IT("ManualWeld")
  897. weldd.Part0 = a
  898. weldd.Part1 = b
  899. weldd.C0 = CF()
  900. weldd.C1 = b.CFrame:inverse() * a.CFrame
  901. weldd.Parent = a
  902. return weldd
  903. end
  904.  
  905. local S = IT("Sound")
  906. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  907. local NEWSOUND = nil
  908. coroutine.resume(coroutine.create(function()
  909. NEWSOUND = S:Clone()
  910. NEWSOUND.Parent = PARENT
  911. NEWSOUND.Volume = VOLUME
  912. NEWSOUND.Pitch = PITCH
  913. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  914. NEWSOUND:play()
  915. if DOESLOOP == true then
  916. NEWSOUND.Looped = true
  917. else
  918. repeat wait(1) until NEWSOUND.Playing == false
  919. NEWSOUND:remove()
  920. end
  921. end))
  922. return NEWSOUND
  923. end
  924.  
  925. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  926. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  927. end
  928.  
  929. function ApplyDamage(Humanoid,Damage)
  930. Damage = Damage * 1
  931. if Humanoid.Health ~= 0 then
  932. Humanoid.Health = Humanoid.Health - Damage
  933. end
  934. end
  935.  
  936. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  937. for index, CHILD in pairs(workspace:GetDescendants()) do
  938. if CHILD.ClassName == "Model" and CHILD ~= CHARACTER then
  939. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  940. if HUM then
  941. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  942. if TORSO then
  943. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  944. if INSTAKILL == true then
  945. CHILD:BreakJoints()
  946. else
  947. local DMG = MRANDOM(MINDMG,MAXDMG)
  948. ApplyDamage(HUM,DMG)
  949. end
  950. if FLING > 0 then
  951. for _, c in pairs(CHILD:GetChildren()) do
  952. if c:IsA("BasePart") then
  953. local bv = Instance.new("BodyVelocity")
  954. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  955. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  956. bv.Parent = c
  957. Debris:AddItem(bv,0.05)
  958. end
  959. end
  960. end
  961. end
  962. end
  963. end
  964. end
  965. end
  966. end
  967.  
  968. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  969. function WACKYEFFECT(Table)
  970. local TYPE = (Table.EffectType or "Sphere")
  971. local SIZE = (Table.Size or VT(1,1,1))
  972. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  973. local TRANSPARENCY = (Table.Transparency or 0)
  974. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  975. local CFRAME = (Table.CFrame or TORSO.CFrame)
  976. local MOVEDIRECTION = (Table.MoveToPos or nil)
  977. local ROTATION1 = (Table.RotationX or 0)
  978. local ROTATION2 = (Table.RotationY or 0)
  979. local ROTATION3 = (Table.RotationZ or 0)
  980. local MATERIAL = (Table.Material or "Neon")
  981. local COLOR = (Table.Color or C3(1,1,1))
  982. local TIME = (Table.Time or 45)
  983. local SOUNDID = (Table.SoundID or nil)
  984. local SOUNDPITCH = (Table.SoundPitch or nil)
  985. local SOUNDVOLUME = (Table.SoundVolume or nil)
  986. coroutine.resume(coroutine.create(function()
  987. local PLAYSSOUND = false
  988. local SOUND = nil
  989. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  990. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  991. PLAYSSOUND = true
  992. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  993. end
  994. EFFECT.Color = COLOR
  995. local MSH = nil
  996. if TYPE == "Sphere" then
  997. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  998. elseif TYPE == "Block" or TYPE == "Box" then
  999. MSH = IT("BlockMesh",EFFECT)
  1000. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1001. elseif TYPE == "Wave" then
  1002. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1003. elseif TYPE == "Ring" then
  1004. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1005. elseif TYPE == "Slash" then
  1006. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1007. elseif TYPE == "Round Slash" then
  1008. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1009. elseif TYPE == "Swirl" then
  1010. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1011. elseif TYPE == "Skull" then
  1012. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1013. elseif TYPE == "Crystal" then
  1014. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1015. end
  1016. if MSH ~= nil then
  1017. local MOVESPEED = nil
  1018. if MOVEDIRECTION ~= nil then
  1019. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1020. end
  1021. local GROWTH = SIZE - ENDSIZE
  1022. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1023. if TYPE == "Block" then
  1024. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1025. else
  1026. EFFECT.CFrame = CFRAME
  1027. end
  1028. for LOOP = 1, TIME+1 do
  1029. Swait()
  1030. MSH.Scale = MSH.Scale - GROWTH/TIME
  1031. if TYPE == "Wave" then
  1032. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1033. end
  1034. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1035. if TYPE == "Block" then
  1036. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1037. else
  1038. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1039. end
  1040. if MOVEDIRECTION ~= nil then
  1041. local ORI = EFFECT.Orientation
  1042. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1043. EFFECT.Orientation = ORI
  1044. end
  1045. end
  1046. if PLAYSSOUND == false then
  1047. EFFECT:remove()
  1048. else
  1049. repeat Swait() until SOUND.Playing == false
  1050. EFFECT:remove()
  1051. end
  1052. else
  1053. if PLAYSSOUND == false then
  1054. EFFECT:remove()
  1055. else
  1056. repeat Swait() until SOUND.Playing == false
  1057. EFFECT:remove()
  1058. end
  1059. end
  1060. end))
  1061. end
  1062.  
  1063. function Transparent(CY)
  1064. for E = 1, #BODY do
  1065. if BODY[E].ClassName ~= "Beam" then
  1066. BODY[E].Transparency = CY
  1067. else
  1068. BODY[E].Transparency = NumberSequence.new(CY)
  1069. end
  1070. end
  1071. end
  1072.  
  1073. --//=================================\\
  1074. --|| CLERPING
  1075. --\\=================================//
  1076.  
  1077. function QuaternionFromCFrame(cf)
  1078. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1079. local trace = m00 + m11 + m22
  1080. if trace > 0 then
  1081. local s = math.sqrt(1 + trace)
  1082. local recip = 0.5 / s
  1083. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1084. else
  1085. local i = 0
  1086. if m11 > m00 then
  1087. i = 1
  1088. end
  1089. if m22 > (i == 0 and m00 or m11) then
  1090. i = 2
  1091. end
  1092. if i == 0 then
  1093. local s = math.sqrt(m00 - m11 - m22 + 1)
  1094. local recip = 0.5 / s
  1095. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1096. elseif i == 1 then
  1097. local s = math.sqrt(m11 - m22 - m00 + 1)
  1098. local recip = 0.5 / s
  1099. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1100. elseif i == 2 then
  1101. local s = math.sqrt(m22 - m00 - m11 + 1)
  1102. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1103. end
  1104. end
  1105. end
  1106.  
  1107. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1108. local xs, ys, zs = x + x, y + y, z + z
  1109. local wx, wy, wz = w * xs, w * ys, w * zs
  1110. local xx = x * xs
  1111. local xy = x * ys
  1112. local xz = x * zs
  1113. local yy = y * ys
  1114. local yz = y * zs
  1115. local zz = z * zs
  1116. 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))
  1117. end
  1118.  
  1119. function QuaternionSlerp(a, b, t)
  1120. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1121. local startInterp, finishInterp;
  1122. if cosTheta >= 0.0001 then
  1123. if (1 - cosTheta) > 0.0001 then
  1124. local theta = ACOS(cosTheta)
  1125. local invSinTheta = 1 / SIN(theta)
  1126. startInterp = SIN((1 - t) * theta) * invSinTheta
  1127. finishInterp = SIN(t * theta) * invSinTheta
  1128. else
  1129. startInterp = 1 - t
  1130. finishInterp = t
  1131. end
  1132. else
  1133. if (1 + cosTheta) > 0.0001 then
  1134. local theta = ACOS(-cosTheta)
  1135. local invSinTheta = 1 / SIN(theta)
  1136. startInterp = SIN((t - 1) * theta) * invSinTheta
  1137. finishInterp = SIN(t * theta) * invSinTheta
  1138. else
  1139. startInterp = t - 1
  1140. finishInterp = t
  1141. end
  1142. end
  1143. 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
  1144. end
  1145.  
  1146. function Clerp(a, b, t)
  1147. local qa = {QuaternionFromCFrame(a)}
  1148. local qb = {QuaternionFromCFrame(b)}
  1149. local ax, ay, az = a.x, a.y, a.z
  1150. local bx, by, bz = b.x, b.y, b.z
  1151. local _t = 1 - t
  1152. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1153. end
  1154.  
  1155. function ClerpBody(TABLE,PRIORITY)
  1156. if PRIORITY == "Attack" or ATTACKING == false then
  1157. RootJoint.C1 = Clerp(RootJoint.C1, TABLE[1], 0.35)
  1158. if HIT == false then
  1159. Neck.C1 = Clerp(Neck.C1, TABLE[2], 0.35)
  1160. end
  1161. RightShoulder.C1 = Clerp(RightShoulder.C1, TABLE[3], 0.35)
  1162. LeftShoulder.C1 = Clerp(LeftShoulder.C1, TABLE[4], 0.35)
  1163. RightHip.C1 = Clerp(RightHip.C1, TABLE[5], 0.35)
  1164. LeftHip.C1 = Clerp(LeftHip.C1, TABLE[6], 0.35)
  1165. end
  1166. end
  1167.  
  1168. --//=================================\\
  1169. --|| ATRIFICIAL INTELLIGENCE
  1170. --\\=================================//
  1171.  
  1172. local GoTo = function(TO)
  1173. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,TO),0.5)*CF(0,0,-HUMANOID.WalkSpeed/32))
  1174. CHARACTER:SetPrimaryPartCFrame(CF(ROOT.Position)*ANGLES(0,RAD(ROOT.Orientation.Y),0))
  1175. end
  1176.  
  1177. function TestForTarget(PRT,target)
  1178. local to = true
  1179. if PRT then
  1180. if PRT:FindFirstAncestorOfClass("Model") == target.Parent then
  1181. to = false
  1182. end
  1183. end
  1184. return to
  1185. end
  1186.  
  1187. function ChaosOrAnything()
  1188. local PLAY = {ROOT.MeDoAnything,ROOT.ChaosChaos}
  1189. PLAY[MRANDOM(1,2)]:Play()
  1190. end
  1191.  
  1192. function OhOhOh(TARGET)
  1193. local FOE = TARGET.Torso
  1194. if FOE then
  1195. ATTACKING = true
  1196. ChaosOrAnything()
  1197. local E = 0
  1198. repeat
  1199. Swait()
  1200. E = E + 1
  1201. ClerpBody({
  1202. CF(0,-E/25,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1203. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
  1204. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  1205. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  1206. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1207. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1208. },"Attack")
  1209. until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
  1210. for i = 1, MRANDOM(3,5) do
  1211. local TO = FOE.Position
  1212. local MOVETO = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,15)
  1213. CHARACTER:SetPrimaryPartCFrame(MOVETO)
  1214. Transparent(0)
  1215. ROOT.OH:Play()
  1216. for i = 1, 5 do
  1217. ClerpBody({
  1218. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1219. CF(0,-0.5,0)*ANGLES(RAD(5),RAD(0),RAD(0))*CF(0,-1,0),
  1220. CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(-35))*CF(-1.5,-0.5,0),
  1221. CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(35))*CF(1.5,-0.5,0),
  1222. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1223. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1224. },"Attack")
  1225. end
  1226. for i = 1, 3 do
  1227. local ANGLE = (50-(25*i))/1.25
  1228. coroutine.resume(coroutine.create(function()
  1229. local TOFIREFROM = ROOT.CFrame*ANGLES(0,RAD(ANGLE),0)
  1230. local CLUB = CreatePart(3, workspace, "Granite", 0, 0, TORSO.BrickColor, "Spade", VT(1.5,0.5,1.5), false)
  1231. CreateMesh("SpecialMesh", CLUB, "FileMesh", CLUBSMESH, "", VT(0.75,0.75,0.75), VT(0,0,0))
  1232. CLUB.CFrame = TOFIREFROM
  1233. local GO = IT("BodyVelocity",CLUB)
  1234. GO.Velocity = CLUB.CFrame.lookVector*65
  1235. Debris:AddItem(CLUB,1)
  1236. CLUB.Touched:Connect(function(HIT)
  1237. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1238. CLUB:Remove()
  1239. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1240. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  1241. end
  1242. end)
  1243. end))
  1244. end
  1245. for i = 1, 35 do
  1246. Swait()
  1247. ClerpBody({
  1248. CF(0,-i/350,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1249. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
  1250. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  1251. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  1252. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1253. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1254. },"Attack")
  1255. Transparent(i/35)
  1256. end
  1257. if TARGET.Health <= 0 or DEAD == true then
  1258. break
  1259. end
  1260. end
  1261. ATTACKING = false
  1262. for i = 1, 25 do
  1263. Swait()
  1264. Transparent((25-i)/25)
  1265. end
  1266. Transparent(0)
  1267. end
  1268. end
  1269. function Diamonds(TARGET)
  1270. local FOE = TARGET.Torso
  1271. if FOE then
  1272. ChaosOrAnything()
  1273. ATTACKING = true
  1274. coroutine.resume(coroutine.create(function()
  1275. repeat
  1276. Swait()
  1277. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(VT(ROOT.Position.X,FOE.Position.Y,ROOT.Position.Z),FOE.Position),0.2))
  1278. ClerpBody({
  1279. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1280. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1281. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1282. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1283. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1284. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1285. },"Attack")
  1286. until ATTACKING == false
  1287. end))
  1288. for i = 1, MRANDOM(25,35) do
  1289. coroutine.resume(coroutine.create(function()
  1290. local DIAMOND = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(0.5,0.5,1.5), true)
  1291. CreateMesh("SpecialMesh", DIAMOND, "FileMesh", DIAMONDMESH, "", VT(0.1, 0.05, 0.15), VT(0,0,0))
  1292. DIAMOND.CFrame = ROOT.CFrame*CF(MRANDOM(-150,150)/20,0,-1.5)
  1293. for i = 1, 15 do
  1294. Swait()
  1295. DIAMOND.Transparency = (15-i)/15
  1296. DIAMOND.CFrame = DIAMOND.CFrame*CF(0,0,-(15-i)/35)
  1297. end
  1298. DIAMOND.Anchored = false
  1299. DIAMOND.Transparency = 0
  1300. local GO = IT("BodyVelocity",DIAMOND)
  1301. GO.Velocity = DIAMOND.CFrame.lookVector*15
  1302. Debris:AddItem(DIAMOND,1)
  1303. DIAMOND.Touched:Connect(function(HIT)
  1304. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1305. DIAMOND:Remove()
  1306. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1307. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
  1308. end
  1309. end)
  1310. for i = 1, 5 do
  1311. Swait()
  1312. GO.Velocity = DIAMOND.CFrame.lookVector*(15*i)
  1313. end
  1314. end))
  1315. if TARGET.Health <= 0 or DEAD == true then
  1316. break
  1317. end
  1318. Swait(7)
  1319. end
  1320. ATTACKING = false
  1321. end
  1322. end
  1323. function RingAround(TARGET)
  1324. local FOE = TARGET.Torso
  1325. if FOE then
  1326. ATTACKING = true
  1327. ChaosOrAnything()
  1328. local E = 0
  1329. repeat
  1330. Swait()
  1331. E = E + 1
  1332. ClerpBody({
  1333. CF(0,(-E/25)+0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1334. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1335. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1336. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1337. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1338. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1339. },"Attack")
  1340. until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
  1341. coroutine.resume(coroutine.create(function()
  1342. repeat
  1343. Swait()
  1344. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
  1345. ClerpBody({
  1346. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1347. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1348. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1349. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1350. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1351. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1352. },"Attack")
  1353. until ATTACKING == false
  1354. end))
  1355. for i = 1, MRANDOM(2,4) do
  1356. local SPAWN = CF(FOE.Position)*ANGLES(0,RAD(MRANDOM(0,359)),0)
  1357. local SPADES = {}
  1358. for i = 1, 10 do
  1359. local SPADE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Spade", VT(2,2,2), true)
  1360. CreateMesh("SpecialMesh", SPADE, "FileMesh", SPADEMESH, "", VT(1.2,1.2,1.2), VT(0,0,0))
  1361. SPADE.CFrame = SPAWN*ANGLES(0,RAD(36*i),0)*CF(0,0,35)
  1362. SPADE.Touched:Connect(function(HIT)
  1363. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1364. SPADE:Remove()
  1365. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1366. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  1367. end
  1368. end)
  1369. table.insert(SPADES,SPADE)
  1370. end
  1371. for i = 1, 25 do
  1372. for E = 1, #SPADES do
  1373. SPADES[E].CFrame = SPADES[E].CFrame * CF(0,0,-0.5)
  1374. SPADES[E].Transparency = (10-i)/9.5
  1375. end
  1376. Swait()
  1377. end
  1378. wait(0.2)
  1379. for E = 1, #SPADES do
  1380. coroutine.resume(coroutine.create(function()
  1381. local SPADE = SPADES[E]
  1382. for i = 1, 15 do
  1383. SPADE.CFrame = SPADE.CFrame*CF(0,0,(15-i)/15)
  1384. Swait()
  1385. end
  1386. SPADE.Anchored = false
  1387. local GO = IT("BodyVelocity",SPADE)
  1388. GO.Velocity = SPADE.CFrame.lookVector*5
  1389. GO.MaxForce = GO.MaxForce * 100
  1390. Debris:AddItem(SPADE,1)
  1391. SPADE.Touched:Connect(function(HIT)
  1392. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1393. SPADE:Remove()
  1394. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1395. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 2.5
  1396. end
  1397. end)
  1398. for i = 1, 15 do
  1399. Swait()
  1400. GO.Velocity = SPADE.CFrame.lookVector*(5*i)
  1401. end
  1402. end))
  1403. Swait(5)
  1404. end
  1405. if TARGET.Health <= 0 or DEAD == true then
  1406. break
  1407. end
  1408. end
  1409. wait(0.5)
  1410. ATTACKING = false
  1411. end
  1412. end
  1413. function HeartsGoesOut(TARGET)
  1414. local FOE = TARGET.Torso
  1415. if FOE then
  1416. ChaosOrAnything()
  1417. ATTACKING = true
  1418. coroutine.resume(coroutine.create(function()
  1419. repeat
  1420. Swait()
  1421. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
  1422. ClerpBody({
  1423. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1424. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1425. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1426. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1427. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1428. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1429. },"Attack")
  1430. until ATTACKING == false
  1431. end))
  1432. for i = 1, MRANDOM(5,7) do
  1433. local SPAWN = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,35)
  1434. SPAWN = CF(SPAWN.p,FOE.Position+VT(0,1,0))
  1435. coroutine.resume(coroutine.create(function()
  1436. local HEARTS = {}
  1437. for i = 1, 4 do
  1438. local HEART = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Heart", VT(2,2,2), true)
  1439. CreateMesh("SpecialMesh", HEART, "FileMesh", HEARTMESH, "", VT(3.5,3.5,3.5), VT(0,0,0))
  1440. HEART.CFrame = SPAWN*ANGLES(0,RAD((360/4)*i),0)
  1441. HEART.Touched:Connect(function(HIT)
  1442. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1443. HEART:Remove()
  1444. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1445. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
  1446. end
  1447. end)
  1448. table.insert(HEARTS,HEART)
  1449. end
  1450. for i = 1, 10 do
  1451. Swait()
  1452. for E = 1, #HEARTS do
  1453. HEARTS[E].CFrame = HEARTS[E].CFrame*CF(0,0,-(10-i)/10)
  1454. HEARTS[E].Transparency = (10-i)/9.5
  1455. end
  1456. end
  1457. local DIST = (HEARTS[1].Position - SPAWN.p).Magnitude
  1458. for i = 1, 100 do
  1459. Swait()
  1460. SPAWN = SPAWN*CF(0,0,-1)
  1461. for E = 1, #HEARTS do
  1462. HEARTS[E].Transparency = 0
  1463. HEARTS[E].CFrame = SPAWN*ANGLES(0,RAD(((360/4)*E)+(i*5)),0)*CF(0,0,-DIST)
  1464. end
  1465. end
  1466. for E = 1, #HEARTS do
  1467. HEARTS[E]:Destroy()
  1468. end
  1469. end))
  1470. Swait(35)
  1471. if TARGET.Health <= 0 or DEAD == true then
  1472. break
  1473. end
  1474. end
  1475. wait(0.5)
  1476. ATTACKING = false
  1477. end
  1478. end
  1479. function Meta(TARGET)
  1480. local FOE = TARGET.Torso
  1481. if FOE then
  1482. ROOT.Metamorph:Play()
  1483. ATTACKING = true
  1484. local SCYTHE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(3,0,3), true)
  1485. CreateMesh("SpecialMesh", SCYTHE, "FileMesh", SCYTHEMESH, "", VT(0.01, 0.01, 0.01), VT(0,0,0))
  1486. SCYTHE.CFrame = TORSO.CFrame
  1487. for i = 1, 3 do
  1488. for i = 1, 15 do
  1489. Swait()
  1490. ClerpBody({
  1491. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1492. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1493. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1494. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1495. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1496. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1497. },"Attack")
  1498. Transparent(i/15)
  1499. SCYTHE.Transparency = (15-i)/15
  1500. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  1501. end
  1502. for i = 1, 15 do
  1503. Swait()
  1504. ClerpBody({
  1505. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1506. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1507. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1508. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1509. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1510. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1511. },"Attack")
  1512. Transparent((15-i)/15)
  1513. SCYTHE.Transparency = i/15
  1514. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  1515. end
  1516. end
  1517. for i = 1, 15 do
  1518. Swait()
  1519. ClerpBody({
  1520. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1521. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1522. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1523. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1524. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1525. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1526. },"Attack")
  1527. Transparent(i/15)
  1528. SCYTHE.Transparency = (15-i)/15
  1529. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  1530. end
  1531. Transparent(1)
  1532. SCYTHE.Transparency = 0
  1533. local SCYTHES = {SCYTHE}
  1534. for i = 1, 3 do
  1535. local COPY = SCYTHE:Clone()
  1536. COPY.Parent = workspace
  1537. COPY.CFrame = SCYTHE.CFrame
  1538. table.insert(SCYTHES,COPY)
  1539. end
  1540. for E = 1, #SCYTHES do
  1541. local DELAY = false
  1542. SCYTHES[E].Touched:Connect(function(HIT)
  1543. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER and DELAY == false then
  1544. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 3.5
  1545. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1546. DELAY = true
  1547. wait(1)
  1548. DELAY = false
  1549. end
  1550. end)
  1551. end
  1552. local NOW = ROOT.CFrame
  1553. CHARACTER:SetPrimaryPartCFrame(CF(0,5000,0))
  1554. HUMANOID.Parent = nil
  1555. local Y = FOE.Position.Y
  1556. for i = 1, 750 do
  1557. Swait()
  1558. for E = 1, #SCYTHES do
  1559. SCYTHES[E].CFrame = CF(Clerp(SCYTHES[E].CFrame,CF(FOE.Position.X,Y,FOE.Position.Z)*ANGLES(0,RAD((360/4*E)+SINE),0)*CF(0,0,45*SIN(i/50)),0.1).p)*ANGLES(0,RAD(SINE*5),0)
  1560. end
  1561. if TARGET.Health <= 0 or DEAD == true then
  1562. break
  1563. end
  1564. end
  1565. for i = 1, 25 do
  1566. for E = 1, #SCYTHES do
  1567. SCYTHES[E].CFrame = CF(Clerp(SCYTHES[E].CFrame,NOW,0.15).p)*ANGLES(0,RAD(SINE*5),0)
  1568. end
  1569. Swait()
  1570. end
  1571. CHARACTER:SetPrimaryPartCFrame(NOW)
  1572. HUMANOID.Parent = CHARACTER
  1573. for i = 1, 15 do
  1574. Swait()
  1575. ClerpBody({
  1576. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1577. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1578. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(35+5*COS(SINE/12)))*CF(-1.5,-0.5,0),
  1579. CF(0,0.5,0)*ANGLES(RAD(-120+15*COS(SINE/12)),RAD(0),RAD(-35-5*COS(SINE/12)))*CF(1.5,-0.5,0),
  1580. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1581. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1582. },"Attack")
  1583. Transparent((15-i)/15)
  1584. for E = 1, #SCYTHES do
  1585. SCYTHES[E].CFrame = CF(ROOT.Position)*ANGLES(0,RAD(SINE*5),0)
  1586. SCYTHES[E].Transparency = i/15
  1587. end
  1588. end
  1589. for E = 1, #SCYTHES do
  1590. SCYTHES[E]:Remove()
  1591. end
  1592. ATTACKING = false
  1593. end
  1594. end
  1595. local ATTACKS = {OhOhOh,Diamonds,RingAround,HeartsGoesOut,Meta}
  1596.  
  1597. --//=================================\\
  1598. --|| WRAP
  1599. --\\=================================//
  1600.  
  1601. function BEGINAI()
  1602. local TORSOROT = 0
  1603. CHARACTER:SetPrimaryPartCFrame(ROOT.CFrame*CF(0,1,0))
  1604. coroutine.resume(coroutine.create(function()
  1605. game:GetService("RunService").Heartbeat:connect(function()
  1606. local DEFAULTS = {
  1607. CF(0,0,0),
  1608. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0,-1,0),
  1609. CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  1610. CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  1611. CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0),
  1612. CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0),
  1613. }
  1614. SINE = SINE + 1
  1615. end)
  1616. while true do
  1617. TORSOROT = 35
  1618. for i = 1, 5 do
  1619. ClerpBody({
  1620. CF(0,0,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
  1621. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(-20),RAD(0))*CF(0,-1,0),
  1622. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  1623. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  1624. CF(-0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,1),
  1625. CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
  1626. },nil)
  1627. end
  1628. for i = 1, 15 do
  1629. Swait()
  1630. ClerpBody({
  1631. CF(0,0.3,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
  1632. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(-35),RAD(0))*CF(0,-1,0),
  1633. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  1634. CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.25,0),
  1635. CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1636. CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
  1637. },nil)
  1638. if DEAD == true then
  1639. break
  1640. end
  1641. end
  1642. if DEAD == true then
  1643. break
  1644. end
  1645. TORSOROT = -35
  1646. for i = 1, 5 do
  1647. ClerpBody({
  1648. CF(0,0,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
  1649. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(20),RAD(0))*CF(0,-1,0),
  1650. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  1651. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  1652. CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,0.9,0.2),
  1653. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,0.9,1),
  1654. },nil)
  1655. end
  1656. for i = 1, 15 do
  1657. Swait()
  1658. ClerpBody({
  1659. CF(0,0.3,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
  1660. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(35),RAD(0))*CF(0,-1,0),
  1661. CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.25,0),
  1662. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  1663. CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.2),
  1664. CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0.5),
  1665. },nil)
  1666. if DEAD == true then
  1667. break
  1668. end
  1669. end
  1670. if DEAD == true then
  1671. break
  1672. end
  1673. end
  1674. end))
  1675. local TARGET = nil
  1676. local TARGETHUM = nil
  1677. coroutine.resume(coroutine.create(function()
  1678. --local h = HUMANOID
  1679. local pathService = game:GetService("PathfindingService")
  1680. local goToPos = function(loc,target)
  1681. local distance = (loc-ROOT.Position).magnitude
  1682. local start = tick()
  1683. while distance > 7 do
  1684. if target then
  1685. if target.Torso and ATTACKING == false then
  1686. GoTo(loc+VT(0,4.5,0))
  1687. Swait()
  1688. local RAYTEST = Raycast(ROOT.Position,CF(ROOT.Position,target.Torso.Position).lookVector,500,CHARACTER)
  1689. if distance <= 7 or TARGETHUM ~= target or TestForTarget(RAYTEST,target) == false then -- Something may have gone wrong. Just break.
  1690. break
  1691. end
  1692. distance = (loc+VT(0,4.5,0)-ROOT.Position).magnitude
  1693. else
  1694. break
  1695. end
  1696. else
  1697. break
  1698. end
  1699. end
  1700. end
  1701.  
  1702. while true do
  1703. if DEAD == true then
  1704. break
  1705. end
  1706. Swait()
  1707. if TARGETHUM then
  1708. local target = TARGETHUM
  1709. if TARGETHUM.Torso then
  1710. local RAYTEST = Raycast(ROOT.Position,CF(ROOT.Position,VT(target.Torso.Position.X,ROOT.Position.Y,target.Torso.Position.Z)).lookVector,500,CHARACTER)
  1711. if TestForTarget(RAYTEST,target) == true then
  1712. local path = pathService:ComputeRawPathAsync(ROOT.Position,TARGETHUM.Torso.Position,5000)
  1713. local didBreak = false
  1714. local targetStart
  1715. if target and ROOT and target.Torso then
  1716. targetStart = target.Torso.Position
  1717. local previous = ROOT.Position
  1718. local points = path:GetWaypoints()
  1719. local s = #points > 1 and 2 or 1
  1720. for i = s,#points do
  1721. if GYRO == nil then
  1722. local point = points[i].Position
  1723. if didBreak then
  1724. break
  1725. end
  1726. if target and target.Torso and target.Health > 0 and ATTACKING == false then
  1727. if (ROOT.Position - point).Magnitude > 1 and TARGETHUM == target then
  1728. local pos = previous:lerp(point,0.65)
  1729. goToPos(previous:lerp(point,0.65),target)
  1730. previous = point
  1731. end
  1732. else
  1733. didBreak = true
  1734. break
  1735. end
  1736. end
  1737. end
  1738. end
  1739. if not didBreak and targetStart then
  1740. goToPos(targetStart)
  1741. end
  1742. else
  1743. if ATTACKING == false then
  1744. GoTo(target.Torso.Position+VT(0,2.5,0))
  1745. end
  1746. end
  1747. end
  1748. end
  1749. end
  1750. end))
  1751. HUMANOID.Died:Connect(function()
  1752. if DEAD == false then
  1753. DEAD = true
  1754. repeat
  1755. Swait()
  1756. until ATTACKING == false
  1757. CHAIR.Transparency = 0
  1758. Transparent(0)
  1759. script.Music:Stop()
  1760. ROOT.Deathed:Play()
  1761. repeat
  1762. Swait()
  1763. ClerpBody({
  1764. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1765. CF(0,-0.5,0)*ANGLES(RAD(35),RAD(0),RAD(0))*CF(0,-1,0),
  1766. CF(0,0.5,0)*ANGLES(RAD(-35),RAD(0),RAD(5))*CF(-1.5,-0.3,0),
  1767. CF(0,0.5,0)*ANGLES(RAD(-35),RAD(0),RAD(-5))*CF(1.5,-0.3,0),
  1768. CF(-0,0,0)*ANGLES(RAD(-15),RAD(0),RAD(0))*CF(-0.5,1,1),
  1769. CF(0,0,0)*ANGLES(RAD(-15),RAD(0),RAD(0))*CF(0.5,1,1),
  1770. },nil)
  1771. until ROOT.Deathed.Playing == false
  1772. CHARACTER.Head.Nametag:Remove()
  1773. TORSO.Neck:Remove()
  1774. TORSO.Die:Play()
  1775. ROOT:Remove()
  1776. CHARACTER:BreakJoints()
  1777. CHAIR:Destroy()
  1778. Debris:AddItem(CHARACTER,5)
  1779. end
  1780. end)
  1781. HUMANOID.HealthChanged:Connect(function()
  1782. if HIT == false and DEAD == false then
  1783. HIT = true
  1784. local HA = {ROOT.Ha1,ROOT.Ha2}
  1785. HA[MRANDOM(1,2)]:Play()
  1786. for i = 1, 100 do
  1787. Swait()
  1788. if ATTACKING == true then
  1789. Neck.C1 = Clerp(Neck.C1, CF(0,-2.5,0)*ANGLES(0,0,RAD(65*SIN(i/6)))*CF(0,-1,0), 0.2)
  1790. else
  1791. Neck.C1 = Clerp(Neck.C1, CF(0,-2.5,0)*ANGLES(0,0,RAD(65*SIN(i/6)))*ANGLES(0,RAD(-TORSOROT),0)*CF(0,-1,0), 0.7)
  1792. end
  1793. if DEAD == true then
  1794. break
  1795. end
  1796. end
  1797. HIT = false
  1798. end
  1799. end)
  1800. while true do
  1801. if DEAD == true then
  1802. break
  1803. end
  1804. local TARGETVARIANTS = {}
  1805. TARGET = nil
  1806. for index, CHILD in pairs(workspace:GetChildren()) do
  1807. if CHILD ~= CHARACTER and CHILD:FindFirstChild("Slain") == nil then
  1808. local HUMAN = CHILD:FindFirstChildOfClass("Humanoid")
  1809. if HUMAN then
  1810. if HUMAN.Health > 0 then
  1811. if HUMAN.Torso then
  1812. local DISTANCE = (HUMAN.Torso.Position - ROOT.Position).Magnitude
  1813. table.insert(TARGETVARIANTS,{CHILD,DISTANCE})
  1814. end
  1815. end
  1816. end
  1817. end
  1818. end
  1819. local DIST = math.huge
  1820. for E = 1, #TARGETVARIANTS do
  1821. local PLAYER = TARGETVARIANTS[E]
  1822. local CHARACTER = PLAYER[1]
  1823. local DISTANCE = PLAYER[2]
  1824. if DISTANCE < DIST then
  1825. DIST = DISTANCE
  1826. TARGET = CHARACTER
  1827. end
  1828. end
  1829. if TARGET and TARGET:FindFirstChild("HumanoidRootPart") then
  1830. TARGETHUM = TARGET:FindFirstChildOfClass("Humanoid")
  1831. --[[HUMANOID.WalkSpeed = 22
  1832. HUMANOID.JumpPower = 125]]
  1833. local RAY = Raycast(ROOT.Position,CF(ROOT.Position,TARGETHUM.Torso.Position).lookVector,25,CHARACTER)
  1834. if DIST <= 25 and TestForTarget(RAY,TARGETHUM) == false and (TARGETHUM.Torso.Position.Y > ROOT.Position.Y-1 or TARGETHUM.Torso.Position.Y < ROOT.Position.Y+2) then
  1835. ATTACKS[MRANDOM(1,#ATTACKS)](TARGETHUM)
  1836. end
  1837. else
  1838. TARGETHUM = nil
  1839. end
  1840. wait()
  1841. end
  1842. end
  1843.  
  1844. BEGINAI()
  1845. end))
  1846. Sound60.Name = "Music"
  1847. Sound60.Parent = Script59
  1848. Sound60.Looped = true
  1849. Sound60.SoundId = "rbxassetid://3037498939"
  1850. Sound60.Volume = 2.5
  1851. Pants61.Name = "Pants"
  1852. Pants61.Parent = Model13
  1853. Pants61.PantsTemplate = "rbxassetid://2544611861"
  1854. Shirt62.Name = "Shirt"
  1855. Shirt62.Parent = Model13
  1856. Shirt62.ShirtTemplate = "rbxassetid://2616432362"
  1857. Part63.Name = "glove"
  1858. Part63.Parent = Model13
  1859. Part63.CFrame = CFrame.new(-34.0546379, 6.97646618, -145.660217, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1860. Part63.Orientation = Vector3.new(0, 180, 0)
  1861. Part63.Position = Vector3.new(-34.0546379, 6.97646618, -145.660217)
  1862. Part63.Rotation = Vector3.new(-180, 0, -180)
  1863. Part63.Color = Color3.new(0, 1, 0)
  1864. Part63.Size = Vector3.new(1.03999996, 0.580000877, 1.05999994)
  1865. Part63.BottomSurface = Enum.SurfaceType.Smooth
  1866. Part63.BrickColor = BrickColor.new("Lime green")
  1867. Part63.CanCollide = false
  1868. Part63.Material = Enum.Material.SmoothPlastic
  1869. Part63.TopSurface = Enum.SurfaceType.Smooth
  1870. Part63.brickColor = BrickColor.new("Lime green")
  1871. ManualWeld64.Name = "Weld"
  1872. ManualWeld64.Parent = Part63
  1873. ManualWeld64.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1874. ManualWeld64.C1 = CFrame.new(-0.038772583, -0.728271484, -0.021697998, 0.999999344, 0, 0.00119400048, -0.00119400059, 0, 0.999999344, 0, -1, 0)
  1875. ManualWeld64.Part0 = Part63
  1876. Part65.Name = "glove"
  1877. Part65.Parent = Model13
  1878. Part65.CFrame = CFrame.new(-35.0513115, 6.98347807, -145.660217, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1879. Part65.Orientation = Vector3.new(0, 180, 0)
  1880. Part65.Position = Vector3.new(-35.0513115, 6.98347807, -145.660217)
  1881. Part65.Rotation = Vector3.new(-180, 0, -180)
  1882. Part65.Color = Color3.new(0, 1, 0)
  1883. Part65.Size = Vector3.new(1.03999996, 0.580000877, 1.05999994)
  1884. Part65.BottomSurface = Enum.SurfaceType.Smooth
  1885. Part65.BrickColor = BrickColor.new("Lime green")
  1886. Part65.CanCollide = false
  1887. Part65.Material = Enum.Material.SmoothPlastic
  1888. Part65.TopSurface = Enum.SurfaceType.Smooth
  1889. Part65.brickColor = BrickColor.new("Lime green")
  1890. ManualWeld66.Name = "Weld"
  1891. ManualWeld66.Parent = Part65
  1892. ManualWeld66.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1893. ManualWeld66.C1 = CFrame.new(0.243663788, -0.727088928, 0.129016876, 0.999999344, 0, 0.00119400048, -0.00119400059, 0, 0.999999344, 0, -1, 0)
  1894. ManualWeld66.Part0 = Part65
  1895. MeshPart67.Parent = Model13
  1896. MeshPart67.CFrame = CFrame.new(-34.5402412, 8.90706825, -146.075623, 1, 0, -1.6e-05, 0, -1, 0, -1.6e-05, 0, -1)
  1897. MeshPart67.Orientation = Vector3.new(0, -180, 180)
  1898. MeshPart67.Position = Vector3.new(-34.5402412, 8.90706825, -146.075623)
  1899. MeshPart67.Rotation = Vector3.new(-180, 0, 0)
  1900. MeshPart67.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1901. MeshPart67.Size = Vector3.new(4.84192657, 4.30299711, 2.55726647)
  1902. MeshPart67.BrickColor = BrickColor.new("Really black")
  1903. MeshPart67.CanCollide = false
  1904. MeshPart67.Material = Enum.Material.SmoothPlastic
  1905. MeshPart67.brickColor = BrickColor.new("Really black")
  1906. Part68.Name = "glove"
  1907. Part68.Parent = Model13
  1908. Part68.CFrame = CFrame.new(-36.0455513, 8.95950699, -145.660217, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1909. Part68.Orientation = Vector3.new(0, 180, 0)
  1910. Part68.Position = Vector3.new(-36.0455513, 8.95950699, -145.660217)
  1911. Part68.Rotation = Vector3.new(-180, 0, -180)
  1912. Part68.Color = Color3.new(0.239216, 0.0823529, 0.521569)
  1913. Part68.Size = Vector3.new(1.03999996, 0.580000877, 1.05999994)
  1914. Part68.BottomSurface = Enum.SurfaceType.Smooth
  1915. Part68.BrickColor = BrickColor.new("Dark indigo")
  1916. Part68.CanCollide = false
  1917. Part68.Material = Enum.Material.SmoothPlastic
  1918. Part68.TopSurface = Enum.SurfaceType.Smooth
  1919. Part68.brickColor = BrickColor.new("Dark indigo")
  1920. Part69.Name = "glove"
  1921. Part69.Parent = Model13
  1922. Part69.CFrame = CFrame.new(-33.0455513, 8.96052742, -145.660217, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1923. Part69.Orientation = Vector3.new(0, 180, 0)
  1924. Part69.Position = Vector3.new(-33.0455513, 8.96052742, -145.660217)
  1925. Part69.Rotation = Vector3.new(-180, 0, -180)
  1926. Part69.Color = Color3.new(0.239216, 0.0823529, 0.521569)
  1927. Part69.Size = Vector3.new(1.03999996, 0.570000887, 1.05999994)
  1928. Part69.BottomSurface = Enum.SurfaceType.Smooth
  1929. Part69.BrickColor = BrickColor.new("Dark indigo")
  1930. Part69.CanCollide = false
  1931. Part69.Material = Enum.Material.SmoothPlastic
  1932. Part69.TopSurface = Enum.SurfaceType.Smooth
  1933. Part69.brickColor = BrickColor.new("Dark indigo")
  1934. Part70.Parent = Model13
  1935. Part70.CFrame = CFrame.new(-34.514164, 10.4859638, -145.617218, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  1936. Part70.Orientation = Vector3.new(0, 180, 90)
  1937. Part70.Position = Vector3.new(-34.514164, 10.4859638, -145.617218)
  1938. Part70.Rotation = Vector3.new(-180, 0, -90)
  1939. Part70.Color = Color3.new(1, 1, 0)
  1940. Part70.Size = Vector3.new(0.460000217, 3.22999787, 1.75999928)
  1941. Part70.BottomSurface = Enum.SurfaceType.Smooth
  1942. Part70.BrickColor = BrickColor.new("New Yeller")
  1943. Part70.CanCollide = false
  1944. Part70.Material = Enum.Material.SmoothPlastic
  1945. Part70.TopSurface = Enum.SurfaceType.Smooth
  1946. Part70.brickColor = BrickColor.new("New Yeller")
  1947. Part70.Shape = Enum.PartType.Cylinder
  1948. Part71.Parent = Model13
  1949. Part71.CFrame = CFrame.new(-34.5605507, 9.52174854, -145.230133, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1950. Part71.Orientation = Vector3.new(0, 180, 0)
  1951. Part71.Position = Vector3.new(-34.5605507, 9.52174854, -145.230133)
  1952. Part71.Rotation = Vector3.new(-180, 0, -180)
  1953. Part71.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1954. Part71.Size = Vector3.new(0.690000296, 0.0999999568, 0.180000022)
  1955. Part71.BottomSurface = Enum.SurfaceType.Smooth
  1956. Part71.BrickColor = BrickColor.new("Really black")
  1957. Part71.CanCollide = false
  1958. Part71.Material = Enum.Material.SmoothPlastic
  1959. Part71.TopSurface = Enum.SurfaceType.Smooth
  1960. Part71.brickColor = BrickColor.new("Really black")
  1961. ManualWeld72.Name = "Weld"
  1962. ManualWeld72.Parent = Part71
  1963. ManualWeld72.C1 = CFrame.new(-0.96421504, -0.0463867188, -0.387084961, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  1964. ManualWeld72.Part0 = Part71
  1965. ManualWeld72.Part1 = Part70
  1966. ManualWeld72.part1 = Part70
  1967. Part73.Parent = Model13
  1968. Part73.CFrame = CFrame.new(-34.5605507, 10.0210896, -145.230133, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1969. Part73.Orientation = Vector3.new(0, 180, 0)
  1970. Part73.Position = Vector3.new(-34.5605507, 10.0210896, -145.230133)
  1971. Part73.Rotation = Vector3.new(-180, 0, -180)
  1972. Part73.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1973. Part73.Size = Vector3.new(0.690000296, 0.0999999568, 0.180000022)
  1974. Part73.BottomSurface = Enum.SurfaceType.Smooth
  1975. Part73.BrickColor = BrickColor.new("Really black")
  1976. Part73.CanCollide = false
  1977. Part73.Material = Enum.Material.SmoothPlastic
  1978. Part73.TopSurface = Enum.SurfaceType.Smooth
  1979. Part73.brickColor = BrickColor.new("Really black")
  1980. ManualWeld74.Name = "Weld"
  1981. ManualWeld74.Parent = Part73
  1982. ManualWeld74.C1 = CFrame.new(-0.464874744, -0.0463867188, -0.387084961, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  1983. ManualWeld74.Part0 = Part73
  1984. ManualWeld74.Part1 = Part70
  1985. ManualWeld74.part1 = Part70
  1986. Part75.Parent = Model13
  1987. Part75.CFrame = CFrame.new(-34.5455513, 9.73052883, -145.230133, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1988. Part75.Orientation = Vector3.new(0, 180, 0)
  1989. Part75.Position = Vector3.new(-34.5455513, 9.73052883, -145.230133)
  1990. Part75.Rotation = Vector3.new(-180, 0, -180)
  1991. Part75.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1992. Part75.Size = Vector3.new(0.160000592, 1.9599998, 0.180000022)
  1993. Part75.BottomSurface = Enum.SurfaceType.Smooth
  1994. Part75.BrickColor = BrickColor.new("Really black")
  1995. Part75.CanCollide = false
  1996. Part75.Material = Enum.Material.SmoothPlastic
  1997. Part75.TopSurface = Enum.SurfaceType.Smooth
  1998. Part75.brickColor = BrickColor.new("Really black")
  1999. ManualWeld76.Name = "Weld"
  2000. ManualWeld76.Parent = Part75
  2001. ManualWeld76.C1 = CFrame.new(-0.75543499, -0.0313873291, -0.387084961, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  2002. ManualWeld76.Part0 = Part75
  2003. ManualWeld76.Part1 = Part70
  2004. ManualWeld76.part1 = Part70
  2005. Part77.Name = "glove"
  2006. Part77.Parent = Model13
  2007. Part77.CFrame = CFrame.new(-34.0546379, 8.43486023, -145.660217, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2008. Part77.Orientation = Vector3.new(0, 180, 0)
  2009. Part77.Position = Vector3.new(-34.0546379, 8.43486023, -145.660217)
  2010. Part77.Rotation = Vector3.new(-180, 0, -180)
  2011. Part77.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2012. Part77.Size = Vector3.new(1.03999996, 0.580000877, 1.05999994)
  2013. Part77.BottomSurface = Enum.SurfaceType.Smooth
  2014. Part77.BrickColor = BrickColor.new("Really black")
  2015. Part77.CanCollide = false
  2016. Part77.Material = Enum.Material.SmoothPlastic
  2017. Part77.TopSurface = Enum.SurfaceType.Smooth
  2018. Part77.brickColor = BrickColor.new("Really black")
  2019. ManualWeld78.Name = "Weld"
  2020. ManualWeld78.Parent = Part77
  2021. ManualWeld78.C1 = CFrame.new(0, 1.45839453, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2022. ManualWeld78.Part0 = Part77
  2023. ManualWeld78.Part1 = Part63
  2024. ManualWeld78.part1 = Part63
  2025. Part79.Name = "glove"
  2026. Part79.Parent = Model13
  2027. Part79.CFrame = CFrame.new(-35.0513115, 8.44021797, -145.660217, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2028. Part79.Orientation = Vector3.new(0, 180, 0)
  2029. Part79.Position = Vector3.new(-35.0513115, 8.44021797, -145.660217)
  2030. Part79.Rotation = Vector3.new(-180, 0, -180)
  2031. Part79.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2032. Part79.Size = Vector3.new(1.03999996, 0.580000877, 1.05999994)
  2033. Part79.BottomSurface = Enum.SurfaceType.Smooth
  2034. Part79.BrickColor = BrickColor.new("Really black")
  2035. Part79.CanCollide = false
  2036. Part79.Material = Enum.Material.SmoothPlastic
  2037. Part79.TopSurface = Enum.SurfaceType.Smooth
  2038. Part79.brickColor = BrickColor.new("Really black")
  2039. ManualWeld80.Name = "Weld"
  2040. ManualWeld80.Parent = Part79
  2041. ManualWeld80.C1 = CFrame.new(0, 1.4567399, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2042. ManualWeld80.Part0 = Part79
  2043. ManualWeld80.Part1 = Part65
  2044. ManualWeld80.part1 = Part65
  2045. Sound81.Name = "Jevil with lyrics"
  2046. Sound81.Parent = Model13
  2047. Sound81.SoundId = "rbxassetid://2729072620"
  2048. for i,v in pairs(mas:GetChildren()) do
  2049. v.Parent = workspace
  2050. pcall(function() v:MakeJoints() end)
  2051. end
  2052. mas:Destroy()
  2053. for i,v in pairs(cors) do
  2054. spawn(function()
  2055. pcall(v)
  2056. end)
  2057. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement