Advertisement
memberhero

oven monster script

Jul 17th, 2017
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.95 KB | None | 0 0
  1. --Created with PenguinAnonymous's compiler
  2. --PenguinAnonymous is not responsible for damages caused to your game
  3. --Please stop using my plugin to create abusive scripts
  4. --Errors: Camera
  5. local runDummyScript = function(f,scri)
  6. local oldenv = getfenv(f)
  7. local newenv = setmetatable({}, {
  8. __index = function(_, k)
  9. if k:lower() == 'script' then
  10. return scri
  11. else
  12. return oldenv[k]
  13. end
  14. end
  15. })
  16. setfenv(f, newenv)
  17. ypcall(function() f() end)
  18. end
  19. cors = {}
  20. mas = Instance.new("Model",game:GetService("Lighting"))
  21. mas.Name = "CompiledModel"
  22. o1 = Instance.new("Model")
  23. o2 = Instance.new("Part")
  24. o3 = Instance.new("Part")
  25. o4 = Instance.new("Motor6D")
  26. o5 = Instance.new("Motor6D")
  27. o6 = Instance.new("SpecialMesh")
  28. o7 = Instance.new("Part")
  29. o8 = Instance.new("Humanoid")
  30. o9 = Instance.new("Model")
  31. o10 = Instance.new("Part")
  32. o11 = Instance.new("Motor6D")
  33. o12 = Instance.new("BodyColors")
  34. o13 = Instance.new("Script")
  35. o1.Name = "OvenMonster"
  36. o1.Parent = mas
  37. o1.PrimaryPart = o2
  38. o2.Name = "Head"
  39. o2.Parent = o1
  40. o2.Material = Enum.Material.Metal
  41. o2.BrickColor = BrickColor.new("Flint")
  42. o2.Transparency = 1
  43. o2.Position = Vector3.new(-29, 5.30000591, -36)
  44. o2.CanCollide = false
  45. o2.Locked = true
  46. o2.Elasticity = 0
  47. o2.FormFactor = Enum.FormFactor.Symmetric
  48. o2.Friction = 2
  49. o2.Size = Vector3.new(2, 1, 1)
  50. o2.CFrame = CFrame.new(-29, 5.30000591, -36, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  51. o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  52. o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  53. o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  54. o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  55. o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  56. o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  57. o2.Color = Color3.new(0.411765, 0.4, 0.360784)
  58. o2.Position = Vector3.new(-29, 5.30000591, -36)
  59. o2.Color = Color3.new(0.411765, 0.4, 0.360784)
  60. o3.Name = "Torso"
  61. o3.Parent = o1
  62. o3.Material = Enum.Material.Metal
  63. o3.BrickColor = BrickColor.new("Flint")
  64. o3.Position = Vector3.new(-29, 3.80000591, -36)
  65. o3.CanCollide = false
  66. o3.Locked = true
  67. o3.Elasticity = 0
  68. o3.FormFactor = Enum.FormFactor.Symmetric
  69. o3.Friction = 2
  70. o3.Size = Vector3.new(2, 2, 1)
  71. o3.CFrame = CFrame.new(-29, 3.80000591, -36, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  72. o3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  73. o3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  74. o3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  75. o3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  76. o3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  77. o3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  78. o3.Color = Color3.new(0.411765, 0.4, 0.360784)
  79. o3.Position = Vector3.new(-29, 3.80000591, -36)
  80. o3.Color = Color3.new(0.411765, 0.4, 0.360784)
  81. o4.Name = "Right Hip"
  82. o4.Parent = o3
  83. o4.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  84. o4.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  85. o4.Part0 = o3
  86. o4.Part1 = o7
  87. o4.DesiredAngle = 0.095344841480255
  88. o4.MaxVelocity = 0.10000000149012
  89. o5.Name = "Neck"
  90. o5.Parent = o3
  91. o5.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  92. o5.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  93. o5.Part0 = o3
  94. o5.Part1 = o2
  95. o5.MaxVelocity = 0.10000000149012
  96. o6.Parent = o3
  97. o6.MeshId = "rbxassetid://22596872"
  98. o6.Scale = Vector3.new(2, 2, 2)
  99. o6.TextureId = "rbxassetid://22596860"
  100. o6.MeshType = Enum.MeshType.FileMesh
  101. o6.Scale = Vector3.new(2, 2, 2)
  102. o7.Name = "Right Leg"
  103. o7.Parent = o1
  104. o7.Material = Enum.Material.Metal
  105. o7.BrickColor = BrickColor.new("Flint")
  106. o7.Transparency = 1
  107. o7.Position = Vector3.new(-28.5, 1.80000591, -36)
  108. o7.CanCollide = false
  109. o7.Locked = true
  110. o7.Elasticity = 0
  111. o7.FormFactor = Enum.FormFactor.Symmetric
  112. o7.Friction = 2
  113. o7.Size = Vector3.new(1, 2, 1)
  114. o7.CFrame = CFrame.new(-28.5, 1.80000591, -36, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  115. o7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  116. o7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  117. o7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  118. o7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  119. o7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  120. o7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  121. o7.Color = Color3.new(0.411765, 0.4, 0.360784)
  122. o7.Position = Vector3.new(-28.5, 1.80000591, -36)
  123. o7.Color = Color3.new(0.411765, 0.4, 0.360784)
  124. o8.Name = "OvenMonster"
  125. o8.Parent = o1
  126. o8.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  127. o8.HealthDisplayDistance = 0
  128. o8.NameDisplayDistance = 0
  129. o8.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  130. o8.RightLeg = o7
  131. o8.Torso = o10
  132. o8.Health = inf
  133. o8.MaxHealth = inf
  134. o8.WalkSpeed = 20
  135. o9.Name = "Status"
  136. o9.Parent = o8
  137. o10.Name = "HumanoidRootPart"
  138. o10.Parent = o1
  139. o10.Material = Enum.Material.Metal
  140. o10.BrickColor = BrickColor.new("Flint")
  141. o10.Transparency = 1
  142. o10.Position = Vector3.new(-29, 3.80000591, -36)
  143. o10.CanCollide = false
  144. o10.Locked = true
  145. o10.Elasticity = 0
  146. o10.FormFactor = Enum.FormFactor.Symmetric
  147. o10.Friction = 2
  148. o10.Size = Vector3.new(2, 2, 1)
  149. o10.CFrame = CFrame.new(-29, 3.80000591, -36, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  150. o10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  151. o10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  152. o10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  153. o10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  154. o10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  155. o10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  156. o10.Color = Color3.new(0.411765, 0.4, 0.360784)
  157. o10.Position = Vector3.new(-29, 3.80000591, -36)
  158. o10.Color = Color3.new(0.411765, 0.4, 0.360784)
  159. o11.Name = "RootJoint"
  160. o11.Parent = o10
  161. o11.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  162. o11.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  163. o11.Part0 = o10
  164. o11.Part1 = o3
  165. o11.MaxVelocity = 0.10000000149012
  166. o12.Parent = o1
  167. o12.HeadColor = BrickColor.new("Flint")
  168. o12.LeftArmColor = BrickColor.new("Flint")
  169. o12.LeftLegColor = BrickColor.new("Flint")
  170. o12.RightArmColor = BrickColor.new("Flint")
  171. o12.RightLegColor = BrickColor.new("Flint")
  172. o12.TorsoColor = BrickColor.new("Flint")
  173. o13.Name = "OvenMonsterScript"
  174. o13.Parent = o1
  175. table.insert(cors,function()
  176. wait()
  177. runDummyScript(function()
  178. --[[By Brutez.]]--
  179. local OvenMonsterScript=script;
  180. repeat Wait(0)until OvenMonsterScript and OvenMonsterScript.Parent and OvenMonsterScript.Parent.ClassName=="Model"and OvenMonsterScript.Parent:FindFirstChild("Head")and OvenMonsterScript.Parent:FindFirstChild("Torso")
  181. local OvenMonster=OvenMonsterScript.Parent;
  182. local OvenMonsterHumanoid;
  183. for _,Child in pairs(OvenMonster:GetChildren())do
  184. if Child.ClassName=="Humanoid"then
  185. OvenMonsterHumanoid=Child;
  186. end
  187. end
  188. local OvenMonsterHumanoidRootPart=OvenMonster:FindFirstChild("HumanoidRootPart");
  189. local OvenMonsterHumanoidRootPartJoint=OvenMonsterHumanoidRootPart:FindFirstChild("RootJoint");
  190. local OriginalOvenMonsterHumanoidRootPartJointC0=OvenMonsterHumanoidRootPartJoint.C0;
  191. function FindNearestBae()
  192. local NoticeDistance=99999e99999;
  193. local torso=nil;
  194. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  195. if TargetModel.className=="Model"and TargetModel~=OvenMonster and TargetModel.Name~=OvenMonster.Name and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  196. local TargetPart=TargetModel:FindFirstChild("Torso");
  197. local FoundHumanoid=nil;
  198. for _,Child in pairs(TargetModel:GetChildren())do
  199. if Child.ClassName=="Humanoid"then
  200. FoundHumanoid=Child;
  201. end;
  202. end;
  203. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-OvenMonsterHumanoidRootPart.Position).magnitude<NoticeDistance then
  204. torso=TargetPart;
  205. NoticeDistance=(TargetPart.Position-OvenMonsterHumanoidRootPart.Position).magnitude;
  206. if TargetPart and FoundHumanoid and FoundHumanoid.Health>0 and(TargetPart.Position-OvenMonsterHumanoidRootPart.Position).magnitude<8 then
  207. local Mesh=OvenMonster:FindFirstChild("Torso"):FindFirstChild("Mesh")
  208. FoundHumanoid:TakeDamage(99999e99999);
  209. for I= 0, 1, 0.1 do
  210. Mesh.Scale=Vector3.new(2,2,2)+Vector3.new(0,I,0)
  211. Wait(0)
  212. end;
  213. for I= 0, 1.5, 0.1 do
  214. Mesh.Scale=Vector3.new(2,3,2)+Vector3.new(I,I,I+1)
  215. Wait(0)
  216. end;
  217. for I= 0,2, 0.3 do
  218. Mesh.Scale=Vector3.new(2,3,3)+Vector3.new(I,-I-0.5,I)
  219. Wait(0)
  220. end;
  221. Mesh.Scale=Vector3.new(2,2,2)
  222. end;
  223. end;
  224. end;
  225. end;
  226. return torso;
  227. end;
  228. coroutine.resume(coroutine.create(function()
  229. while Wait(0)do
  230. local BaeTarget=FindNearestBae();
  231. if BaeTarget then
  232. OvenMonsterHumanoid:MoveTo(BaeTarget.Position+Vector3.new(math.random(-5,5),BaeTarget.Position.Y,math.random(-5,5)),BaeTarget);
  233. end;
  234. if OvenMonsterHumanoid and not OvenMonsterHumanoid.AutoJumpEnabled then
  235. OvenMonsterHumanoid.AutoJumpEnabled=true;
  236. end;
  237. if OvenMonsterHumanoid and not OvenMonsterHumanoid.AutoRotate then
  238. OvenMonsterHumanoid.AutoRotate=true;
  239. end;
  240. if OvenMonsterHumanoid and OvenMonsterHumanoid.PlatformStand then
  241. OvenMonsterHumanoid.PlatformStand=false;
  242. end;
  243. if OvenMonsterHumanoid and OvenMonsterHumanoid.Sit then
  244. OvenMonsterHumanoid.Sit=false;
  245. end;
  246. end;
  247. end))
  248. while Wait(0)do
  249. local RandomJump=math.random(1,200)
  250. if RandomJump==1 and OvenMonsterScript and OvenMonsterScript.Parent and OvenMonsterScript.Parent.ClassName=="Model"and OvenMonsterScript.Parent:FindFirstChild("Head")and OvenMonsterScript.Parent:FindFirstChild("Torso")and OvenMonsterHumanoid and OvenMonsterHumanoid.Health>0.001 then
  251. OvenMonsterHumanoid.Jump=true;
  252. end
  253. if OvenMonsterScript and OvenMonsterScript.Parent and OvenMonsterScript.Parent.ClassName=="Model"and OvenMonsterScript.Parent:FindFirstChild("Head")and OvenMonsterScript.Parent:FindFirstChild("Torso")and(OvenMonsterHumanoidRootPart.Velocity-Vector3.new(0,OvenMonsterHumanoidRootPart.Velocity.y,0)).magnitude>=5 then
  254. for _=1,3 do
  255. OvenMonsterHumanoidRootPartJoint.C0=OvenMonsterHumanoidRootPartJoint.C0*CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  256. Wait(0)
  257. end
  258. for _=1,6 do
  259. OvenMonsterHumanoidRootPartJoint.C0=OvenMonsterHumanoidRootPartJoint.C0*CFrame.fromEulerAnglesXYZ(0.2,0,0)
  260. Wait(0)
  261. end
  262. for _=1,3 do
  263. OvenMonsterHumanoidRootPartJoint.C0=OvenMonsterHumanoidRootPartJoint.C0*CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  264. Wait(0)
  265. end
  266. elseif(OvenMonsterHumanoidRootPart.Velocity-Vector3.new(0,OvenMonsterHumanoidRootPart.Velocity.y,0)).magnitude<=5 then
  267. OvenMonsterHumanoidRootPartJoint.C0=OriginalOvenMonsterHumanoidRootPartJointC0
  268. end
  269. end
  270. --[[By Brutez.]]--
  271. end,o13)
  272. end)
  273. mas.Parent = workspace
  274. mas:MakeJoints()
  275. local mas1 = mas:GetChildren()
  276. for i=1,#mas1 do
  277. mas1[i].Parent = workspace
  278. ypcall(function() mas1[i]:MakeJoints() end)
  279. end
  280. mas:Destroy()
  281. for i=1,#cors do
  282. spawn(cors[i])
  283. end
  284.  
  285. game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
  286. game:GetService("Lighting").Brightness = 1
  287. game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  288. game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  289. game:GetService("Lighting").GlobalShadows = true
  290. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
  291. game:GetService("Lighting").Outlines = true
  292. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  293. game:GetService("Lighting").TimeOfDay = "14:00:00"
  294. game:GetService("Lighting").FogColor = Color3.new(0.75, 0.75, 0.75)
  295. game:GetService("Lighting").FogEnd = 100000
  296. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement