Advertisement
MESCRIPT

testing jevil

Jul 31st, 2019
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 112.49 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. SpawnLocation1 = Instance.new("SpawnLocation")
  27. Model2 = Instance.new("Model")
  28. UnionOperation3 = Instance.new("UnionOperation")
  29. Beam4 = Instance.new("Beam")
  30. Sound5 = Instance.new("Sound")
  31. Motor6D6 = Instance.new("Motor6D")
  32. Motor6D7 = Instance.new("Motor6D")
  33. Motor6D8 = Instance.new("Motor6D")
  34. Motor6D9 = Instance.new("Motor6D")
  35. Motor6D10 = Instance.new("Motor6D")
  36. UnionOperation11 = Instance.new("UnionOperation")
  37. Decal12 = Instance.new("Decal")
  38. BillboardGui13 = Instance.new("BillboardGui")
  39. TextLabel14 = Instance.new("TextLabel")
  40. TextLabel15 = Instance.new("TextLabel")
  41. Script16 = Instance.new("Script")
  42. Part17 = Instance.new("Part")
  43. Sound18 = Instance.new("Sound")
  44. Sound19 = Instance.new("Sound")
  45. Sound20 = Instance.new("Sound")
  46. Sound21 = Instance.new("Sound")
  47. Sound22 = Instance.new("Sound")
  48. Sound23 = Instance.new("Sound")
  49. Sound24 = Instance.new("Sound")
  50. Sound25 = Instance.new("Sound")
  51. Sound26 = Instance.new("Sound")
  52. Sound27 = Instance.new("Sound")
  53. Sound28 = Instance.new("Sound")
  54. Motor6D29 = Instance.new("Motor6D")
  55. MeshPart30 = Instance.new("MeshPart")
  56. MeshPart31 = Instance.new("MeshPart")
  57. MeshPart32 = Instance.new("MeshPart")
  58. MeshPart33 = Instance.new("MeshPart")
  59. Script34 = Instance.new("Script")
  60. Sound35 = Instance.new("Sound")
  61. MeshPart36 = Instance.new("MeshPart")
  62. Weld37 = Instance.new("Weld")
  63. MeshPart38 = Instance.new("MeshPart")
  64. Weld39 = Instance.new("Weld")
  65. Humanoid40 = Instance.new("Humanoid")
  66. Part41 = Instance.new("Part")
  67. SpecialMesh42 = Instance.new("SpecialMesh")
  68. Model43 = Instance.new("Model")
  69. LocalScript44 = Instance.new("LocalScript")
  70. Camera0.Parent = mas
  71. Camera0.CFrame = CFrame.new(-532.752136, 96.776268, 32.397644, -0.896999061, -0.229961351, 0.377505511, -0, 0.854022264, 0.520236433, -0.442032397, 0.466651589, -0.766057193)
  72. Camera0.CoordinateFrame = CFrame.new(-532.752136, 96.776268, 32.397644, -0.896999061, -0.229961351, 0.377505511, -0, 0.854022264, 0.520236433, -0.442032397, 0.466651589, -0.766057193)
  73. Camera0.Focus = CFrame.new(-536.401794, 91.7467117, 39.8037529, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  74. Camera0.focus = CFrame.new(-536.401794, 91.7467117, 39.8037529, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  75. SpawnLocation1.Parent = mas
  76. SpawnLocation1.CFrame = CFrame.new(-522.671448, 85.6833878, 81.3869476, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  77. SpawnLocation1.Orientation = Vector3.new(0, 180, 0)
  78. SpawnLocation1.Position = Vector3.new(-522.671448, 85.6833878, 81.3869476)
  79. SpawnLocation1.Rotation = Vector3.new(-180, 0, -180)
  80. SpawnLocation1.Transparency = 1
  81. SpawnLocation1.Size = Vector3.new(6, 0.200000048, 6)
  82. SpawnLocation1.Anchored = true
  83. SpawnLocation1.BackSurface = Enum.SurfaceType.Weld
  84. SpawnLocation1.BottomSurface = Enum.SurfaceType.Weld
  85. SpawnLocation1.FrontSurface = Enum.SurfaceType.Weld
  86. SpawnLocation1.LeftSurface = Enum.SurfaceType.Weld
  87. SpawnLocation1.RightSurface = Enum.SurfaceType.Weld
  88. SpawnLocation1.TopSurface = Enum.SurfaceType.Smooth
  89. Model2.Name = "Joofil"
  90. Model2.Parent = mas
  91. Model2.PrimaryPart = Part17
  92. UnionOperation3.Name = "Torso"
  93. UnionOperation3.Parent = Model2
  94. UnionOperation3.CFrame = CFrame.new(-544.792603, 88.5832062, 50.7608109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  95. UnionOperation3.Position = Vector3.new(-544.792603, 88.5832062, 50.7608109)
  96. UnionOperation3.Color = Color3.new(0.129412, 0.329412, 0.72549)
  97. UnionOperation3.Size = Vector3.new(2.00003052, 2.00002933, 1.00000763)
  98. UnionOperation3.BrickColor = BrickColor.new("Deep blue")
  99. UnionOperation3.Material = Enum.Material.SmoothPlastic
  100. UnionOperation3.brickColor = BrickColor.new("Deep blue")
  101. UnionOperation3.UsePartColor = true
  102. Beam4.Name = "Neck"
  103. Beam4.Parent = UnionOperation3
  104. Beam4.Attachment0 = nil
  105. Beam4.Attachment1 = nil
  106. Beam4.FaceCamera = true
  107. Beam4.LightEmission = 1
  108. Beam4.LightInfluence = 1
  109. Beam4.Segments = 50
  110. Beam4.Texture = "rbxassetid://1134824633"
  111. Beam4.TextureLength = 5
  112. Beam4.TextureMode = Enum.TextureMode.Static
  113. Beam4.TextureSpeed = 2
  114. Beam4.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
  115. Beam4.Width0 = 0.5
  116. Beam4.Width1 = 0.5
  117. Sound5.Name = "Die"
  118. Sound5.Parent = UnionOperation3
  119. Sound5.MaxDistance = 300
  120. Sound5.EmitterSize = 35
  121. Sound5.MinDistance = 35
  122. Sound5.SoundId = "rbxassetid://2150821806"
  123. Sound5.Volume = 2
  124. Motor6D6.Name = "Head"
  125. Motor6D6.Parent = UnionOperation3
  126. Motor6D6.C1 = CFrame.new(-3.9100647e-05, -1.49995828, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  127. Motor6D6.Part0 = UnionOperation3
  128. Motor6D6.Part1 = UnionOperation11
  129. Motor6D6.part1 = UnionOperation11
  130. Motor6D7.Name = "RArm"
  131. Motor6D7.Parent = UnionOperation3
  132. Motor6D7.C1 = CFrame.new(-1.50003719, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  133. Motor6D7.Part0 = UnionOperation3
  134. Motor6D7.Part1 = MeshPart31
  135. Motor6D7.part1 = MeshPart31
  136. Motor6D8.Name = "LArm"
  137. Motor6D8.Parent = UnionOperation3
  138. Motor6D8.C1 = CFrame.new(1.49996281, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  139. Motor6D8.Part0 = UnionOperation3
  140. Motor6D8.Part1 = MeshPart30
  141. Motor6D8.part1 = MeshPart30
  142. Motor6D9.Name = "RLeg"
  143. Motor6D9.Parent = UnionOperation3
  144. Motor6D9.C1 = CFrame.new(-0.500037193, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  145. Motor6D9.Part0 = UnionOperation3
  146. Motor6D9.Part1 = MeshPart32
  147. Motor6D9.part1 = MeshPart32
  148. Motor6D10.Name = "LLeg"
  149. Motor6D10.Parent = UnionOperation3
  150. Motor6D10.C1 = CFrame.new(0.499962807, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  151. Motor6D10.Part0 = UnionOperation3
  152. Motor6D10.Part1 = MeshPart33
  153. Motor6D10.part1 = MeshPart33
  154. UnionOperation11.Name = "Head"
  155. UnionOperation11.Parent = Model2
  156. UnionOperation11.CFrame = CFrame.new(-544.792542, 90.083168, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  157. UnionOperation11.Position = Vector3.new(-544.792542, 90.083168, 50.760788)
  158. UnionOperation11.Color = Color3.new(0.937255, 0.721569, 0.219608)
  159. UnionOperation11.Size = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  160. UnionOperation11.BrickColor = BrickColor.new("Gold")
  161. UnionOperation11.Material = Enum.Material.SmoothPlastic
  162. UnionOperation11.brickColor = BrickColor.new("Gold")
  163. UnionOperation11.UsePartColor = true
  164. Decal12.Name = "Smile"
  165. Decal12.Parent = UnionOperation11
  166. Decal12.Texture = "http://www.roblox.com/asset/?id=288072938"
  167. BillboardGui13.Name = "Nametag"
  168. BillboardGui13.Parent = UnionOperation11
  169. BillboardGui13.Size = UDim2.new(4, 0, 4, 0)
  170. BillboardGui13.AlwaysOnTop = true
  171. BillboardGui13.StudsOffset = Vector3.new(0, 2, 0)
  172. TextLabel14.Name = "Title"
  173. TextLabel14.Parent = BillboardGui13
  174. TextLabel14.Size = UDim2.new(1, 0, 0.25, 0)
  175. TextLabel14.BackgroundColor = BrickColor.new("Institutional white")
  176. TextLabel14.BackgroundColor3 = Color3.new(1, 1, 1)
  177. TextLabel14.BackgroundTransparency = 1
  178. TextLabel14.BorderSizePixel = 0
  179. TextLabel14.ClipsDescendants = true
  180. TextLabel14.Font = Enum.Font.Fantasy
  181. TextLabel14.FontSize = Enum.FontSize.Size14
  182. TextLabel14.Text = "Joofil"
  183. TextLabel14.TextColor = BrickColor.new("Institutional white")
  184. TextLabel14.TextColor3 = Color3.new(1, 1, 1)
  185. TextLabel14.TextScaled = true
  186. TextLabel14.TextSize = 14
  187. TextLabel14.TextWrap = true
  188. TextLabel14.TextWrapped = true
  189. TextLabel15.Name = "HP"
  190. TextLabel15.Parent = BillboardGui13
  191. TextLabel15.Position = UDim2.new(0, 0, 0.25, 0)
  192. TextLabel15.Size = UDim2.new(1, 0, 0.100000001, 0)
  193. TextLabel15.BackgroundColor = BrickColor.new("Institutional white")
  194. TextLabel15.BackgroundColor3 = Color3.new(1, 1, 1)
  195. TextLabel15.BackgroundTransparency = 1
  196. TextLabel15.BorderSizePixel = 0
  197. TextLabel15.ClipsDescendants = true
  198. TextLabel15.Font = Enum.Font.Fantasy
  199. TextLabel15.FontSize = Enum.FontSize.Size48
  200. TextLabel15.Text = "0/0"
  201. TextLabel15.TextColor = BrickColor.new("Mint")
  202. TextLabel15.TextColor3 = Color3.new(0.686275, 1, 0.686275)
  203. TextLabel15.TextScaled = true
  204. TextLabel15.TextSize = 45
  205. TextLabel15.TextWrap = true
  206. TextLabel15.TextWrapped = true
  207. Script16.Parent = BillboardGui13
  208. table.insert(cors,sandbox(Script16,function()
  209. wait(0.05)
  210. Humanoid = script.Parent.Parent.Parent:FindFirstChildOfClass("Humanoid")
  211. script.Parent.HP.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  212.  
  213. Humanoid.Changed:connect(function()
  214. if Humanoid.Health > Humanoid.MaxHealth/2 then
  215. script.Parent.HP.TextColor3 = Color3.new(175/255,1,175/255)
  216. end
  217. if Humanoid.Health > Humanoid.MaxHealth then
  218. script.Parent.HP.TextColor3 = Color3.new(175/255,1,225/255)
  219. end
  220. if Humanoid.Health > Humanoid.MaxHealth * 1.5 then
  221. script.Parent.HP.TextColor3 = Color3.new(175/255,1,1)
  222. end
  223. if Humanoid.Health > Humanoid.MaxHealth * 3 then
  224. script.Parent.HP.TextColor3 = Color3.new(175/255,220/255,1)
  225. end
  226. if Humanoid.Health > Humanoid.MaxHealth * 10 then
  227. script.Parent.HP.TextColor3 = Color3.new(175/255,175/255,1)
  228. end
  229. if Humanoid.Health < Humanoid.MaxHealth/2 then
  230. script.Parent.HP.TextColor3 = Color3.new(210/255,1,175/255)
  231. end
  232. if Humanoid.Health < Humanoid.MaxHealth/2.5 then
  233. script.Parent.HP.TextColor3 = Color3.new(230/255,1,175/255)
  234. end
  235. if Humanoid.Health < Humanoid.MaxHealth/3 then
  236. script.Parent.HP.TextColor3 = Color3.new(1,1,175/255)
  237. end
  238. if Humanoid.Health < Humanoid.MaxHealth/5 then
  239. script.Parent.HP.TextColor3 = Color3.new(1,225/255,175/255)
  240. end
  241. if Humanoid.Health < Humanoid.MaxHealth/7.5 then
  242. script.Parent.HP.TextColor3 = Color3.new(1,200/255,175/255)
  243. end
  244. if Humanoid.Health < Humanoid.MaxHealth/10 then
  245. script.Parent.HP.TextColor3 = Color3.new(1,175/255,175/255)
  246. end
  247. if Humanoid.Health == 0 then
  248. script.Parent.HP.Text = "Dead"
  249. else
  250. script.Parent.HP.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  251. end
  252. if Humanoid.Health == math.huge then
  253. script.Parent.HP.Text = "Godded"
  254. script.Parent.HP.TextColor3 = Color3.new(175/255,175/255,175/255)
  255. end
  256. end)
  257. end))
  258. Part17.Name = "HumanoidRootPart"
  259. Part17.Parent = Model2
  260. Part17.CFrame = CFrame.new(-544.792542, 88.583168, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  261. Part17.Position = Vector3.new(-544.792542, 88.583168, 50.760788)
  262. Part17.Color = Color3.new(0.937255, 0.721569, 0.219608)
  263. Part17.Transparency = 1
  264. Part17.Size = Vector3.new(2, 2, 1)
  265. Part17.Anchored = true
  266. Part17.BottomSurface = Enum.SurfaceType.Smooth
  267. Part17.BrickColor = BrickColor.new("Gold")
  268. Part17.Material = Enum.Material.SmoothPlastic
  269. Part17.TopSurface = Enum.SurfaceType.Smooth
  270. Part17.brickColor = BrickColor.new("Gold")
  271. Sound18.Name = "Chuckle"
  272. Sound18.Parent = Part17
  273. Sound18.MaxDistance = 300
  274. Sound18.EmitterSize = 35
  275. Sound18.MinDistance = 35
  276. Sound18.SoundId = "rbxassetid://2545010175"
  277. Sound18.Volume = 5
  278. Sound19.Name = "ByeBye"
  279. Sound19.Parent = Part17
  280. Sound19.MaxDistance = 300
  281. Sound19.EmitterSize = 35
  282. Sound19.MinDistance = 35
  283. Sound19.SoundId = "rbxassetid://2545211516"
  284. Sound19.Volume = 5
  285. Sound20.Name = "ChaosChaos"
  286. Sound20.Parent = Part17
  287. Sound20.MaxDistance = 300
  288. Sound20.EmitterSize = 35
  289. Sound20.MinDistance = 35
  290. Sound20.SoundId = "rbxassetid://2545008459"
  291. Sound20.Volume = 5
  292. Sound21.Name = "Ha2"
  293. Sound21.Parent = Part17
  294. Sound21.MaxDistance = 300
  295. Sound21.EmitterSize = 35
  296. Sound21.MinDistance = 35
  297. Sound21.SoundId = "rbxassetid://2606662454"
  298. Sound21.Volume = 5
  299. Sound22.Name = "Ha1"
  300. Sound22.Parent = Part17
  301. Sound22.MaxDistance = 300
  302. Sound22.EmitterSize = 35
  303. Sound22.MinDistance = 35
  304. Sound22.SoundId = "rbxassetid://2606661976"
  305. Sound22.Volume = 5
  306. Sound23.Name = "Neo"
  307. Sound23.Parent = Part17
  308. Sound23.MaxDistance = 300
  309. Sound23.EmitterSize = 35
  310. Sound23.MinDistance = 35
  311. Sound23.SoundId = "rbxassetid://2545018472"
  312. Sound23.Volume = 5
  313. Sound24.Name = "MeDoAnything"
  314. Sound24.Parent = Part17
  315. Sound24.MaxDistance = 300
  316. Sound24.EmitterSize = 35
  317. Sound24.MinDistance = 35
  318. Sound24.SoundId = "rbxassetid://2544975373"
  319. Sound24.Volume = 5
  320. Sound25.Name = "OH"
  321. Sound25.Parent = Part17
  322. Sound25.MaxDistance = 300
  323. Sound25.EmitterSize = 35
  324. Sound25.MinDistance = 35
  325. Sound25.SoundId = "rbxassetid://2545012765"
  326. Sound25.Volume = 5
  327. Sound26.Name = "Laugh"
  328. Sound26.Parent = Part17
  329. Sound26.MaxDistance = 300
  330. Sound26.EmitterSize = 35
  331. Sound26.MinDistance = 35
  332. Sound26.SoundId = "rbxassetid://2545211765"
  333. Sound26.Volume = 5
  334. Sound27.Name = "Metamorph"
  335. Sound27.Parent = Part17
  336. Sound27.MaxDistance = 300
  337. Sound27.EmitterSize = 35
  338. Sound27.MinDistance = 35
  339. Sound27.SoundId = "rbxassetid://2545011398"
  340. Sound27.Volume = 5
  341. Sound28.Name = "Deathed"
  342. Sound28.Parent = Part17
  343. Sound28.MaxDistance = 300
  344. Sound28.EmitterSize = 35
  345. Sound28.MinDistance = 35
  346. Sound28.SoundId = "rbxassetid://2637401925"
  347. Sound28.Volume = 2
  348. Motor6D29.Name = "Root"
  349. Motor6D29.Parent = Part17
  350. Motor6D29.C1 = CFrame.new(3.9100647e-05, -4.17232513e-05, -2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  351. Motor6D29.Part0 = Part17
  352. Motor6D29.Part1 = UnionOperation3
  353. Motor6D29.part1 = UnionOperation3
  354. MeshPart30.Name = "Left Arm"
  355. MeshPart30.Parent = Model2
  356. MeshPart30.CFrame = CFrame.new(-546.292542, 88.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  357. MeshPart30.Position = Vector3.new(-546.292542, 88.583107, 50.760788)
  358. MeshPart30.Color = Color3.new(0.937255, 0.721569, 0.219608)
  359. MeshPart30.Size = Vector3.new(1.00004005, 2.00002551, 1)
  360. MeshPart30.BrickColor = BrickColor.new("Gold")
  361. MeshPart30.Material = Enum.Material.SmoothPlastic
  362. MeshPart30.brickColor = BrickColor.new("Gold")
  363. MeshPart31.Name = "Right Arm"
  364. MeshPart31.Parent = Model2
  365. MeshPart31.CFrame = CFrame.new(-543.292542, 88.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  366. MeshPart31.Position = Vector3.new(-543.292542, 88.583107, 50.760788)
  367. MeshPart31.Color = Color3.new(0.937255, 0.721569, 0.219608)
  368. MeshPart31.Size = Vector3.new(1.00004005, 2.00002551, 1)
  369. MeshPart31.BrickColor = BrickColor.new("Gold")
  370. MeshPart31.Material = Enum.Material.SmoothPlastic
  371. MeshPart31.brickColor = BrickColor.new("Gold")
  372. MeshPart32.Name = "Right Leg"
  373. MeshPart32.Parent = Model2
  374. MeshPart32.CFrame = CFrame.new(-544.292542, 86.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  375. MeshPart32.Position = Vector3.new(-544.292542, 86.583107, 50.760788)
  376. MeshPart32.Color = Color3.new(0.294118, 0.592157, 0.294118)
  377. MeshPart32.Size = Vector3.new(1.00004005, 2.00002551, 1)
  378. MeshPart32.BrickColor = BrickColor.new("Bright green")
  379. MeshPart32.Material = Enum.Material.SmoothPlastic
  380. MeshPart32.brickColor = BrickColor.new("Bright green")
  381. MeshPart33.Name = "Left Leg"
  382. MeshPart33.Parent = Model2
  383. MeshPart33.CFrame = CFrame.new(-545.292542, 86.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  384. MeshPart33.Position = Vector3.new(-545.292542, 86.583107, 50.760788)
  385. MeshPart33.Color = Color3.new(0.294118, 0.592157, 0.294118)
  386. MeshPart33.Size = Vector3.new(1.00004005, 2.00002551, 1)
  387. MeshPart33.BrickColor = BrickColor.new("Bright green")
  388. MeshPart33.Material = Enum.Material.SmoothPlastic
  389. MeshPart33.brickColor = BrickColor.new("Bright green")
  390. Script34.Name = "REOOFING"
  391. Script34.Parent = Model2
  392. table.insert(cors,sandbox(Script34,function()
  393. IT = Instance.new
  394. CF = CFrame.new
  395. VT = Vector3.new
  396. RAD = math.rad
  397. C3 = Color3.new
  398. UD2 = UDim2.new
  399. BRICKC = BrickColor.new
  400. ANGLES = CFrame.Angles
  401. EULER = CFrame.fromEulerAnglesXYZ
  402. COS = math.cos
  403. ACOS = math.acos
  404. SIN = math.sin
  405. ASIN = math.asin
  406. ABS = math.abs
  407. MRANDOM = math.random
  408. FLOOR = math.floor
  409.  
  410. local GYRO = nil
  411. local CHARACTER = script.Parent
  412. local HUMANOID = CHARACTER:FindFirstChildOfClass("Humanoid")
  413. local TORSO = CHARACTER.Torso
  414. local ROOT = CHARACTER.HumanoidRootPart
  415. local RIGHTARM = CHARACTER["Right Arm"]
  416. local LEFTARM = CHARACTER["Left Arm"]
  417. local RIGHTLEG = CHARACTER["Right Leg"]
  418. local LEFTLEG = CHARACTER["Left Leg"]
  419. RootJoint = ROOT["Root"]
  420. Neck = TORSO["Head"]
  421. RightShoulder = TORSO["RArm"]
  422. LeftShoulder = TORSO["LArm"]
  423. RightHip = TORSO["RLeg"]
  424. LeftHip = TORSO["LLeg"]
  425. local BODY = {}
  426. local CHAIR = CHARACTER.Wheelchair
  427. for index, CHILD in pairs(CHARACTER:GetDescendants()) do
  428. if (CHILD:IsA("BasePart") or CHILD:IsA("Decal") or CHILD:IsA("Beam")) and CHILD ~= ROOT and CHILD ~= CHAIR then
  429. table.insert(BODY,CHILD)
  430. end
  431. end
  432. local ATTACKING = false
  433. if script:FindFirstChild("Color") then
  434. script.Color.Parent = game.Lighting
  435. end
  436. local HIT = false
  437. local MUSIC = script.Music
  438. local DEAD = false
  439. MUSIC:Play()
  440. local CLUBSMESH = 2761335666
  441. local DIAMONDMESH = 1254392112
  442. local SPADEMESH = 2760895053
  443. local HEARTMESH = 105992239 --VT(3.5,3.5,3.5)
  444. local SCYTHEMESH = 455516381
  445. local SINE = 0
  446. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  447.  
  448. Debris = game:GetService("Debris")
  449.  
  450. local Effects = IT("Folder",CHARACTER)
  451.  
  452. --//=================================\\
  453. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  454. --\\=================================//
  455.  
  456. ArtificialHB = Instance.new("BindableEvent", script)
  457. ArtificialHB.Name = "ArtificialHB"
  458.  
  459. script:WaitForChild("ArtificialHB")
  460.  
  461. frame = 1/60
  462. tf = 0
  463. allowframeloss = false
  464. tossremainder = false
  465. lastframe = tick()
  466. script.ArtificialHB:Fire()
  467.  
  468. game:GetService("RunService").Heartbeat:connect(function(s, p)
  469. tf = tf + s
  470. if tf >= frame then
  471. if allowframeloss then
  472. script.ArtificialHB:Fire()
  473. lastframe = tick()
  474. else
  475. for i = 1, math.floor(tf / frame) do
  476. script.ArtificialHB:Fire()
  477. end
  478. lastframe = tick()
  479. end
  480. if tossremainder then
  481. tf = 0
  482. else
  483. tf = tf - frame * math.floor(tf / frame)
  484. end
  485. end
  486. end)
  487.  
  488. function PositiveAngle(NUMBER)
  489. if NUMBER >= 0 then
  490. NUMBER = 0
  491. end
  492. return NUMBER
  493. end
  494.  
  495. function NegativeAngle(NUMBER)
  496. if NUMBER <= 0 then
  497. NUMBER = 0
  498. end
  499. return NUMBER
  500. end
  501.  
  502. function Swait(NUMBER)
  503. if NUMBER == 0 or NUMBER == nil then
  504. ArtificialHB.Event:wait()
  505. else
  506. for i = 1, NUMBER do
  507. ArtificialHB.Event:wait()
  508. end
  509. end
  510. end
  511.  
  512. --//=================================\\
  513. --|| FUNCTIONS
  514. --\\=================================//
  515.  
  516. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  517. local NEWMESH = IT(MESH)
  518. if MESH == "SpecialMesh" then
  519. NEWMESH.MeshType = MESHTYPE
  520. if MESHID ~= "nil" and MESHID ~= "" then
  521. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  522. end
  523. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  524. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  525. end
  526. end
  527. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  528. NEWMESH.Scale = SCALE
  529. NEWMESH.Parent = PARENT
  530. return NEWMESH
  531. end
  532.  
  533. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  534. local NEWPART = IT("Part")
  535. NEWPART.formFactor = FORMFACTOR
  536. NEWPART.Reflectance = REFLECTANCE
  537. NEWPART.Transparency = TRANSPARENCY
  538. NEWPART.CanCollide = false
  539. NEWPART.Locked = true
  540. NEWPART.Anchored = true
  541. if ANCHOR == false then
  542. NEWPART.Anchored = false
  543. end
  544. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  545. NEWPART.Name = NAME
  546. NEWPART.Size = SIZE
  547. NEWPART.Position = TORSO.Position
  548. NEWPART.Material = MATERIAL
  549. NEWPART:BreakJoints()
  550. NEWPART.Parent = PARENT
  551. return NEWPART
  552. end
  553.  
  554. local function weldBetween(a, b)
  555. local weldd = IT("ManualWeld")
  556. weldd.Part0 = a
  557. weldd.Part1 = b
  558. weldd.C0 = CF()
  559. weldd.C1 = b.CFrame:inverse() * a.CFrame
  560. weldd.Parent = a
  561. return weldd
  562. end
  563.  
  564. local S = IT("Sound")
  565. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  566. local NEWSOUND = nil
  567. coroutine.resume(coroutine.create(function()
  568. NEWSOUND = S:Clone()
  569. NEWSOUND.Parent = PARENT
  570. NEWSOUND.Volume = VOLUME
  571. NEWSOUND.Pitch = PITCH
  572. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  573. NEWSOUND:play()
  574. if DOESLOOP == true then
  575. NEWSOUND.Looped = true
  576. else
  577. repeat wait(1) until NEWSOUND.Playing == false
  578. NEWSOUND:remove()
  579. end
  580. end))
  581. return NEWSOUND
  582. end
  583.  
  584. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  585. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  586. end
  587.  
  588. function ApplyDamage(Humanoid,Damage)
  589. Damage = Damage * 1
  590. if Humanoid.Health ~= 0 then
  591. Humanoid.Health = Humanoid.Health - Damage
  592. end
  593. end
  594.  
  595. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  596. for index, CHILD in pairs(workspace:GetDescendants()) do
  597. if CHILD.ClassName == "Model" and CHILD ~= CHARACTER then
  598. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  599. if HUM then
  600. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  601. if TORSO then
  602. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  603. if INSTAKILL == true then
  604. CHILD:BreakJoints()
  605. else
  606. local DMG = MRANDOM(MINDMG,MAXDMG)
  607. ApplyDamage(HUM,DMG)
  608. end
  609. if FLING > 0 then
  610. for _, c in pairs(CHILD:GetChildren()) do
  611. if c:IsA("BasePart") then
  612. local bv = Instance.new("BodyVelocity")
  613. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  614. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  615. bv.Parent = c
  616. Debris:AddItem(bv,0.05)
  617. end
  618. end
  619. end
  620. end
  621. end
  622. end
  623. end
  624. end
  625. end
  626.  
  627. --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})
  628. function WACKYEFFECT(Table)
  629. local TYPE = (Table.EffectType or "Sphere")
  630. local SIZE = (Table.Size or VT(1,1,1))
  631. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  632. local TRANSPARENCY = (Table.Transparency or 0)
  633. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  634. local CFRAME = (Table.CFrame or TORSO.CFrame)
  635. local MOVEDIRECTION = (Table.MoveToPos or nil)
  636. local ROTATION1 = (Table.RotationX or 0)
  637. local ROTATION2 = (Table.RotationY or 0)
  638. local ROTATION3 = (Table.RotationZ or 0)
  639. local MATERIAL = (Table.Material or "Neon")
  640. local COLOR = (Table.Color or C3(1,1,1))
  641. local TIME = (Table.Time or 45)
  642. local SOUNDID = (Table.SoundID or nil)
  643. local SOUNDPITCH = (Table.SoundPitch or nil)
  644. local SOUNDVOLUME = (Table.SoundVolume or nil)
  645. coroutine.resume(coroutine.create(function()
  646. local PLAYSSOUND = false
  647. local SOUND = nil
  648. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  649. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  650. PLAYSSOUND = true
  651. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  652. end
  653. EFFECT.Color = COLOR
  654. local MSH = nil
  655. if TYPE == "Sphere" then
  656. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  657. elseif TYPE == "Block" or TYPE == "Box" then
  658. MSH = IT("BlockMesh",EFFECT)
  659. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  660. elseif TYPE == "Wave" then
  661. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  662. elseif TYPE == "Ring" then
  663. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  664. elseif TYPE == "Slash" then
  665. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  666. elseif TYPE == "Round Slash" then
  667. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  668. elseif TYPE == "Swirl" then
  669. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  670. elseif TYPE == "Skull" then
  671. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  672. elseif TYPE == "Crystal" then
  673. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  674. end
  675. if MSH ~= nil then
  676. local MOVESPEED = nil
  677. if MOVEDIRECTION ~= nil then
  678. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  679. end
  680. local GROWTH = SIZE - ENDSIZE
  681. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  682. if TYPE == "Block" then
  683. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  684. else
  685. EFFECT.CFrame = CFRAME
  686. end
  687. for LOOP = 1, TIME+1 do
  688. Swait()
  689. MSH.Scale = MSH.Scale - GROWTH/TIME
  690. if TYPE == "Wave" then
  691. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  692. end
  693. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  694. if TYPE == "Block" then
  695. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  696. else
  697. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  698. end
  699. if MOVEDIRECTION ~= nil then
  700. local ORI = EFFECT.Orientation
  701. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  702. EFFECT.Orientation = ORI
  703. end
  704. end
  705. if PLAYSSOUND == false then
  706. EFFECT:remove()
  707. else
  708. repeat Swait() until SOUND.Playing == false
  709. EFFECT:remove()
  710. end
  711. else
  712. if PLAYSSOUND == false then
  713. EFFECT:remove()
  714. else
  715. repeat Swait() until SOUND.Playing == false
  716. EFFECT:remove()
  717. end
  718. end
  719. end))
  720. end
  721.  
  722. function Transparent(CY)
  723. for E = 1, #BODY do
  724. if BODY[E].ClassName ~= "Beam" then
  725. BODY[E].Transparency = CY
  726. else
  727. BODY[E].Transparency = NumberSequence.new(CY)
  728. end
  729. end
  730. end
  731.  
  732. --//=================================\\
  733. --|| CLERPING
  734. --\\=================================//
  735.  
  736. function QuaternionFromCFrame(cf)
  737. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  738. local trace = m00 + m11 + m22
  739. if trace > 0 then
  740. local s = math.sqrt(1 + trace)
  741. local recip = 0.5 / s
  742. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  743. else
  744. local i = 0
  745. if m11 > m00 then
  746. i = 1
  747. end
  748. if m22 > (i == 0 and m00 or m11) then
  749. i = 2
  750. end
  751. if i == 0 then
  752. local s = math.sqrt(m00 - m11 - m22 + 1)
  753. local recip = 0.5 / s
  754. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  755. elseif i == 1 then
  756. local s = math.sqrt(m11 - m22 - m00 + 1)
  757. local recip = 0.5 / s
  758. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  759. elseif i == 2 then
  760. local s = math.sqrt(m22 - m00 - m11 + 1)
  761. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  762. end
  763. end
  764. end
  765.  
  766. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  767. local xs, ys, zs = x + x, y + y, z + z
  768. local wx, wy, wz = w * xs, w * ys, w * zs
  769. local xx = x * xs
  770. local xy = x * ys
  771. local xz = x * zs
  772. local yy = y * ys
  773. local yz = y * zs
  774. local zz = z * zs
  775. 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))
  776. end
  777.  
  778. function QuaternionSlerp(a, b, t)
  779. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  780. local startInterp, finishInterp;
  781. if cosTheta >= 0.0001 then
  782. if (1 - cosTheta) > 0.0001 then
  783. local theta = ACOS(cosTheta)
  784. local invSinTheta = 1 / SIN(theta)
  785. startInterp = SIN((1 - t) * theta) * invSinTheta
  786. finishInterp = SIN(t * theta) * invSinTheta
  787. else
  788. startInterp = 1 - t
  789. finishInterp = t
  790. end
  791. else
  792. if (1 + cosTheta) > 0.0001 then
  793. local theta = ACOS(-cosTheta)
  794. local invSinTheta = 1 / SIN(theta)
  795. startInterp = SIN((t - 1) * theta) * invSinTheta
  796. finishInterp = SIN(t * theta) * invSinTheta
  797. else
  798. startInterp = t - 1
  799. finishInterp = t
  800. end
  801. end
  802. 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
  803. end
  804.  
  805. function Clerp(a, b, t)
  806. local qa = {QuaternionFromCFrame(a)}
  807. local qb = {QuaternionFromCFrame(b)}
  808. local ax, ay, az = a.x, a.y, a.z
  809. local bx, by, bz = b.x, b.y, b.z
  810. local _t = 1 - t
  811. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  812. end
  813.  
  814. function ClerpBody(TABLE,PRIORITY)
  815. if PRIORITY == "Attack" or ATTACKING == false then
  816. RootJoint.C1 = Clerp(RootJoint.C1, TABLE[1], 0.35)
  817. if HIT == false then
  818. Neck.C1 = Clerp(Neck.C1, TABLE[2], 0.35)
  819. end
  820. RightShoulder.C1 = Clerp(RightShoulder.C1, TABLE[3], 0.35)
  821. LeftShoulder.C1 = Clerp(LeftShoulder.C1, TABLE[4], 0.35)
  822. RightHip.C1 = Clerp(RightHip.C1, TABLE[5], 0.35)
  823. LeftHip.C1 = Clerp(LeftHip.C1, TABLE[6], 0.35)
  824. end
  825. end
  826.  
  827. --//=================================\\
  828. --|| ATRIFICIAL INTELLIGENCE
  829. --\\=================================//
  830.  
  831. local GoTo = function(TO)
  832. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,TO),0.5)*CF(0,0,-HUMANOID.WalkSpeed/32))
  833. CHARACTER:SetPrimaryPartCFrame(CF(ROOT.Position)*ANGLES(0,RAD(ROOT.Orientation.Y),0))
  834. end
  835.  
  836. function TestForTarget(PRT,target)
  837. local to = true
  838. if PRT then
  839. if PRT:FindFirstAncestorOfClass("Model") == target.Parent then
  840. to = false
  841. end
  842. end
  843. return to
  844. end
  845.  
  846. function ChaosOrAnything()
  847. local PLAY = {ROOT.MeDoAnything,ROOT.ChaosChaos}
  848. PLAY[MRANDOM(1,2)]:Play()
  849. end
  850.  
  851. function OhOhOh(TARGET)
  852. local FOE = TARGET.Torso
  853. if FOE then
  854. ATTACKING = true
  855. ChaosOrAnything()
  856. local E = 0
  857. repeat
  858. Swait()
  859. E = E + 1
  860. ClerpBody({
  861. CF(0,-E/25,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  862. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
  863. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  864. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  865. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  866. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  867. },"Attack")
  868. until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
  869. for i = 1, MRANDOM(3,5) do
  870. local TO = FOE.Position
  871. local MOVETO = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,15)
  872. CHARACTER:SetPrimaryPartCFrame(MOVETO)
  873. Transparent(0)
  874. ROOT.OH:Play()
  875. for i = 1, 5 do
  876. ClerpBody({
  877. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  878. CF(0,-0.5,0)*ANGLES(RAD(5),RAD(0),RAD(0))*CF(0,-1,0),
  879. CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(-35))*CF(-1.5,-0.5,0),
  880. CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(35))*CF(1.5,-0.5,0),
  881. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  882. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  883. },"Attack")
  884. end
  885. for i = 1, 3 do
  886. local ANGLE = (50-(25*i))/1.25
  887. coroutine.resume(coroutine.create(function()
  888. local TOFIREFROM = ROOT.CFrame*ANGLES(0,RAD(ANGLE),0)
  889. local CLUB = CreatePart(3, workspace, "Granite", 0, 0, TORSO.BrickColor, "Spade", VT(1.5,0.5,1.5), false)
  890. CreateMesh("SpecialMesh", CLUB, "FileMesh", CLUBSMESH, "", VT(0.75,0.75,0.75), VT(0,0,0))
  891. CLUB.CFrame = TOFIREFROM
  892. local GO = IT("BodyVelocity",CLUB)
  893. GO.Velocity = CLUB.CFrame.lookVector*65
  894. Debris:AddItem(CLUB,1)
  895. CLUB.Touched:Connect(function(HIT)
  896. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  897. CLUB:Remove()
  898. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  899. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  900. end
  901. end)
  902. end))
  903. end
  904. for i = 1, 35 do
  905. Swait()
  906. ClerpBody({
  907. CF(0,-i/350,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  908. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
  909. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  910. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  911. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  912. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  913. },"Attack")
  914. Transparent(i/35)
  915. end
  916. if TARGET.Health <= 0 or DEAD == true then
  917. break
  918. end
  919. end
  920. ATTACKING = false
  921. for i = 1, 25 do
  922. Swait()
  923. Transparent((25-i)/25)
  924. end
  925. Transparent(0)
  926. end
  927. end
  928. function Diamonds(TARGET)
  929. local FOE = TARGET.Torso
  930. if FOE then
  931. ChaosOrAnything()
  932. ATTACKING = true
  933. coroutine.resume(coroutine.create(function()
  934. repeat
  935. Swait()
  936. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(VT(ROOT.Position.X,FOE.Position.Y,ROOT.Position.Z),FOE.Position),0.2))
  937. ClerpBody({
  938. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  939. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  940. 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),
  941. 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),
  942. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  943. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  944. },"Attack")
  945. until ATTACKING == false
  946. end))
  947. for i = 1, MRANDOM(25,35) do
  948. coroutine.resume(coroutine.create(function()
  949. local DIAMOND = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(0.5,0.5,1.5), true)
  950. CreateMesh("SpecialMesh", DIAMOND, "FileMesh", DIAMONDMESH, "", VT(0.1, 0.05, 0.15), VT(0,0,0))
  951. DIAMOND.CFrame = ROOT.CFrame*CF(MRANDOM(-150,150)/20,0,-1.5)
  952. for i = 1, 15 do
  953. Swait()
  954. DIAMOND.Transparency = (15-i)/15
  955. DIAMOND.CFrame = DIAMOND.CFrame*CF(0,0,-(15-i)/35)
  956. end
  957. DIAMOND.Anchored = false
  958. DIAMOND.Transparency = 0
  959. local GO = IT("BodyVelocity",DIAMOND)
  960. GO.Velocity = DIAMOND.CFrame.lookVector*15
  961. Debris:AddItem(DIAMOND,1)
  962. DIAMOND.Touched:Connect(function(HIT)
  963. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  964. DIAMOND:Remove()
  965. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  966. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
  967. end
  968. end)
  969. for i = 1, 5 do
  970. Swait()
  971. GO.Velocity = DIAMOND.CFrame.lookVector*(15*i)
  972. end
  973. end))
  974. if TARGET.Health <= 0 or DEAD == true then
  975. break
  976. end
  977. Swait(7)
  978. end
  979. ATTACKING = false
  980. end
  981. end
  982. function RingAround(TARGET)
  983. local FOE = TARGET.Torso
  984. if FOE then
  985. ATTACKING = true
  986. ChaosOrAnything()
  987. local E = 0
  988. repeat
  989. Swait()
  990. E = E + 1
  991. ClerpBody({
  992. CF(0,(-E/25)+0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  993. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  994. 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),
  995. 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),
  996. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  997. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  998. },"Attack")
  999. until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
  1000. coroutine.resume(coroutine.create(function()
  1001. repeat
  1002. Swait()
  1003. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
  1004. ClerpBody({
  1005. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1006. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1007. 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),
  1008. 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),
  1009. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1010. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1011. },"Attack")
  1012. until ATTACKING == false
  1013. end))
  1014. for i = 1, MRANDOM(2,4) do
  1015. local SPAWN = CF(FOE.Position)*ANGLES(0,RAD(MRANDOM(0,359)),0)
  1016. local SPADES = {}
  1017. for i = 1, 10 do
  1018. local SPADE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Spade", VT(2,2,2), true)
  1019. CreateMesh("SpecialMesh", SPADE, "FileMesh", SPADEMESH, "", VT(1.2,1.2,1.2), VT(0,0,0))
  1020. SPADE.CFrame = SPAWN*ANGLES(0,RAD(36*i),0)*CF(0,0,35)
  1021. SPADE.Touched:Connect(function(HIT)
  1022. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1023. SPADE:Remove()
  1024. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1025. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  1026. end
  1027. end)
  1028. table.insert(SPADES,SPADE)
  1029. end
  1030. for i = 1, 25 do
  1031. for E = 1, #SPADES do
  1032. SPADES[E].CFrame = SPADES[E].CFrame * CF(0,0,-0.5)
  1033. SPADES[E].Transparency = (10-i)/9.5
  1034. end
  1035. Swait()
  1036. end
  1037. wait(0.2)
  1038. for E = 1, #SPADES do
  1039. coroutine.resume(coroutine.create(function()
  1040. local SPADE = SPADES[E]
  1041. for i = 1, 15 do
  1042. SPADE.CFrame = SPADE.CFrame*CF(0,0,(15-i)/15)
  1043. Swait()
  1044. end
  1045. SPADE.Anchored = false
  1046. local GO = IT("BodyVelocity",SPADE)
  1047. GO.Velocity = SPADE.CFrame.lookVector*5
  1048. GO.MaxForce = GO.MaxForce * 100
  1049. Debris:AddItem(SPADE,1)
  1050. SPADE.Touched:Connect(function(HIT)
  1051. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1052. SPADE:Remove()
  1053. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1054. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 2.5
  1055. end
  1056. end)
  1057. for i = 1, 15 do
  1058. Swait()
  1059. GO.Velocity = SPADE.CFrame.lookVector*(5*i)
  1060. end
  1061. end))
  1062. Swait(5)
  1063. end
  1064. if TARGET.Health <= 0 or DEAD == true then
  1065. break
  1066. end
  1067. end
  1068. wait(0.5)
  1069. ATTACKING = false
  1070. end
  1071. end
  1072. function HeartsGoesOut(TARGET)
  1073. local FOE = TARGET.Torso
  1074. if FOE then
  1075. ChaosOrAnything()
  1076. ATTACKING = true
  1077. coroutine.resume(coroutine.create(function()
  1078. repeat
  1079. Swait()
  1080. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
  1081. ClerpBody({
  1082. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1083. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1084. 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),
  1085. 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),
  1086. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1087. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1088. },"Attack")
  1089. until ATTACKING == false
  1090. end))
  1091. for i = 1, MRANDOM(5,7) do
  1092. local SPAWN = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,35)
  1093. SPAWN = CF(SPAWN.p,FOE.Position+VT(0,1,0))
  1094. coroutine.resume(coroutine.create(function()
  1095. local HEARTS = {}
  1096. for i = 1, 4 do
  1097. local HEART = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Heart", VT(2,2,2), true)
  1098. CreateMesh("SpecialMesh", HEART, "FileMesh", HEARTMESH, "", VT(3.5,3.5,3.5), VT(0,0,0))
  1099. HEART.CFrame = SPAWN*ANGLES(0,RAD((360/4)*i),0)
  1100. HEART.Touched:Connect(function(HIT)
  1101. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  1102. HEART:Remove()
  1103. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1104. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
  1105. end
  1106. end)
  1107. table.insert(HEARTS,HEART)
  1108. end
  1109. for i = 1, 10 do
  1110. Swait()
  1111. for E = 1, #HEARTS do
  1112. HEARTS[E].CFrame = HEARTS[E].CFrame*CF(0,0,-(10-i)/10)
  1113. HEARTS[E].Transparency = (10-i)/9.5
  1114. end
  1115. end
  1116. local DIST = (HEARTS[1].Position - SPAWN.p).Magnitude
  1117. for i = 1, 100 do
  1118. Swait()
  1119. SPAWN = SPAWN*CF(0,0,-1)
  1120. for E = 1, #HEARTS do
  1121. HEARTS[E].Transparency = 0
  1122. HEARTS[E].CFrame = SPAWN*ANGLES(0,RAD(((360/4)*E)+(i*5)),0)*CF(0,0,-DIST)
  1123. end
  1124. end
  1125. for E = 1, #HEARTS do
  1126. HEARTS[E]:Destroy()
  1127. end
  1128. end))
  1129. Swait(35)
  1130. if TARGET.Health <= 0 or DEAD == true then
  1131. break
  1132. end
  1133. end
  1134. wait(0.5)
  1135. ATTACKING = false
  1136. end
  1137. end
  1138. function Meta(TARGET)
  1139. local FOE = TARGET.Torso
  1140. if FOE then
  1141. ROOT.Metamorph:Play()
  1142. ATTACKING = true
  1143. local SCYTHE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(3,0,3), true)
  1144. CreateMesh("SpecialMesh", SCYTHE, "FileMesh", SCYTHEMESH, "", VT(0.01, 0.01, 0.01), VT(0,0,0))
  1145. SCYTHE.CFrame = TORSO.CFrame
  1146. for i = 1, 3 do
  1147. for i = 1, 15 do
  1148. Swait()
  1149. ClerpBody({
  1150. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1151. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1152. 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),
  1153. 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),
  1154. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1155. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1156. },"Attack")
  1157. Transparent(i/15)
  1158. SCYTHE.Transparency = (15-i)/15
  1159. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  1160. end
  1161. for i = 1, 15 do
  1162. Swait()
  1163. ClerpBody({
  1164. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1165. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1166. 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),
  1167. 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),
  1168. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1169. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1170. },"Attack")
  1171. Transparent((15-i)/15)
  1172. SCYTHE.Transparency = i/15
  1173. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  1174. end
  1175. end
  1176. for i = 1, 15 do
  1177. Swait()
  1178. ClerpBody({
  1179. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1180. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1181. 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),
  1182. 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),
  1183. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1184. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1185. },"Attack")
  1186. Transparent(i/15)
  1187. SCYTHE.Transparency = (15-i)/15
  1188. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  1189. end
  1190. Transparent(1)
  1191. SCYTHE.Transparency = 0
  1192. local SCYTHES = {SCYTHE}
  1193. for i = 1, 3 do
  1194. local COPY = SCYTHE:Clone()
  1195. COPY.Parent = workspace
  1196. COPY.CFrame = SCYTHE.CFrame
  1197. table.insert(SCYTHES,COPY)
  1198. end
  1199. for E = 1, #SCYTHES do
  1200. local DELAY = false
  1201. SCYTHES[E].Touched:Connect(function(HIT)
  1202. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER and DELAY == false then
  1203. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 3.5
  1204. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  1205. DELAY = true
  1206. wait(1)
  1207. DELAY = false
  1208. end
  1209. end)
  1210. end
  1211. local NOW = ROOT.CFrame
  1212. CHARACTER:SetPrimaryPartCFrame(CF(0,5000,0))
  1213. HUMANOID.Parent = nil
  1214. local Y = FOE.Position.Y
  1215. for i = 1, 750 do
  1216. Swait()
  1217. for E = 1, #SCYTHES do
  1218. 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)
  1219. end
  1220. if TARGET.Health <= 0 or DEAD == true then
  1221. break
  1222. end
  1223. end
  1224. for i = 1, 25 do
  1225. for E = 1, #SCYTHES do
  1226. SCYTHES[E].CFrame = CF(Clerp(SCYTHES[E].CFrame,NOW,0.15).p)*ANGLES(0,RAD(SINE*5),0)
  1227. end
  1228. Swait()
  1229. end
  1230. CHARACTER:SetPrimaryPartCFrame(NOW)
  1231. HUMANOID.Parent = CHARACTER
  1232. for i = 1, 15 do
  1233. Swait()
  1234. ClerpBody({
  1235. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1236. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  1237. 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),
  1238. 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),
  1239. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1240. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  1241. },"Attack")
  1242. Transparent((15-i)/15)
  1243. for E = 1, #SCYTHES do
  1244. SCYTHES[E].CFrame = CF(ROOT.Position)*ANGLES(0,RAD(SINE*5),0)
  1245. SCYTHES[E].Transparency = i/15
  1246. end
  1247. end
  1248. for E = 1, #SCYTHES do
  1249. SCYTHES[E]:Remove()
  1250. end
  1251. ATTACKING = false
  1252. end
  1253. end
  1254. local ATTACKS = {OhOhOh,Diamonds,RingAround,HeartsGoesOut,Meta}
  1255.  
  1256. --//=================================\\
  1257. --|| WRAP
  1258. --\\=================================//
  1259.  
  1260. function BEGINAI()
  1261. local TORSOROT = 0
  1262. CHARACTER:SetPrimaryPartCFrame(ROOT.CFrame*CF(0,1,0))
  1263. coroutine.resume(coroutine.create(function()
  1264. game:GetService("RunService").Heartbeat:connect(function()
  1265. local DEFAULTS = {
  1266. CF(0,0,0),
  1267. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0,-1,0),
  1268. CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  1269. CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  1270. CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0),
  1271. CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0),
  1272. }
  1273. SINE = SINE + 1
  1274. end)
  1275. while true do
  1276. TORSOROT = 35
  1277. for i = 1, 5 do
  1278. ClerpBody({
  1279. CF(0,0,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
  1280. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(-20),RAD(0))*CF(0,-1,0),
  1281. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  1282. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  1283. CF(-0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,1),
  1284. CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
  1285. },nil)
  1286. end
  1287. for i = 1, 15 do
  1288. Swait()
  1289. ClerpBody({
  1290. CF(0,0.3,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
  1291. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(-35),RAD(0))*CF(0,-1,0),
  1292. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  1293. CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.25,0),
  1294. CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  1295. CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
  1296. },nil)
  1297. if DEAD == true then
  1298. break
  1299. end
  1300. end
  1301. if DEAD == true then
  1302. break
  1303. end
  1304. TORSOROT = -35
  1305. for i = 1, 5 do
  1306. ClerpBody({
  1307. CF(0,0,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
  1308. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(20),RAD(0))*CF(0,-1,0),
  1309. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  1310. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  1311. CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,0.9,0.2),
  1312. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,0.9,1),
  1313. },nil)
  1314. end
  1315. for i = 1, 15 do
  1316. Swait()
  1317. ClerpBody({
  1318. CF(0,0.3,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
  1319. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(35),RAD(0))*CF(0,-1,0),
  1320. CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.25,0),
  1321. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  1322. CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.2),
  1323. CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0.5),
  1324. },nil)
  1325. if DEAD == true then
  1326. break
  1327. end
  1328. end
  1329. if DEAD == true then
  1330. break
  1331. end
  1332. end
  1333. end))
  1334. local TARGET = nil
  1335. local TARGETHUM = nil
  1336. coroutine.resume(coroutine.create(function()
  1337. --local h = HUMANOID
  1338. local pathService = game:GetService("PathfindingService")
  1339. local goToPos = function(loc,target)
  1340. local distance = (loc-ROOT.Position).magnitude
  1341. local start = tick()
  1342. while distance > 7 do
  1343. if target then
  1344. if target.Torso and ATTACKING == false then
  1345. GoTo(loc+VT(0,4.5,0))
  1346. Swait()
  1347. local RAYTEST = Raycast(ROOT.Position,CF(ROOT.Position,target.Torso.Position).lookVector,500,CHARACTER)
  1348. if distance <= 7 or TARGETHUM ~= target or TestForTarget(RAYTEST,target) == false then -- Something may have gone wrong. Just break.
  1349. break
  1350. end
  1351. distance = (loc+VT(0,4.5,0)-ROOT.Position).magnitude
  1352. else
  1353. break
  1354. end
  1355. else
  1356. break
  1357. end
  1358. end
  1359. end
  1360.  
  1361. while true do
  1362. if DEAD == true then
  1363. break
  1364. end
  1365. Swait()
  1366. if TARGETHUM then
  1367. local target = TARGETHUM
  1368. if TARGETHUM.Torso then
  1369. local RAYTEST = Raycast(ROOT.Position,CF(ROOT.Position,VT(target.Torso.Position.X,ROOT.Position.Y,target.Torso.Position.Z)).lookVector,500,CHARACTER)
  1370. if TestForTarget(RAYTEST,target) == true then
  1371. local path = pathService:ComputeRawPathAsync(ROOT.Position,TARGETHUM.Torso.Position,5000)
  1372. local didBreak = false
  1373. local targetStart
  1374. if target and ROOT and target.Torso then
  1375. targetStart = target.Torso.Position
  1376. local previous = ROOT.Position
  1377. local points = path:GetWaypoints()
  1378. local s = #points > 1 and 2 or 1
  1379. for i = s,#points do
  1380. if GYRO == nil then
  1381. local point = points[i].Position
  1382. if didBreak then
  1383. break
  1384. end
  1385. if target and target.Torso and target.Health > 0 and ATTACKING == false then
  1386. if (ROOT.Position - point).Magnitude > 1 and TARGETHUM == target then
  1387. local pos = previous:lerp(point,0.65)
  1388. goToPos(previous:lerp(point,0.65),target)
  1389. previous = point
  1390. end
  1391. else
  1392. didBreak = true
  1393. break
  1394. end
  1395. end
  1396. end
  1397. end
  1398. if not didBreak and targetStart then
  1399. goToPos(targetStart)
  1400. end
  1401. else
  1402. if ATTACKING == false then
  1403. GoTo(target.Torso.Position+VT(0,2.5,0))
  1404. end
  1405. end
  1406. end
  1407. end
  1408. end
  1409. end))
  1410. HUMANOID.Died:Connect(function()
  1411. if DEAD == false then
  1412. DEAD = true
  1413. repeat
  1414. Swait()
  1415. until ATTACKING == false
  1416. CHAIR.Transparency = 0
  1417. Transparent(0)
  1418. script.Music:Stop()
  1419. ROOT.Deathed:Play()
  1420. repeat
  1421. Swait()
  1422. ClerpBody({
  1423. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  1424. CF(0,-0.5,0)*ANGLES(RAD(35),RAD(0),RAD(0))*CF(0,-1,0),
  1425. CF(0,0.5,0)*ANGLES(RAD(-35),RAD(0),RAD(5))*CF(-1.5,-0.3,0),
  1426. CF(0,0.5,0)*ANGLES(RAD(-35),RAD(0),RAD(-5))*CF(1.5,-0.3,0),
  1427. CF(-0,0,0)*ANGLES(RAD(-15),RAD(0),RAD(0))*CF(-0.5,1,1),
  1428. CF(0,0,0)*ANGLES(RAD(-15),RAD(0),RAD(0))*CF(0.5,1,1),
  1429. },nil)
  1430. until ROOT.Deathed.Playing == false
  1431. CHARACTER.Head.Nametag:Remove()
  1432. TORSO.Neck:Remove()
  1433. TORSO.Die:Play()
  1434. ROOT:Remove()
  1435. CHARACTER:BreakJoints()
  1436. CHAIR:Destroy()
  1437. Debris:AddItem(CHARACTER,5)
  1438. end
  1439. end)
  1440. HUMANOID.HealthChanged:Connect(function()
  1441. if HIT == false and DEAD == false then
  1442. HIT = true
  1443. local HA = {ROOT.Ha1,ROOT.Ha2}
  1444. HA[MRANDOM(1,2)]:Play()
  1445. for i = 1, 100 do
  1446. Swait()
  1447. if ATTACKING == true then
  1448. Neck.C1 = Clerp(Neck.C1, CF(0,-2.5,0)*ANGLES(0,0,RAD(65*SIN(i/6)))*CF(0,-1,0), 0.2)
  1449. else
  1450. 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)
  1451. end
  1452. if DEAD == true then
  1453. break
  1454. end
  1455. end
  1456. HIT = false
  1457. end
  1458. end)
  1459. while true do
  1460. if DEAD == true then
  1461. break
  1462. end
  1463. local TARGETVARIANTS = {}
  1464. TARGET = nil
  1465. for index, CHILD in pairs(workspace:GetChildren()) do
  1466. if CHILD ~= CHARACTER and CHILD:FindFirstChild("Slain") == nil then
  1467. local HUMAN = CHILD:FindFirstChildOfClass("Humanoid")
  1468. if HUMAN then
  1469. if HUMAN.Health > 0 then
  1470. if HUMAN.Torso then
  1471. local DISTANCE = (HUMAN.Torso.Position - ROOT.Position).Magnitude
  1472. table.insert(TARGETVARIANTS,{CHILD,DISTANCE})
  1473. end
  1474. end
  1475. end
  1476. end
  1477. end
  1478. local DIST = math.huge
  1479. for E = 1, #TARGETVARIANTS do
  1480. local PLAYER = TARGETVARIANTS[E]
  1481. local CHARACTER = PLAYER[1]
  1482. local DISTANCE = PLAYER[2]
  1483. if DISTANCE < DIST then
  1484. DIST = DISTANCE
  1485. TARGET = CHARACTER
  1486. end
  1487. end
  1488. if TARGET and TARGET:FindFirstChild("HumanoidRootPart") then
  1489. TARGETHUM = TARGET:FindFirstChildOfClass("Humanoid")
  1490. --[[HUMANOID.WalkSpeed = 22
  1491. HUMANOID.JumpPower = 125]]
  1492. local RAY = Raycast(ROOT.Position,CF(ROOT.Position,TARGETHUM.Torso.Position).lookVector,25,CHARACTER)
  1493. 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
  1494. ATTACKS[MRANDOM(1,#ATTACKS)](TARGETHUM)
  1495. end
  1496. else
  1497. TARGETHUM = nil
  1498. end
  1499. wait()
  1500. end
  1501. end
  1502.  
  1503. BEGINAI()
  1504. end))
  1505. Sound35.Name = "Music"
  1506. Sound35.Parent = Script34
  1507. Sound35.Looped = true
  1508. Sound35.SoundId = "rbxassetid://2701520256"
  1509. Sound35.Volume = 2.5
  1510. MeshPart36.Name = "Hat"
  1511. MeshPart36.Parent = Model2
  1512. MeshPart36.CFrame = CFrame.new(-544.792542, 90.7830505, 51.2608185, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1513. MeshPart36.Position = Vector3.new(-544.792542, 90.7830505, 51.2608185)
  1514. MeshPart36.Color = Color3.new(0.129412, 0.329412, 0.72549)
  1515. MeshPart36.Size = Vector3.new(2.75788856, 1.64599526, 2.41334939)
  1516. MeshPart36.BrickColor = BrickColor.new("Deep blue")
  1517. MeshPart36.CanCollide = false
  1518. MeshPart36.Material = Enum.Material.SmoothPlastic
  1519. MeshPart36.brickColor = BrickColor.new("Deep blue")
  1520. Weld37.Name = "Joint"
  1521. Weld37.Parent = MeshPart36
  1522. Weld37.C0 = CFrame.new(0, -0.699880123, -0.500030518, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1523. Weld37.Part0 = MeshPart36
  1524. Weld37.Part1 = UnionOperation11
  1525. Weld37.part1 = UnionOperation11
  1526. MeshPart38.Name = "Tail"
  1527. MeshPart38.Parent = Model2
  1528. MeshPart38.CFrame = CFrame.new(-544.792542, 87.0130463, 52.3607712, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1529. MeshPart38.Position = Vector3.new(-544.792542, 87.0130463, 52.3607712)
  1530. MeshPart38.Color = Color3.new(0.129412, 0.329412, 0.72549)
  1531. MeshPart38.Size = Vector3.new(0.462002546, 1.40317202, 2.49498963)
  1532. MeshPart38.BrickColor = BrickColor.new("Deep blue")
  1533. MeshPart38.CanCollide = false
  1534. MeshPart38.Material = Enum.Material.SmoothPlastic
  1535. MeshPart38.brickColor = BrickColor.new("Deep blue")
  1536. Weld39.Name = "Joint"
  1537. Weld39.Parent = MeshPart38
  1538. Weld39.C0 = CFrame.new(-3.81469727e-05, 1.57016039, -1.59996033, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1539. Weld39.Part0 = MeshPart38
  1540. Weld39.Part1 = UnionOperation3
  1541. Weld39.part1 = UnionOperation3
  1542. Humanoid40.Parent = Model2
  1543. Humanoid40.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  1544. Humanoid40.Health = 6500
  1545. Humanoid40.LeftLeg = MeshPart33
  1546. Humanoid40.MaxHealth = 6500
  1547. Humanoid40.MaxSlopeAngle = 89.900001525879
  1548. Humanoid40.RightLeg = MeshPart32
  1549. Humanoid40.Torso = Part17
  1550. Humanoid40.maxHealth = 6500
  1551. Part41.Name = "Wheelchair"
  1552. Part41.Parent = Model2
  1553. Part41.CFrame = CFrame.new(-544.792542, 87.6830444, 50.7607727, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1554. Part41.Position = Vector3.new(-544.792542, 87.6830444, 50.7607727)
  1555. Part41.Transparency = 1
  1556. Part41.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  1557. Part41.Anchored = true
  1558. Part41.BottomSurface = Enum.SurfaceType.Smooth
  1559. Part41.CanCollide = false
  1560. Part41.Material = Enum.Material.SmoothPlastic
  1561. Part41.TopSurface = Enum.SurfaceType.Smooth
  1562. SpecialMesh42.Parent = Part41
  1563. SpecialMesh42.MeshId = "rbxassetid://1226669573"
  1564. SpecialMesh42.Scale = Vector3.new(2, 2, 2)
  1565. SpecialMesh42.TextureId = "rbxassetid://1226669284"
  1566. SpecialMesh42.MeshType = Enum.MeshType.FileMesh
  1567. Model43.Name = "CompiledScripts"
  1568. Model43.Parent = mas
  1569. LocalScript44.Name = "Script1"
  1570. LocalScript44.Parent = Model43
  1571. table.insert(cors,sandbox(LocalScript44,function()
  1572.  
  1573. --Converted with ttyyuu12345's model to script plugin v4
  1574. function sandbox(var,func)
  1575. local env = getfenv(func)
  1576. local newenv = setmetatable({},{
  1577. __index = function(self,k)
  1578. if k=="script" then
  1579. return var
  1580. else
  1581. return env[k]
  1582. end
  1583. end,
  1584. })
  1585. setfenv(func,newenv)
  1586. return func
  1587. end
  1588. cors = {}
  1589. mas = Instance.new("Model",game:GetService("Lighting"))
  1590. local chil = workspace:GetChildren()
  1591. for i,v in pairs(chil) do
  1592. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  1593. v:Destroy()
  1594. end
  1595. end
  1596. Camera0 = Instance.new("Camera")
  1597. Model1 = Instance.new("Model")
  1598. Part2 = Instance.new("Part")
  1599. Part3 = Instance.new("Part")
  1600. UnionOperation4 = Instance.new("UnionOperation")
  1601. Part5 = Instance.new("Part")
  1602. PointLight6 = Instance.new("PointLight")
  1603. RotateV7 = Instance.new("RotateV")
  1604. SpawnLocation8 = Instance.new("SpawnLocation")
  1605. Model9 = Instance.new("Model")
  1606. UnionOperation10 = Instance.new("UnionOperation")
  1607. Beam11 = Instance.new("Beam")
  1608. Sound12 = Instance.new("Sound")
  1609. Motor6D13 = Instance.new("Motor6D")
  1610. Motor6D14 = Instance.new("Motor6D")
  1611. Motor6D15 = Instance.new("Motor6D")
  1612. Motor6D16 = Instance.new("Motor6D")
  1613. Motor6D17 = Instance.new("Motor6D")
  1614. UnionOperation18 = Instance.new("UnionOperation")
  1615. Decal19 = Instance.new("Decal")
  1616. BillboardGui20 = Instance.new("BillboardGui")
  1617. TextLabel21 = Instance.new("TextLabel")
  1618. TextLabel22 = Instance.new("TextLabel")
  1619. Script23 = Instance.new("Script")
  1620. Part24 = Instance.new("Part")
  1621. Sound25 = Instance.new("Sound")
  1622. Sound26 = Instance.new("Sound")
  1623. Sound27 = Instance.new("Sound")
  1624. Sound28 = Instance.new("Sound")
  1625. Sound29 = Instance.new("Sound")
  1626. Sound30 = Instance.new("Sound")
  1627. Sound31 = Instance.new("Sound")
  1628. Sound32 = Instance.new("Sound")
  1629. Sound33 = Instance.new("Sound")
  1630. Sound34 = Instance.new("Sound")
  1631. Sound35 = Instance.new("Sound")
  1632. Motor6D36 = Instance.new("Motor6D")
  1633. MeshPart37 = Instance.new("MeshPart")
  1634. MeshPart38 = Instance.new("MeshPart")
  1635. MeshPart39 = Instance.new("MeshPart")
  1636. MeshPart40 = Instance.new("MeshPart")
  1637. Script41 = Instance.new("Script")
  1638. Sound42 = Instance.new("Sound")
  1639. MeshPart43 = Instance.new("MeshPart")
  1640. Weld44 = Instance.new("Weld")
  1641. MeshPart45 = Instance.new("MeshPart")
  1642. Weld46 = Instance.new("Weld")
  1643. Humanoid47 = Instance.new("Humanoid")
  1644. Part48 = Instance.new("Part")
  1645. SpecialMesh49 = Instance.new("SpecialMesh")
  1646. Camera0.Parent = mas
  1647. 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)
  1648. 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)
  1649. Camera0.Focus = CFrame.new(-544.792542, 88.594574, 51.8312035, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1650. Camera0.focus = CFrame.new(-544.792542, 88.594574, 51.8312035, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1651. Model1.Parent = mas
  1652. Part2.Parent = Model1
  1653. Part2.CFrame = CFrame.new(-542.362, 84.453186, 64.4654312, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  1654. Part2.Orientation = Vector3.new(0, 0, 90)
  1655. Part2.Position = Vector3.new(-542.362, 84.453186, 64.4654312)
  1656. Part2.Rotation = Vector3.new(0, 0, 90)
  1657. Part2.Transparency = 1
  1658. Part2.Size = Vector3.new(2.05412745, 77.9478531, 77.9478531)
  1659. Part2.Anchored = true
  1660. Part2.BottomSurface = Enum.SurfaceType.Smooth
  1661. Part2.Material = Enum.Material.SmoothPlastic
  1662. Part2.TopSurface = Enum.SurfaceType.Smooth
  1663. Part2.Shape = Enum.PartType.Cylinder
  1664. Part3.Parent = Model1
  1665. Part3.CFrame = CFrame.new(-542.737, 95.8481674, 63.9203873, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1666. Part3.Position = Vector3.new(-542.737, 95.8481674, 63.9203873)
  1667. Part3.Color = Color3.new(0, 0, 1)
  1668. Part3.Transparency = 1
  1669. Part3.Size = Vector3.new(11.8312006, 21.6499958, 12.28965)
  1670. Part3.Anchored = true
  1671. Part3.BottomSurface = Enum.SurfaceType.Smooth
  1672. Part3.BrickColor = BrickColor.new("Really blue")
  1673. Part3.TopSurface = Enum.SurfaceType.Smooth
  1674. Part3.brickColor = BrickColor.new("Really blue")
  1675. UnionOperation4.Parent = Model1
  1676. UnionOperation4.CFrame = CFrame.new(-542.859009, 95.8502197, 64.923317, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1677. UnionOperation4.Orientation = Vector3.new(0, 90, 0)
  1678. UnionOperation4.Position = Vector3.new(-542.859009, 95.8502197, 64.923317)
  1679. UnionOperation4.Rotation = Vector3.new(0, 90, 0)
  1680. UnionOperation4.Color = Color3.new(0, 0, 1)
  1681. UnionOperation4.Size = Vector3.new(78.035202, 28.0076447, 76.9837036)
  1682. UnionOperation4.BrickColor = BrickColor.new("Really blue")
  1683. UnionOperation4.CanCollide = false
  1684. UnionOperation4.brickColor = BrickColor.new("Really blue")
  1685. Part5.Parent = Model1
  1686. Part5.CFrame = CFrame.new(-542.731995, 80.3513184, 63.8854446, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1687. Part5.Position = Vector3.new(-542.731995, 80.3513184, 63.8854446)
  1688. Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1689. Part5.Size = Vector3.new(86.9104919, 2.91001558, 85.2406006)
  1690. Part5.Anchored = true
  1691. Part5.BottomSurface = Enum.SurfaceType.Smooth
  1692. Part5.BrickColor = BrickColor.new("Really black")
  1693. Part5.TopParamA = -0.10000000149012
  1694. Part5.TopParamB = 0.10000000149012
  1695. Part5.TopSurface = Enum.SurfaceType.Motor
  1696. Part5.TopSurfaceInput = Enum.InputType.Constant
  1697. Part5.brickColor = BrickColor.new("Really black")
  1698. PointLight6.Parent = Part5
  1699. PointLight6.Range = 45
  1700. PointLight6.Brightness = 0.60000002384186
  1701. RotateV7.Parent = Part5
  1702. RotateV7.C0 = CFrame.new(0, 1.45500779, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1703. RotateV7.C1 = CFrame.new(1.03999996, -14.04, 0.129999995, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1704. RotateV7.Part0 = Part5
  1705. RotateV7.Part1 = UnionOperation4
  1706. RotateV7.part1 = UnionOperation4
  1707. RotateV7.BaseAngle = 1.5707963705063
  1708. SpawnLocation8.Parent = mas
  1709. SpawnLocation8.CFrame = CFrame.new(-522.671448, 85.6833878, 81.3869476, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1710. SpawnLocation8.Orientation = Vector3.new(0, 180, 0)
  1711. SpawnLocation8.Position = Vector3.new(-522.671448, 85.6833878, 81.3869476)
  1712. SpawnLocation8.Rotation = Vector3.new(-180, 0, -180)
  1713. SpawnLocation8.Transparency = 1
  1714. SpawnLocation8.Size = Vector3.new(6, 0.200000048, 6)
  1715. SpawnLocation8.Anchored = true
  1716. SpawnLocation8.BackSurface = Enum.SurfaceType.Weld
  1717. SpawnLocation8.BottomSurface = Enum.SurfaceType.Weld
  1718. SpawnLocation8.FrontSurface = Enum.SurfaceType.Weld
  1719. SpawnLocation8.LeftSurface = Enum.SurfaceType.Weld
  1720. SpawnLocation8.RightSurface = Enum.SurfaceType.Weld
  1721. SpawnLocation8.TopSurface = Enum.SurfaceType.Smooth
  1722. Model9.Name = "Joofil"
  1723. Model9.Parent = mas
  1724. Model9.PrimaryPart = Part24
  1725. UnionOperation10.Name = "Torso"
  1726. UnionOperation10.Parent = Model9
  1727. UnionOperation10.CFrame = CFrame.new(-544.792603, 88.5832062, 50.7608109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1728. UnionOperation10.Position = Vector3.new(-544.792603, 88.5832062, 50.7608109)
  1729. UnionOperation10.Color = Color3.new(0.129412, 0.329412, 0.72549)
  1730. UnionOperation10.Size = Vector3.new(2.00003052, 2.00002933, 1.00000763)
  1731. UnionOperation10.BrickColor = BrickColor.new("Deep blue")
  1732. UnionOperation10.Material = Enum.Material.SmoothPlastic
  1733. UnionOperation10.brickColor = BrickColor.new("Deep blue")
  1734. UnionOperation10.UsePartColor = true
  1735. Beam11.Name = "Neck"
  1736. Beam11.Parent = UnionOperation10
  1737. Beam11.Attachment0 = nil
  1738. Beam11.Attachment1 = nil
  1739. Beam11.FaceCamera = true
  1740. Beam11.LightEmission = 1
  1741. Beam11.LightInfluence = 1
  1742. Beam11.Segments = 50
  1743. Beam11.Texture = "rbxassetid://1134824633"
  1744. Beam11.TextureLength = 5
  1745. Beam11.TextureMode = Enum.TextureMode.Static
  1746. Beam11.TextureSpeed = 2
  1747. Beam11.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
  1748. Beam11.Width0 = 0.5
  1749. Beam11.Width1 = 0.5
  1750. Sound12.Name = "Die"
  1751. Sound12.Parent = UnionOperation10
  1752. Sound12.MaxDistance = 300
  1753. Sound12.EmitterSize = 35
  1754. Sound12.MinDistance = 35
  1755. Sound12.SoundId = "rbxassetid://2150821806"
  1756. Sound12.Volume = 2
  1757. Motor6D13.Name = "Head"
  1758. Motor6D13.Parent = UnionOperation10
  1759. Motor6D13.C1 = CFrame.new(-3.9100647e-05, -1.49995828, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1760. Motor6D13.Part0 = UnionOperation10
  1761. Motor6D13.Part1 = UnionOperation18
  1762. Motor6D13.part1 = UnionOperation18
  1763. Motor6D14.Name = "RArm"
  1764. Motor6D14.Parent = UnionOperation10
  1765. Motor6D14.C1 = CFrame.new(-1.50003719, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1766. Motor6D14.Part0 = UnionOperation10
  1767. Motor6D14.Part1 = MeshPart38
  1768. Motor6D14.part1 = MeshPart38
  1769. Motor6D15.Name = "LArm"
  1770. Motor6D15.Parent = UnionOperation10
  1771. Motor6D15.C1 = CFrame.new(1.49996281, 0.000101089478, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1772. Motor6D15.Part0 = UnionOperation10
  1773. Motor6D15.Part1 = MeshPart37
  1774. Motor6D15.part1 = MeshPart37
  1775. Motor6D16.Name = "RLeg"
  1776. Motor6D16.Parent = UnionOperation10
  1777. Motor6D16.C1 = CFrame.new(-0.500037193, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1778. Motor6D16.Part0 = UnionOperation10
  1779. Motor6D16.Part1 = MeshPart39
  1780. Motor6D16.part1 = MeshPart39
  1781. Motor6D17.Name = "LLeg"
  1782. Motor6D17.Parent = UnionOperation10
  1783. Motor6D17.C1 = CFrame.new(0.499962807, 2.00010109, 2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1784. Motor6D17.Part0 = UnionOperation10
  1785. Motor6D17.Part1 = MeshPart40
  1786. Motor6D17.part1 = MeshPart40
  1787. UnionOperation18.Name = "Head"
  1788. UnionOperation18.Parent = Model9
  1789. UnionOperation18.CFrame = CFrame.new(-544.792542, 90.083168, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1790. UnionOperation18.Position = Vector3.new(-544.792542, 90.083168, 50.760788)
  1791. UnionOperation18.Color = Color3.new(0.937255, 0.721569, 0.219608)
  1792. UnionOperation18.Size = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  1793. UnionOperation18.BrickColor = BrickColor.new("Gold")
  1794. UnionOperation18.Material = Enum.Material.SmoothPlastic
  1795. UnionOperation18.brickColor = BrickColor.new("Gold")
  1796. UnionOperation18.UsePartColor = true
  1797. Decal19.Name = "Smile"
  1798. Decal19.Parent = UnionOperation18
  1799. Decal19.Texture = "http://www.roblox.com/asset/?id=288072938"
  1800. BillboardGui20.Name = "Nametag"
  1801. BillboardGui20.Parent = UnionOperation18
  1802. BillboardGui20.Size = UDim2.new(4, 0, 4, 0)
  1803. BillboardGui20.AlwaysOnTop = true
  1804. BillboardGui20.StudsOffset = Vector3.new(0, 2, 0)
  1805. TextLabel21.Name = "Title"
  1806. TextLabel21.Parent = BillboardGui20
  1807. TextLabel21.Size = UDim2.new(1, 0, 0.25, 0)
  1808. TextLabel21.BackgroundColor = BrickColor.new("Institutional white")
  1809. TextLabel21.BackgroundColor3 = Color3.new(1, 1, 1)
  1810. TextLabel21.BackgroundTransparency = 1
  1811. TextLabel21.BorderSizePixel = 0
  1812. TextLabel21.ClipsDescendants = true
  1813. TextLabel21.Font = Enum.Font.Fantasy
  1814. TextLabel21.FontSize = Enum.FontSize.Size14
  1815. TextLabel21.Text = "Joofil"
  1816. TextLabel21.TextColor = BrickColor.new("Institutional white")
  1817. TextLabel21.TextColor3 = Color3.new(1, 1, 1)
  1818. TextLabel21.TextScaled = true
  1819. TextLabel21.TextSize = 14
  1820. TextLabel21.TextWrap = true
  1821. TextLabel21.TextWrapped = true
  1822. TextLabel22.Name = "HP"
  1823. TextLabel22.Parent = BillboardGui20
  1824. TextLabel22.Position = UDim2.new(0, 0, 0.25, 0)
  1825. TextLabel22.Size = UDim2.new(1, 0, 0.100000001, 0)
  1826. TextLabel22.BackgroundColor = BrickColor.new("Institutional white")
  1827. TextLabel22.BackgroundColor3 = Color3.new(1, 1, 1)
  1828. TextLabel22.BackgroundTransparency = 1
  1829. TextLabel22.BorderSizePixel = 0
  1830. TextLabel22.ClipsDescendants = true
  1831. TextLabel22.Font = Enum.Font.Fantasy
  1832. TextLabel22.FontSize = Enum.FontSize.Size48
  1833. TextLabel22.Text = "0/0"
  1834. TextLabel22.TextColor = BrickColor.new("Mint")
  1835. TextLabel22.TextColor3 = Color3.new(0.686275, 1, 0.686275)
  1836. TextLabel22.TextScaled = true
  1837. TextLabel22.TextSize = 45
  1838. TextLabel22.TextWrap = true
  1839. TextLabel22.TextWrapped = true
  1840. Script23.Parent = BillboardGui20
  1841. table.insert(cors,sandbox(Script23,function()
  1842. wait(0.05)
  1843. Humanoid = script.Parent.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1844. script.Parent.HP.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  1845.  
  1846. Humanoid.Changed:connect(function()
  1847. if Humanoid.Health > Humanoid.MaxHealth/2 then
  1848. script.Parent.HP.TextColor3 = Color3.new(175/255,1,175/255)
  1849. end
  1850. if Humanoid.Health > Humanoid.MaxHealth then
  1851. script.Parent.HP.TextColor3 = Color3.new(175/255,1,225/255)
  1852. end
  1853. if Humanoid.Health > Humanoid.MaxHealth * 1.5 then
  1854. script.Parent.HP.TextColor3 = Color3.new(175/255,1,1)
  1855. end
  1856. if Humanoid.Health > Humanoid.MaxHealth * 3 then
  1857. script.Parent.HP.TextColor3 = Color3.new(175/255,220/255,1)
  1858. end
  1859. if Humanoid.Health > Humanoid.MaxHealth * 10 then
  1860. script.Parent.HP.TextColor3 = Color3.new(175/255,175/255,1)
  1861. end
  1862. if Humanoid.Health < Humanoid.MaxHealth/2 then
  1863. script.Parent.HP.TextColor3 = Color3.new(210/255,1,175/255)
  1864. end
  1865. if Humanoid.Health < Humanoid.MaxHealth/2.5 then
  1866. script.Parent.HP.TextColor3 = Color3.new(230/255,1,175/255)
  1867. end
  1868. if Humanoid.Health < Humanoid.MaxHealth/3 then
  1869. script.Parent.HP.TextColor3 = Color3.new(1,1,175/255)
  1870. end
  1871. if Humanoid.Health < Humanoid.MaxHealth/5 then
  1872. script.Parent.HP.TextColor3 = Color3.new(1,225/255,175/255)
  1873. end
  1874. if Humanoid.Health < Humanoid.MaxHealth/7.5 then
  1875. script.Parent.HP.TextColor3 = Color3.new(1,200/255,175/255)
  1876. end
  1877. if Humanoid.Health < Humanoid.MaxHealth/10 then
  1878. script.Parent.HP.TextColor3 = Color3.new(1,175/255,175/255)
  1879. end
  1880. if Humanoid.Health == 0 then
  1881. script.Parent.HP.Text = "Dead"
  1882. else
  1883. script.Parent.HP.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  1884. end
  1885. if Humanoid.Health == math.huge then
  1886. script.Parent.HP.Text = "Godded"
  1887. script.Parent.HP.TextColor3 = Color3.new(175/255,175/255,175/255)
  1888. end
  1889. end)
  1890. end))
  1891. Part24.Name = "HumanoidRootPart"
  1892. Part24.Parent = Model9
  1893. Part24.CFrame = CFrame.new(-544.792542, 88.583168, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1894. Part24.Position = Vector3.new(-544.792542, 88.583168, 50.760788)
  1895. Part24.Color = Color3.new(0.937255, 0.721569, 0.219608)
  1896. Part24.Transparency = 1
  1897. Part24.Size = Vector3.new(2, 2, 1)
  1898. Part24.Anchored = true
  1899. Part24.BottomSurface = Enum.SurfaceType.Smooth
  1900. Part24.BrickColor = BrickColor.new("Gold")
  1901. Part24.Material = Enum.Material.SmoothPlastic
  1902. Part24.TopSurface = Enum.SurfaceType.Smooth
  1903. Part24.brickColor = BrickColor.new("Gold")
  1904. Sound25.Name = "Chuckle"
  1905. Sound25.Parent = Part24
  1906. Sound25.MaxDistance = 300
  1907. Sound25.EmitterSize = 35
  1908. Sound25.MinDistance = 35
  1909. Sound25.SoundId = "rbxassetid://2545010175"
  1910. Sound25.Volume = 5
  1911. Sound26.Name = "ByeBye"
  1912. Sound26.Parent = Part24
  1913. Sound26.MaxDistance = 300
  1914. Sound26.EmitterSize = 35
  1915. Sound26.MinDistance = 35
  1916. Sound26.SoundId = "rbxassetid://2545211516"
  1917. Sound26.Volume = 5
  1918. Sound27.Name = "ChaosChaos"
  1919. Sound27.Parent = Part24
  1920. Sound27.MaxDistance = 300
  1921. Sound27.EmitterSize = 35
  1922. Sound27.MinDistance = 35
  1923. Sound27.SoundId = "rbxassetid://2545008459"
  1924. Sound27.Volume = 5
  1925. Sound28.Name = "Ha2"
  1926. Sound28.Parent = Part24
  1927. Sound28.MaxDistance = 300
  1928. Sound28.EmitterSize = 35
  1929. Sound28.MinDistance = 35
  1930. Sound28.SoundId = "rbxassetid://2606662454"
  1931. Sound28.Volume = 5
  1932. Sound29.Name = "Ha1"
  1933. Sound29.Parent = Part24
  1934. Sound29.MaxDistance = 300
  1935. Sound29.EmitterSize = 35
  1936. Sound29.MinDistance = 35
  1937. Sound29.SoundId = "rbxassetid://2606661976"
  1938. Sound29.Volume = 5
  1939. Sound30.Name = "Neo"
  1940. Sound30.Parent = Part24
  1941. Sound30.MaxDistance = 300
  1942. Sound30.EmitterSize = 35
  1943. Sound30.MinDistance = 35
  1944. Sound30.SoundId = "rbxassetid://2545018472"
  1945. Sound30.Volume = 5
  1946. Sound31.Name = "MeDoAnything"
  1947. Sound31.Parent = Part24
  1948. Sound31.MaxDistance = 300
  1949. Sound31.EmitterSize = 35
  1950. Sound31.MinDistance = 35
  1951. Sound31.SoundId = "rbxassetid://2544975373"
  1952. Sound31.Volume = 5
  1953. Sound32.Name = "OH"
  1954. Sound32.Parent = Part24
  1955. Sound32.MaxDistance = 300
  1956. Sound32.EmitterSize = 35
  1957. Sound32.MinDistance = 35
  1958. Sound32.SoundId = "rbxassetid://2545012765"
  1959. Sound32.Volume = 5
  1960. Sound33.Name = "Laugh"
  1961. Sound33.Parent = Part24
  1962. Sound33.MaxDistance = 300
  1963. Sound33.EmitterSize = 35
  1964. Sound33.MinDistance = 35
  1965. Sound33.SoundId = "rbxassetid://2545211765"
  1966. Sound33.Volume = 5
  1967. Sound34.Name = "Metamorph"
  1968. Sound34.Parent = Part24
  1969. Sound34.MaxDistance = 300
  1970. Sound34.EmitterSize = 35
  1971. Sound34.MinDistance = 35
  1972. Sound34.SoundId = "rbxassetid://2545011398"
  1973. Sound34.Volume = 5
  1974. Sound35.Name = "Deathed"
  1975. Sound35.Parent = Part24
  1976. Sound35.MaxDistance = 300
  1977. Sound35.EmitterSize = 35
  1978. Sound35.MinDistance = 35
  1979. Sound35.SoundId = "rbxassetid://2637401925"
  1980. Sound35.Volume = 2
  1981. Motor6D36.Name = "Root"
  1982. Motor6D36.Parent = Part24
  1983. Motor6D36.C1 = CFrame.new(3.9100647e-05, -4.17232513e-05, -2.28881836e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1984. Motor6D36.Part0 = Part24
  1985. Motor6D36.Part1 = UnionOperation10
  1986. Motor6D36.part1 = UnionOperation10
  1987. MeshPart37.Name = "Left Arm"
  1988. MeshPart37.Parent = Model9
  1989. MeshPart37.CFrame = CFrame.new(-546.292542, 88.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1990. MeshPart37.Position = Vector3.new(-546.292542, 88.583107, 50.760788)
  1991. MeshPart37.Color = Color3.new(0.937255, 0.721569, 0.219608)
  1992. MeshPart37.Size = Vector3.new(1.00004005, 2.00002551, 1)
  1993. MeshPart37.BrickColor = BrickColor.new("Gold")
  1994. MeshPart37.Material = Enum.Material.SmoothPlastic
  1995. MeshPart37.brickColor = BrickColor.new("Gold")
  1996. MeshPart38.Name = "Right Arm"
  1997. MeshPart38.Parent = Model9
  1998. MeshPart38.CFrame = CFrame.new(-543.292542, 88.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1999. MeshPart38.Position = Vector3.new(-543.292542, 88.583107, 50.760788)
  2000. MeshPart38.Color = Color3.new(0.937255, 0.721569, 0.219608)
  2001. MeshPart38.Size = Vector3.new(1.00004005, 2.00002551, 1)
  2002. MeshPart38.BrickColor = BrickColor.new("Gold")
  2003. MeshPart38.Material = Enum.Material.SmoothPlastic
  2004. MeshPart38.brickColor = BrickColor.new("Gold")
  2005. MeshPart39.Name = "Right Leg"
  2006. MeshPart39.Parent = Model9
  2007. MeshPart39.CFrame = CFrame.new(-544.292542, 86.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2008. MeshPart39.Position = Vector3.new(-544.292542, 86.583107, 50.760788)
  2009. MeshPart39.Color = Color3.new(0.294118, 0.592157, 0.294118)
  2010. MeshPart39.Size = Vector3.new(1.00004005, 2.00002551, 1)
  2011. MeshPart39.BrickColor = BrickColor.new("Bright green")
  2012. MeshPart39.Material = Enum.Material.SmoothPlastic
  2013. MeshPart39.brickColor = BrickColor.new("Bright green")
  2014. MeshPart40.Name = "Left Leg"
  2015. MeshPart40.Parent = Model9
  2016. MeshPart40.CFrame = CFrame.new(-545.292542, 86.583107, 50.760788, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2017. MeshPart40.Position = Vector3.new(-545.292542, 86.583107, 50.760788)
  2018. MeshPart40.Color = Color3.new(0.294118, 0.592157, 0.294118)
  2019. MeshPart40.Size = Vector3.new(1.00004005, 2.00002551, 1)
  2020. MeshPart40.BrickColor = BrickColor.new("Bright green")
  2021. MeshPart40.Material = Enum.Material.SmoothPlastic
  2022. MeshPart40.brickColor = BrickColor.new("Bright green")
  2023. Script41.Name = "REOOFING"
  2024. Script41.Parent = Model9
  2025. table.insert(cors,sandbox(Script41,function()
  2026. IT = Instance.new
  2027. CF = CFrame.new
  2028. VT = Vector3.new
  2029. RAD = math.rad
  2030. C3 = Color3.new
  2031. UD2 = UDim2.new
  2032. BRICKC = BrickColor.new
  2033. ANGLES = CFrame.Angles
  2034. EULER = CFrame.fromEulerAnglesXYZ
  2035. COS = math.cos
  2036. ACOS = math.acos
  2037. SIN = math.sin
  2038. ASIN = math.asin
  2039. ABS = math.abs
  2040. MRANDOM = math.random
  2041. FLOOR = math.floor
  2042.  
  2043. local GYRO = nil
  2044. local CHARACTER = script.Parent
  2045. local HUMANOID = CHARACTER:FindFirstChildOfClass("Humanoid")
  2046. local TORSO = CHARACTER.Torso
  2047. local ROOT = CHARACTER.HumanoidRootPart
  2048. local RIGHTARM = CHARACTER["Right Arm"]
  2049. local LEFTARM = CHARACTER["Left Arm"]
  2050. local RIGHTLEG = CHARACTER["Right Leg"]
  2051. local LEFTLEG = CHARACTER["Left Leg"]
  2052. RootJoint = ROOT["Root"]
  2053. Neck = TORSO["Head"]
  2054. RightShoulder = TORSO["RArm"]
  2055. LeftShoulder = TORSO["LArm"]
  2056. RightHip = TORSO["RLeg"]
  2057. LeftHip = TORSO["LLeg"]
  2058. local BODY = {}
  2059. local CHAIR = CHARACTER.Wheelchair
  2060. for index, CHILD in pairs(CHARACTER:GetDescendants()) do
  2061. if (CHILD:IsA("BasePart") or CHILD:IsA("Decal") or CHILD:IsA("Beam")) and CHILD ~= ROOT and CHILD ~= CHAIR then
  2062. table.insert(BODY,CHILD)
  2063. end
  2064. end
  2065. local ATTACKING = false
  2066. if script:FindFirstChild("Color") then
  2067. script.Color.Parent = game.Lighting
  2068. end
  2069. local HIT = false
  2070. local MUSIC = script.Music
  2071. local DEAD = false
  2072. MUSIC:Play()
  2073. local CLUBSMESH = 2761335666
  2074. local DIAMONDMESH = 1254392112
  2075. local SPADEMESH = 2760895053
  2076. local HEARTMESH = 105992239 --VT(3.5,3.5,3.5)
  2077. local SCYTHEMESH = 455516381
  2078. local SINE = 0
  2079. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  2080.  
  2081. Debris = game:GetService("Debris")
  2082.  
  2083. local Effects = IT("Folder",CHARACTER)
  2084.  
  2085. --//=================================\\
  2086. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  2087. --\\=================================//
  2088.  
  2089. ArtificialHB = Instance.new("BindableEvent", script)
  2090. ArtificialHB.Name = "ArtificialHB"
  2091.  
  2092. script:WaitForChild("ArtificialHB")
  2093.  
  2094. frame = 1/60
  2095. tf = 0
  2096. allowframeloss = false
  2097. tossremainder = false
  2098. lastframe = tick()
  2099. script.ArtificialHB:Fire()
  2100.  
  2101. game:GetService("RunService").Heartbeat:connect(function(s, p)
  2102. tf = tf + s
  2103. if tf >= frame then
  2104. if allowframeloss then
  2105. script.ArtificialHB:Fire()
  2106. lastframe = tick()
  2107. else
  2108. for i = 1, math.floor(tf / frame) do
  2109. script.ArtificialHB:Fire()
  2110. end
  2111. lastframe = tick()
  2112. end
  2113. if tossremainder then
  2114. tf = 0
  2115. else
  2116. tf = tf - frame * math.floor(tf / frame)
  2117. end
  2118. end
  2119. end)
  2120.  
  2121. function PositiveAngle(NUMBER)
  2122. if NUMBER >= 0 then
  2123. NUMBER = 0
  2124. end
  2125. return NUMBER
  2126. end
  2127.  
  2128. function NegativeAngle(NUMBER)
  2129. if NUMBER <= 0 then
  2130. NUMBER = 0
  2131. end
  2132. return NUMBER
  2133. end
  2134.  
  2135. function Swait(NUMBER)
  2136. if NUMBER == 0 or NUMBER == nil then
  2137. ArtificialHB.Event:wait()
  2138. else
  2139. for i = 1, NUMBER do
  2140. ArtificialHB.Event:wait()
  2141. end
  2142. end
  2143. end
  2144.  
  2145. --//=================================\\
  2146. --|| FUNCTIONS
  2147. --\\=================================//
  2148.  
  2149. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  2150. local NEWMESH = IT(MESH)
  2151. if MESH == "SpecialMesh" then
  2152. NEWMESH.MeshType = MESHTYPE
  2153. if MESHID ~= "nil" and MESHID ~= "" then
  2154. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  2155. end
  2156. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  2157. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  2158. end
  2159. end
  2160. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  2161. NEWMESH.Scale = SCALE
  2162. NEWMESH.Parent = PARENT
  2163. return NEWMESH
  2164. end
  2165.  
  2166. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  2167. local NEWPART = IT("Part")
  2168. NEWPART.formFactor = FORMFACTOR
  2169. NEWPART.Reflectance = REFLECTANCE
  2170. NEWPART.Transparency = TRANSPARENCY
  2171. NEWPART.CanCollide = false
  2172. NEWPART.Locked = true
  2173. NEWPART.Anchored = true
  2174. if ANCHOR == false then
  2175. NEWPART.Anchored = false
  2176. end
  2177. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  2178. NEWPART.Name = NAME
  2179. NEWPART.Size = SIZE
  2180. NEWPART.Position = TORSO.Position
  2181. NEWPART.Material = MATERIAL
  2182. NEWPART:BreakJoints()
  2183. NEWPART.Parent = PARENT
  2184. return NEWPART
  2185. end
  2186.  
  2187. local function weldBetween(a, b)
  2188. local weldd = IT("ManualWeld")
  2189. weldd.Part0 = a
  2190. weldd.Part1 = b
  2191. weldd.C0 = CF()
  2192. weldd.C1 = b.CFrame:inverse() * a.CFrame
  2193. weldd.Parent = a
  2194. return weldd
  2195. end
  2196.  
  2197. local S = IT("Sound")
  2198. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  2199. local NEWSOUND = nil
  2200. coroutine.resume(coroutine.create(function()
  2201. NEWSOUND = S:Clone()
  2202. NEWSOUND.Parent = PARENT
  2203. NEWSOUND.Volume = VOLUME
  2204. NEWSOUND.Pitch = PITCH
  2205. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  2206. NEWSOUND:play()
  2207. if DOESLOOP == true then
  2208. NEWSOUND.Looped = true
  2209. else
  2210. repeat wait(1) until NEWSOUND.Playing == false
  2211. NEWSOUND:remove()
  2212. end
  2213. end))
  2214. return NEWSOUND
  2215. end
  2216.  
  2217. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  2218. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  2219. end
  2220.  
  2221. function ApplyDamage(Humanoid,Damage)
  2222. Damage = Damage * 1
  2223. if Humanoid.Health ~= 0 then
  2224. Humanoid.Health = Humanoid.Health - Damage
  2225. end
  2226. end
  2227.  
  2228. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  2229. for index, CHILD in pairs(workspace:GetDescendants()) do
  2230. if CHILD.ClassName == "Model" and CHILD ~= CHARACTER then
  2231. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2232. if HUM then
  2233. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2234. if TORSO then
  2235. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2236. if INSTAKILL == true then
  2237. CHILD:BreakJoints()
  2238. else
  2239. local DMG = MRANDOM(MINDMG,MAXDMG)
  2240. ApplyDamage(HUM,DMG)
  2241. end
  2242. if FLING > 0 then
  2243. for _, c in pairs(CHILD:GetChildren()) do
  2244. if c:IsA("BasePart") then
  2245. local bv = Instance.new("BodyVelocity")
  2246. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2247. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  2248. bv.Parent = c
  2249. Debris:AddItem(bv,0.05)
  2250. end
  2251. end
  2252. end
  2253. end
  2254. end
  2255. end
  2256. end
  2257. end
  2258. end
  2259.  
  2260. --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})
  2261. function WACKYEFFECT(Table)
  2262. local TYPE = (Table.EffectType or "Sphere")
  2263. local SIZE = (Table.Size or VT(1,1,1))
  2264. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  2265. local TRANSPARENCY = (Table.Transparency or 0)
  2266. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  2267. local CFRAME = (Table.CFrame or TORSO.CFrame)
  2268. local MOVEDIRECTION = (Table.MoveToPos or nil)
  2269. local ROTATION1 = (Table.RotationX or 0)
  2270. local ROTATION2 = (Table.RotationY or 0)
  2271. local ROTATION3 = (Table.RotationZ or 0)
  2272. local MATERIAL = (Table.Material or "Neon")
  2273. local COLOR = (Table.Color or C3(1,1,1))
  2274. local TIME = (Table.Time or 45)
  2275. local SOUNDID = (Table.SoundID or nil)
  2276. local SOUNDPITCH = (Table.SoundPitch or nil)
  2277. local SOUNDVOLUME = (Table.SoundVolume or nil)
  2278. coroutine.resume(coroutine.create(function()
  2279. local PLAYSSOUND = false
  2280. local SOUND = nil
  2281. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  2282. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  2283. PLAYSSOUND = true
  2284. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  2285. end
  2286. EFFECT.Color = COLOR
  2287. local MSH = nil
  2288. if TYPE == "Sphere" then
  2289. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  2290. elseif TYPE == "Block" or TYPE == "Box" then
  2291. MSH = IT("BlockMesh",EFFECT)
  2292. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  2293. elseif TYPE == "Wave" then
  2294. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  2295. elseif TYPE == "Ring" then
  2296. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  2297. elseif TYPE == "Slash" then
  2298. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  2299. elseif TYPE == "Round Slash" then
  2300. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  2301. elseif TYPE == "Swirl" then
  2302. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  2303. elseif TYPE == "Skull" then
  2304. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  2305. elseif TYPE == "Crystal" then
  2306. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  2307. end
  2308. if MSH ~= nil then
  2309. local MOVESPEED = nil
  2310. if MOVEDIRECTION ~= nil then
  2311. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  2312. end
  2313. local GROWTH = SIZE - ENDSIZE
  2314. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  2315. if TYPE == "Block" then
  2316. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2317. else
  2318. EFFECT.CFrame = CFRAME
  2319. end
  2320. for LOOP = 1, TIME+1 do
  2321. Swait()
  2322. MSH.Scale = MSH.Scale - GROWTH/TIME
  2323. if TYPE == "Wave" then
  2324. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  2325. end
  2326. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  2327. if TYPE == "Block" then
  2328. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2329. else
  2330. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  2331. end
  2332. if MOVEDIRECTION ~= nil then
  2333. local ORI = EFFECT.Orientation
  2334. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  2335. EFFECT.Orientation = ORI
  2336. end
  2337. end
  2338. if PLAYSSOUND == false then
  2339. EFFECT:remove()
  2340. else
  2341. repeat Swait() until SOUND.Playing == false
  2342. EFFECT:remove()
  2343. end
  2344. else
  2345. if PLAYSSOUND == false then
  2346. EFFECT:remove()
  2347. else
  2348. repeat Swait() until SOUND.Playing == false
  2349. EFFECT:remove()
  2350. end
  2351. end
  2352. end))
  2353. end
  2354.  
  2355. function Transparent(CY)
  2356. for E = 1, #BODY do
  2357. if BODY[E].ClassName ~= "Beam" then
  2358. BODY[E].Transparency = CY
  2359. else
  2360. BODY[E].Transparency = NumberSequence.new(CY)
  2361. end
  2362. end
  2363. end
  2364.  
  2365. --//=================================\\
  2366. --|| CLERPING
  2367. --\\=================================//
  2368.  
  2369. function QuaternionFromCFrame(cf)
  2370. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2371. local trace = m00 + m11 + m22
  2372. if trace > 0 then
  2373. local s = math.sqrt(1 + trace)
  2374. local recip = 0.5 / s
  2375. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  2376. else
  2377. local i = 0
  2378. if m11 > m00 then
  2379. i = 1
  2380. end
  2381. if m22 > (i == 0 and m00 or m11) then
  2382. i = 2
  2383. end
  2384. if i == 0 then
  2385. local s = math.sqrt(m00 - m11 - m22 + 1)
  2386. local recip = 0.5 / s
  2387. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  2388. elseif i == 1 then
  2389. local s = math.sqrt(m11 - m22 - m00 + 1)
  2390. local recip = 0.5 / s
  2391. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  2392. elseif i == 2 then
  2393. local s = math.sqrt(m22 - m00 - m11 + 1)
  2394. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  2395. end
  2396. end
  2397. end
  2398.  
  2399. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2400. local xs, ys, zs = x + x, y + y, z + z
  2401. local wx, wy, wz = w * xs, w * ys, w * zs
  2402. local xx = x * xs
  2403. local xy = x * ys
  2404. local xz = x * zs
  2405. local yy = y * ys
  2406. local yz = y * zs
  2407. local zz = z * zs
  2408. 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))
  2409. end
  2410.  
  2411. function QuaternionSlerp(a, b, t)
  2412. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  2413. local startInterp, finishInterp;
  2414. if cosTheta >= 0.0001 then
  2415. if (1 - cosTheta) > 0.0001 then
  2416. local theta = ACOS(cosTheta)
  2417. local invSinTheta = 1 / SIN(theta)
  2418. startInterp = SIN((1 - t) * theta) * invSinTheta
  2419. finishInterp = SIN(t * theta) * invSinTheta
  2420. else
  2421. startInterp = 1 - t
  2422. finishInterp = t
  2423. end
  2424. else
  2425. if (1 + cosTheta) > 0.0001 then
  2426. local theta = ACOS(-cosTheta)
  2427. local invSinTheta = 1 / SIN(theta)
  2428. startInterp = SIN((t - 1) * theta) * invSinTheta
  2429. finishInterp = SIN(t * theta) * invSinTheta
  2430. else
  2431. startInterp = t - 1
  2432. finishInterp = t
  2433. end
  2434. end
  2435. 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
  2436. end
  2437.  
  2438. function Clerp(a, b, t)
  2439. local qa = {QuaternionFromCFrame(a)}
  2440. local qb = {QuaternionFromCFrame(b)}
  2441. local ax, ay, az = a.x, a.y, a.z
  2442. local bx, by, bz = b.x, b.y, b.z
  2443. local _t = 1 - t
  2444. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  2445. end
  2446.  
  2447. function ClerpBody(TABLE,PRIORITY)
  2448. if PRIORITY == "Attack" or ATTACKING == false then
  2449. RootJoint.C1 = Clerp(RootJoint.C1, TABLE[1], 0.35)
  2450. if HIT == false then
  2451. Neck.C1 = Clerp(Neck.C1, TABLE[2], 0.35)
  2452. end
  2453. RightShoulder.C1 = Clerp(RightShoulder.C1, TABLE[3], 0.35)
  2454. LeftShoulder.C1 = Clerp(LeftShoulder.C1, TABLE[4], 0.35)
  2455. RightHip.C1 = Clerp(RightHip.C1, TABLE[5], 0.35)
  2456. LeftHip.C1 = Clerp(LeftHip.C1, TABLE[6], 0.35)
  2457. end
  2458. end
  2459.  
  2460. --//=================================\\
  2461. --|| ATRIFICIAL INTELLIGENCE
  2462. --\\=================================//
  2463.  
  2464. local GoTo = function(TO)
  2465. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,TO),0.5)*CF(0,0,-HUMANOID.WalkSpeed/32))
  2466. CHARACTER:SetPrimaryPartCFrame(CF(ROOT.Position)*ANGLES(0,RAD(ROOT.Orientation.Y),0))
  2467. end
  2468.  
  2469. function TestForTarget(PRT,target)
  2470. local to = true
  2471. if PRT then
  2472. if PRT:FindFirstAncestorOfClass("Model") == target.Parent then
  2473. to = false
  2474. end
  2475. end
  2476. return to
  2477. end
  2478.  
  2479. function ChaosOrAnything()
  2480. local PLAY = {ROOT.MeDoAnything,ROOT.ChaosChaos}
  2481. PLAY[MRANDOM(1,2)]:Play()
  2482. end
  2483.  
  2484. function OhOhOh(TARGET)
  2485. local FOE = TARGET.Torso
  2486. if FOE then
  2487. ATTACKING = true
  2488. ChaosOrAnything()
  2489. local E = 0
  2490. repeat
  2491. Swait()
  2492. E = E + 1
  2493. ClerpBody({
  2494. CF(0,-E/25,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  2495. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
  2496. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  2497. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  2498. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  2499. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  2500. },"Attack")
  2501. until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
  2502. for i = 1, MRANDOM(3,5) do
  2503. local TO = FOE.Position
  2504. local MOVETO = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,15)
  2505. CHARACTER:SetPrimaryPartCFrame(MOVETO)
  2506. Transparent(0)
  2507. ROOT.OH:Play()
  2508. for i = 1, 5 do
  2509. ClerpBody({
  2510. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  2511. CF(0,-0.5,0)*ANGLES(RAD(5),RAD(0),RAD(0))*CF(0,-1,0),
  2512. CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(-35))*CF(-1.5,-0.5,0),
  2513. CF(0,0.5,0)*ANGLES(RAD(-75),RAD(0),RAD(35))*CF(1.5,-0.5,0),
  2514. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  2515. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  2516. },"Attack")
  2517. end
  2518. for i = 1, 3 do
  2519. local ANGLE = (50-(25*i))/1.25
  2520. coroutine.resume(coroutine.create(function()
  2521. local TOFIREFROM = ROOT.CFrame*ANGLES(0,RAD(ANGLE),0)
  2522. local CLUB = CreatePart(3, workspace, "Granite", 0, 0, TORSO.BrickColor, "Spade", VT(1.5,0.5,1.5), false)
  2523. CreateMesh("SpecialMesh", CLUB, "FileMesh", CLUBSMESH, "", VT(0.75,0.75,0.75), VT(0,0,0))
  2524. CLUB.CFrame = TOFIREFROM
  2525. local GO = IT("BodyVelocity",CLUB)
  2526. GO.Velocity = CLUB.CFrame.lookVector*65
  2527. Debris:AddItem(CLUB,1)
  2528. CLUB.Touched:Connect(function(HIT)
  2529. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  2530. CLUB:Remove()
  2531. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  2532. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  2533. end
  2534. end)
  2535. end))
  2536. end
  2537. for i = 1, 35 do
  2538. Swait()
  2539. ClerpBody({
  2540. CF(0,-i/350,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  2541. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0,-1,0),
  2542. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  2543. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  2544. CF(-0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  2545. CF(0,0.5,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  2546. },"Attack")
  2547. Transparent(i/35)
  2548. end
  2549. if TARGET.Health <= 0 or DEAD == true then
  2550. break
  2551. end
  2552. end
  2553. ATTACKING = false
  2554. for i = 1, 25 do
  2555. Swait()
  2556. Transparent((25-i)/25)
  2557. end
  2558. Transparent(0)
  2559. end
  2560. end
  2561. function Diamonds(TARGET)
  2562. local FOE = TARGET.Torso
  2563. if FOE then
  2564. ChaosOrAnything()
  2565. ATTACKING = true
  2566. coroutine.resume(coroutine.create(function()
  2567. repeat
  2568. Swait()
  2569. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(VT(ROOT.Position.X,FOE.Position.Y,ROOT.Position.Z),FOE.Position),0.2))
  2570. ClerpBody({
  2571. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  2572. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  2573. 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),
  2574. 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),
  2575. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  2576. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  2577. },"Attack")
  2578. until ATTACKING == false
  2579. end))
  2580. for i = 1, MRANDOM(25,35) do
  2581. coroutine.resume(coroutine.create(function()
  2582. local DIAMOND = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(0.5,0.5,1.5), true)
  2583. CreateMesh("SpecialMesh", DIAMOND, "FileMesh", DIAMONDMESH, "", VT(0.1, 0.05, 0.15), VT(0,0,0))
  2584. DIAMOND.CFrame = ROOT.CFrame*CF(MRANDOM(-150,150)/20,0,-1.5)
  2585. for i = 1, 15 do
  2586. Swait()
  2587. DIAMOND.Transparency = (15-i)/15
  2588. DIAMOND.CFrame = DIAMOND.CFrame*CF(0,0,-(15-i)/35)
  2589. end
  2590. DIAMOND.Anchored = false
  2591. DIAMOND.Transparency = 0
  2592. local GO = IT("BodyVelocity",DIAMOND)
  2593. GO.Velocity = DIAMOND.CFrame.lookVector*15
  2594. Debris:AddItem(DIAMOND,1)
  2595. DIAMOND.Touched:Connect(function(HIT)
  2596. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  2597. DIAMOND:Remove()
  2598. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  2599. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
  2600. end
  2601. end)
  2602. for i = 1, 5 do
  2603. Swait()
  2604. GO.Velocity = DIAMOND.CFrame.lookVector*(15*i)
  2605. end
  2606. end))
  2607. if TARGET.Health <= 0 or DEAD == true then
  2608. break
  2609. end
  2610. Swait(7)
  2611. end
  2612. ATTACKING = false
  2613. end
  2614. end
  2615. function RingAround(TARGET)
  2616. local FOE = TARGET.Torso
  2617. if FOE then
  2618. ATTACKING = true
  2619. ChaosOrAnything()
  2620. local E = 0
  2621. repeat
  2622. Swait()
  2623. E = E + 1
  2624. ClerpBody({
  2625. CF(0,(-E/25)+0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  2626. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  2627. 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),
  2628. 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),
  2629. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  2630. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  2631. },"Attack")
  2632. until ROOT.ChaosChaos.Playing == false and ROOT.MeDoAnything.Playing == false
  2633. coroutine.resume(coroutine.create(function()
  2634. repeat
  2635. Swait()
  2636. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
  2637. ClerpBody({
  2638. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  2639. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  2640. 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),
  2641. 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),
  2642. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  2643. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  2644. },"Attack")
  2645. until ATTACKING == false
  2646. end))
  2647. for i = 1, MRANDOM(2,4) do
  2648. local SPAWN = CF(FOE.Position)*ANGLES(0,RAD(MRANDOM(0,359)),0)
  2649. local SPADES = {}
  2650. for i = 1, 10 do
  2651. local SPADE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Spade", VT(2,2,2), true)
  2652. CreateMesh("SpecialMesh", SPADE, "FileMesh", SPADEMESH, "", VT(1.2,1.2,1.2), VT(0,0,0))
  2653. SPADE.CFrame = SPAWN*ANGLES(0,RAD(36*i),0)*CF(0,0,35)
  2654. SPADE.Touched:Connect(function(HIT)
  2655. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  2656. SPADE:Remove()
  2657. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  2658. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 10
  2659. end
  2660. end)
  2661. table.insert(SPADES,SPADE)
  2662. end
  2663. for i = 1, 25 do
  2664. for E = 1, #SPADES do
  2665. SPADES[E].CFrame = SPADES[E].CFrame * CF(0,0,-0.5)
  2666. SPADES[E].Transparency = (10-i)/9.5
  2667. end
  2668. Swait()
  2669. end
  2670. wait(0.2)
  2671. for E = 1, #SPADES do
  2672. coroutine.resume(coroutine.create(function()
  2673. local SPADE = SPADES[E]
  2674. for i = 1, 15 do
  2675. SPADE.CFrame = SPADE.CFrame*CF(0,0,(15-i)/15)
  2676. Swait()
  2677. end
  2678. SPADE.Anchored = false
  2679. local GO = IT("BodyVelocity",SPADE)
  2680. GO.Velocity = SPADE.CFrame.lookVector*5
  2681. GO.MaxForce = GO.MaxForce * 100
  2682. Debris:AddItem(SPADE,1)
  2683. SPADE.Touched:Connect(function(HIT)
  2684. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  2685. SPADE:Remove()
  2686. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  2687. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 2.5
  2688. end
  2689. end)
  2690. for i = 1, 15 do
  2691. Swait()
  2692. GO.Velocity = SPADE.CFrame.lookVector*(5*i)
  2693. end
  2694. end))
  2695. Swait(5)
  2696. end
  2697. if TARGET.Health <= 0 or DEAD == true then
  2698. break
  2699. end
  2700. end
  2701. wait(0.5)
  2702. ATTACKING = false
  2703. end
  2704. end
  2705. function HeartsGoesOut(TARGET)
  2706. local FOE = TARGET.Torso
  2707. if FOE then
  2708. ChaosOrAnything()
  2709. ATTACKING = true
  2710. coroutine.resume(coroutine.create(function()
  2711. repeat
  2712. Swait()
  2713. CHARACTER:SetPrimaryPartCFrame(Clerp(ROOT.CFrame,CF(ROOT.Position,VT(FOE.Position.X,ROOT.Position.Y,FOE.Position.Z)),0.2))
  2714. ClerpBody({
  2715. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  2716. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  2717. 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),
  2718. 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),
  2719. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  2720. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  2721. },"Attack")
  2722. until ATTACKING == false
  2723. end))
  2724. for i = 1, MRANDOM(5,7) do
  2725. local SPAWN = CF(FOE.Position+VT(0,1,0))*ANGLES(0,RAD(MRANDOM(0,359)),0)*CF(0,0,35)
  2726. SPAWN = CF(SPAWN.p,FOE.Position+VT(0,1,0))
  2727. coroutine.resume(coroutine.create(function()
  2728. local HEARTS = {}
  2729. for i = 1, 4 do
  2730. local HEART = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Heart", VT(2,2,2), true)
  2731. CreateMesh("SpecialMesh", HEART, "FileMesh", HEARTMESH, "", VT(3.5,3.5,3.5), VT(0,0,0))
  2732. HEART.CFrame = SPAWN*ANGLES(0,RAD((360/4)*i),0)
  2733. HEART.Touched:Connect(function(HIT)
  2734. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER then
  2735. HEART:Remove()
  2736. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  2737. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 7.5
  2738. end
  2739. end)
  2740. table.insert(HEARTS,HEART)
  2741. end
  2742. for i = 1, 10 do
  2743. Swait()
  2744. for E = 1, #HEARTS do
  2745. HEARTS[E].CFrame = HEARTS[E].CFrame*CF(0,0,-(10-i)/10)
  2746. HEARTS[E].Transparency = (10-i)/9.5
  2747. end
  2748. end
  2749. local DIST = (HEARTS[1].Position - SPAWN.p).Magnitude
  2750. for i = 1, 100 do
  2751. Swait()
  2752. SPAWN = SPAWN*CF(0,0,-1)
  2753. for E = 1, #HEARTS do
  2754. HEARTS[E].Transparency = 0
  2755. HEARTS[E].CFrame = SPAWN*ANGLES(0,RAD(((360/4)*E)+(i*5)),0)*CF(0,0,-DIST)
  2756. end
  2757. end
  2758. for E = 1, #HEARTS do
  2759. HEARTS[E]:Destroy()
  2760. end
  2761. end))
  2762. Swait(35)
  2763. if TARGET.Health <= 0 or DEAD == true then
  2764. break
  2765. end
  2766. end
  2767. wait(0.5)
  2768. ATTACKING = false
  2769. end
  2770. end
  2771. function Meta(TARGET)
  2772. local FOE = TARGET.Torso
  2773. if FOE then
  2774. ROOT.Metamorph:Play()
  2775. ATTACKING = true
  2776. local SCYTHE = CreatePart(3, workspace, "Granite", 0, 1, TORSO.BrickColor, "Diamond", VT(3,0,3), true)
  2777. CreateMesh("SpecialMesh", SCYTHE, "FileMesh", SCYTHEMESH, "", VT(0.01, 0.01, 0.01), VT(0,0,0))
  2778. SCYTHE.CFrame = TORSO.CFrame
  2779. for i = 1, 3 do
  2780. for i = 1, 15 do
  2781. Swait()
  2782. ClerpBody({
  2783. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  2784. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  2785. 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),
  2786. 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),
  2787. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  2788. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  2789. },"Attack")
  2790. Transparent(i/15)
  2791. SCYTHE.Transparency = (15-i)/15
  2792. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  2793. end
  2794. for i = 1, 15 do
  2795. Swait()
  2796. ClerpBody({
  2797. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  2798. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  2799. 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),
  2800. 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),
  2801. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  2802. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  2803. },"Attack")
  2804. Transparent((15-i)/15)
  2805. SCYTHE.Transparency = i/15
  2806. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  2807. end
  2808. end
  2809. for i = 1, 15 do
  2810. Swait()
  2811. ClerpBody({
  2812. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  2813. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  2814. 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),
  2815. 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),
  2816. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  2817. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  2818. },"Attack")
  2819. Transparent(i/15)
  2820. SCYTHE.Transparency = (15-i)/15
  2821. SCYTHE.CFrame = CF(TORSO.Position)*ANGLES(0,RAD(SINE*5),0)
  2822. end
  2823. Transparent(1)
  2824. SCYTHE.Transparency = 0
  2825. local SCYTHES = {SCYTHE}
  2826. for i = 1, 3 do
  2827. local COPY = SCYTHE:Clone()
  2828. COPY.Parent = workspace
  2829. COPY.CFrame = SCYTHE.CFrame
  2830. table.insert(SCYTHES,COPY)
  2831. end
  2832. for E = 1, #SCYTHES do
  2833. local DELAY = false
  2834. SCYTHES[E].Touched:Connect(function(HIT)
  2835. if HIT.Parent:FindFirstChildOfClass("Humanoid") and HIT.Parent ~= CHARACTER and DELAY == false then
  2836. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 3.5
  2837. CreateSound(410625063, HIT.Parent:FindFirstChildOfClass("Humanoid").Torso, 2, 1, false)
  2838. DELAY = true
  2839. wait(1)
  2840. DELAY = false
  2841. end
  2842. end)
  2843. end
  2844. local NOW = ROOT.CFrame
  2845. CHARACTER:SetPrimaryPartCFrame(CF(0,5000,0))
  2846. HUMANOID.Parent = nil
  2847. local Y = FOE.Position.Y
  2848. for i = 1, 750 do
  2849. Swait()
  2850. for E = 1, #SCYTHES do
  2851. 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)
  2852. end
  2853. if TARGET.Health <= 0 or DEAD == true then
  2854. break
  2855. end
  2856. end
  2857. for i = 1, 25 do
  2858. for E = 1, #SCYTHES do
  2859. SCYTHES[E].CFrame = CF(Clerp(SCYTHES[E].CFrame,NOW,0.15).p)*ANGLES(0,RAD(SINE*5),0)
  2860. end
  2861. Swait()
  2862. end
  2863. CHARACTER:SetPrimaryPartCFrame(NOW)
  2864. HUMANOID.Parent = CHARACTER
  2865. for i = 1, 15 do
  2866. Swait()
  2867. ClerpBody({
  2868. CF(0,0.1*SIN(SINE/12),0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  2869. CF(0,-0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0,-1,0),
  2870. 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),
  2871. 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),
  2872. CF(-0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  2873. CF(0,0.5,0)*ANGLES(RAD(15+2*COS(SINE/12)),RAD(0),RAD(0))*CF(0.5,0.9,0.5),
  2874. },"Attack")
  2875. Transparent((15-i)/15)
  2876. for E = 1, #SCYTHES do
  2877. SCYTHES[E].CFrame = CF(ROOT.Position)*ANGLES(0,RAD(SINE*5),0)
  2878. SCYTHES[E].Transparency = i/15
  2879. end
  2880. end
  2881. for E = 1, #SCYTHES do
  2882. SCYTHES[E]:Remove()
  2883. end
  2884. ATTACKING = false
  2885. end
  2886. end
  2887. local ATTACKS = {OhOhOh,Diamonds,RingAround,HeartsGoesOut,Meta}
  2888.  
  2889. --//=================================\\
  2890. --|| WRAP
  2891. --\\=================================//
  2892.  
  2893. function BEGINAI()
  2894. local TORSOROT = 0
  2895. CHARACTER:SetPrimaryPartCFrame(ROOT.CFrame*CF(0,1,0))
  2896. coroutine.resume(coroutine.create(function()
  2897. game:GetService("RunService").Heartbeat:connect(function()
  2898. local DEFAULTS = {
  2899. CF(0,0,0),
  2900. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0,-1,0),
  2901. CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  2902. CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  2903. CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0),
  2904. CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0),
  2905. }
  2906. SINE = SINE + 1
  2907. end)
  2908. while true do
  2909. TORSOROT = 35
  2910. for i = 1, 5 do
  2911. ClerpBody({
  2912. CF(0,0,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
  2913. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(-20),RAD(0))*CF(0,-1,0),
  2914. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  2915. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.5,0),
  2916. CF(-0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,1),
  2917. CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
  2918. },nil)
  2919. end
  2920. for i = 1, 15 do
  2921. Swait()
  2922. ClerpBody({
  2923. CF(0,0.3,0)*ANGLES(RAD(0),RAD(35),RAD(0)),
  2924. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(-35),RAD(0))*CF(0,-1,0),
  2925. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(-1.5,-0.5,0),
  2926. CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(-35))*CF(1.5,-0.25,0),
  2927. CF(-0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(-0.5,1,0.5),
  2928. CF(0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(0.5,0.9,0.2),
  2929. },nil)
  2930. if DEAD == true then
  2931. break
  2932. end
  2933. end
  2934. if DEAD == true then
  2935. break
  2936. end
  2937. TORSOROT = -35
  2938. for i = 1, 5 do
  2939. ClerpBody({
  2940. CF(0,0,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
  2941. CF(0,-0.5,0)*ANGLES(RAD(15),RAD(20),RAD(0))*CF(0,-1,0),
  2942. CF(0,0.5,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.5,0),
  2943. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  2944. CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,0.9,0.2),
  2945. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,0.9,1),
  2946. },nil)
  2947. end
  2948. for i = 1, 15 do
  2949. Swait()
  2950. ClerpBody({
  2951. CF(0,0.3,0)*ANGLES(RAD(0),RAD(-35),RAD(0)),
  2952. CF(0,-0.5,0)*ANGLES(RAD(0),RAD(35),RAD(0))*CF(0,-1,0),
  2953. CF(0,0.75,0)*ANGLES(RAD(-120),RAD(0),RAD(35))*CF(-1.5,-0.25,0),
  2954. CF(0,0.5,0)*ANGLES(RAD(12),RAD(0),RAD(0))*CF(1.5,-0.5,0),
  2955. CF(-0,1,0)*ANGLES(RAD(15),RAD(0),RAD(0))*CF(-0.5,1,0.2),
  2956. CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0.5,1,0.5),
  2957. },nil)
  2958. if DEAD == true then
  2959. break
  2960. end
  2961. end
  2962. if DEAD == true then
  2963. break
  2964. end
  2965. end
  2966. end))
  2967. local TARGET = nil
  2968. local TARGETHUM = nil
  2969. coroutine.resume(coroutine.create(function()
  2970. --local h = HUMANOID
  2971. local pathService = game:GetService("PathfindingService")
  2972. local goToPos = function(loc,target)
  2973. local distance = (loc-ROOT.Position).magnitude
  2974. local start = tick()
  2975. while distance > 7 do
  2976. if target then
  2977. if target.Torso and ATTACKING == false then
  2978. GoTo(loc+VT(0,4.5,0))
  2979. Swait()
  2980. local RAYTEST = Raycast(ROOT.Position,CF(ROOT.Position,target.Torso.Position).lookVector,500,CHARACTER)
  2981. if distance <= 7 or TARGETHUM ~= target or TestForTarget(RAYTEST,target) == false then -- Something may have gone wrong. Just break.
  2982. break
  2983. end
  2984. distance = (loc+VT(0,4.5,0)-ROOT.Position).magnitude
  2985. else
  2986. break
  2987. end
  2988. else
  2989. break
  2990. end
  2991. end
  2992. end
  2993.  
  2994. while true do
  2995. if DEAD == true then
  2996. break
  2997. end
  2998. Swait()
  2999. if TARGETHUM then
  3000. local target = TARGETHUM
  3001. if TARGETHUM.Torso then
  3002. local RAYTEST = Raycast(ROOT.Position,CF(ROOT.Position,VT(target.Torso.Position.X,ROOT.Position.Y,target.Torso.Position.Z)).lookVector,500,CHARACTER)
  3003. if TestForTarget(RAYTEST,target) == true then
  3004. local path = pathService:ComputeRawPathAsync(ROOT.Position,TARGETHUM.Torso.Position,5000)
  3005. local didBreak = false
  3006. local targetStart
  3007. if target and ROOT and target.Torso then
  3008. targetStart = target.Torso.Position
  3009. local previous = ROOT.Position
  3010. local points = path:GetWaypoints()
  3011. local s = #points > 1 and 2 or 1
  3012. for i = s,#points do
  3013. if GYRO == nil then
  3014. local point = points[i].Position
  3015. if didBreak then
  3016. break
  3017. end
  3018. if target and target.Torso and target.Health > 0 and ATTACKING == false then
  3019. if (ROOT.Position - point).Magnitude > 1 and TARGETHUM == target then
  3020. local pos = previous:lerp(point,0.65)
  3021. goToPos(previous:lerp(point,0.65),target)
  3022. previous = point
  3023. end
  3024. else
  3025. didBreak = true
  3026. break
  3027. end
  3028. end
  3029. end
  3030. end
  3031. if not didBreak and targetStart then
  3032. goToPos(targetStart)
  3033. end
  3034. else
  3035. if ATTACKING == false then
  3036. GoTo(target.Torso.Position+VT(0,2.5,0))
  3037. end
  3038. end
  3039. end
  3040. end
  3041. end
  3042. end))
  3043. HUMANOID.Died:Connect(function()
  3044. if DEAD == false then
  3045. DEAD = true
  3046. repeat
  3047. Swait()
  3048. until ATTACKING == false
  3049. CHAIR.Transparency = 0
  3050. Transparent(0)
  3051. script.Music:Stop()
  3052. ROOT.Deathed:Play()
  3053. repeat
  3054. Swait()
  3055. ClerpBody({
  3056. CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0)),
  3057. CF(0,-0.5,0)*ANGLES(RAD(35),RAD(0),RAD(0))*CF(0,-1,0),
  3058. CF(0,0.5,0)*ANGLES(RAD(-35),RAD(0),RAD(5))*CF(-1.5,-0.3,0),
  3059. CF(0,0.5,0)*ANGLES(RAD(-35),RAD(0),RAD(-5))*CF(1.5,-0.3,0),
  3060. CF(-0,0,0)*ANGLES(RAD(-15),RAD(0),RAD(0))*CF(-0.5,1,1),
  3061. CF(0,0,0)*ANGLES(RAD(-15),RAD(0),RAD(0))*CF(0.5,1,1),
  3062. },nil)
  3063. until ROOT.Deathed.Playing == false
  3064. CHARACTER.Head.Nametag:Remove()
  3065. TORSO.Neck:Remove()
  3066. TORSO.Die:Play()
  3067. ROOT:Remove()
  3068. CHARACTER:BreakJoints()
  3069. CHAIR:Destroy()
  3070. Debris:AddItem(CHARACTER,5)
  3071. end
  3072. end)
  3073. HUMANOID.HealthChanged:Connect(function()
  3074. if HIT == false and DEAD == false then
  3075. HIT = true
  3076. local HA = {ROOT.Ha1,ROOT.Ha2}
  3077. HA[MRANDOM(1,2)]:Play()
  3078. for i = 1, 100 do
  3079. Swait()
  3080. if ATTACKING == true then
  3081. Neck.C1 = Clerp(Neck.C1, CF(0,-2.5,0)*ANGLES(0,0,RAD(65*SIN(i/6)))*CF(0,-1,0), 0.2)
  3082. else
  3083. 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)
  3084. end
  3085. if DEAD == true then
  3086. break
  3087. end
  3088. end
  3089. HIT = false
  3090. end
  3091. end)
  3092. while true do
  3093. if DEAD == true then
  3094. break
  3095. end
  3096. local TARGETVARIANTS = {}
  3097. TARGET = nil
  3098. for index, CHILD in pairs(workspace:GetChildren()) do
  3099. if CHILD ~= CHARACTER and CHILD:FindFirstChild("Slain") == nil then
  3100. local HUMAN = CHILD:FindFirstChildOfClass("Humanoid")
  3101. if HUMAN then
  3102. if HUMAN.Health > 0 then
  3103. if HUMAN.Torso then
  3104. local DISTANCE = (HUMAN.Torso.Position - ROOT.Position).Magnitude
  3105. table.insert(TARGETVARIANTS,{CHILD,DISTANCE})
  3106. end
  3107. end
  3108. end
  3109. end
  3110. end
  3111. local DIST = math.huge
  3112. for E = 1, #TARGETVARIANTS do
  3113. local PLAYER = TARGETVARIANTS[E]
  3114. local CHARACTER = PLAYER[1]
  3115. local DISTANCE = PLAYER[2]
  3116. if DISTANCE < DIST then
  3117. DIST = DISTANCE
  3118. TARGET = CHARACTER
  3119. end
  3120. end
  3121. if TARGET and TARGET:FindFirstChild("HumanoidRootPart") then
  3122. TARGETHUM = TARGET:FindFirstChildOfClass("Humanoid")
  3123. --[[HUMANOID.WalkSpeed = 22
  3124. HUMANOID.JumpPower = 125]]
  3125. local RAY = Raycast(ROOT.Position,CF(ROOT.Position,TARGETHUM.Torso.Position).lookVector,25,CHARACTER)
  3126. 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
  3127. ATTACKS[MRANDOM(1,#ATTACKS)](TARGETHUM)
  3128. end
  3129. else
  3130. TARGETHUM = nil
  3131. end
  3132. wait()
  3133. end
  3134. end
  3135.  
  3136. BEGINAI()
  3137. end))
  3138. Sound42.Name = "Music"
  3139. Sound42.Parent = Script41
  3140. Sound42.Looped = true
  3141. Sound42.SoundId = "rbxassetid://2701520256"
  3142. Sound42.Volume = 2.5
  3143. MeshPart43.Name = "Hat"
  3144. MeshPart43.Parent = Model9
  3145. MeshPart43.CFrame = CFrame.new(-544.792542, 90.7830505, 51.2608185, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3146. MeshPart43.Position = Vector3.new(-544.792542, 90.7830505, 51.2608185)
  3147. MeshPart43.Color = Color3.new(0.129412, 0.329412, 0.72549)
  3148. MeshPart43.Size = Vector3.new(2.75788856, 1.64599526, 2.41334939)
  3149. MeshPart43.BrickColor = BrickColor.new("Deep blue")
  3150. MeshPart43.CanCollide = false
  3151. MeshPart43.Material = Enum.Material.SmoothPlastic
  3152. MeshPart43.brickColor = BrickColor.new("Deep blue")
  3153. Weld44.Name = "Joint"
  3154. Weld44.Parent = MeshPart43
  3155. Weld44.C0 = CFrame.new(0, -0.699880123, -0.500030518, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3156. Weld44.Part0 = MeshPart43
  3157. Weld44.Part1 = UnionOperation18
  3158. Weld44.part1 = UnionOperation18
  3159. MeshPart45.Name = "Tail"
  3160. MeshPart45.Parent = Model9
  3161. MeshPart45.CFrame = CFrame.new(-544.792542, 87.0130463, 52.3607712, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3162. MeshPart45.Position = Vector3.new(-544.792542, 87.0130463, 52.3607712)
  3163. MeshPart45.Color = Color3.new(0.129412, 0.329412, 0.72549)
  3164. MeshPart45.Size = Vector3.new(0.462002546, 1.40317202, 2.49498963)
  3165. MeshPart45.BrickColor = BrickColor.new("Deep blue")
  3166. MeshPart45.CanCollide = false
  3167. MeshPart45.Material = Enum.Material.SmoothPlastic
  3168. MeshPart45.brickColor = BrickColor.new("Deep blue")
  3169. Weld46.Name = "Joint"
  3170. Weld46.Parent = MeshPart45
  3171. Weld46.C0 = CFrame.new(-3.81469727e-05, 1.57016039, -1.59996033, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3172. Weld46.Part0 = MeshPart45
  3173. Weld46.Part1 = UnionOperation10
  3174. Weld46.part1 = UnionOperation10
  3175. Humanoid47.Parent = Model9
  3176. Humanoid47.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  3177. Humanoid47.Health = 6500
  3178. Humanoid47.LeftLeg = MeshPart40
  3179. Humanoid47.MaxHealth = 6500
  3180. Humanoid47.MaxSlopeAngle = 89.900001525879
  3181. Humanoid47.RightLeg = MeshPart39
  3182. Humanoid47.Torso = Part24
  3183. Humanoid47.maxHealth = 6500
  3184. Part48.Name = "Wheelchair"
  3185. Part48.Parent = Model9
  3186. Part48.CFrame = CFrame.new(-544.792542, 87.6830444, 50.7607727, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3187. Part48.Position = Vector3.new(-544.792542, 87.6830444, 50.7607727)
  3188. Part48.Transparency = 1
  3189. Part48.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  3190. Part48.Anchored = true
  3191. Part48.BottomSurface = Enum.SurfaceType.Smooth
  3192. Part48.CanCollide = false
  3193. Part48.Material = Enum.Material.SmoothPlastic
  3194. Part48.TopSurface = Enum.SurfaceType.Smooth
  3195. SpecialMesh49.Parent = Part48
  3196. SpecialMesh49.MeshId = "rbxassetid://1226669573"
  3197. SpecialMesh49.Scale = Vector3.new(2, 2, 2)
  3198. SpecialMesh49.TextureId = "rbxassetid://1226669284"
  3199. SpecialMesh49.MeshType = Enum.MeshType.FileMesh
  3200. for i,v in pairs(mas:GetChildren()) do
  3201. v.Parent = script
  3202. pcall(function() v:MakeJoints() end)
  3203. end
  3204. mas:Destroy()
  3205. for i,v in pairs(cors) do
  3206. spawn(function()
  3207. pcall(v)
  3208. end)
  3209. end
  3210.  
  3211. end))
  3212. for i,v in pairs(mas:GetChildren()) do
  3213. v.Parent = script
  3214. pcall(function() v:MakeJoints() end)
  3215. end
  3216. mas:Destroy()
  3217. for i,v in pairs(cors) do
  3218. spawn(function()
  3219. pcall(v)
  3220. end)
  3221. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement