Advertisement
MESCRIPT

testing script

Jul 31st, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.60 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. local chil = workspace:GetChildren()
  20. for i,v in pairs(chil) do
  21. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  22. v:Destroy()
  23. end
  24. end
  25. Camera0 = Instance.new("Camera")
  26. Model1 = Instance.new("Model")
  27. Part2 = Instance.new("Part")
  28. Part3 = Instance.new("Part")
  29. UnionOperation4 = Instance.new("UnionOperation")
  30. Part5 = Instance.new("Part")
  31. PointLight6 = Instance.new("PointLight")
  32. RotateV7 = Instance.new("RotateV")
  33. SpawnLocation8 = Instance.new("SpawnLocation")
  34. Model9 = Instance.new("Model")
  35. UnionOperation10 = Instance.new("UnionOperation")
  36. Beam11 = Instance.new("Beam")
  37. Sound12 = Instance.new("Sound")
  38. Motor6D13 = Instance.new("Motor6D")
  39. Motor6D14 = Instance.new("Motor6D")
  40. Motor6D15 = Instance.new("Motor6D")
  41. Motor6D16 = Instance.new("Motor6D")
  42. Motor6D17 = Instance.new("Motor6D")
  43. UnionOperation18 = Instance.new("UnionOperation")
  44. Decal19 = Instance.new("Decal")
  45. BillboardGui20 = Instance.new("BillboardGui")
  46. TextLabel21 = Instance.new("TextLabel")
  47. TextLabel22 = Instance.new("TextLabel")
  48. Script23 = Instance.new("Script")
  49. Part24 = Instance.new("Part")
  50. Sound25 = Instance.new("Sound")
  51. Sound26 = Instance.new("Sound")
  52. Sound27 = Instance.new("Sound")
  53. Sound28 = Instance.new("Sound")
  54. Sound29 = Instance.new("Sound")
  55. Sound30 = Instance.new("Sound")
  56. Sound31 = Instance.new("Sound")
  57. Sound32 = Instance.new("Sound")
  58. Sound33 = Instance.new("Sound")
  59. Sound34 = Instance.new("Sound")
  60. Sound35 = Instance.new("Sound")
  61. Motor6D36 = Instance.new("Motor6D")
  62. MeshPart37 = Instance.new("MeshPart")
  63. MeshPart38 = Instance.new("MeshPart")
  64. MeshPart39 = Instance.new("MeshPart")
  65. MeshPart40 = Instance.new("MeshPart")
  66. Script41 = Instance.new("Script")
  67. Sound42 = Instance.new("Sound")
  68. MeshPart43 = Instance.new("MeshPart")
  69. Weld44 = Instance.new("Weld")
  70. MeshPart45 = Instance.new("MeshPart")
  71. Weld46 = Instance.new("Weld")
  72. Humanoid47 = Instance.new("Humanoid")
  73. Part48 = Instance.new("Part")
  74. SpecialMesh49 = Instance.new("SpecialMesh")
  75. Camera0.Parent = mas
  76. Camera0.CFrame = CFrame.new(-541.142883, 93.6241302, 44.4250946, -0.896999061, -0.229961351, 0.377505511, -0, 0.854022264, 0.520236433, -0.442032397, 0.466651589, -0.766057193)
  77. Camera0.CoordinateFrame = CFrame.new(-541.142883, 93.6241302, 44.4250946, -0.896999061, -0.229961351, 0.377505511, -0, 0.854022264, 0.520236433, -0.442032397, 0.466651589, -0.766057193)
  78. Camera0.Focus = CFrame.new(-544.792542, 88.594574, 51.8312035, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  79. Camera0.focus = CFrame.new(-544.792542, 88.594574, 51.8312035, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  80. Model1.Parent = mas
  81. Part2.Parent = Model1
  82. Part2.CFrame = CFrame.new(-542.362, 84.453186, 64.4654312, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  83. Part2.Orientation = Vector3.new(0, 0, 90)
  84. Part2.Position = Vector3.new(-542.362, 84.453186, 64.4654312)
  85. Part2.Rotation = Vector3.new(0, 0, 90)
  86. Part2.Transparency = 1
  87. Part2.Size = Vector3.new(2.05412745, 77.9478531, 77.9478531)
  88. Part2.Anchored = true
  89. Part2.BottomSurface = Enum.SurfaceType.Smooth
  90. Part2.Material = Enum.Material.SmoothPlastic
  91. Part2.TopSurface = Enum.SurfaceType.Smooth
  92. Part2.Shape = Enum.PartType.Cylinder
  93. Part3.Parent = Model1
  94. Part3.CFrame = CFrame.new(-542.737, 95.8481674, 63.9203873, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  95. Part3.Position = Vector3.new(-542.737, 95.8481674, 63.9203873)
  96. Part3.Color = Color3.new(0, 0, 1)
  97. Part3.Transparency = 1
  98. Part3.Size = Vector3.new(11.8312006, 21.6499958, 12.28965)
  99. Part3.Anchored = true
  100. Part3.BottomSurface = Enum.SurfaceType.Smooth
  101. Part3.BrickColor = BrickColor.new("Really blue")
  102. Part3.TopSurface = Enum.SurfaceType.Smooth
  103. Part3.brickColor = BrickColor.new("Really blue")
  104. UnionOperation4.Parent = Model1
  105. UnionOperation4.CFrame = CFrame.new(-542.859009, 95.8502197, 64.923317, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  106. UnionOperation4.Orientation = Vector3.new(0, 90, 0)
  107. UnionOperation4.Position = Vector3.new(-542.859009, 95.8502197, 64.923317)
  108. UnionOperation4.Rotation = Vector3.new(0, 90, 0)
  109. UnionOperation4.Color = Color3.new(0, 0, 1)
  110. UnionOperation4.Size = Vector3.new(78.035202, 28.0076447, 76.9837036)
  111. UnionOperation4.BrickColor = BrickColor.new("Really blue")
  112. UnionOperation4.CanCollide = false
  113. UnionOperation4.brickColor = BrickColor.new("Really blue")
  114. Part5.Parent = Model1
  115. Part5.CFrame = CFrame.new(-542.731995, 80.3513184, 63.8854446, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  116. Part5.Position = Vector3.new(-542.731995, 80.3513184, 63.8854446)
  117. Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  118. Part5.Size = Vector3.new(86.9104919, 2.91001558, 85.2406006)
  119. Part5.Anchored = true
  120. Part5.BottomSurface = Enum.SurfaceType.Smooth
  121. Part5.BrickColor = BrickColor.new("Really black")
  122. Part5.TopParamA = -0.10000000149012
  123. Part5.TopParamB = 0.10000000149012
  124. Part5.TopSurface = Enum.SurfaceType.Motor
  125. Part5.TopSurfaceInput = Enum.InputType.Constant
  126. Part5.brickColor = BrickColor.new("Really black")
  127. PointLight6.Parent = Part5
  128. PointLight6.Range = 45
  129. PointLight6.Brightness = 0.60000002384186
  130. RotateV7.Parent = Part5
  131. RotateV7.C0 = CFrame.new(0, 1.45500779, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  132. RotateV7.C1 = CFrame.new(1.03999996, -14.04, 0.129999995, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  133. RotateV7.Part0 = Part5
  134. RotateV7.Part1 = UnionOperation4
  135. RotateV7.part1 = UnionOperation4
  136. RotateV7.BaseAngle = 1.5707963705063
  137. SpawnLocation8.Parent = mas
  138. SpawnLocation8.CFrame = CFrame.new(-522.671448, 85.6833878, 81.3869476, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  139. SpawnLocation8.Orientation = Vector3.new(0, 180, 0)
  140. SpawnLocation8.Position = Vector3.new(-522.671448, 85.6833878, 81.3869476)
  141. SpawnLocation8.Rotation = Vector3.new(-180, 0, -180)
  142. SpawnLocation8.Transparency = 1
  143. SpawnLocation8.Size = Vector3.new(6, 0.200000048, 6)
  144. SpawnLocation8.Anchored = true
  145. SpawnLocation8.BackSurface = Enum.SurfaceType.Weld
  146. SpawnLocation8.BottomSurface = Enum.SurfaceType.Weld
  147. SpawnLocation8.FrontSurface = Enum.SurfaceType.Weld
  148. SpawnLocation8.LeftSurface = Enum.SurfaceType.Weld
  149. SpawnLocation8.RightSurface = Enum.SurfaceType.Weld
  150. SpawnLocation8.TopSurface = Enum.SurfaceType.Smooth
  151. Model9.Name = "Joofil"
  152. Model9.Parent = mas
  153. Model9.PrimaryPart = Part24
  154. UnionOperation10.Name = "Torso"
  155. UnionOperation10.Parent = Model9
  156. UnionOperation10.CFrame = CFrame.new(-544.792603, 88.5832062, 50.7608109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  157. UnionOperation10.Position = Vector3.new(-544.792603, 88.5832062, 50.7608109)
  158. UnionOperation10.Color = Color3.new(0.129412, 0.329412, 0.72549)
  159. UnionOperation10.Size = Vector3.new(2.00003052, 2.00002933, 1.00000763)
  160. UnionOperation10.BrickColor = BrickColor.new("Deep blue")
  161. UnionOperation10.Material = Enum.Material.SmoothPlastic
  162. UnionOperation10.brickColor = BrickColor.new("Deep blue")
  163. UnionOperation10.UsePartColor = true
  164. Beam11.Name = "Neck"
  165. Beam11.Parent = UnionOperation10
  166. Beam11.Attachment0 = nil
  167. Beam11.Attachment1 = nil
  168. Beam11.FaceCamera = true
  169. Beam11.LightEmission = 1
  170. Beam11.LightInfluence = 1
  171. Beam11.Segments = 50
  172. Beam11.Texture = "rbxassetid://1134824633"
  173. Beam11.TextureLength = 5
  174. Beam11.TextureMode = Enum.TextureMode.Static
  175. Beam11.TextureSpeed = 2
  176. Beam11.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
  177. Beam11.Width0 = 0.5
  178. Beam11.Width1 = 0.5
  179. Sound12.Name = "Die"
  180. Sound12.Parent = UnionOperation10
  181. Sound12.MaxDistance = 300
  182. Sound12.EmitterSize = 35
  183. Sound12.MinDistance = 35
  184. Sound12.SoundId = "rbxassetid://2150821806"
  185. Sound12.Volume = 2
  186. Motor6D13.Name = "Head"
  187. Motor6D13.Parent = UnionOperation10
  188. Motor6D13.C1 = CFrame.new(-3.9100647e-05, -1.49995828, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  189. Motor6D13.Part0 = UnionOperation10
  190. Motor6D13.Part1 = UnionOperation18
  191. Motor6D13.part1 = UnionOperation18
  192. Motor6D14.Name = "RArm"
  193. Motor6D14.Parent = UnionOperation10
  194. Motor6D14.C1 = CFrame.new(-1.50003719, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  195. Motor6D14.Part0 = UnionOperation10
  196. Motor6D14.Part1 = MeshPart38
  197. Motor6D14.part1 = MeshPart38
  198. Motor6D15.Name = "LArm"
  199. Motor6D15.Parent = UnionOperation10
  200. Motor6D15.C1 = CFrame.new(1.49996281, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  201. Motor6D15.Part0 = UnionOperation10
  202. Motor6D15.Part1 = MeshPart37
  203. Motor6D15.part1 = MeshPart37
  204. Motor6D16.Name = "RLeg"
  205. Motor6D16.Parent = UnionOperation10
  206. Motor6D16.C1 = CFrame.new(-0.500037193, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  207. Motor6D16.Part0 = UnionOperation10
  208. Motor6D16.Part1 = MeshPart39
  209. Motor6D16.part1 = MeshPart39
  210. Motor6D17.Name = "LLeg"
  211. Motor6D17.Parent = UnionOperation10
  212. Motor6D17.C1 = CFrame.new(0.499962807, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  213. Motor6D17.Part0 = UnionOperation10
  214. Motor6D17.Part1 = MeshPart40
  215. Motor6D17.part1 = MeshPart40
  216. UnionOperation18.Name = "Head"
  217. UnionOperation18.Parent = Model9
  218. UnionOperation18.CFrame = CFrame.new(-544.792542, 90.083168, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  219. UnionOperation18.Position = Vector3.new(-544.792542, 90.083168, 50.760788)
  220. UnionOperation18.Color = Color3.new(0.937255, 0.721569, 0.219608)
  221. UnionOperation18.Size = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  222. UnionOperation18.BrickColor = BrickColor.new("Gold")
  223. UnionOperation18.Material = Enum.Material.SmoothPlastic
  224. UnionOperation18.brickColor = BrickColor.new("Gold")
  225. UnionOperation18.UsePartColor = true
  226. Decal19.Name = "Smile"
  227. Decal19.Parent = UnionOperation18
  228. Decal19.Texture = "http://www.roblox.com/asset/?id=288072938"
  229. BillboardGui20.Name = "Nametag"
  230. BillboardGui20.Parent = UnionOperation18
  231. BillboardGui20.Size = UDim2.new(4, 0, 4, 0)
  232. BillboardGui20.AlwaysOnTop = true
  233. BillboardGui20.StudsOffset = Vector3.new(0, 2, 0)
  234. TextLabel21.Name = "Title"
  235. TextLabel21.Parent = BillboardGui20
  236. TextLabel21.Size = UDim2.new(1, 0, 0.25, 0)
  237. TextLabel21.BackgroundColor = BrickColor.new("Institutional white")
  238. TextLabel21.BackgroundColor3 = Color3.new(1, 1, 1)
  239. TextLabel21.BackgroundTransparency = 1
  240. TextLabel21.BorderSizePixel = 0
  241. TextLabel21.ClipsDescendants = true
  242. TextLabel21.Font = Enum.Font.Fantasy
  243. TextLabel21.FontSize = Enum.FontSize.Size14
  244. TextLabel21.Text = "Joofil"
  245. TextLabel21.TextColor = BrickColor.new("Institutional white")
  246. TextLabel21.TextColor3 = Color3.new(1, 1, 1)
  247. TextLabel21.TextScaled = true
  248. TextLabel21.TextSize = 14
  249. TextLabel21.TextWrap = true
  250. TextLabel21.TextWrapped = true
  251. TextLabel22.Name = "HP"
  252. TextLabel22.Parent = BillboardGui20
  253. TextLabel22.Position = UDim2.new(0, 0, 0.25, 0)
  254. TextLabel22.Size = UDim2.new(1, 0, 0.100000001, 0)
  255. TextLabel22.BackgroundColor = BrickColor.new("Institutional white")
  256. TextLabel22.BackgroundColor3 = Color3.new(1, 1, 1)
  257. TextLabel22.BackgroundTransparency = 1
  258. TextLabel22.BorderSizePixel = 0
  259. TextLabel22.ClipsDescendants = true
  260. TextLabel22.Font = Enum.Font.Fantasy
  261. TextLabel22.FontSize = Enum.FontSize.Size48
  262. TextLabel22.Text = "0/0"
  263. TextLabel22.TextColor = BrickColor.new("Mint")
  264. TextLabel22.TextColor3 = Color3.new(0.686275, 1, 0.686275)
  265. TextLabel22.TextScaled = true
  266. TextLabel22.TextSize = 45
  267. TextLabel22.TextWrap = true
  268. TextLabel22.TextWrapped = true
  269. Script23.Parent = BillboardGui20
  270. table.insert(cors,sandbox(Script23,function()
  271. wait(0.05)
  272. Humanoid = script.Parent.Parent.Parent:FindFirstChildOfClass("Humanoid")
  273. script.Parent.HP.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  274.  
  275. Humanoid.Changed:connect(function()
  276. if Humanoid.Health > Humanoid.MaxHealth/2 then
  277. script.Parent.HP.TextColor3 = Color3.new(175/255,1,175/255)
  278. end
  279. if Humanoid.Health > Humanoid.MaxHealth then
  280. script.Parent.HP.TextColor3 = Color3.new(175/255,1,225/255)
  281. end
  282. if Humanoid.Health > Humanoid.MaxHealth * 1.5 then
  283. script.Parent.HP.TextColor3 = Color3.new(175/255,1,1)
  284. end
  285. if Humanoid.Health > Humanoid.MaxHealth * 3 then
  286. script.Parent.HP.TextColor3 = Color3.new(175/255,220/255,1)
  287. end
  288. if Humanoid.Health > Humanoid.MaxHealth * 10 then
  289. script.Parent.HP.TextColor3 = Color3.new(175/255,175/255,1)
  290. end
  291. if Humanoid.Health < Humanoid.MaxHealth/2 then
  292. script.Parent.HP.TextColor3 = Color3.new(210/255,1,175/255)
  293. end
  294. if Humanoid.Health < Humanoid.MaxHealth/2.5 then
  295. script.Parent.HP.TextColor3 = Color3.new(230/255,1,175/255)
  296. end
  297. if Humanoid.Health < Humanoid.MaxHealth/3 then
  298. script.Parent.HP.TextColor3 = Color3.new(1,1,175/255)
  299. end
  300. if Humanoid.Health < Humanoid.MaxHealth/5 then
  301. script.Parent.HP.TextColor3 = Color3.new(1,225/255,175/255)
  302. end
  303. if Humanoid.Health < Humanoid.MaxHealth/7.5 then
  304. script.Parent.HP.TextColor3 = Color3.new(1,200/255,175/255)
  305. end
  306. if Humanoid.Health < Humanoid.MaxHealth/10 then
  307. script.Parent.HP.TextColor3 = Color3.new(1,175/255,175/255)
  308. end
  309. if Humanoid.Health == 0 then
  310. script.Parent.HP.Text = "Dead"
  311. else
  312. script.Parent.HP.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  313. end
  314. if Humanoid.Health == math.huge then
  315. script.Parent.HP.Text = "Godded"
  316. script.Parent.HP.TextColor3 = Color3.new(175/255,175/255,175/255)
  317. end
  318. end)
  319. end))
  320. Part24.Name = "HumanoidRootPart"
  321. Part24.Parent = Model9
  322. Part24.CFrame = CFrame.new(-544.792542, 88.583168, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  323. Part24.Position = Vector3.new(-544.792542, 88.583168, 50.760788)
  324. Part24.Color = Color3.new(0.937255, 0.721569, 0.219608)
  325. Part24.Transparency = 1
  326. Part24.Size = Vector3.new(2, 2, 1)
  327. Part24.Anchored = true
  328. Part24.BottomSurface = Enum.SurfaceType.Smooth
  329. Part24.BrickColor = BrickColor.new("Gold")
  330. Part24.Material = Enum.Material.SmoothPlastic
  331. Part24.TopSurface = Enum.SurfaceType.Smooth
  332. Part24.brickColor = BrickColor.new("Gold")
  333. Sound25.Name = "Chuckle"
  334. Sound25.Parent = Part24
  335. Sound25.MaxDistance = 300
  336. Sound25.EmitterSize = 35
  337. Sound25.MinDistance = 35
  338. Sound25.SoundId = "rbxassetid://2545010175"
  339. Sound25.Volume = 5
  340. Sound26.Name = "ByeBye"
  341. Sound26.Parent = Part24
  342. Sound26.MaxDistance = 300
  343. Sound26.EmitterSize = 35
  344. Sound26.MinDistance = 35
  345. Sound26.SoundId = "rbxassetid://2545211516"
  346. Sound26.Volume = 5
  347. Sound27.Name = "ChaosChaos"
  348. Sound27.Parent = Part24
  349. Sound27.MaxDistance = 300
  350. Sound27.EmitterSize = 35
  351. Sound27.MinDistance = 35
  352. Sound27.SoundId = "rbxassetid://2545008459"
  353. Sound27.Volume = 5
  354. Sound28.Name = "Ha2"
  355. Sound28.Parent = Part24
  356. Sound28.MaxDistance = 300
  357. Sound28.EmitterSize = 35
  358. Sound28.MinDistance = 35
  359. Sound28.SoundId = "rbxassetid://2606662454"
  360. Sound28.Volume = 5
  361. Sound29.Name = "Ha1"
  362. Sound29.Parent = Part24
  363. Sound29.MaxDistance = 300
  364. Sound29.EmitterSize = 35
  365. Sound29.MinDistance = 35
  366. Sound29.SoundId = "rbxassetid://2606661976"
  367. Sound29.Volume = 5
  368. Sound30.Name = "Neo"
  369. Sound30.Parent = Part24
  370. Sound30.MaxDistance = 300
  371. Sound30.EmitterSize = 35
  372. Sound30.MinDistance = 35
  373. Sound30.SoundId = "rbxassetid://2545018472"
  374. Sound30.Volume = 5
  375. Sound31.Name = "MeDoAnything"
  376. Sound31.Parent = Part24
  377. Sound31.MaxDistance = 300
  378. Sound31.EmitterSize = 35
  379. Sound31.MinDistance = 35
  380. Sound31.SoundId = "rbxassetid://2544975373"
  381. Sound31.Volume = 5
  382. Sound32.Name = "OH"
  383. Sound32.Parent = Part24
  384. Sound32.MaxDistance = 300
  385. Sound32.EmitterSize = 35
  386. Sound32.MinDistance = 35
  387. Sound32.SoundId = "rbxassetid://2545012765"
  388. Sound32.Volume = 5
  389. Sound33.Name = "Laugh"
  390. Sound33.Parent = Part24
  391. Sound33.MaxDistance = 300
  392. Sound33.EmitterSize = 35
  393. Sound33.MinDistance = 35
  394. Sound33.SoundId = "rbxassetid://2545211765"
  395. Sound33.Volume = 5
  396. Sound34.Name = "Metamorph"
  397. Sound34.Parent = Part24
  398. Sound34.MaxDistance = 300
  399. Sound34.EmitterSize = 35
  400. Sound34.MinDistance = 35
  401. Sound34.SoundId = "rbxassetid://2545011398"
  402. Sound34.Volume = 5
  403. Sound35.Name = "Deathed"
  404. Sound35.Parent = Part24
  405. Sound35.MaxDistance = 300
  406. Sound35.EmitterSize = 35
  407. Sound35.MinDistance = 35
  408. Sound35.SoundId = "rbxassetid://2637401925"
  409. Sound35.Volume = 2
  410. Motor6D36.Name = "Root"
  411. Motor6D36.Parent = Part24
  412. Motor6D36.C1 = CFrame.new(3.9100647e-05, -4.17232513e-05, -2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  413. Motor6D36.Part0 = Part24
  414. Motor6D36.Part1 = UnionOperation10
  415. Motor6D36.part1 = UnionOperation10
  416. MeshPart37.Name = "Left Arm"
  417. MeshPart37.Parent = Model9
  418. MeshPart37.CFrame = CFrame.new(-546.292542, 88.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  419. MeshPart37.Position = Vector3.new(-546.292542, 88.583107, 50.760788)
  420. MeshPart37.Color = Color3.new(0.937255, 0.721569, 0.219608)
  421. MeshPart37.Size = Vector3.new(1.00004005, 2.00002551, 1)
  422. MeshPart37.BrickColor = BrickColor.new("Gold")
  423. MeshPart37.Material = Enum.Material.SmoothPlastic
  424. MeshPart37.brickColor = BrickColor.new("Gold")
  425. MeshPart38.Name = "Right Arm"
  426. MeshPart38.Parent = Model9
  427. MeshPart38.CFrame = CFrame.new(-543.292542, 88.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  428. MeshPart38.Position = Vector3.new(-543.292542, 88.583107, 50.760788)
  429. MeshPart38.Color = Color3.new(0.937255, 0.721569, 0.219608)
  430. MeshPart38.Size = Vector3.new(1.00004005, 2.00002551, 1)
  431. MeshPart38.BrickColor = BrickColor.new("Gold")
  432. MeshPart38.Material = Enum.Material.SmoothPlastic
  433. MeshPart38.brickColor = BrickColor.new("Gold")
  434. MeshPart39.Name = "Right Leg"
  435. MeshPart39.Parent = Model9
  436. MeshPart39.CFrame = CFrame.new(-544.292542, 86.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  437. MeshPart39.Position = Vector3.new(-544.292542, 86.583107, 50.760788)
  438. MeshPart39.Color = Color3.new(0.294118, 0.592157, 0.294118)
  439. MeshPart39.Size = Vector3.new(1.00004005, 2.00002551, 1)
  440. MeshPart39.BrickColor = BrickColor.new("Bright green")
  441. MeshPart39.Material = Enum.Material.SmoothPlastic
  442. MeshPart39.brickColor = BrickColor.new("Bright green")
  443. MeshPart40.Name = "Left Leg"
  444. MeshPart40.Parent = Model9
  445. MeshPart40.CFrame = CFrame.new(-545.292542, 86.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  446. MeshPart40.Position = Vector3.new(-545.292542, 86.583107, 50.760788)
  447. MeshPart40.Color = Color3.new(0.294118, 0.592157, 0.294118)
  448. MeshPart40.Size = Vector3.new(1.00004005, 2.00002551, 1)
  449. MeshPart40.BrickColor = BrickColor.new("Bright green")
  450. MeshPart40.Material = Enum.Material.SmoothPlastic
  451. MeshPart40.brickColor = BrickColor.new("Bright green")
  452. Script41.Name = "REOOFING"
  453. Script41.Parent = Model9
  454. table.insert(cors,sandbox(Script41,function()
  455. IT = Instance.new
  456. CF = CFrame.new
  457. VT = Vector3.new
  458. RAD = math.rad
  459. C3 = Color3.new
  460. UD2 = UDim2.new
  461. BRICKC = BrickColor.new
  462. ANGLES = CFrame.Angles
  463. EULER = CFrame.fromEulerAnglesXYZ
  464. COS = math.cos
  465. ACOS = math.acos
  466. SIN = math.sin
  467. ASIN = math.asin
  468. ABS = math.abs
  469. MRANDOM = math.random
  470. FLOOR = math.floor
  471.  
  472. local GYRO = nil
  473. local CHARACTER = script.Parent
  474. local HUMANOID = CHARACTER:FindFirstChildOfClass("Humanoid")
  475. local TORSO = CHARACTER.Torso
  476. local ROOT = CHARACTER.HumanoidRootPart
  477. local RIGHTARM = CHARACTER["Right Arm"]
  478. local LEFTARM = CHARACTER["Left Arm"]
  479. local RIGHTLEG = CHARACTER["Right Leg"]
  480. local LEFTLEG = CHARACTER["Left Leg"]
  481. RootJoint = ROOT["Root"]
  482. Neck = TORSO["Head"]
  483. RightShoulder = TORSO["RArm"]
  484. LeftShoulder = TORSO["LArm"]
  485. RightHip = TORSO["RLeg"]
  486. LeftHip = TORSO["LLeg"]
  487. local BODY = {}
  488. local CHAIR = CHARACTER.Wheelchair
  489. for index, CHILD in pairs(CHARACTER:GetDescendants()) do
  490. if (CHILD:IsA("BasePart") or CHILD:IsA("Decal") or CHILD:IsA("Beam")) and CHILD ~= ROOT and CHILD ~= CHAIR then
  491. table.insert(BODY,CHILD)
  492. end
  493. end
  494. local ATTACKING = false
  495. if script:FindFirstChild("Color") then
  496. script.Color.Parent = game.Lighting
  497. end
  498. local HIT = false
  499. local MUSIC = script.Music
  500. local DEAD = false
  501. MUSIC:Play()
  502. local CLUBSMESH = 2761335666
  503. local DIAMONDMESH = 1254392112
  504. local SPADEMESH = 2760895053
  505. local HEARTMESH = 105992239 --VT(3.5,3.5,3.5)
  506. local SCYTHEMESH = 455516381
  507. local SINE = 0
  508. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  509.  
  510. Debris = game:GetService("Debris")
  511.  
  512. local Effects = IT("Folder",CHARACTER)
  513.  
  514. --//=================================\\
  515. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  516. --\\=================================//
  517.  
  518. ArtificialHB = Instance.new("BindableEvent", script)
  519. ArtificialHB.Name = "ArtificialHB"
  520.  
  521. script:WaitForChild("ArtificialHB")
  522.  
  523. frame = 1/60
  524. tf = 0
  525. allowframeloss = false
  526. tossremainder = false
  527. lastframe = tick()
  528. script.ArtificialHB:Fire()
  529.  
  530. game:GetService("RunService").Heartbeat:connect(function(s, p)
  531. tf = tf + s
  532. if tf >= frame then
  533. if allowframeloss then
  534. script.ArtificialHB:Fire()
  535. lastframe = tick()
  536. else
  537. for i = 1, math.floor(tf / frame) do
  538. script.ArtificialHB:Fire()
  539. end
  540. lastframe = tick()
  541. end
  542. if tossremainder then
  543. tf = 0
  544. else
  545. tf = tf - frame * math.floor(tf / frame)
  546. end
  547. end
  548. end)
  549.  
  550. function PositiveAngle(NUMBER)
  551. if NUMBER >= 0 then
  552. NUMBER = 0
  553. end
  554. return NUMBER
  555. end
  556.  
  557. function NegativeAngle(NUMBER)
  558. if NUMBER <= 0 then
  559. NUMBER = 0
  560. end
  561. return NUMBER
  562. end
  563.  
  564. function Swait(NUMBER)
  565. if NUMBER == 0 or NUMBER == nil then
  566. ArtificialHB.Event:wait()
  567. else
  568. for i = 1, NUMBER do
  569. ArtificialHB.Event:wait()
  570. end
  571. end
  572. end
  573.  
  574. --//=================================\\
  575. --|| FUNCTIONS
  576. --\\=================================//
  577.  
  578. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  579. local NEWMESH = IT(MESH)
  580. if MESH == "SpecialMesh" then
  581. NEWMESH.MeshType = MESHTYPE
  582. if MESHID ~= "nil" and MESHID ~= "" then
  583. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  584. end
  585. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  586. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  587. end
  588. end
  589. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  590. NEWMESH.Scale = SCALE
  591. NEWMESH.Parent = PARENT
  592. return NEWMESH
  593. end
  594.  
  595. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  596. local NEWPART = IT("Part")
  597. NEWPART.formFactor = FORMFACTOR
  598. NEWPART.Reflectance = REFLECTANCE
  599. NEWPART.Transparency = TRANSPARENCY
  600. NEWPART.CanCollide = false
  601. NEWPART.Locked = true
  602. NEWPART.Anchored = true
  603. if ANCHOR == false then
  604. NEWPART.Anchored = false
  605. end
  606. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  607. NEWPART.Name = NAME
  608. NEWPART.Size = SIZE
  609. NEWPART.Position = TORSO.Position
  610. NEWPART.Material = MATERIAL
  611. NEWPART:BreakJoints()
  612. NEWPART.Parent = PARENT
  613. return NEWPART
  614. end
  615.  
  616. local function weldBetween(a, b)
  617. local weldd = IT("ManualWeld")
  618. weldd.Part0 = a
  619. weldd.Part1 = b
  620. weldd.C0 = CF()
  621. weldd.C1 = b.CFrame:inverse() * a.CFrame
  622. weldd.Parent = a
  623. return weldd
  624. end
  625.  
  626. local S = IT("Sound")
  627. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  628. local NEWSOUND = nil
  629. coroutine.resume(coroutine.create(function()
  630. NEWSOUND = S:Clone()
  631. NEWSOUND.Parent = PARENT
  632. NEWSOUND.Volume = VOLUME
  633. NEWSOUND.Pitch = PITCH
  634. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  635. NEWSOUND:play()
  636. if DOESLOOP == true then
  637. NEWSOUND.Looped = true
  638. else
  639. repeat wait(1) until NEWSOUND.Playing == false
  640. NEWSOUND:remove()
  641. end
  642. end))
  643. return NEWSOUND
  644. end
  645.  
  646. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  647. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  648. end
  649.  
  650. function ApplyDamage(Humanoid,Damage)
  651. Damage = Damage * 1
  652. if Humanoid.Health ~= 0 then
  653. Humanoid.Health = Humanoid.Health - Damage
  654. end
  655. end
  656.  
  657. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  658. for index, CHILD in pairs(workspace:GetDescendants()) do
  659. if CHILD.ClassName == "Model" and CHILD ~= CHARACTER then
  660. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  661. if HUM then
  662. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  663. if TORSO then
  664. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  665. if INSTAKILL == true then
  666. CHILD:BreakJoints()
  667. else
  668. local DMG = MRANDOM(MINDMG,MAXDMG)
  669. ApplyDamage(HUM,DMG)
  670. end
  671. if FLING > 0 then
  672. for _, c in pairs(CHILD:GetChildren()) do
  673. if c:IsA("BasePart") then
  674. local bv = Instance.new("BodyVelocity")
  675. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  676. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  677. bv.Parent = c
  678. Debris:AddItem(bv,0.05)
  679. end
  680. end
  681. end
  682. end
  683. end
  684. end
  685. end
  686. end
  687. end
  688.  
  689. --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})
  690. function WACKYEFFECT(Table)
  691. local TYPE = (Table.EffectType or "Sphere")
  692. local SIZE = (Table.Size or VT(1,1,1))
  693. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  694. local TRANSPARENCY = (Table.Transparency or 0)
  695. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  696. local CFRAME = (Table.CFrame or TORSO.CFrame)
  697. local MOVEDIRECTION = (Table.MoveToPos or nil)
  698. local ROTATION1 = (Table.RotationX or 0)
  699. local ROTATION2 = (Table.RotationY or 0)
  700. local ROTATION3 = (Table.RotationZ or 0)
  701. local MATERIAL = (Table.Material or "Neon")
  702. local COLOR = (Table.Color or C3(1,1,1))
  703. local TIME = (Table.Time or 45)
  704. local SOUNDID = (Table.SoundID or nil)
  705. local SOUNDPITCH = (Table.SoundPitch or nil)
  706. local SOUNDVOLUME = (Table.SoundVolume or nil)
  707. coroutine.resume(coroutine.create(function()
  708. local PLAYSSOUND = false
  709. local SOUND = nil
  710. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  711. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  712. PLAYSSOUND = true
  713. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  714. end
  715. EFFECT.Color = COLOR
  716. local MSH = nil
  717. if TYPE == "Sphere" then
  718. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  719. elseif TYPE == "Block" or TYPE == "Box" then
  720. MSH = IT("BlockMesh",EFFECT)
  721. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  722. elseif TYPE == "Wave" then
  723. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  724. elseif TYPE == "Ring" then
  725. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  726. elseif TYPE == "Slash" then
  727. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  728. elseif TYPE == "Round Slash" then
  729. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  730. elseif TYPE == "Swirl" then
  731. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  732. elseif TYPE == "Skull" then
  733. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  734. elseif TYPE == "Crystal" then
  735. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  736. end
  737. if MSH ~= nil then
  738. local MOVESPEED = nil
  739. if MOVEDIRECTION ~= nil then
  740. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  741. end
  742. local GROWTH = SIZE - ENDSIZE
  743. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  744. if TYPE == "Block" then
  745. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  746. else
  747. EFFECT.CFrame = CFRAME
  748. end
  749. for LOOP = 1, TIME+1 do
  750. Swait()
  751. MSH.Scale = MSH.Scale - GROWTH/TIME
  752. if TYPE == "Wave" then
  753. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  754. end
  755. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  756. if TYPE == "Block" then
  757. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  758. else
  759. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  760. end
  761. if MOVEDIRECTION ~= nil then
  762. local ORI = EFFECT.Orientation
  763. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  764. EFFECT.Orientation = ORI
  765. end
  766. end
  767. if PLAYSSOUND == false then
  768. EFFECT:remove()
  769. else
  770. repeat Swait() until SOUND.Playing == false
  771. EFFECT:remove()
  772. end
  773. else
  774. if PLAYSSOUND == false then
  775. EFFECT:remove()
  776. else
  777. repeat Swait() until SOUND.Playing == false
  778. EFFECT:remove()
  779. end
  780. end
  781. end))
  782. end
  783.  
  784. function Transparent(CY)
  785. for E = 1, #BODY do
  786. if BODY[E].ClassName ~= "Beam" then
  787. BODY[E].Transparency = CY
  788. else
  789. BODY[E].Transparency = NumberSequence.new(CY)
  790. end
  791. end
  792. end
  793.  
  794. --//=================================\\
  795. --|| CLERPING
  796. --\\=================================//
  797.  
  798. function QuaternionFromCFrame(cf)
  799. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  800. local trace = m00 + m11 + m22
  801. if trace > 0 then
  802. local s = math.sqrt(1 + trace)
  803. local recip = 0.5 / s
  804. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  805. else
  806. local i = 0
  807. if m11 > m00 then
  808. i = 1
  809. end
  810. if m22 > (i == 0 and m00 or m11) then
  811. i = 2
  812. end
  813. if i == 0 then
  814. local s = math.sqrt(m00 - m11 - m22 + 1)
  815. local recip = 0.5 / s
  816. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  817. elseif i == 1 then
  818. local s = math.sqrt(m11 - m22 - m00 + 1)
  819. local recip = 0.5 / s
  820. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  821. elseif i == 2 then
  822. local s = math.sqrt(m22 - m00 - m11 + 1)
  823. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  824. end
  825. end
  826. end
  827.  
  828. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  829. local xs, ys, zs = x + x, y + y, z + z
  830. local wx, wy, wz = w * xs, w * ys, w * zs
  831. local xx = x * xs
  832. local xy = x * ys
  833. local xz = x * zs
  834. local yy = y * ys
  835. local yz = y * zs
  836. local zz = z * zs
  837. 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))
  838. end
  839.  
  840. function QuaternionSlerp(a, b, t)
  841. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  842. local startInterp, finishInterp;
  843. if cosTheta >= 0.0001 then
  844. if (1 - cosTheta) > 0.0001 then
  845. local theta = ACOS(cosTheta)
  846. local invSinTheta = 1 / SIN(theta)
  847. startInterp = SIN((1 - t) * theta) * invSinTheta
  848. finishInterp = SIN(t * theta) * invSinTheta
  849. else
  850. startInterp = 1 - t
  851. finishInterp = t
  852. end
  853. else
  854. if (1 + cosTheta) > 0.0001 then
  855. local theta = ACOS(-cosTheta)
  856. local invSinTheta = 1 / SIN(theta)
  857. startInterp = SIN((t - 1) * theta) * invSinTheta
  858. finishInterp = SIN(t * theta) * invSinTheta
  859. else
  860. startInterp = t - 1
  861. finishInterp = t
  862. end
  863. end
  864. 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
  865. end
  866.  
  867. function Clerp(a, b, t)
  868. local qa = {QuaternionFromCFrame(a)}
  869. local qb = {QuaternionFromCFrame(b)}
  870. local ax, ay, az = a.x, a.y, a.z
  871. local bx, by, bz = b.x, b.y, b.z
  872. local _t = 1 - t
  873. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  874. end
  875.  
  876. function ClerpBody(TABLE,PRIORITY)
  877. if PRIORITY == "Attack" or ATTACKING == false then
  878. RootJoint.C1 = Clerp(RootJoint.C1, TABLE[1], 0.35)
  879. if HIT == false then
  880. Neck.C1 = Clerp(Neck.C1, TABLE[2], 0.35)
  881. end
  882. RightShoulder.C1 = Clerp(RightShoulder.C1, TABLE[3], 0.35)
  883. LeftShoulder.C1 = Clerp(LeftShoulder.C1, TABLE[4], 0.35)
  884. RightHip.C1 = Clerp(RightHip.C1, TABLE[5], 0.35)
  885. LeftHip.C1 = Clerp(LeftHip.C1, TABLE[6], 0.35)
  886. end
  887. end
  888.  
  889. --//=================================\\
  890. --|| ATRIFICIAL INTELLIGENCE
  891. --\\=================================//
  892.  
  893. local GoTo = function(TO)
  894. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,TO),0.5)*CF(0,0,-HUMANOID.WalkSpeed/32))
  895. CHARACTER:SetPrimaryPartCFrame(CF(ROOT.Position)*ANGLES(0,RAD(ROOT.Orientation.Y),0))
  896. end
  897.  
  898. function TestForTarget(PRT,target)
  899. local to = true
  900. if PRT then
  901. if PRT:FindFirstAncestorOfClass("Model") == target.Parent then
  902. to = false
  903. end
  904. end
  905. return to
  906. end
  907.  
  908. function ChaosOrAnything()
  909. local PLAY = {ROOT.MeDoAnything,ROOT.ChaosChaos}
  910. PLAY[MRANDOM(1,2)]:Play()
  911. end
  912.  
  913. function OhOhOh(TARGET)
  914. local FOE = TARGET.Torso
  915. if FOE then
  916. ATTACKING = true
  917. ChaosOrAnything()
  918. local E = 0
  919. repeat
  920. Swait()
  921. E = E + 1
  922. ClerpBody({
  923. CF(0,-E/25,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  924. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
  925. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  926. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  927. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  928. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  929. },"Attack")
  930. until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
  931. for i = 1, MRANDOM(3,5) do
  932. local TO = FOE.Position
  933. local MOVETO = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,15)
  934. CHARACTER:SetPrimaryPartCFrame(MOVETO)
  935. Transparent(0)
  936. ROOT.OH:Play()
  937. for i = 1, 5 do
  938. ClerpBody({
  939. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  940. CF(0,-0.5,0)*ANGLES(RAD(5),RAD(0),RAD(0))*CF(0,-1,0),
  941. CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(-35))*CF(-1.5,-0.5,0),
  942. CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(35))*CF(1.5,-0.5,0),
  943. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  944. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  945. },"Attack")
  946. end
  947. for i = 1, 3 do
  948. local ANGLE = (50-(25*i))/1.25
  949. coroutine.resume(coroutine.create(function()
  950. local TOFIREFROM = ROOT.CFrame*ANGLES(0,RAD(ANGLE),0)
  951. local CLUB = CreatePart(3, workspace, "Granite", 0, 0, TORSO.BrickColor, "Spade", VT(1.5,0.5,1.5), false)
  952. CreateMesh("SpecialMesh", CLUB, "FileMesh", CLUBSMESH, "", VT(0.75,0.75,0.75), VT(0,0,0))
  953. CLUB.CFrame = TOFIREFROM
  954. local GO = IT("BodyVelocity",CLUB)
  955. GO.Velocity = CLUB.CFrame.lookVector*65
  956. Debris:AddItem(CLUB,1)
  957. CLUB.Touched:Connect(function(HIT)
  958. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  959. CLUB:Remove()
  960. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  961. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  962. end
  963. end)
  964. end))
  965. end
  966. for i = 1, 35 do
  967. Swait()
  968. ClerpBody({
  969. CF(0,-i/350,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  970. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
  971. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  972. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  973. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  974. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  975. },"Attack")
  976. Transparent(i/35)
  977. end
  978. if TARGET.Health <= 0 or DEAD == true then
  979. break
  980. end
  981. end
  982. ATTACKING = false
  983. for i = 1, 25 do
  984. Swait()
  985. Transparent((25-i)/25)
  986. end
  987. Transparent(0)
  988. end
  989. end
  990. function Diamonds(TARGET)
  991. local FOE = TARGET.Torso
  992. if FOE then
  993. ChaosOrAnything()
  994. ATTACKING = true
  995. coroutine.resume(coroutine.create(function()
  996. repeat
  997. Swait()
  998. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(VT(ROOT.Position.X,FOE.Position.Y,ROOT.Position.Z),FOE.Position),0.2))
  999. ClerpBody({
  1000. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1001. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1002. 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),
  1003. 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),
  1004. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1005. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1006. },"Attack")
  1007. until ATTACKING == false
  1008. end))
  1009. for i = 1, MRANDOM(25,35) do
  1010. coroutine.resume(coroutine.create(function()
  1011. local DIAMOND = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(0.5,0.5,1.5), true)
  1012. CreateMesh("SpecialMesh", DIAMOND, "FileMesh", DIAMONDMESH, "", VT(0.1, 0.05, 0.15), VT(0,0,0))
  1013. DIAMOND.CFrame = ROOT.CFrame*CF(MRANDOM(-150,150)/20,0,-1.5)
  1014. for i = 1, 15 do
  1015. Swait()
  1016. DIAMOND.Transparency = (15-i)/15
  1017. DIAMOND.CFrame = DIAMOND.CFrame*CF(0,0,-(15-i)/35)
  1018. end
  1019. DIAMOND.Anchored = false
  1020. DIAMOND.Transparency = 0
  1021. local GO = IT("BodyVelocity",DIAMOND)
  1022. GO.Velocity = DIAMOND.CFrame.lookVector*15
  1023. Debris:AddItem(DIAMOND,1)
  1024. DIAMOND.Touched:Connect(function(HIT)
  1025. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1026. DIAMOND:Remove()
  1027. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1028. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
  1029. end
  1030. end)
  1031. for i = 1, 5 do
  1032. Swait()
  1033. GO.Velocity = DIAMOND.CFrame.lookVector*(15*i)
  1034. end
  1035. end))
  1036. if TARGET.Health <= 0 or DEAD == true then
  1037. break
  1038. end
  1039. Swait(7)
  1040. end
  1041. ATTACKING = false
  1042. end
  1043. end
  1044. function RingAround(TARGET)
  1045. local FOE = TARGET.Torso
  1046. if FOE then
  1047. ATTACKING = true
  1048. ChaosOrAnything()
  1049. local E = 0
  1050. repeat
  1051. Swait()
  1052. E = E + 1
  1053. ClerpBody({
  1054. CF(0,(-E/25)+0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1055. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1056. 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),
  1057. 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),
  1058. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1059. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1060. },"Attack")
  1061. until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
  1062. coroutine.resume(coroutine.create(function()
  1063. repeat
  1064. Swait()
  1065. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
  1066. ClerpBody({
  1067. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1068. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1069. 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),
  1070. 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),
  1071. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1072. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1073. },"Attack")
  1074. until ATTACKING == false
  1075. end))
  1076. for i = 1, MRANDOM(2,4) do
  1077. local SPAWN = CF(FOE.Position)*ANGLES(0,RAD(MRANDOM(0,359)),0)
  1078. local SPADES = {}
  1079. for i = 1, 10 do
  1080. local SPADE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Spade", VT(2,2,2), true)
  1081. CreateMesh("SpecialMesh", SPADE, "FileMesh", SPADEMESH, "", VT(1.2,1.2,1.2), VT(0,0,0))
  1082. SPADE.CFrame = SPAWN*ANGLES(0,RAD(36*i),0)*CF(0,0,35)
  1083. SPADE.Touched:Connect(function(HIT)
  1084. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1085. SPADE:Remove()
  1086. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1087. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  1088. end
  1089. end)
  1090. table.insert(SPADES,SPADE)
  1091. end
  1092. for i = 1, 25 do
  1093. for E = 1, #SPADES do
  1094. SPADES[E].CFrame = SPADES[E].CFrame * CF(0,0,-0.5)
  1095. SPADES[E].Transparency = (10-i)/9.5
  1096. end
  1097. Swait()
  1098. end
  1099. wait(0.2)
  1100. for E = 1, #SPADES do
  1101. coroutine.resume(coroutine.create(function()
  1102. local SPADE = SPADES[E]
  1103. for i = 1, 15 do
  1104. SPADE.CFrame = SPADE.CFrame*CF(0,0,(15-i)/15)
  1105. Swait()
  1106. end
  1107. SPADE.Anchored = false
  1108. local GO = IT("BodyVelocity",SPADE)
  1109. GO.Velocity = SPADE.CFrame.lookVector*5
  1110. GO.MaxForce = GO.MaxForce * 100
  1111. Debris:AddItem(SPADE,1)
  1112. SPADE.Touched:Connect(function(HIT)
  1113. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1114. SPADE:Remove()
  1115. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1116. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 2.5
  1117. end
  1118. end)
  1119. for i = 1, 15 do
  1120. Swait()
  1121. GO.Velocity = SPADE.CFrame.lookVector*(5*i)
  1122. end
  1123. end))
  1124. Swait(5)
  1125. end
  1126. if TARGET.Health <= 0 or DEAD == true then
  1127. break
  1128. end
  1129. end
  1130. wait(0.5)
  1131. ATTACKING = false
  1132. end
  1133. end
  1134. function HeartsGoesOut(TARGET)
  1135. local FOE = TARGET.Torso
  1136. if FOE then
  1137. ChaosOrAnything()
  1138. ATTACKING = true
  1139. coroutine.resume(coroutine.create(function()
  1140. repeat
  1141. Swait()
  1142. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
  1143. ClerpBody({
  1144. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1145. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1146. 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),
  1147. 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),
  1148. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1149. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1150. },"Attack")
  1151. until ATTACKING == false
  1152. end))
  1153. for i = 1, MRANDOM(5,7) do
  1154. local SPAWN = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,35)
  1155. SPAWN = CF(SPAWN.p,FOE.Position+VT(0,1,0))
  1156. coroutine.resume(coroutine.create(function()
  1157. local HEARTS = {}
  1158. for i = 1, 4 do
  1159. local HEART = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Heart", VT(2,2,2), true)
  1160. CreateMesh("SpecialMesh", HEART, "FileMesh", HEARTMESH, "", VT(3.5,3.5,3.5), VT(0,0,0))
  1161. HEART.CFrame = SPAWN*ANGLES(0,RAD((360/4)*i),0)
  1162. HEART.Touched:Connect(function(HIT)
  1163. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1164. HEART:Remove()
  1165. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1166. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
  1167. end
  1168. end)
  1169. table.insert(HEARTS,HEART)
  1170. end
  1171. for i = 1, 10 do
  1172. Swait()
  1173. for E = 1, #HEARTS do
  1174. HEARTS[E].CFrame = HEARTS[E].CFrame*CF(0,0,-(10-i)/10)
  1175. HEARTS[E].Transparency = (10-i)/9.5
  1176. end
  1177. end
  1178. local DIST = (HEARTS[1].Position - SPAWN.p).Magnitude
  1179. for i = 1, 100 do
  1180. Swait()
  1181. SPAWN = SPAWN*CF(0,0,-1)
  1182. for E = 1, #HEARTS do
  1183. HEARTS[E].Transparency = 0
  1184. HEARTS[E].CFrame = SPAWN*ANGLES(0,RAD(((360/4)*E)+(i*5)),0)*CF(0,0,-DIST)
  1185. end
  1186. end
  1187. for E = 1, #HEARTS do
  1188. HEARTS[E]:Destroy()
  1189. end
  1190. end))
  1191. Swait(35)
  1192. if TARGET.Health <= 0 or DEAD == true then
  1193. break
  1194. end
  1195. end
  1196. wait(0.5)
  1197. ATTACKING = false
  1198. end
  1199. end
  1200. function Meta(TARGET)
  1201. local FOE = TARGET.Torso
  1202. if FOE then
  1203. ROOT.Metamorph:Play()
  1204. ATTACKING = true
  1205. local SCYTHE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(3,0,3), true)
  1206. CreateMesh("SpecialMesh", SCYTHE, "FileMesh", SCYTHEMESH, "", VT(0.01, 0.01, 0.01), VT(0,0,0))
  1207. SCYTHE.CFrame = TORSO.CFrame
  1208. for i = 1, 3 do
  1209. for i = 1, 15 do
  1210. Swait()
  1211. ClerpBody({
  1212. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1213. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1214. 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),
  1215. 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),
  1216. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1217. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1218. },"Attack")
  1219. Transparent(i/15)
  1220. SCYTHE.Transparency = (15-i)/15
  1221. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  1222. end
  1223. for i = 1, 15 do
  1224. Swait()
  1225. ClerpBody({
  1226. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1227. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1228. 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),
  1229. 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),
  1230. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1231. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1232. },"Attack")
  1233. Transparent((15-i)/15)
  1234. SCYTHE.Transparency = i/15
  1235. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  1236. end
  1237. end
  1238. for i = 1, 15 do
  1239. Swait()
  1240. ClerpBody({
  1241. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1242. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1243. 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),
  1244. 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),
  1245. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1246. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1247. },"Attack")
  1248. Transparent(i/15)
  1249. SCYTHE.Transparency = (15-i)/15
  1250. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  1251. end
  1252. Transparent(1)
  1253. SCYTHE.Transparency = 0
  1254. local SCYTHES = {SCYTHE}
  1255. for i = 1, 3 do
  1256. local COPY = SCYTHE:Clone()
  1257. COPY.Parent = workspace
  1258. COPY.CFrame = SCYTHE.CFrame
  1259. table.insert(SCYTHES,COPY)
  1260. end
  1261. for E = 1, #SCYTHES do
  1262. local DELAY = false
  1263. SCYTHES[E].Touched:Connect(function(HIT)
  1264. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER and DELAY == false then
  1265. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 3.5
  1266. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1267. DELAY = true
  1268. wait(1)
  1269. DELAY = false
  1270. end
  1271. end)
  1272. end
  1273. local NOW = ROOT.CFrame
  1274. CHARACTER:SetPrimaryPartCFrame(CF(0,5000,0))
  1275. HUMANOID.Parent = nil
  1276. local Y = FOE.Position.Y
  1277. for i = 1, 750 do
  1278. Swait()
  1279. for E = 1, #SCYTHES do
  1280. 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)
  1281. end
  1282. if TARGET.Health <= 0 or DEAD == true then
  1283. break
  1284. end
  1285. end
  1286. for i = 1, 25 do
  1287. for E = 1, #SCYTHES do
  1288. SCYTHES[E].CFrame = CF(Clerp(SCYTHES[E].CFrame,NOW,0.15).p)*ANGLES(0,RAD(SINE*5),0)
  1289. end
  1290. Swait()
  1291. end
  1292. CHARACTER:SetPrimaryPartCFrame(NOW)
  1293. HUMANOID.Parent = CHARACTER
  1294. for i = 1, 15 do
  1295. Swait()
  1296. ClerpBody({
  1297. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1298. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1299. 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),
  1300. 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),
  1301. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1302. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1303. },"Attack")
  1304. Transparent((15-i)/15)
  1305. for E = 1, #SCYTHES do
  1306. SCYTHES[E].CFrame = CF(ROOT.Position)*ANGLES(0,RAD(SINE*5),0)
  1307. SCYTHES[E].Transparency = i/15
  1308. end
  1309. end
  1310. for E = 1, #SCYTHES do
  1311. SCYTHES[E]:Remove()
  1312. end
  1313. ATTACKING = false
  1314. end
  1315. end
  1316. local ATTACKS = {OhOhOh,Diamonds,RingAround,HeartsGoesOut,Meta}
  1317.  
  1318. --//=================================\\
  1319. --|| WRAP
  1320. --\\=================================//
  1321.  
  1322. function BEGINAI()
  1323. local TORSOROT = 0
  1324. CHARACTER:SetPrimaryPartCFrame(ROOT.CFrame*CF(0,1,0))
  1325. coroutine.resume(coroutine.create(function()
  1326. game:GetService("RunService").Heartbeat:connect(function()
  1327. local DEFAULTS = {
  1328. CF(0,0,0),
  1329. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0,-1,0),
  1330. CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  1331. CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  1332. CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0),
  1333. CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0),
  1334. }
  1335. SINE = SINE + 1
  1336. end)
  1337. while true do
  1338. TORSOROT = 35
  1339. for i = 1, 5 do
  1340. ClerpBody({
  1341. CF(0,0,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
  1342. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(-20),RAD(0))*CF(0,-1,0),
  1343. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  1344. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  1345. CF(-0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,1),
  1346. CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
  1347. },nil)
  1348. end
  1349. for i = 1, 15 do
  1350. Swait()
  1351. ClerpBody({
  1352. CF(0,0.3,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
  1353. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(-35),RAD(0))*CF(0,-1,0),
  1354. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  1355. CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.25,0),
  1356. CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1357. CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
  1358. },nil)
  1359. if DEAD == true then
  1360. break
  1361. end
  1362. end
  1363. if DEAD == true then
  1364. break
  1365. end
  1366. TORSOROT = -35
  1367. for i = 1, 5 do
  1368. ClerpBody({
  1369. CF(0,0,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
  1370. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(20),RAD(0))*CF(0,-1,0),
  1371. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  1372. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  1373. CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,0.9,0.2),
  1374. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,0.9,1),
  1375. },nil)
  1376. end
  1377. for i = 1, 15 do
  1378. Swait()
  1379. ClerpBody({
  1380. CF(0,0.3,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
  1381. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(35),RAD(0))*CF(0,-1,0),
  1382. CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.25,0),
  1383. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  1384. CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.2),
  1385. CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0.5),
  1386. },nil)
  1387. if DEAD == true then
  1388. break
  1389. end
  1390. end
  1391. if DEAD == true then
  1392. break
  1393. end
  1394. end
  1395. end))
  1396. local TARGET = nil
  1397. local TARGETHUM = nil
  1398. coroutine.resume(coroutine.create(function()
  1399. --local h = HUMANOID
  1400. local pathService = game:GetService("PathfindingService")
  1401. local goToPos = function(loc,target)
  1402. local distance = (loc-ROOT.Position).magnitude
  1403. local start = tick()
  1404. while distance > 7 do
  1405. if target then
  1406. if target.Torso and ATTACKING == false then
  1407. GoTo(loc+VT(0,4.5,0))
  1408. Swait()
  1409. local RAYTEST = Raycast(ROOT.Position,CF(ROOT.Position,target.Torso.Position).lookVector,500,CHARACTER)
  1410. if distance <= 7 or TARGETHUM ~= target or TestForTarget(RAYTEST,target) == false then -- Something may have gone wrong. Just break.
  1411. break
  1412. end
  1413. distance = (loc+VT(0,4.5,0)-ROOT.Position).magnitude
  1414. else
  1415. break
  1416. end
  1417. else
  1418. break
  1419. end
  1420. end
  1421. end
  1422.  
  1423. while true do
  1424. if DEAD == true then
  1425. break
  1426. end
  1427. Swait()
  1428. if TARGETHUM then
  1429. local target = TARGETHUM
  1430. if TARGETHUM.Torso then
  1431. local RAYTEST = Raycast(ROOT.Position,CF(ROOT.Position,VT(target.Torso.Position.X,ROOT.Position.Y,target.Torso.Position.Z)).lookVector,500,CHARACTER)
  1432. if TestForTarget(RAYTEST,target) == true then
  1433. local path = pathService:ComputeRawPathAsync(ROOT.Position,TARGETHUM.Torso.Position,5000)
  1434. local didBreak = false
  1435. local targetStart
  1436. if target and ROOT and target.Torso then
  1437. targetStart = target.Torso.Position
  1438. local previous = ROOT.Position
  1439. local points = path:GetWaypoints()
  1440. local s = #points > 1 and 2 or 1
  1441. for i = s,#points do
  1442. if GYRO == nil then
  1443. local point = points[i].Position
  1444. if didBreak then
  1445. break
  1446. end
  1447. if target and target.Torso and target.Health > 0 and ATTACKING == false then
  1448. if (ROOT.Position - point).Magnitude > 1 and TARGETHUM == target then
  1449. local pos = previous:lerp(point,0.65)
  1450. goToPos(previous:lerp(point,0.65),target)
  1451. previous = point
  1452. end
  1453. else
  1454. didBreak = true
  1455. break
  1456. end
  1457. end
  1458. end
  1459. end
  1460. if not didBreak and targetStart then
  1461. goToPos(targetStart)
  1462. end
  1463. else
  1464. if ATTACKING == false then
  1465. GoTo(target.Torso.Position+VT(0,2.5,0))
  1466. end
  1467. end
  1468. end
  1469. end
  1470. end
  1471. end))
  1472. HUMANOID.Died:Connect(function()
  1473. if DEAD == false then
  1474. DEAD = true
  1475. repeat
  1476. Swait()
  1477. until ATTACKING == false
  1478. CHAIR.Transparency = 0
  1479. Transparent(0)
  1480. script.Music:Stop()
  1481. ROOT.Deathed:Play()
  1482. repeat
  1483. Swait()
  1484. ClerpBody({
  1485. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1486. CF(0,-0.5,0)*ANGLES(RAD(35),RAD(0),RAD(0))*CF(0,-1,0),
  1487. CF(0,0.5,0)*ANGLES(RAD(-35),RAD(0),RAD(5))*CF(-1.5,-0.3,0),
  1488. CF(0,0.5,0)*ANGLES(RAD(-35),RAD(0),RAD(-5))*CF(1.5,-0.3,0),
  1489. CF(-0,0,0)*ANGLES(RAD(-15),RAD(0),RAD(0))*CF(-0.5,1,1),
  1490. CF(0,0,0)*ANGLES(RAD(-15),RAD(0),RAD(0))*CF(0.5,1,1),
  1491. },nil)
  1492. until ROOT.Deathed.Playing == false
  1493. CHARACTER.Head.Nametag:Remove()
  1494. TORSO.Neck:Remove()
  1495. TORSO.Die:Play()
  1496. ROOT:Remove()
  1497. CHARACTER:BreakJoints()
  1498. CHAIR:Destroy()
  1499. Debris:AddItem(CHARACTER,5)
  1500. end
  1501. end)
  1502. HUMANOID.HealthChanged:Connect(function()
  1503. if HIT == false and DEAD == false then
  1504. HIT = true
  1505. local HA = {ROOT.Ha1,ROOT.Ha2}
  1506. HA[MRANDOM(1,2)]:Play()
  1507. for i = 1, 100 do
  1508. Swait()
  1509. if ATTACKING == true then
  1510. Neck.C1 = Clerp(Neck.C1, CF(0,-2.5,0)*ANGLES(0,0,RAD(65*SIN(i/6)))*CF(0,-1,0), 0.2)
  1511. else
  1512. 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)
  1513. end
  1514. if DEAD == true then
  1515. break
  1516. end
  1517. end
  1518. HIT = false
  1519. end
  1520. end)
  1521. while true do
  1522. if DEAD == true then
  1523. break
  1524. end
  1525. local TARGETVARIANTS = {}
  1526. TARGET = nil
  1527. for index, CHILD in pairs(workspace:GetChildren()) do
  1528. if CHILD ~= CHARACTER and CHILD:FindFirstChild("Slain") == nil then
  1529. local HUMAN = CHILD:FindFirstChildOfClass("Humanoid")
  1530. if HUMAN then
  1531. if HUMAN.Health > 0 then
  1532. if HUMAN.Torso then
  1533. local DISTANCE = (HUMAN.Torso.Position - ROOT.Position).Magnitude
  1534. table.insert(TARGETVARIANTS,{CHILD,DISTANCE})
  1535. end
  1536. end
  1537. end
  1538. end
  1539. end
  1540. local DIST = math.huge
  1541. for E = 1, #TARGETVARIANTS do
  1542. local PLAYER = TARGETVARIANTS[E]
  1543. local CHARACTER = PLAYER[1]
  1544. local DISTANCE = PLAYER[2]
  1545. if DISTANCE < DIST then
  1546. DIST = DISTANCE
  1547. TARGET = CHARACTER
  1548. end
  1549. end
  1550. if TARGET and TARGET:FindFirstChild("HumanoidRootPart") then
  1551. TARGETHUM = TARGET:FindFirstChildOfClass("Humanoid")
  1552. --[[HUMANOID.WalkSpeed = 22
  1553. HUMANOID.JumpPower = 125]]
  1554. local RAY = Raycast(ROOT.Position,CF(ROOT.Position,TARGETHUM.Torso.Position).lookVector,25,CHARACTER)
  1555. 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
  1556. ATTACKS[MRANDOM(1,#ATTACKS)](TARGETHUM)
  1557. end
  1558. else
  1559. TARGETHUM = nil
  1560. end
  1561. wait()
  1562. end
  1563. end
  1564.  
  1565. BEGINAI()
  1566. end))
  1567. Sound42.Name = "Music"
  1568. Sound42.Parent = Script41
  1569. Sound42.Looped = true
  1570. Sound42.SoundId = "rbxassetid://2701520256"
  1571. Sound42.Volume = 2.5
  1572. MeshPart43.Name = "Hat"
  1573. MeshPart43.Parent = Model9
  1574. MeshPart43.CFrame = CFrame.new(-544.792542, 90.7830505, 51.2608185, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1575. MeshPart43.Position = Vector3.new(-544.792542, 90.7830505, 51.2608185)
  1576. MeshPart43.Color = Color3.new(0.129412, 0.329412, 0.72549)
  1577. MeshPart43.Size = Vector3.new(2.75788856, 1.64599526, 2.41334939)
  1578. MeshPart43.BrickColor = BrickColor.new("Deep blue")
  1579. MeshPart43.CanCollide = false
  1580. MeshPart43.Material = Enum.Material.SmoothPlastic
  1581. MeshPart43.brickColor = BrickColor.new("Deep blue")
  1582. Weld44.Name = "Joint"
  1583. Weld44.Parent = MeshPart43
  1584. Weld44.C0 = CFrame.new(0, -0.699880123, -0.500030518, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1585. Weld44.Part0 = MeshPart43
  1586. Weld44.Part1 = UnionOperation18
  1587. Weld44.part1 = UnionOperation18
  1588. MeshPart45.Name = "Tail"
  1589. MeshPart45.Parent = Model9
  1590. MeshPart45.CFrame = CFrame.new(-544.792542, 87.0130463, 52.3607712, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1591. MeshPart45.Position = Vector3.new(-544.792542, 87.0130463, 52.3607712)
  1592. MeshPart45.Color = Color3.new(0.129412, 0.329412, 0.72549)
  1593. MeshPart45.Size = Vector3.new(0.462002546, 1.40317202, 2.49498963)
  1594. MeshPart45.BrickColor = BrickColor.new("Deep blue")
  1595. MeshPart45.CanCollide = false
  1596. MeshPart45.Material = Enum.Material.SmoothPlastic
  1597. MeshPart45.brickColor = BrickColor.new("Deep blue")
  1598. Weld46.Name = "Joint"
  1599. Weld46.Parent = MeshPart45
  1600. Weld46.C0 = CFrame.new(-3.81469727e-05, 1.57016039, -1.59996033, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1601. Weld46.Part0 = MeshPart45
  1602. Weld46.Part1 = UnionOperation10
  1603. Weld46.part1 = UnionOperation10
  1604. Humanoid47.Parent = Model9
  1605. Humanoid47.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  1606. Humanoid47.Health = 6500
  1607. Humanoid47.LeftLeg = MeshPart40
  1608. Humanoid47.MaxHealth = 6500
  1609. Humanoid47.MaxSlopeAngle = 89.900001525879
  1610. Humanoid47.RightLeg = MeshPart39
  1611. Humanoid47.Torso = Part24
  1612. Humanoid47.maxHealth = 6500
  1613. Part48.Name = "Wheelchair"
  1614. Part48.Parent = Model9
  1615. Part48.CFrame = CFrame.new(-544.792542, 87.6830444, 50.7607727, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1616. Part48.Position = Vector3.new(-544.792542, 87.6830444, 50.7607727)
  1617. Part48.Transparency = 1
  1618. Part48.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  1619. Part48.Anchored = true
  1620. Part48.BottomSurface = Enum.SurfaceType.Smooth
  1621. Part48.CanCollide = false
  1622. Part48.Material = Enum.Material.SmoothPlastic
  1623. Part48.TopSurface = Enum.SurfaceType.Smooth
  1624. SpecialMesh49.Parent = Part48
  1625. SpecialMesh49.MeshId = "rbxassetid://1226669573"
  1626. SpecialMesh49.Scale = Vector3.new(2, 2, 2)
  1627. SpecialMesh49.TextureId = "rbxassetid://1226669284"
  1628. SpecialMesh49.MeshType = Enum.MeshType.FileMesh
  1629. for i,v in pairs(mas:GetChildren()) do
  1630. v.Parent = script
  1631. pcall(function() v:MakeJoints() end)
  1632. end
  1633. mas:Destroy()
  1634. for i,v in pairs(cors) do
  1635. spawn(function()
  1636. pcall(v)
  1637. end)
  1638. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement