Advertisement
GETREKTLEL

the holy of all screamers

Feb 18th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.99 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. Model0 = Instance.new("Model")
  20. Sound1 = Instance.new("Sound")
  21. Part2 = Instance.new("Part")
  22. Motor6D3 = Instance.new("Motor6D")
  23. Motor6D4 = Instance.new("Motor6D")
  24. Motor6D5 = Instance.new("Motor6D")
  25. Motor6D6 = Instance.new("Motor6D")
  26. Motor6D7 = Instance.new("Motor6D")
  27. Part8 = Instance.new("Part")
  28. Part9 = Instance.new("Part")
  29. Weld10 = Instance.new("Weld")
  30. Part11 = Instance.new("Part")
  31. Part12 = Instance.new("Part")
  32. Humanoid13 = Instance.new("Humanoid")
  33. Script14 = Instance.new("Script")
  34. Part15 = Instance.new("Part")
  35. Motor6D16 = Instance.new("Motor6D")
  36. Script17 = Instance.new("Script")
  37. Script18 = Instance.new("Script")
  38. StringValue19 = Instance.new("StringValue")
  39. Animation20 = Instance.new("Animation")
  40. StringValue21 = Instance.new("StringValue")
  41. Animation22 = Instance.new("Animation")
  42. StringValue23 = Instance.new("StringValue")
  43. Animation24 = Instance.new("Animation")
  44. NumberValue25 = Instance.new("NumberValue")
  45. Animation26 = Instance.new("Animation")
  46. NumberValue27 = Instance.new("NumberValue")
  47. StringValue28 = Instance.new("StringValue")
  48. Animation29 = Instance.new("Animation")
  49. StringValue30 = Instance.new("StringValue")
  50. Animation31 = Instance.new("Animation")
  51. StringValue32 = Instance.new("StringValue")
  52. Animation33 = Instance.new("Animation")
  53. StringValue34 = Instance.new("StringValue")
  54. Animation35 = Instance.new("Animation")
  55. StringValue36 = Instance.new("StringValue")
  56. Animation37 = Instance.new("Animation")
  57. Script38 = Instance.new("Script")
  58. Animation39 = Instance.new("Animation")
  59. BodyColors40 = Instance.new("BodyColors")
  60. Part41 = Instance.new("Part")
  61. Sound42 = Instance.new("Sound")
  62. Sound43 = Instance.new("Sound")
  63. Sound44 = Instance.new("Sound")
  64. Sound45 = Instance.new("Sound")
  65. Sound46 = Instance.new("Sound")
  66. ParticleEmitter47 = Instance.new("ParticleEmitter")
  67. SpecialMesh48 = Instance.new("SpecialMesh")
  68. ParticleEmitter49 = Instance.new("ParticleEmitter")
  69. ParticleEmitter50 = Instance.new("ParticleEmitter")
  70. ParticleEmitter51 = Instance.new("ParticleEmitter")
  71. ParticleEmitter52 = Instance.new("ParticleEmitter")
  72. ParticleEmitter53 = Instance.new("ParticleEmitter")
  73. ParticleEmitter54 = Instance.new("ParticleEmitter")
  74. ParticleEmitter55 = Instance.new("ParticleEmitter")
  75. ParticleEmitter56 = Instance.new("ParticleEmitter")
  76. ParticleEmitter57 = Instance.new("ParticleEmitter")
  77. ParticleEmitter58 = Instance.new("ParticleEmitter")
  78. ParticleEmitter59 = Instance.new("ParticleEmitter")
  79. ParticleEmitter60 = Instance.new("ParticleEmitter")
  80. Script61 = Instance.new("Script")
  81. Part62 = Instance.new("Part")
  82. Sound63 = Instance.new("Sound")
  83. Sound64 = Instance.new("Sound")
  84. Sound65 = Instance.new("Sound")
  85. Sound66 = Instance.new("Sound")
  86. Sound67 = Instance.new("Sound")
  87. Sound68 = Instance.new("Sound")
  88. Sound69 = Instance.new("Sound")
  89. Sound70 = Instance.new("Sound")
  90. Sound71 = Instance.new("Sound")
  91. Decal72 = Instance.new("Decal")
  92. SpecialMesh73 = Instance.new("SpecialMesh")
  93. Model0.Name = "The Holy of Screamers"
  94. Model0.Parent = mas
  95. Model0.PrimaryPart = Part62
  96. Sound1.Name = "[SC] urgent"
  97. Sound1.Parent = Model0
  98. Sound1.SoundId = "rbxassetid://305024085"
  99. Sound1.Volume = 1.5
  100. Sound1.Looped = true
  101. Part2.Name = "Torso"
  102. Part2.Parent = Model0
  103. Part2.Material = Enum.Material.SmoothPlastic
  104. Part2.BrickColor = BrickColor.new("Institutional white")
  105. Part2.Rotation = Vector3.new(0, 39.1899986, 0)
  106. Part2.RotVelocity = Vector3.new(0, -0.775562763, 0)
  107. Part2.Velocity = Vector3.new(-6.80717325, 0, -9.88242722)
  108. Part2.Locked = true
  109. Part2.Elasticity = 0
  110. Part2.FormFactor = Enum.FormFactor.Symmetric
  111. Part2.Friction = 2
  112. Part2.Size = Vector3.new(2, 2, 1)
  113. Part2.CFrame = CFrame.new(-0.274619997, 5.00005007, 115.558167, 0.775071383, -3.86655374e-05, 0.631873488, -4.33894502e-06, 1, 6.65141488e-05, -0.631873488, -5.42948837e-05, 0.775071383)
  114. Part2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  115. Part2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  116. Part2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  117. Part2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  118. Part2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  119. Part2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  120. Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  121. Part2.Position = Vector3.new(-0.274619997, 5.00005007, 115.558167)
  122. Part2.Orientation = Vector3.new(0, 39.1899986, 0)
  123. Part2.Color = Color3.new(0.972549, 0.972549, 0.972549)
  124. Motor6D3.Name = "Right Shoulder"
  125. Motor6D3.Parent = Part2
  126. Motor6D3.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  127. Motor6D3.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  128. Motor6D3.Part0 = Part2
  129. Motor6D3.Part1 = Part9
  130. Motor6D3.MaxVelocity = 0.10000000149012
  131. Motor6D4.Name = "Left Shoulder"
  132. Motor6D4.Parent = Part2
  133. Motor6D4.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  134. Motor6D4.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  135. Motor6D4.Part0 = Part2
  136. Motor6D4.Part1 = Part8
  137. Motor6D4.MaxVelocity = 0.10000000149012
  138. Motor6D5.Name = "Right Hip"
  139. Motor6D5.Parent = Part2
  140. Motor6D5.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  141. Motor6D5.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  142. Motor6D5.Part0 = Part2
  143. Motor6D5.Part1 = Part12
  144. Motor6D5.MaxVelocity = 0.10000000149012
  145. Motor6D6.Name = "Left Hip"
  146. Motor6D6.Parent = Part2
  147. Motor6D6.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  148. Motor6D6.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  149. Motor6D6.Part0 = Part2
  150. Motor6D6.Part1 = Part11
  151. Motor6D6.MaxVelocity = 0.10000000149012
  152. Motor6D7.Name = "Neck"
  153. Motor6D7.Parent = Part2
  154. Motor6D7.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  155. Motor6D7.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  156. Motor6D7.Part0 = Part2
  157. Motor6D7.Part1 = Part62
  158. Motor6D7.MaxVelocity = 0.10000000149012
  159. Part8.Name = "Left Arm"
  160. Part8.Parent = Model0
  161. Part8.Material = Enum.Material.SmoothPlastic
  162. Part8.BrickColor = BrickColor.new("Institutional white")
  163. Part8.Rotation = Vector3.new(0, 39.1899986, 0)
  164. Part8.RotVelocity = Vector3.new(0, -0.775562763, 0)
  165. Part8.Velocity = Vector3.new(-7.54225731, 0, -10.7841015)
  166. Part8.CanCollide = false
  167. Part8.Locked = true
  168. Part8.Elasticity = 0
  169. Part8.FormFactor = Enum.FormFactor.Symmetric
  170. Part8.Friction = 2
  171. Part8.Size = Vector3.new(1, 2, 1)
  172. Part8.CFrame = CFrame.new(-1.43722701, 5.00005674, 116.505974, 0.775071383, -3.86655374e-05, 0.631873488, -4.33894502e-06, 1, 6.65141488e-05, -0.631873488, -5.42948837e-05, 0.775071383)
  173. Part8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  174. Part8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  175. Part8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  176. Part8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  177. Part8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  178. Part8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  179. Part8.Color = Color3.new(0.972549, 0.972549, 0.972549)
  180. Part8.Position = Vector3.new(-1.43722701, 5.00005674, 116.505974)
  181. Part8.Orientation = Vector3.new(0, 39.1899986, 0)
  182. Part8.Color = Color3.new(0.972549, 0.972549, 0.972549)
  183. Part9.Name = "Right Arm"
  184. Part9.Parent = Model0
  185. Part9.Material = Enum.Material.SmoothPlastic
  186. Part9.BrickColor = BrickColor.new("Institutional white")
  187. Part9.Rotation = Vector3.new(0, 39.1899986, 0)
  188. Part9.RotVelocity = Vector3.new(0, -0.775562763, 0)
  189. Part9.Velocity = Vector3.new(-6.0720892, 0, -8.98075294)
  190. Part9.CanCollide = false
  191. Part9.Locked = true
  192. Part9.Elasticity = 0
  193. Part9.FormFactor = Enum.FormFactor.Symmetric
  194. Part9.Friction = 2
  195. Part9.Size = Vector3.new(1, 2, 1)
  196. Part9.CFrame = CFrame.new(0.887987077, 5.00004339, 114.610359, 0.775071383, -3.86655374e-05, 0.631873488, -4.33894502e-06, 1, 6.65141488e-05, -0.631873488, -5.42948837e-05, 0.775071383)
  197. Part9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  198. Part9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  199. Part9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  200. Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  201. Part9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  202. Part9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  203. Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  204. Part9.Position = Vector3.new(0.887987077, 5.00004339, 114.610359)
  205. Part9.Orientation = Vector3.new(0, 39.1899986, 0)
  206. Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  207. Weld10.Name = "RightGripWeld"
  208. Weld10.Parent = Part9
  209. Weld10.C0 = CFrame.new(-1.29999995, 1.16840947, 0.750634551, 1, 0, 0, 0, 0.968409479, 0.249365434, 0, -0.249365434, 0.968409479)
  210. Weld10.C1 = CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  211. Weld10.Part0 = Part41
  212. Weld10.Part1 = Part9
  213. Part11.Name = "Left Leg"
  214. Part11.Parent = Model0
  215. Part11.Material = Enum.Material.SmoothPlastic
  216. Part11.BrickColor = BrickColor.new("Institutional white")
  217. Part11.Rotation = Vector3.new(0, 39.1899986, 0)
  218. Part11.RotVelocity = Vector3.new(0, -0.775562763, 0)
  219. Part11.Velocity = Vector3.new(-7.05228806, 0, -10.1829252)
  220. Part11.CanCollide = false
  221. Part11.Locked = true
  222. Part11.Elasticity = 0
  223. Part11.FormFactor = Enum.FormFactor.Symmetric
  224. Part11.Friction = 2
  225. Part11.Size = Vector3.new(1, 2, 1)
  226. Part11.CFrame = CFrame.new(-0.662078381, 3.00005221, 115.874214, 0.775071383, -3.86655374e-05, 0.631873488, -4.33894502e-06, 1, 6.65141488e-05, -0.631873488, -5.42948837e-05, 0.775071383)
  227. Part11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  228. Part11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  229. Part11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  230. Part11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  231. Part11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  232. Part11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  233. Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
  234. Part11.Position = Vector3.new(-0.662078381, 3.00005221, 115.874214)
  235. Part11.Orientation = Vector3.new(0, 39.1899986, 0)
  236. Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
  237. Part12.Name = "Right Leg"
  238. Part12.Parent = Model0
  239. Part12.Material = Enum.Material.SmoothPlastic
  240. Part12.BrickColor = BrickColor.new("Institutional white")
  241. Part12.Rotation = Vector3.new(0, 39.1899986, 0)
  242. Part12.RotVelocity = Vector3.new(0, -0.775562763, 0)
  243. Part12.Velocity = Vector3.new(-6.56223011, 0, -9.58180904)
  244. Part12.CanCollide = false
  245. Part12.Locked = true
  246. Part12.Elasticity = 0
  247. Part12.FormFactor = Enum.FormFactor.Symmetric
  248. Part12.Friction = 2
  249. Part12.Size = Vector3.new(1, 2, 1)
  250. Part12.CFrame = CFrame.new(0.112993032, 3.00004792, 115.24234, 0.775071383, -3.86655374e-05, 0.631873488, -4.33894502e-06, 1, 6.65141488e-05, -0.631873488, -5.42948837e-05, 0.775071383)
  251. Part12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  252. Part12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  253. Part12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  254. Part12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  255. Part12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  256. Part12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  257. Part12.Color = Color3.new(0.972549, 0.972549, 0.972549)
  258. Part12.Position = Vector3.new(0.112993032, 3.00004792, 115.24234)
  259. Part12.Orientation = Vector3.new(0, 39.1899986, 0)
  260. Part12.Color = Color3.new(0.972549, 0.972549, 0.972549)
  261. Humanoid13.Name = "PsychopathicFather"
  262. Humanoid13.Parent = Model0
  263. Humanoid13.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  264. Humanoid13.HealthDisplayDistance = 0
  265. Humanoid13.NameDisplayDistance = 0
  266. Humanoid13.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  267. Humanoid13.RightLeg = Part12
  268. Humanoid13.LeftLeg = Part11
  269. Humanoid13.Torso = Part15
  270. Humanoid13.WalkSpeed = 12
  271. Script14.Name = "Put this in Boss's Humanoid"
  272. Script14.Parent = Humanoid13
  273. table.insert(cors,sandbox(Script14,function()
  274. while true do
  275. for _, Players in pairs(game.Players:GetChildren()) do
  276. local BossBattleHealthGui = Players.PlayerGui:FindFirstChild("BossBattleHealthGui")
  277. if BossBattleHealthGui then
  278. BossBattleHealthGui.Frame.Boss.Value = script.Parent.Parent
  279. end
  280. end
  281. wait()
  282. end
  283. end))
  284. Part15.Name = "HumanoidRootPart"
  285. Part15.Parent = Model0
  286. Part15.Material = Enum.Material.SmoothPlastic
  287. Part15.BrickColor = BrickColor.new("Bright blue")
  288. Part15.Transparency = 1
  289. Part15.Rotation = Vector3.new(0, 39.1899986, 0)
  290. Part15.RotVelocity = Vector3.new(0, -0.775562763, 0)
  291. Part15.Velocity = Vector3.new(-6.80717325, 0, -9.88242722)
  292. Part15.CanCollide = false
  293. Part15.Locked = true
  294. Part15.Elasticity = 0
  295. Part15.FormFactor = Enum.FormFactor.Symmetric
  296. Part15.Friction = 0
  297. Part15.Size = Vector3.new(2, 2, 1)
  298. Part15.CFrame = CFrame.new(-0.274619997, 5.00005007, 115.558167, 0.775071383, -3.86655374e-05, 0.631873488, -4.33894502e-06, 1, 6.65141488e-05, -0.631873488, -5.42948837e-05, 0.775071383)
  299. Part15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  300. Part15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  301. Part15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  302. Part15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  303. Part15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  304. Part15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  305. Part15.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  306. Part15.Position = Vector3.new(-0.274619997, 5.00005007, 115.558167)
  307. Part15.Orientation = Vector3.new(0, 39.1899986, 0)
  308. Part15.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  309. Motor6D16.Name = "RootJoint"
  310. Motor6D16.Parent = Part15
  311. Motor6D16.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  312. Motor6D16.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  313. Motor6D16.Part0 = Part15
  314. Motor6D16.Part1 = Part2
  315. Motor6D16.MaxVelocity = 0.10000000149012
  316. Script17.Name = "Health"
  317. Script17.Parent = Model0
  318. table.insert(cors,sandbox(Script17,function()
  319. --[[ By: Brutez. ]]--
  320. local AlfredDrevisHealthScript=script;
  321. repeat Wait(0);until script~=nil and script:IsA("Script")and script.Parent~=nil and script.Parent:IsA("Model")and script.Parent:FindFirstChild("Head")and script.Parent:FindFirstChild("Torso");
  322. local AlfredDrevis=AlfredDrevisHealthScript.Parent;
  323. while Wait(0)do
  324. local AlfredDrevisHumanoid;
  325. for _,Child in pairs(AlfredDrevis:GetChildren())do
  326. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  327. AlfredDrevisHumanoid=Child;
  328. end;
  329. end;
  330. if AlfredDrevisHealthScript~=nil and AlfredDrevis~=nil and AlfredDrevisHumanoid~=nil and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisHumanoid.Health<AlfredDrevisHumanoid.MaxHealth then
  331. local AlfredDrevisHumanoidNewHealth=0.0008*AlfredDrevisHumanoid.MaxHealth;
  332. AlfredDrevisHumanoid.Health=AlfredDrevisHumanoid.Health+AlfredDrevisHumanoidNewHealth;
  333. AlfredDrevisHumanoid.Health=math.min(AlfredDrevisHumanoid.Health,AlfredDrevisHumanoid.MaxHealth);
  334. end;
  335. end;
  336. --[[ By: Brutez. ]]--
  337. end))
  338. Script18.Name = "AnimateSauce"
  339. Script18.Parent = Model0
  340. table.insert(cors,sandbox(Script18,function()
  341. function waitForChild(parent, childName)
  342. local child = parent:findFirstChild(childName)
  343. if child then return child end
  344. while true do
  345. child = parent.ChildAdded:wait()
  346. if child.Name==childName then return child end
  347. end
  348. end
  349. local Figure = script.Parent
  350. local Torso = waitForChild(Figure, "Torso")
  351. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  352. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  353. local RightHip = waitForChild(Torso, "Right Hip")
  354. local LeftHip = waitForChild(Torso, "Left Hip")
  355. local Neck = waitForChild(Torso, "Neck")
  356. local Humanoid;
  357. for _,Child in pairs(Figure:GetChildren())do
  358. if Child and Child.ClassName=="Humanoid"then
  359. Humanoid=Child;
  360. end;
  361. end;
  362. local pose = "Standing"
  363. local currentAnim = ""
  364. local currentAnimInstance = nil
  365. local currentAnimTrack = nil
  366. local currentAnimKeyframeHandler = nil
  367. local currentAnimSpeed = 1.0
  368. local animTable = {}
  369. local animNames = {
  370. idle = {
  371. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  372. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  373. },
  374. walk = {
  375. { id = "http://www.roblox.com/asset/?id=1310534683", weight = 10 }
  376. },
  377. run = {
  378. { id = "http://www.roblox.com/asset/?id=1310541871", weight = 20 }
  379. },
  380. jump = {
  381. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  382. },
  383. fall = {
  384. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  385. },
  386. climb = {
  387. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  388. },
  389. sit = {
  390. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  391. },
  392. toolnone = {
  393. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  394. },
  395. toolslash = {
  396. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  397. --{ id = "slash.xml", weight = 10 }
  398. },
  399. toollunge = {
  400. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  401. },
  402. wave = {
  403. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  404. },
  405. point = {
  406. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  407. },
  408. dance1 = {
  409. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  410. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  411. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  412. },
  413. dance2 = {
  414. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  415. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  416. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  417. },
  418. dance3 = {
  419. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  420. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  421. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  422. },
  423. laugh = {
  424. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  425. },
  426. cheer = {
  427. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  428. },
  429. }
  430. local dances = {"dance1", "dance2", "dance3"}
  431.  
  432. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  433. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  434.  
  435. function configureAnimationSet(name, fileList)
  436. if (animTable[name] ~= nil) then
  437. for _, connection in pairs(animTable[name].connections) do
  438. connection:disconnect()
  439. end
  440. end
  441. animTable[name] = {}
  442. animTable[name].count = 0
  443. animTable[name].totalWeight = 0
  444. animTable[name].connections = {}
  445.  
  446. -- check for config values
  447. local config = script:FindFirstChild(name)
  448. if (config ~= nil) then
  449. --print("Loading anims " .. name)
  450. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  451. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  452. local idx = 1
  453. for _, childPart in pairs(config:GetChildren()) do
  454. if (childPart:IsA("Animation")) then
  455. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  456. animTable[name][idx] = {}
  457. animTable[name][idx].anim = childPart
  458. local weightObject = childPart:FindFirstChild("Weight")
  459. if (weightObject == nil) then
  460. animTable[name][idx].weight = 1
  461. else
  462. animTable[name][idx].weight = weightObject.Value
  463. end
  464. animTable[name].count = animTable[name].count + 1
  465. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  466. --print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  467. idx = idx + 1
  468. end
  469. end
  470. end
  471.  
  472. -- fallback to defaults
  473. if (animTable[name].count <= 0) then
  474. for idx, anim in pairs(fileList) do
  475. animTable[name][idx] = {}
  476. animTable[name][idx].anim = Instance.new("Animation")
  477. animTable[name][idx].anim.Name = name
  478. animTable[name][idx].anim.AnimationId = anim.id
  479. animTable[name][idx].weight = anim.weight
  480. animTable[name].count = animTable[name].count + 1
  481. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  482. --print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  483. end
  484. end
  485. end
  486.  
  487. -- Setup animation objects
  488. function scriptChildModified(child)
  489. local fileList = animNames[child.Name]
  490. if (fileList ~= nil) then
  491. configureAnimationSet(child.Name, fileList)
  492. end
  493. end
  494.  
  495. script.ChildAdded:connect(scriptChildModified)
  496. script.ChildRemoved:connect(scriptChildModified)
  497.  
  498.  
  499. for name, fileList in pairs(animNames) do
  500. configureAnimationSet(name, fileList)
  501. end
  502.  
  503. -- ANIMATION
  504.  
  505. -- declarations
  506. local toolAnim = "None"
  507. local toolAnimTime = 0
  508.  
  509. local jumpAnimTime = 0
  510. local jumpAnimDuration = 0.3
  511.  
  512. local toolTransitionTime = 0.1
  513. local fallTransitionTime = 0.3
  514. local jumpMaxLimbVelocity = 0.75
  515.  
  516. -- functions
  517.  
  518. function stopAllAnimations()
  519. local oldAnim = currentAnim
  520.  
  521. -- return to idle if finishing an emote
  522. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  523. oldAnim = "idle"
  524. end
  525.  
  526. currentAnim = ""
  527. currentAnimInstance = nil
  528. if (currentAnimKeyframeHandler ~= nil) then
  529. currentAnimKeyframeHandler:disconnect()
  530. end
  531.  
  532. if (currentAnimTrack ~= nil) then
  533. currentAnimTrack:Stop()
  534. currentAnimTrack:Destroy()
  535. currentAnimTrack = nil
  536. end
  537. return oldAnim
  538. end
  539.  
  540. function setAnimationSpeed(speed)
  541. if speed ~= currentAnimSpeed then
  542. currentAnimSpeed = speed
  543. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  544. end
  545. end
  546.  
  547. function keyFrameReachedFunc(frameName)
  548. if (frameName == "End") then
  549.  
  550. local repeatAnim = currentAnim
  551. -- return to idle if finishing an emote
  552. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  553. repeatAnim = "idle"
  554. end
  555.  
  556. local animSpeed = currentAnimSpeed
  557. playAnimation(repeatAnim, 0.0, Humanoid)
  558. setAnimationSpeed(animSpeed)
  559. end
  560. end
  561.  
  562. -- Preload animations
  563. function playAnimation(animName, transitionTime, humanoid)
  564.  
  565. local roll = math.random(1, animTable[animName].totalWeight)
  566. local origRoll = roll
  567. local idx = 1
  568. while (roll > animTable[animName][idx].weight) do
  569. roll = roll - animTable[animName][idx].weight
  570. idx = idx + 1
  571. end
  572. --print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  573. local anim = animTable[animName][idx].anim
  574. -- switch animation
  575. if (anim ~= currentAnimInstance) then
  576. if (currentAnimTrack ~= nil) then
  577. currentAnimTrack:Stop(transitionTime)
  578. currentAnimTrack:Destroy()
  579. end
  580. currentAnimSpeed = 1.0
  581. -- load it to the humanoid; get AnimationTrack
  582. currentAnimTrack = humanoid:LoadAnimation(anim)
  583. -- play the animation
  584. currentAnimTrack:Play(transitionTime)
  585. currentAnim = animName
  586. currentAnimInstance = anim
  587. -- set up keyframe name triggers
  588. if (currentAnimKeyframeHandler ~= nil) then
  589. currentAnimKeyframeHandler:disconnect()
  590. end
  591. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  592. end
  593. end
  594. -------------------------------------------------------------------------------------------
  595. -------------------------------------------------------------------------------------------
  596. local toolAnimName = ""
  597. local toolAnimTrack = nil
  598. local toolAnimInstance = nil
  599. local currentToolAnimKeyframeHandler = nil
  600. function toolKeyFrameReachedFunc(frameName)
  601. if (frameName == "End") then
  602. --print("Keyframe : ".. frameName)
  603. playToolAnimation(toolAnimName, 0.0, Humanoid)
  604. end
  605. end
  606. function playToolAnimation(animName, transitionTime, humanoid)
  607. local roll = math.random(1, animTable[animName].totalWeight)
  608. local origRoll = roll
  609. local idx = 1
  610. while (roll > animTable[animName][idx].weight) do
  611. roll = roll - animTable[animName][idx].weight
  612. idx = idx + 1
  613. end
  614. --print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  615. local anim = animTable[animName][idx].anim
  616. if (toolAnimInstance ~= anim) then
  617. if (toolAnimTrack ~= nil) then
  618. toolAnimTrack:Stop()
  619. toolAnimTrack:Destroy()
  620. transitionTime = 0
  621. end
  622. -- load it to the humanoid; get AnimationTrack
  623. toolAnimTrack = humanoid:LoadAnimation(anim)
  624. -- play the animation
  625. toolAnimTrack:Play(transitionTime)
  626. toolAnimName = animName
  627. toolAnimInstance = anim
  628. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  629. end
  630. end
  631. function stopToolAnimations()
  632. local oldAnim = toolAnimName
  633. if (currentToolAnimKeyframeHandler ~= nil) then
  634. currentToolAnimKeyframeHandler:disconnect()
  635. end
  636. toolAnimName = ""
  637. toolAnimInstance = nil
  638. if (toolAnimTrack ~= nil) then
  639. toolAnimTrack:Stop()
  640. toolAnimTrack:Destroy()
  641. toolAnimTrack = nil
  642. end
  643. return oldAnim
  644. end
  645. -------------------------------------------------------------------------------------------
  646. -------------------------------------------------------------------------------------------
  647. function onRunning(speed)
  648. if speed>0.01 then
  649. if Figure and Humanoid and Humanoid.WalkSpeed<17 then
  650. playAnimation("walk", 0.1, Humanoid);
  651. elseif Figure and Humanoid and Humanoid.WalkSpeed>17 then
  652. playAnimation("run", 0.1, Humanoid);
  653. end;
  654. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  655. setAnimationSpeed(speed / 14.5)
  656. end
  657. pose = "Running"
  658. else
  659. playAnimation("idle", 0.1, Humanoid)
  660. pose = "Standing"
  661. end
  662. end
  663. function onDied()
  664. pose = "Dead"
  665. end
  666. function onJumping()
  667. playAnimation("jump", 0.1, Humanoid)
  668. jumpAnimTime = jumpAnimDuration
  669. pose = "Jumping"
  670. end
  671. function onClimbing(speed)
  672. playAnimation("climb", 0.1, Humanoid)
  673. setAnimationSpeed(speed / 12.0)
  674. pose = "Climbing"
  675. end
  676. function onGettingUp()
  677. pose = "GettingUp"
  678. end
  679. function onFreeFall()
  680. if (jumpAnimTime <= 0) then
  681. playAnimation("fall", fallTransitionTime, Humanoid)
  682. end
  683. pose = "FreeFall"
  684. end
  685. function onFallingDown()
  686. pose = "FallingDown"
  687. end
  688. function onSeated()
  689. pose = "Seated"
  690. end
  691. function onPlatformStanding()
  692. pose = "PlatformStanding"
  693. end
  694. function onSwimming(speed)
  695. if speed>0 then
  696. pose = "Running"
  697. else
  698. pose = "Standing"
  699. end
  700. end
  701.  
  702. function getTool()
  703. for _, kid in ipairs(Figure:GetChildren()) do
  704. if kid.className == "Tool" then return kid end
  705. end
  706. return nil
  707. end
  708.  
  709. function getToolAnim(tool)
  710. for _, c in ipairs(tool:GetChildren()) do
  711. if c.Name == "toolanim" and c.className == "StringValue" then
  712. return c
  713. end
  714. end
  715. return nil
  716. end
  717.  
  718. function animateTool()
  719.  
  720. if (toolAnim == "None") then
  721. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  722. return
  723. end
  724.  
  725. if (toolAnim == "Slash") then
  726. playToolAnimation("toolslash", 0, Humanoid)
  727. return
  728. end
  729.  
  730. if (toolAnim == "Lunge") then
  731. playToolAnimation("toollunge", 0, Humanoid)
  732. return
  733. end
  734. end
  735.  
  736. function moveSit()
  737. RightShoulder.MaxVelocity = 0.15
  738. LeftShoulder.MaxVelocity = 0.15
  739. RightShoulder:SetDesiredAngle(3.14 /2)
  740. LeftShoulder:SetDesiredAngle(-3.14 /2)
  741. RightHip:SetDesiredAngle(3.14 /2)
  742. LeftHip:SetDesiredAngle(-3.14 /2)
  743. end
  744.  
  745. local lastTick = 0
  746.  
  747. function move(time)
  748. local amplitude = 1
  749. local frequency = 1
  750. local deltaTime = time - lastTick
  751. lastTick = time
  752.  
  753. local climbFudge = 0
  754. local setAngles = false
  755.  
  756. if (jumpAnimTime > 0) then
  757. jumpAnimTime = jumpAnimTime - deltaTime
  758. end
  759.  
  760. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  761. playAnimation("fall", fallTransitionTime, Humanoid)
  762. elseif (pose == "Seated") then
  763. playAnimation("sit", 0.5, Humanoid)
  764. return
  765. elseif (pose == "Running") then
  766. if Figure and Humanoid and Humanoid.WalkSpeed<17 then
  767. playAnimation("walk", 0.1, Humanoid);
  768. elseif Figure and Humanoid and Humanoid.WalkSpeed>17 then
  769. playAnimation("run", 0.1, Humanoid);
  770. end;
  771. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  772. stopAllAnimations()
  773. amplitude = 0.1
  774. frequency = 1
  775. setAngles = true
  776. end
  777. if (setAngles) then
  778. local desiredAngle = amplitude * math.sin(time * frequency)
  779. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  780. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  781. RightHip:SetDesiredAngle(-desiredAngle)
  782. LeftHip:SetDesiredAngle(-desiredAngle)
  783. end
  784. -- Tool Animation handling
  785. local tool = getTool()
  786. if tool and tool:FindFirstChild("Handle") then
  787. local animStringValueObject = getToolAnim(tool)
  788. if animStringValueObject then
  789. toolAnim = animStringValueObject.Value
  790. -- message recieved, delete StringValue
  791. animStringValueObject.Parent = nil
  792. toolAnimTime = time + .3
  793. end
  794. if time > toolAnimTime then
  795. toolAnimTime = 0
  796. toolAnim = "None"
  797. end
  798. animateTool()
  799. else
  800. stopToolAnimations()
  801. toolAnim = "None"
  802. toolAnimInstance = nil
  803. toolAnimTime = 0
  804. end
  805. end
  806. -- connect events
  807. Humanoid.Died:connect(onDied)
  808. Humanoid.Running:connect(onRunning)
  809. Humanoid.Jumping:connect(onJumping)
  810. Humanoid.Climbing:connect(onClimbing)
  811. Humanoid.GettingUp:connect(onGettingUp)
  812. Humanoid.FreeFalling:connect(onFreeFall)
  813. Humanoid.FallingDown:connect(onFallingDown)
  814. Humanoid.Seated:connect(onSeated)
  815. Humanoid.PlatformStanding:connect(onPlatformStanding)
  816. Humanoid.Swimming:connect(onSwimming)
  817. local runService = game:GetService("RunService");
  818. playAnimation("idle", 0.1, Humanoid)
  819. pose = "Standing"
  820. while Wait(0)do
  821. local _,time=wait(0)
  822. move(time)
  823. end
  824. end))
  825. StringValue19.Name = "climb"
  826. StringValue19.Parent = Script18
  827. Animation20.Name = "ClimbAnim"
  828. Animation20.Parent = StringValue19
  829. Animation20.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  830. StringValue21.Name = "fall"
  831. StringValue21.Parent = Script18
  832. Animation22.Name = "FallAnim"
  833. Animation22.Parent = StringValue21
  834. Animation22.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  835. StringValue23.Name = "idle"
  836. StringValue23.Parent = Script18
  837. Animation24.Name = "Animation1"
  838. Animation24.Parent = StringValue23
  839. Animation24.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  840. NumberValue25.Name = "Weight"
  841. NumberValue25.Parent = Animation24
  842. NumberValue25.Value = 9
  843. Animation26.Name = "Animation2"
  844. Animation26.Parent = StringValue23
  845. Animation26.AnimationId = "http://www.roblox.com/asset/?id=180435792"
  846. NumberValue27.Name = "Weight"
  847. NumberValue27.Parent = Animation26
  848. NumberValue27.Value = 1
  849. StringValue28.Name = "jump"
  850. StringValue28.Parent = Script18
  851. Animation29.Name = "JumpAnim"
  852. Animation29.Parent = StringValue28
  853. Animation29.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  854. StringValue30.Name = "run"
  855. StringValue30.Parent = Script18
  856. Animation31.Name = "RunAnim"
  857. Animation31.Parent = StringValue30
  858. Animation31.AnimationId = "rbxassetid://1310541871"
  859. StringValue32.Name = "sit"
  860. StringValue32.Parent = Script18
  861. Animation33.Name = "SitAnim"
  862. Animation33.Parent = StringValue32
  863. Animation33.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  864. StringValue34.Name = "toolnone"
  865. StringValue34.Parent = Script18
  866. Animation35.Name = "ToolNoneAnim"
  867. Animation35.Parent = StringValue34
  868. Animation35.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  869. StringValue36.Name = "walk"
  870. StringValue36.Parent = Script18
  871. Animation37.Name = "WalkAnim"
  872. Animation37.Parent = StringValue36
  873. Animation37.AnimationId = "rbxassetid://1310534683"
  874. Script38.Name = "AlfredDrevisMain"
  875. Script38.Parent = Model0
  876. table.insert(cors,sandbox(Script38,function()
  877. --[[ By: Brutez. ]]--
  878. local AlfredDrevisScript=script;
  879. repeat Wait(0)until AlfredDrevisScript and AlfredDrevisScript.Parent and AlfredDrevisScript.Parent:IsA("Model")and AlfredDrevisScript.Parent:FindFirstChild("Head")and AlfredDrevisScript.Parent:FindFirstChild("Torso");
  880. local AlfredDrevis=AlfredDrevisScript.Parent;
  881. function raycast(Spos,vec,currentdist)
  882. local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(Spos+(vec*.05),vec*currentdist),AlfredDrevis);
  883. if hit2~=nil and pos2 then
  884. if hit2.Name=="Handle" and not hit2.CanCollide or string.sub(hit2.Name,1,6)=="Effect"and not hit2.CanCollide then
  885. local currentdist=currentdist-(pos2-Spos).magnitude;
  886. return raycast(pos2,vec,currentdist);
  887. end;
  888. end;
  889. return hit2,pos2;
  890. end;
  891. function RayCast(Position,Direction,MaxDistance,IgnoreList)
  892. return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit*(MaxDistance or 999.999)),IgnoreList);
  893. end;
  894. local AlfredDrevisHumanoid;
  895. for _,Child in pairs(AlfredDrevis:GetChildren())do
  896. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  897. AlfredDrevisHumanoid=Child;
  898. end;
  899. end;
  900. local AttackDebounce=false;
  901. local AlfredDrevisChainsaw=AlfredDrevis:FindFirstChild("Chainsaw");
  902. local AlfredDrevisHead=AlfredDrevis:FindFirstChild("Head");
  903. local AlfredDrevisHumanoidRootPart=AlfredDrevis:FindFirstChild("HumanoidRootPart");
  904. local WalkDebounce=false;
  905. local Notice=false;
  906. local DynamicWander=true;
  907. local CallOutChanceDebounce=false;
  908. local FatherLaughDebounce=false;
  909. local MusicDebounce=false;
  910. local NoticeDebounce=false;
  911. local OriginalC0;
  912. if AlfredDrevisScript~=nil and AlfredDrevis~=nil and AlfredDrevis:FindFirstChild("Torso")and AlfredDrevis:FindFirstChild("Torso"):FindFirstChild("Neck")then
  913. AlfredDrevis:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
  914. OriginalC0=AlfredDrevis:FindFirstChild("Torso"):FindFirstChild("Neck").C0;
  915. end;
  916. local SwingAnimation=AlfredDrevisHumanoid:LoadAnimation(AlfredDrevisScript:FindFirstChild("Swing"));
  917. function FindNearestBae()
  918. local NoticeDistance=200;
  919. local TargetMain;
  920. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  921. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and TargetModel:IsA("Model")and TargetModel~=AlfredDrevis and TargetModel.Name~=AlfredDrevis.Name and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  922. local TargetPart=TargetModel:FindFirstChild("Torso");
  923. local FoundHumanoid;
  924. for _,Child in pairs(TargetModel:GetChildren())do
  925. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  926. FoundHumanoid=Child;
  927. end;
  928. end;
  929. if TargetModel~=nil and TargetPart~=nil and FoundHumanoid~=nil and FoundHumanoid.Health~=0 and(TargetPart.Position-AlfredDrevisHumanoidRootPart.Position).magnitude<NoticeDistance then
  930. TargetMain=TargetPart;
  931. NoticeDistance=(TargetPart.Position-AlfredDrevisHumanoidRootPart.Position).magnitude;
  932. end;
  933. end;
  934. end;
  935. return TargetMain;
  936. end;
  937. function ShootRay(Start,End)
  938. if End==Start then
  939. return false
  940. end
  941. local Confirmed=true;
  942. local FiredRay1=Ray.new(Start,End);
  943. local RayTarget1,EndPosition=Game:GetService("Workspace"):FindPartOnRay(FiredRay1,AlfredDrevis);
  944. if RayTarget1 then
  945. Confirmed=false;
  946. end;
  947. if Confirmed then
  948. return true;
  949. elseif not Confirmed then
  950. return false;
  951. end;
  952. end;
  953. function NextMove(Origin,Target)
  954. local NewPosition={Target};
  955. local MovementPoints={};
  956. local BestNumber=99999;
  957. if ShootRay(Origin,Origin+Vector3.new(1,0,0))==true then
  958. table.insert(MovementPoints, Origin+Vector3.new(3.15,0,0))
  959. end;
  960. if ShootRay(Origin,Origin+Vector3.new(0,0,1))==true then
  961. table.insert(MovementPoints, Origin+Vector3.new(0,0,3.15))
  962. end;
  963. if ShootRay(Origin,Origin+Vector3.new(-1,0,0))==true then
  964. table.insert(MovementPoints,Origin+Vector3.new(-3.15,0,0))
  965. end;
  966. if ShootRay(Origin,Origin+Vector3.new(0,0,-1))==true then
  967. table.insert(MovementPoints,Origin+Vector3.new(0,0,-3.15))
  968. end
  969. for _,Position in pairs(MovementPoints)do
  970. local CurrentNumber=0;
  971. if Position.x>=Target.x then
  972. CurrentNumber=CurrentNumber+(Position.x-Target.x)
  973. else
  974. CurrentNumber=CurrentNumber+(Target.x-Position.x)
  975. end
  976. if Position.y>=Target.y then
  977. CurrentNumber=CurrentNumber+(Position.y-Target.y)
  978. else
  979. CurrentNumber=CurrentNumber+(Target.y-Position.y)
  980. end
  981. if Position.z>=Target.z then
  982. CurrentNumber=CurrentNumber+(Position.z-Target.z)
  983. else
  984. CurrentNumber=CurrentNumber+(Target.z-Position.z)
  985. end
  986. if Position.x>= Origin.x then
  987. CurrentNumber=CurrentNumber+(Position.x -Origin.x)
  988. else
  989. CurrentNumber=CurrentNumber+(Origin.x-Position.x)
  990. end
  991. if Position.y>=Origin.y then
  992. CurrentNumber=CurrentNumber+(Position.y-Origin.y)
  993. else
  994. CurrentNumber=CurrentNumber+(Origin.y-Position.y)
  995. end
  996. if Position.z>=Origin.z then
  997. CurrentNumber=CurrentNumber+(Position.z-Origin.z)
  998. else
  999. CurrentNumber=CurrentNumber+(Origin.z-Position.z)
  1000. end
  1001. if CurrentNumber<=BestNumber then
  1002. NewPosition={};
  1003. table.insert(NewPosition,Position)
  1004. BestNumber=CurrentNumber
  1005. end
  1006. end;
  1007. local FiredRay1=Ray.new(Origin,AlfredDrevisHumanoidRootPart.CFrame.lookVector*2+Vector3.new(2,0,0));
  1008. local RayTarget1,endPoint1=Game:GetService("Workspace"):FindPartOnRay(FiredRay1,AlfredDrevis);
  1009. local FiredRay2=Ray.new(Origin,AlfredDrevisHumanoidRootPart.CFrame.lookVector*2);
  1010. local RayTarget2,endPoint2=Game:GetService("Workspace"):FindPartOnRay(FiredRay2,AlfredDrevis);
  1011. local FiredRay3=Ray.new(Origin,AlfredDrevisHumanoidRootPart.CFrame.lookVector*2-Vector3.new(2,0,0));
  1012. local RayTarget3,endPoint3=Game:GetService("Workspace"):FindPartOnRay(FiredRay3,AlfredDrevis);
  1013. if not RayTarget1 and not RayTarget2 and not RayTarget3 then
  1014. if #NewPosition>1 then
  1015. return NewPosition[math.random(1,#NewPosition)];
  1016. else
  1017. return NewPosition[1];
  1018. end;
  1019. elseif RayTarget1~=nil and not RayTarget1:IsDescendantOf(AlfredDrevis)or RayTarget2~=nil and not RayTarget2:IsDescendantOf(AlfredDrevis)or RayTarget3~=nil and not RayTarget3:IsDescendantOf(AlfredDrevis)then
  1020. AlfredDrevisHumanoid:MoveTo(Target+(Target-AlfredDrevisHumanoidRootPart.Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1021. end;
  1022. end;
  1023. while Wait(0)do
  1024. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisChainsaw and AlfredDrevisChainsaw:FindFirstChild("Idle")and not AlfredDrevisChainsaw:FindFirstChild("Idle").IsPlaying then
  1025. AlfredDrevisChainsaw:FindFirstChild("Idle"):Play();
  1026. end;
  1027. local ChainsawIdleSoundChance=math.random(1,300);
  1028. if ChainsawIdleSoundChance==1 and AlfredDrevisScript~=nil and AlfredDrevis~=nil and AlfredDrevisChainsaw~=nil and AlfredDrevisChainsaw:FindFirstChild("IdleSound1")then
  1029. AlfredDrevisChainsaw:FindFirstChild("IdleSound1").Pitch=0.8+math.random()*0.2;
  1030. AlfredDrevisChainsaw:FindFirstChild("IdleSound1"):Play();
  1031. end;
  1032. local TargetPoint=AlfredDrevisHumanoid.TargetPoint;
  1033. local Blockage,BlockagePos=RayCast((AlfredDrevisHumanoidRootPart.CFrame+CFrame.new(AlfredDrevisHumanoidRootPart.Position,Vector3.new(TargetPoint.X,AlfredDrevisHumanoidRootPart.Position.Y,TargetPoint.Z)).lookVector*(AlfredDrevisHumanoidRootPart.Size.Z/2)).p,AlfredDrevisHumanoidRootPart.CFrame.lookVector,(AlfredDrevisHumanoidRootPart.Size.Z*2.5),{AlfredDrevis,AlfredDrevis})
  1034. local Jumpable=false;
  1035. local MainTarget=FindNearestBae();
  1036. local BlockageHumanoid;
  1037. if Blockage~=nil then
  1038. if Blockage~=nil and Blockage.Parent~=nil and Blockage.Parent:IsA("Model")then
  1039. for _,Child in pairs(Blockage.Parent:GetChildren())do
  1040. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  1041. BlockageHumanoid=Child;
  1042. end;
  1043. end;
  1044. end;
  1045. Jumpable=true;
  1046. if Blockage~=nil and Blockage:IsA("Terrain")then
  1047. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  1048. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  1049. if CellMaterial==Enum.CellMaterial.Water or MainTarget and Blockage:IsDescendantOf(MainTarget.Parent)or BlockageHumanoid~=nil then
  1050. Jumpable=false;
  1051. end;
  1052. elseif Blockage:IsA("TrussPart")or Blockage:IsA("WedgePart")or Blockage.Name=="Handle"and Blockage.Parent:IsA("Hat")or Blockage.Name=="Handle"and Blockage.Parent:IsA("Accoutrement")or Blockage.Name=="Handle"and Blockage.Parent:IsA("Accessory")or Blockage.Name=="Handle"and Blockage.Parent:IsA("Tool")or MainTarget~=nil and MainTarget.Parent~=nil and Blockage:IsDescendantOf(MainTarget.Parent)or BlockageHumanoid~=nil then
  1053. Jumpable=false;
  1054. end;
  1055. end;
  1056. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and not AlfredDrevisHumanoid.Sit and Jumpable then
  1057. AlfredDrevisHumanoid.Jump=true;
  1058. end;
  1059. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHead and AlfredDrevisHumanoidRootPart and AlfredDrevisHead:FindFirstChild("FatherStep")and (AlfredDrevisHumanoidRootPart.Velocity-Vector3.new(0,AlfredDrevisHumanoidRootPart.Velocity.y,0)).magnitude>=5 and not WalkDebounce and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 then
  1060. Spawn(function()
  1061. WalkDebounce=true;
  1062. local FiredRay=Ray.new(AlfredDrevisHumanoidRootPart.Position,Vector3.new(0,-4,0));
  1063. local RayTarget,endPoint=Game:GetService("Workspace"):FindPartOnRay(FiredRay,AlfredDrevis);
  1064. if RayTarget then
  1065. local AlfredDrevisHeadFootStepClone=AlfredDrevisHead:FindFirstChild("FatherStep"):Clone();
  1066. AlfredDrevisHeadFootStepClone.Parent=AlfredDrevisHead;
  1067. AlfredDrevisHeadFootStepClone:Play();
  1068. AlfredDrevisHeadFootStepClone:Destroy();
  1069. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisHumanoid.WalkSpeed<17 then
  1070. Wait(0.4);
  1071. elseif AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisHumanoid.WalkSpeed>17 then
  1072. Wait(0.15);
  1073. end
  1074. end;
  1075. WalkDebounce=false;
  1076. end);
  1077. end;
  1078. local MainTarget=FindNearestBae();
  1079. local FoundHumanoid;
  1080. if MainTarget~=nil then
  1081. for _,Child in pairs(MainTarget.Parent:GetChildren())do
  1082. if Child~=nil and Child:IsA("Humanoid")and Child.Health~=0 then
  1083. FoundHumanoid=Child;
  1084. end;
  1085. end;
  1086. end;
  1087. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and MainTarget and MainTarget.Parent and FoundHumanoid~=nil and FoundHumanoid.Jump then
  1088. AlfredDrevisHumanoid.Jump=true;
  1089. end;
  1090. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisChainsaw and AlfredDrevisChainsaw:FindFirstChild("Blood")and AlfredDrevisChainsaw:FindFirstChild("AttackEnd")and AlfredDrevisChainsaw:FindFirstChild("Attack")and AlfredDrevisChainsaw:FindFirstChild("Attack")and not AlfredDrevisChainsaw:FindFirstChild("Attack").IsPlaying and MainTarget and FoundHumanoid~=nil and FoundHumanoid.Health~=0 and(MainTarget.Position-AlfredDrevisHumanoidRootPart.Position).magnitude<50 then
  1091. SwingAnimation:Play();
  1092. SwingAnimation:AdjustSpeed(2+(math.random()*0.3));
  1093. AlfredDrevisChainsaw:FindFirstChild("Attack"):Play();
  1094. elseif AlfredDrevisScript and AlfredDrevis and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisChainsaw and AlfredDrevisChainsaw:FindFirstChild("Blood")and AlfredDrevisChainsaw:FindFirstChild("AttackEnd")and AlfredDrevisChainsaw:FindFirstChild("Attack")and AlfredDrevisChainsaw:FindFirstChild("Attack")and AlfredDrevisChainsaw:FindFirstChild("Attack").IsPlaying and MainTarget and FoundHumanoid~=nil and FoundHumanoid.Health~=0 and(MainTarget.Position-AlfredDrevisHumanoidRootPart.Position).magnitude>50 then
  1095. SwingAnimation:Stop();
  1096. AlfredDrevisChainsaw:FindFirstChild("AttackEnd"):Play();
  1097. AlfredDrevisChainsaw:FindFirstChild("Blood").Enabled=false;
  1098. AlfredDrevisChainsaw:FindFirstChild("Attack"):Stop();
  1099. end;
  1100. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisChainsaw and AlfredDrevisChainsaw:FindFirstChild("Blood")and MainTarget and FoundHumanoid~=nil and FoundHumanoid.Health~=0 and(MainTarget.Position-AlfredDrevisHumanoidRootPart.Position).magnitude<6 then
  1101. local hit,pos=raycast(AlfredDrevisHumanoidRootPart.Position,(MainTarget.Position-AlfredDrevisHumanoidRootPart.Position).unit,500)
  1102. if hit~=nil and hit:IsDescendantOf(MainTarget.Parent)then
  1103. AlfredDrevisChainsaw:FindFirstChild("Blood").Enabled=true;
  1104. local HitSoundClone=AlfredDrevisChainsaw:FindFirstChild("Hit"):Clone();
  1105. HitSoundClone.Pitch=AlfredDrevisChainsaw:FindFirstChild("Hit").Pitch+math.random()*0.1;
  1106. HitSoundClone.Parent=AlfredDrevisChainsaw;
  1107. HitSoundClone:Play();
  1108. HitSoundClone:Destroy();
  1109. FoundHumanoid:TakeDamage(10);
  1110. else
  1111. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisChainsaw and AlfredDrevisChainsaw:FindFirstChild("Blood")then
  1112. AlfredDrevisChainsaw:FindFirstChild("Blood").Enabled=false;
  1113. end;
  1114. end;
  1115. elseif AlfredDrevisScript and AlfredDrevis and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisChainsaw and AlfredDrevisChainsaw:FindFirstChild("Blood")and MainTarget and FoundHumanoid~=nil and FoundHumanoid.Health~=0 and(MainTarget.Position-AlfredDrevisHumanoidRootPart.Position).magnitude>6 then
  1116. AlfredDrevisChainsaw:FindFirstChild("Blood").Enabled=false;
  1117. end;
  1118. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and MainTarget and FoundHumanoid~=nil and FoundHumanoid.Health~=0 and(MainTarget.Position-AlfredDrevisHumanoidRootPart.Position).magnitude<25 then
  1119. local LaughChance=math.random(1,50);
  1120. if LaughChance==1 and not FatherLaughDebounce then
  1121. Spawn(function()
  1122. FatherLaughDebounce=true;
  1123. local CallOutVariant=math.random(1,3);
  1124. if CallOutVariant==1 and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisHead and AlfredDrevisHead:FindFirstChild("FatherLaugh1")then
  1125. AlfredDrevisHead:FindFirstChild("FatherLaugh1").Pitch=1+math.random()*0.05;
  1126. AlfredDrevisHead:FindFirstChild("FatherLaugh1"):Play();
  1127. Wait(2.785);
  1128. elseif CallOutVariant==2 and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisHead and AlfredDrevisHead:FindFirstChild("FatherLaugh2")then
  1129. AlfredDrevisHead:FindFirstChild("FatherLaugh2").Pitch=1+math.random()*0.05;
  1130. AlfredDrevisHead:FindFirstChild("FatherLaugh2"):Play();
  1131. Wait(3.762);
  1132. elseif CallOutVariant==3 and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisHead and AlfredDrevisHead:FindFirstChild("FatherLaugh3")then
  1133. AlfredDrevisHead:FindFirstChild("FatherLaugh3").Pitch=1+math.random()*0.05;
  1134. AlfredDrevisHead:FindFirstChild("FatherLaugh3"):Play();
  1135. Wait(2.2042);
  1136. end;
  1137. FatherLaughDebounce=false;
  1138. end);
  1139. end;
  1140. end;
  1141. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and MainTarget and FoundHumanoid~=nil and FoundHumanoid.Health~=0 and(MainTarget.Position-AlfredDrevisHumanoidRootPart.Position).magnitude<150 then
  1142. if AlfredDrevisScript and AlfredDrevis and AlfredDrevis:FindFirstChild("[SC] urgent")and not AlfredDrevis:FindFirstChild("[SC] urgent").IsPlaying then
  1143. AlfredDrevis:FindFirstChild("[SC] urgent").Volume=1;
  1144. AlfredDrevis:FindFirstChild("[SC] urgent"):Play();
  1145. end;
  1146. elseif AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and MainTarget and FoundHumanoid~=nil and FoundHumanoid.Health~=0 and(MainTarget.Position-AlfredDrevisHumanoidRootPart.Position).magnitude>150 then
  1147. if AlfredDrevisScript and AlfredDrevis and AlfredDrevis:FindFirstChild("[SC] urgent")and AlfredDrevis:FindFirstChild("[SC] urgent").IsPlaying then
  1148. if not MusicDebounce then
  1149. Spawn(function()
  1150. MusicDebounce=true;
  1151. repeat Wait(0);if AlfredDrevisScript and AlfredDrevis and AlfredDrevis:FindFirstChild("[SC] urgent")then AlfredDrevis:FindFirstChild("[SC] urgent").Volume=AlfredDrevis:FindFirstChild("[SC] urgent").Volume-0.01;else break;end;until AlfredDrevis:FindFirstChild("[SC] urgent").Volume==0 or AlfredDrevis:FindFirstChild("[SC] urgent").Volume<0;
  1152. if AlfredDrevisScript and AlfredDrevis and AlfredDrevis:FindFirstChild("[SC] urgent")then
  1153. AlfredDrevis:FindFirstChild("[SC] urgent").Volume=0;
  1154. AlfredDrevis:FindFirstChild("[SC] urgent"):Stop();
  1155. end;
  1156. MusicDebounce=false;
  1157. end);
  1158. end;
  1159. end;
  1160. end;
  1161. if not MainTarget and not MusicDebounce then
  1162. Spawn(function()
  1163. MusicDebounce=true;
  1164. repeat Wait(0);if AlfredDrevisScript and AlfredDrevis and AlfredDrevis:FindFirstChild("[SC] urgent")then AlfredDrevis:FindFirstChild("[SC] urgent").Volume=AlfredDrevis:FindFirstChild("[SC] urgent").Volume-0.01;else break;end;until AlfredDrevis:FindFirstChild("[SC] urgent").Volume==0 or AlfredDrevis:FindFirstChild("[SC] urgent").Volume<0;
  1165. if AlfredDrevisScript and AlfredDrevis and AlfredDrevis:FindFirstChild("[SC] urgent")then
  1166. AlfredDrevis:FindFirstChild("[SC] urgent").Volume=0;
  1167. AlfredDrevis:FindFirstChild("[SC] urgent"):Stop();
  1168. end;
  1169. MusicDebounce=false;
  1170. end);
  1171. end;
  1172. if MainTarget~=nil then
  1173. Notice=true;
  1174. if Notice and not NoticeDebounce and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHead and AlfredDrevisHead:FindFirstChild("FatherNotice")then
  1175. AlfredDrevisHead:FindFirstChild("FatherNotice"):Play();
  1176. NoticeDebounce=true;
  1177. end
  1178. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 then
  1179. if MainTarget~=nil and FoundHumanoid~=nil and FoundHumanoid.Health~=0 and(MainTarget.Position-AlfredDrevisHumanoidRootPart.Position).magnitude>5 then
  1180. local CurrentMove=NextMove(AlfredDrevisHumanoidRootPart.Position,MainTarget.Position)
  1181. if CurrentMove~=nil then
  1182. AlfredDrevisHumanoid:MoveTo(CurrentMove+(CurrentMove-AlfredDrevisHumanoidRootPart.Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1183. end;
  1184. AlfredDrevisHumanoid.WalkSpeed=40;
  1185. elseif MainTarget~=nil and FoundHumanoid~=nil and FoundHumanoid.Health~=0 and(MainTarget.Position-AlfredDrevisHumanoidRootPart.Position).magnitude<5 then
  1186. AlfredDrevisHumanoid:MoveTo(MainTarget.Position+(MainTarget.Position-AlfredDrevisHumanoidRootPart.Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1187. AlfredDrevisHumanoid.WalkSpeed=0.004;
  1188. end;
  1189. end;
  1190. if AlfredDrevisScript~=nil and AlfredDrevis~=nil and AlfredDrevis:FindFirstChild("Torso")and AlfredDrevis:FindFirstChild("Torso"):FindFirstChild("Neck")then
  1191. local NeckRotation=(AlfredDrevis:FindFirstChild("Torso").Position.Y-MainTarget.Parent:FindFirstChild("Head").Position.Y)/10;
  1192. if NeckRotation>-1.5 and NeckRotation<1.5 then
  1193. if AlfredDrevisScript and AlfredDrevis and AlfredDrevis:FindFirstChild("Torso")and AlfredDrevis:FindFirstChild("Torso"):FindFirstChild("Neck")then
  1194. AlfredDrevis:FindFirstChild("Torso"):FindFirstChild("Neck").C0=OriginalC0*CFrame.fromEulerAnglesXYZ(NeckRotation,0,0);
  1195. end;
  1196. end;
  1197. if NeckRotation<-1.5 then
  1198. AlfredDrevis:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,-0.993636549,0.112633869,0,0.112633869,0.993636549);
  1199. elseif NeckRotation>1.5 then
  1200. if AlfredDrevisScript and AlfredDrevis and AlfredDrevis:FindFirstChild("Torso")and AlfredDrevis:FindFirstChild("Torso"):FindFirstChild("Neck")then
  1201. AlfredDrevis:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0.996671617,0.081521146,0,0.081521146,-0.996671617);
  1202. end;
  1203. end;
  1204. end;
  1205. else
  1206. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisChainsaw and AlfredDrevisChainsaw:FindFirstChild("Blood")and AlfredDrevisChainsaw:FindFirstChild("AttackEnd")and AlfredDrevisChainsaw:FindFirstChild("Attack")and AlfredDrevisChainsaw:FindFirstChild("Attack")and AlfredDrevisChainsaw:FindFirstChild("Attack").IsPlaying then
  1207. SwingAnimation:Stop();
  1208. AlfredDrevisChainsaw:FindFirstChild("AttackEnd"):Play();
  1209. AlfredDrevisChainsaw:FindFirstChild("Blood").Enabled=false;
  1210. AlfredDrevisChainsaw:FindFirstChild("Attack"):Stop();
  1211. end;
  1212. if AlfredDrevisScript~=nil and AlfredDrevis~=nil and AlfredDrevis:FindFirstChild("Torso")and AlfredDrevis:FindFirstChild("Torso"):FindFirstChild("Neck")then
  1213. AlfredDrevis:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
  1214. end;
  1215. Notice=false;
  1216. NoticeDebounce=false;
  1217. local CallOutChance=math.random(1,300);
  1218. if CallOutChance==1 and not CallOutChanceDebounce then
  1219. Spawn(function()
  1220. CallOutChanceDebounce=true;
  1221. local CallOutVariant=math.random(1,4);
  1222. if CallOutVariant==1 and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisHead and AlfredDrevisHead:FindFirstChild("Aya1")then
  1223. AlfredDrevisHead:FindFirstChild("Aya1").Pitch=1+math.random()*0.1;
  1224. AlfredDrevisHead:FindFirstChild("Aya1"):Play();
  1225. Wait(2.72);
  1226. elseif CallOutVariant==2 and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisHead and AlfredDrevisHead:FindFirstChild("Aya2")then
  1227. AlfredDrevisHead:FindFirstChild("Aya2").Pitch=1+math.random()*0.1;
  1228. AlfredDrevisHead:FindFirstChild("Aya2"):Play();
  1229. Wait(2.612);
  1230. elseif CallOutVariant==3 and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisHead and AlfredDrevisHead:FindFirstChild("WhereAreYou1")then
  1231. AlfredDrevisHead:FindFirstChild("WhereAreYou1").Pitch=1+math.random()*0.1;
  1232. AlfredDrevisHead:FindFirstChild("WhereAreYou1"):Play();
  1233. Wait(3.91);
  1234. elseif CallOutVariant==4 and AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health~=0 and AlfredDrevisHead and AlfredDrevisHead:FindFirstChild("WhereAreYou2")then
  1235. AlfredDrevisHead:FindFirstChild("WhereAreYou2").Pitch=1+math.random()*0.1;
  1236. AlfredDrevisHead:FindFirstChild("WhereAreYou2"):Play();
  1237. Wait(3.07);
  1238. end;
  1239. CallOutChanceDebounce=false;
  1240. end);
  1241. end;
  1242. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid then
  1243. AlfredDrevisHumanoid.WalkSpeed=12;
  1244. end;
  1245. local SwitchWander=math.random(1,2000);
  1246. if SwitchWander==1 and not DynamicWander then
  1247. DynamicWander=true;
  1248. elseif SwitchWander==1 and DynamicWander then
  1249. DynamicWander=false;
  1250. end;
  1251. local WalkChance=math.random(1,40);
  1252. if WalkChance==1 and AlfredDrevisScript and AlfredDrevis and AlfredDrevis:FindFirstChild("Torso")and AlfredDrevis:FindFirstChild("Head")and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health>0.001 and not DynamicWander then
  1253. AlfredDrevisHumanoid:MoveTo(Game:GetService("Workspace"):FindFirstChild("Terrain").Position+Vector3.new(math.random(-2048,2048),0,math.random(-2048,2048)),Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1254. elseif AlfredDrevisScript and AlfredDrevis and AlfredDrevis:FindFirstChild("Torso")and AlfredDrevis:FindFirstChild("Head")and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Health>0.001 and DynamicWander then
  1255. local WanderAngle=(math.random()-0.5)*1;
  1256. local RotatingLookVector=CFrame.Angles(0,WanderAngle,0)*script.Parent.Torso.CFrame.lookVector;
  1257. AlfredDrevisHumanoid:MoveTo(AlfredDrevis:FindFirstChild("Torso").Position+6*RotatingLookVector,AlfredDrevis:FindFirstChild("Torso"));
  1258. end;
  1259. end;
  1260. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid then
  1261. AlfredDrevisHumanoid.DisplayDistanceType="None";
  1262. AlfredDrevisHumanoid.HealthDisplayDistance=0;
  1263. AlfredDrevisHumanoid.Name="PsychopathicFather";
  1264. AlfredDrevisHumanoid.NameDisplayDistance=0;
  1265. AlfredDrevisHumanoid.NameOcclusion="EnemyOcclusion";
  1266. AlfredDrevisHumanoid.AutoJumpEnabled=true;
  1267. AlfredDrevisHumanoid.AutoRotate=true;
  1268. AlfredDrevisHumanoid.MaxHealth=99999e99999;
  1269. AlfredDrevisHumanoid.Health=99999e99999;
  1270. AlfredDrevisHumanoid.JumpPower=60;
  1271. AlfredDrevisHumanoid.MaxSlopeAngle=89.9;
  1272. end;
  1273. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and not AlfredDrevisHumanoid.AutoJumpEnabled then
  1274. AlfredDrevisHumanoid.AutoJumpEnabled=true;
  1275. end;
  1276. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and not AlfredDrevisHumanoid.AutoRotate then
  1277. AlfredDrevisHumanoid.AutoRotate=true;
  1278. end;
  1279. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.PlatformStand then
  1280. AlfredDrevisHumanoid.PlatformStand=false;
  1281. end;
  1282. if AlfredDrevisScript and AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid.Sit then
  1283. AlfredDrevisHumanoid.Sit=false;
  1284. end;
  1285. end;
  1286. --[[ By: Brutez. ]]--
  1287. end))
  1288. Animation39.Name = "Swing"
  1289. Animation39.Parent = Script38
  1290. Animation39.AnimationId = "rbxassetid://41824837"
  1291. BodyColors40.Parent = Model0
  1292. BodyColors40.HeadColor = BrickColor.new("Institutional white")
  1293. BodyColors40.LeftArmColor = BrickColor.new("Institutional white")
  1294. BodyColors40.LeftLegColor = BrickColor.new("Institutional white")
  1295. BodyColors40.RightArmColor = BrickColor.new("Institutional white")
  1296. BodyColors40.RightLegColor = BrickColor.new("Institutional white")
  1297. BodyColors40.TorsoColor = BrickColor.new("Institutional white")
  1298. Part41.Name = "Chainsaw"
  1299. Part41.Parent = Model0
  1300. Part41.Material = Enum.Material.SmoothPlastic
  1301. Part41.BrickColor = BrickColor.new("Institutional white")
  1302. Part41.Rotation = Vector3.new(18.3699989, 37.7299995, -11.4899998)
  1303. Part41.RotVelocity = Vector3.new(0, -0.775562763, 0)
  1304. Part41.Velocity = Vector3.new(-5.55803156, 0, -9.5999651)
  1305. Part41.CanCollide = false
  1306. Part41.Locked = true
  1307. Part41.Elasticity = 0
  1308. Part41.FormFactor = Enum.FormFactor.Custom
  1309. Part41.Friction = 2
  1310. Part41.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1311. Part41.CFrame = CFrame.new(0.0895835161, 4.05566025, 113.94754, 0.775071383, 0.157529965, 0.611921906, -4.33894502e-06, 0.968426049, -0.249301016, -0.631873488, 0.193223432, 0.75059998)
  1312. Part41.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1313. Part41.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1314. Part41.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1315. Part41.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1316. Part41.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1317. Part41.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1318. Part41.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1319. Part41.Position = Vector3.new(0.0895835161, 4.05566025, 113.94754)
  1320. Part41.Orientation = Vector3.new(14.4399996, 39.1899986, 0)
  1321. Part41.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1322. Sound42.Name = "Attack"
  1323. Sound42.Parent = Part41
  1324. Sound42.Pitch = 1.1000000238419
  1325. Sound42.SoundId = "rbxassetid://202241842"
  1326. Sound42.Volume = 5
  1327. Sound42.Looped = true
  1328. Sound43.Name = "AttackEnd"
  1329. Sound43.Parent = Part41
  1330. Sound43.SoundId = "rbxassetid://202241842"
  1331. Sound43.Volume = 5
  1332. Sound43.PlayOnRemove = true
  1333. Sound44.Name = "Idle"
  1334. Sound44.Parent = Part41
  1335. Sound44.SoundId = "rbxassetid://422956224"
  1336. Sound44.Volume = 1
  1337. Sound44.Looped = true
  1338. Sound45.Name = "IdleSound1"
  1339. Sound45.Parent = Part41
  1340. Sound45.Pitch = 0.87191992998123
  1341. Sound45.SoundId = "rbxassetid://422956883"
  1342. Sound45.Volume = 1
  1343. Sound45.PlayOnRemove = true
  1344. Sound46.Name = "Hit"
  1345. Sound46.Parent = Part41
  1346. Sound46.Pitch = 3
  1347. Sound46.SoundId = "rbxassetid://2774556"
  1348. Sound46.Volume = 1
  1349. ParticleEmitter47.Name = "Blood"
  1350. ParticleEmitter47.Parent = Part41
  1351. ParticleEmitter47.Transparency = NumberSequence.new(1,0,0,1)
  1352. ParticleEmitter47.Rotation = NumberRange.new(-45, 45)
  1353. ParticleEmitter47.Size = NumberSequence.new(2,0)
  1354. ParticleEmitter47.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0.239216, 0.0313726, 0.00392157))
  1355. ParticleEmitter47.Enabled = false
  1356. ParticleEmitter47.Texture = "rbxassetid://363248610"
  1357. ParticleEmitter47.Acceleration = Vector3.new(0, -70, 0)
  1358. ParticleEmitter47.Lifetime = NumberRange.new(1, 1)
  1359. ParticleEmitter47.Rate = 50
  1360. ParticleEmitter47.RotSpeed = NumberRange.new(-180, 180)
  1361. ParticleEmitter47.Speed = NumberRange.new(-10, 10)
  1362. ParticleEmitter47.VelocitySpread = 999999
  1363. ParticleEmitter47.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0.239216, 0.0313726, 0.00392157))
  1364. SpecialMesh48.Parent = Part41
  1365. SpecialMesh48.MeshId = "http://www.roblox.com/asset/?id=202083123 "
  1366. SpecialMesh48.TextureId = "http://www.roblox.com/asset/?id=210526258 "
  1367. SpecialMesh48.MeshType = Enum.MeshType.FileMesh
  1368. ParticleEmitter49.Name = "Divine Pulse"
  1369. ParticleEmitter49.Parent = Part41
  1370. ParticleEmitter49.Transparency = NumberSequence.new(1,0,1)
  1371. ParticleEmitter49.Size = NumberSequence.new(0,1.4999997615814)
  1372. ParticleEmitter49.Color = ColorSequence.new(Color3.new(0.964706, 1, 0.262745),Color3.new(0.964706, 1, 0.262745))
  1373. ParticleEmitter49.LightEmission = 1
  1374. ParticleEmitter49.Texture = "rbxassetid://48315270"
  1375. ParticleEmitter49.Lifetime = NumberRange.new(1, 1)
  1376. ParticleEmitter49.Rate = 3
  1377. ParticleEmitter49.Speed = NumberRange.new(0, 0)
  1378. ParticleEmitter49.Color = ColorSequence.new(Color3.new(0.964706, 1, 0.262745),Color3.new(0.964706, 1, 0.262745))
  1379. ParticleEmitter50.Name = "Heaven's Rings"
  1380. ParticleEmitter50.Parent = Part41
  1381. ParticleEmitter50.Transparency = NumberSequence.new(1,0.49374997615814,1)
  1382. ParticleEmitter50.Rotation = NumberRange.new(9, 37)
  1383. ParticleEmitter50.Size = NumberSequence.new(2,2)
  1384. ParticleEmitter50.Color = ColorSequence.new(Color3.new(1, 0.905882, 0.164706),Color3.new(1, 0.905882, 0.164706))
  1385. ParticleEmitter50.LightEmission = 1
  1386. ParticleEmitter50.Texture = "rbxassetid://1084976679"
  1387. ParticleEmitter50.ZOffset = 1
  1388. ParticleEmitter50.Lifetime = NumberRange.new(1, 1)
  1389. ParticleEmitter50.Rate = 45
  1390. ParticleEmitter50.RotSpeed = NumberRange.new(8, 37)
  1391. ParticleEmitter50.Speed = NumberRange.new(0, 0)
  1392. ParticleEmitter50.Color = ColorSequence.new(Color3.new(1, 0.905882, 0.164706),Color3.new(1, 0.905882, 0.164706))
  1393. ParticleEmitter51.Name = "Holy Rays"
  1394. ParticleEmitter51.Parent = Part41
  1395. ParticleEmitter51.Transparency = NumberSequence.new(1,0.73749995231628,1)
  1396. ParticleEmitter51.Rotation = NumberRange.new(37, 999)
  1397. ParticleEmitter51.Size = NumberSequence.new(3,3)
  1398. ParticleEmitter51.Color = ColorSequence.new(Color3.new(0.94902, 1, 0.458824),Color3.new(0.94902, 1, 0.458824))
  1399. ParticleEmitter51.LightEmission = 1
  1400. ParticleEmitter51.Texture = "rbxassetid://1053548563"
  1401. ParticleEmitter51.Lifetime = NumberRange.new(1, 1)
  1402. ParticleEmitter51.Rate = 2
  1403. ParticleEmitter51.RotSpeed = NumberRange.new(-10, -10)
  1404. ParticleEmitter51.Speed = NumberRange.new(0, 0)
  1405. ParticleEmitter51.Color = ColorSequence.new(Color3.new(0.94902, 1, 0.458824),Color3.new(0.94902, 1, 0.458824))
  1406. ParticleEmitter52.Name = "Shrine"
  1407. ParticleEmitter52.Parent = Part41
  1408. ParticleEmitter52.Rotation = NumberRange.new(37, 999)
  1409. ParticleEmitter52.Size = NumberSequence.new(1,0)
  1410. ParticleEmitter52.Color = ColorSequence.new(Color3.new(1, 0.905882, 0.164706),Color3.new(1, 0.905882, 0.164706))
  1411. ParticleEmitter52.LightEmission = 1
  1412. ParticleEmitter52.Texture = "rbxassetid://270446290"
  1413. ParticleEmitter52.ZOffset = 1
  1414. ParticleEmitter52.Lifetime = NumberRange.new(1, 1)
  1415. ParticleEmitter52.Rate = 45
  1416. ParticleEmitter52.RotSpeed = NumberRange.new(-100, -100)
  1417. ParticleEmitter52.Speed = NumberRange.new(0, 0)
  1418. ParticleEmitter52.Color = ColorSequence.new(Color3.new(1, 0.905882, 0.164706),Color3.new(1, 0.905882, 0.164706))
  1419. ParticleEmitter53.Name = "Divine Pulse"
  1420. ParticleEmitter53.Parent = Part41
  1421. ParticleEmitter53.Transparency = NumberSequence.new(1,0,1)
  1422. ParticleEmitter53.Size = NumberSequence.new(0,1.4999997615814)
  1423. ParticleEmitter53.Color = ColorSequence.new(Color3.new(0.964706, 1, 0.262745),Color3.new(0.964706, 1, 0.262745))
  1424. ParticleEmitter53.LightEmission = 1
  1425. ParticleEmitter53.Texture = "rbxassetid://48315270"
  1426. ParticleEmitter53.Lifetime = NumberRange.new(1, 1)
  1427. ParticleEmitter53.Rate = 3
  1428. ParticleEmitter53.Speed = NumberRange.new(0, 0)
  1429. ParticleEmitter53.Color = ColorSequence.new(Color3.new(0.964706, 1, 0.262745),Color3.new(0.964706, 1, 0.262745))
  1430. ParticleEmitter54.Name = "Heaven's Rings"
  1431. ParticleEmitter54.Parent = Part41
  1432. ParticleEmitter54.Transparency = NumberSequence.new(1,0.49374997615814,1)
  1433. ParticleEmitter54.Rotation = NumberRange.new(9, 37)
  1434. ParticleEmitter54.Size = NumberSequence.new(2,2)
  1435. ParticleEmitter54.Color = ColorSequence.new(Color3.new(1, 0.905882, 0.164706),Color3.new(1, 0.905882, 0.164706))
  1436. ParticleEmitter54.LightEmission = 1
  1437. ParticleEmitter54.Texture = "rbxassetid://1084976679"
  1438. ParticleEmitter54.ZOffset = 1
  1439. ParticleEmitter54.Lifetime = NumberRange.new(1, 1)
  1440. ParticleEmitter54.Rate = 45
  1441. ParticleEmitter54.RotSpeed = NumberRange.new(8, 37)
  1442. ParticleEmitter54.Speed = NumberRange.new(0, 0)
  1443. ParticleEmitter54.Color = ColorSequence.new(Color3.new(1, 0.905882, 0.164706),Color3.new(1, 0.905882, 0.164706))
  1444. ParticleEmitter55.Name = "Holy Rays"
  1445. ParticleEmitter55.Parent = Part41
  1446. ParticleEmitter55.Transparency = NumberSequence.new(1,0.73749995231628,1)
  1447. ParticleEmitter55.Rotation = NumberRange.new(37, 999)
  1448. ParticleEmitter55.Size = NumberSequence.new(3,3)
  1449. ParticleEmitter55.Color = ColorSequence.new(Color3.new(0.94902, 1, 0.458824),Color3.new(0.94902, 1, 0.458824))
  1450. ParticleEmitter55.LightEmission = 1
  1451. ParticleEmitter55.Texture = "rbxassetid://1053548563"
  1452. ParticleEmitter55.Lifetime = NumberRange.new(1, 1)
  1453. ParticleEmitter55.Rate = 2
  1454. ParticleEmitter55.RotSpeed = NumberRange.new(-10, -10)
  1455. ParticleEmitter55.Speed = NumberRange.new(0, 0)
  1456. ParticleEmitter55.Color = ColorSequence.new(Color3.new(0.94902, 1, 0.458824),Color3.new(0.94902, 1, 0.458824))
  1457. ParticleEmitter56.Name = "Shrine"
  1458. ParticleEmitter56.Parent = Part41
  1459. ParticleEmitter56.Rotation = NumberRange.new(37, 999)
  1460. ParticleEmitter56.Size = NumberSequence.new(1,0)
  1461. ParticleEmitter56.Color = ColorSequence.new(Color3.new(1, 0.905882, 0.164706),Color3.new(1, 0.905882, 0.164706))
  1462. ParticleEmitter56.LightEmission = 1
  1463. ParticleEmitter56.Texture = "rbxassetid://270446290"
  1464. ParticleEmitter56.ZOffset = 1
  1465. ParticleEmitter56.Lifetime = NumberRange.new(1, 1)
  1466. ParticleEmitter56.Rate = 45
  1467. ParticleEmitter56.RotSpeed = NumberRange.new(-100, -100)
  1468. ParticleEmitter56.Speed = NumberRange.new(0, 0)
  1469. ParticleEmitter56.Color = ColorSequence.new(Color3.new(1, 0.905882, 0.164706),Color3.new(1, 0.905882, 0.164706))
  1470. ParticleEmitter57.Name = "Divine Pulse"
  1471. ParticleEmitter57.Parent = Part41
  1472. ParticleEmitter57.Transparency = NumberSequence.new(1,0,1)
  1473. ParticleEmitter57.Size = NumberSequence.new(0,1.4999997615814)
  1474. ParticleEmitter57.Color = ColorSequence.new(Color3.new(0.964706, 1, 0.262745),Color3.new(0.964706, 1, 0.262745))
  1475. ParticleEmitter57.LightEmission = 1
  1476. ParticleEmitter57.Texture = "rbxassetid://48315270"
  1477. ParticleEmitter57.Lifetime = NumberRange.new(1, 1)
  1478. ParticleEmitter57.Rate = 3
  1479. ParticleEmitter57.Speed = NumberRange.new(0, 0)
  1480. ParticleEmitter57.Color = ColorSequence.new(Color3.new(0.964706, 1, 0.262745),Color3.new(0.964706, 1, 0.262745))
  1481. ParticleEmitter58.Name = "Heaven's Rings"
  1482. ParticleEmitter58.Parent = Part41
  1483. ParticleEmitter58.Transparency = NumberSequence.new(1,0.49374997615814,1)
  1484. ParticleEmitter58.Rotation = NumberRange.new(9, 37)
  1485. ParticleEmitter58.Size = NumberSequence.new(2,2)
  1486. ParticleEmitter58.Color = ColorSequence.new(Color3.new(1, 0.905882, 0.164706),Color3.new(1, 0.905882, 0.164706))
  1487. ParticleEmitter58.LightEmission = 1
  1488. ParticleEmitter58.Texture = "rbxassetid://1084976679"
  1489. ParticleEmitter58.ZOffset = 1
  1490. ParticleEmitter58.Lifetime = NumberRange.new(1, 1)
  1491. ParticleEmitter58.Rate = 45
  1492. ParticleEmitter58.RotSpeed = NumberRange.new(8, 37)
  1493. ParticleEmitter58.Speed = NumberRange.new(0, 0)
  1494. ParticleEmitter58.Color = ColorSequence.new(Color3.new(1, 0.905882, 0.164706),Color3.new(1, 0.905882, 0.164706))
  1495. ParticleEmitter59.Name = "Holy Rays"
  1496. ParticleEmitter59.Parent = Part41
  1497. ParticleEmitter59.Transparency = NumberSequence.new(1,0.73749995231628,1)
  1498. ParticleEmitter59.Rotation = NumberRange.new(37, 999)
  1499. ParticleEmitter59.Size = NumberSequence.new(3,3)
  1500. ParticleEmitter59.Color = ColorSequence.new(Color3.new(0.94902, 1, 0.458824),Color3.new(0.94902, 1, 0.458824))
  1501. ParticleEmitter59.LightEmission = 1
  1502. ParticleEmitter59.Texture = "rbxassetid://1053548563"
  1503. ParticleEmitter59.Lifetime = NumberRange.new(1, 1)
  1504. ParticleEmitter59.Rate = 2
  1505. ParticleEmitter59.RotSpeed = NumberRange.new(-10, -10)
  1506. ParticleEmitter59.Speed = NumberRange.new(0, 0)
  1507. ParticleEmitter59.Color = ColorSequence.new(Color3.new(0.94902, 1, 0.458824),Color3.new(0.94902, 1, 0.458824))
  1508. ParticleEmitter60.Name = "Shrine"
  1509. ParticleEmitter60.Parent = Part41
  1510. ParticleEmitter60.Rotation = NumberRange.new(37, 999)
  1511. ParticleEmitter60.Size = NumberSequence.new(1,0)
  1512. ParticleEmitter60.Color = ColorSequence.new(Color3.new(1, 0.905882, 0.164706),Color3.new(1, 0.905882, 0.164706))
  1513. ParticleEmitter60.LightEmission = 1
  1514. ParticleEmitter60.Texture = "rbxassetid://270446290"
  1515. ParticleEmitter60.ZOffset = 1
  1516. ParticleEmitter60.Lifetime = NumberRange.new(1, 1)
  1517. ParticleEmitter60.Rate = 45
  1518. ParticleEmitter60.RotSpeed = NumberRange.new(-100, -100)
  1519. ParticleEmitter60.Speed = NumberRange.new(0, 0)
  1520. ParticleEmitter60.Color = ColorSequence.new(Color3.new(1, 0.905882, 0.164706),Color3.new(1, 0.905882, 0.164706))
  1521. Script61.Name = "Respawn"
  1522. Script61.Parent = Model0
  1523. table.insert(cors,sandbox(Script61,function()
  1524. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  1525. local PlayerSpawning=false; --[[ Change this to true if you want the NPC to spawn like a player, and change this to false if you want the NPC to spawn at it's current position. ]]--
  1526. local AdvancedRespawnScript=script;
  1527. repeat Wait(0)until script and script.Parent and script.Parent:IsA("Model");
  1528. local AlfredDrevis=AdvancedRespawnScript.Parent;
  1529. if AdvancedRespawnScript and AlfredDrevis and AlfredDrevis:FindFirstChild("Thumbnail")then
  1530. AlfredDrevis:FindFirstChild("Thumbnail"):Destroy();
  1531. end;
  1532. local GameDerbis=Game:GetService("Debris");
  1533. local AlfredDrevisHumanoid;
  1534. for _,Child in pairs(AlfredDrevis:GetChildren())do
  1535. if Child and Child:IsA("Humanoid")and Child.Health~=0 then
  1536. AlfredDrevisHumanoid=Child;
  1537. end;
  1538. end;
  1539. local Respawndant=AlfredDrevis:Clone();
  1540. if PlayerSpawning then --[[ LOOK AT LINE: 2. ]]--
  1541. Spawn(function()
  1542. if AlfredDrevis and AlfredDrevisHumanoid and AlfredDrevisHumanoid:FindFirstChild("Status")and not AlfredDrevisHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns")then
  1543. SpawnModel=Instance.new("Model");
  1544. SpawnModel.Parent=AlfredDrevisHumanoid.Status;
  1545. SpawnModel.Name="AvalibleSpawns";
  1546. else
  1547. SpawnModel=AlfredDrevisHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns");
  1548. end;
  1549. function FindSpawn(SearchValue)
  1550. local PartsArchivable=SearchValue:GetChildren();
  1551. for AreaSearch=1,#PartsArchivable do
  1552. if PartsArchivable[AreaSearch]:IsA("SpawnLocation")then
  1553. local PositionValue=Instance.new("Vector3Value",SpawnModel);
  1554. PositionValue.Value=PartsArchivable[AreaSearch].Position;
  1555. PositionValue.Name=PartsArchivable[AreaSearch].Duration;
  1556. end;
  1557. FindSpawn(PartsArchivable[AreaSearch]);
  1558. end;
  1559. end;
  1560. FindSpawn(Game:GetService("Workspace"));
  1561. local SpawnChilden=SpawnModel:GetChildren();
  1562. if#SpawnChilden>0 then
  1563. local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
  1564. local RespawningForceField=Instance.new("ForceField");
  1565. RespawningForceField.Parent=AlfredDrevis;
  1566. RespawningForceField.Name="SpawnForceField";
  1567. GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
  1568. AlfredDrevis:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
  1569. else
  1570. if AlfredDrevis:FindFirstChild("SpawnForceField")then
  1571. AlfredDrevis:FindFirstChild("SpawnForceField"):Destroy();
  1572. end;
  1573. AlfredDrevis:MoveTo(Vector3.new(0,115,0));
  1574. end;
  1575. end);
  1576. end;
  1577. function Respawn()
  1578. Wait(5);
  1579. Respawndant.Parent=AlfredDrevis.Parent;
  1580. Respawndant:makeJoints();
  1581. Respawndant:FindFirstChild("Head"):MakeJoints();
  1582. Respawndant:FindFirstChild("Torso"):MakeJoints();
  1583. AlfredDrevis:remove();
  1584. end;
  1585. if AdvancedRespawnScript and AlfredDrevis and AlfredDrevisHumanoid then
  1586. AlfredDrevisHumanoid.Died:connect(Respawn);
  1587. end;
  1588. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  1589. end))
  1590. Part62.Name = "Head"
  1591. Part62.Parent = Model0
  1592. Part62.Material = Enum.Material.SmoothPlastic
  1593. Part62.BrickColor = BrickColor.new("Cool yellow")
  1594. Part62.Rotation = Vector3.new(0, 39.1899986, 0)
  1595. Part62.RotVelocity = Vector3.new(0, -0.775562763, 0)
  1596. Part62.Velocity = Vector3.new(-6.8071084, 0, -9.88247204)
  1597. Part62.Locked = true
  1598. Part62.Elasticity = 0
  1599. Part62.FormFactor = Enum.FormFactor.Symmetric
  1600. Part62.Friction = 0
  1601. Part62.Size = Vector3.new(2, 1, 1)
  1602. Part62.CFrame = CFrame.new(-0.274677992, 6.50005007, 115.558083, 0.775071383, -3.86655374e-05, 0.631873488, -4.33894502e-06, 1, 6.65141488e-05, -0.631873488, -5.42948837e-05, 0.775071383)
  1603. Part62.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1604. Part62.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1605. Part62.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1606. Part62.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1607. Part62.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1608. Part62.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1609. Part62.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1610. Part62.Position = Vector3.new(-0.274677992, 6.50005007, 115.558083)
  1611. Part62.Orientation = Vector3.new(0, 39.1899986, 0)
  1612. Part62.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1613. Sound63.Name = "FatherStep"
  1614. Sound63.Parent = Part62
  1615. Sound63.SoundId = "rbxassetid://422964099"
  1616. Sound63.Volume = 1
  1617. Sound64.Name = "FatherLaugh1"
  1618. Sound64.Parent = Part62
  1619. Sound64.SoundId = "rbxassetid://189659553"
  1620. Sound64.Volume = 1
  1621. Sound65.Name = "WhereAreYou2"
  1622. Sound65.Parent = Part62
  1623. Sound65.Pitch = 0.5
  1624. Sound65.SoundId = "rbxassetid://1310854708"
  1625. Sound65.TimePosition = 286120731
  1626. Sound65.Volume = 1
  1627. Sound66.Name = "WhereAreYou1"
  1628. Sound66.Parent = Part62
  1629. Sound66.Pitch = 0.60000002384186
  1630. Sound66.SoundId = "rbxassetid://286120731"
  1631. Sound66.Volume = 1
  1632. Sound67.Name = "Aya2"
  1633. Sound67.Parent = Part62
  1634. Sound67.Pitch = 1.0333353281021
  1635. Sound67.SoundId = "rbxassetid://286120731"
  1636. Sound67.TimePosition = 11.059705997405
  1637. Sound67.Volume = 2
  1638. Sound68.Name = "Aya1"
  1639. Sound68.Parent = Part62
  1640. Sound68.SoundId = "rbxassetid://286120731"
  1641. Sound68.Volume = 1
  1642. Sound69.Name = "FatherLaugh3"
  1643. Sound69.Parent = Part62
  1644. Sound69.Pitch = 0.89999997615814
  1645. Sound69.SoundId = "rbxassetid://189659553"
  1646. Sound69.Volume = 2
  1647. Sound70.Name = "FatherLaugh2"
  1648. Sound70.Parent = Part62
  1649. Sound70.Pitch = 1.1000000238419
  1650. Sound70.SoundId = "rbxassetid://189659553"
  1651. Sound70.Volume = 1
  1652. Sound71.Name = "FatherNotice"
  1653. Sound71.Parent = Part62
  1654. Sound71.SoundId = "rbxassetid://357964425"
  1655. Sound71.Volume = 2
  1656. Decal72.Parent = Part62
  1657. Decal72.Texture = "rbxassetid://194209398"
  1658. SpecialMesh73.Parent = Part62
  1659. SpecialMesh73.Offset = Vector3.new(0, 0.5, 0)
  1660. SpecialMesh73.Scale = Vector3.new(2.5, 2.5, 2.5)
  1661. SpecialMesh73.Scale = Vector3.new(2.5, 2.5, 2.5)
  1662. for i,v in pairs(mas:GetChildren()) do
  1663. v.Parent = script
  1664. pcall(function() v:MakeJoints() end)
  1665. end
  1666. mas:Destroy()
  1667. for i,v in pairs(cors) do
  1668. spawn(function()
  1669. pcall(v)
  1670. end)
  1671. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement