Limesy

My Favorite Script

Apr 4th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.20 KB | None | 0 0
  1.  
  2. -- made by 1ndrew XXDDXDDXDXXDXDXXDDXDX VERY FUNNI MLG SCRIPT!11!!!1!!!1
  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. Sound2 = Instance.new("Sound")
  22. Sound3 = Instance.new("Sound")
  23. SpecialMesh4 = Instance.new("SpecialMesh")
  24. Sound5 = Instance.new("Sound")
  25. Sound6 = Instance.new("Sound")
  26. SpecialMesh7 = Instance.new("SpecialMesh")
  27. SpecialMesh8 = Instance.new("SpecialMesh")
  28. LocalScript9 = Instance.new("LocalScript")
  29. ScreenGui10 = Instance.new("ScreenGui")
  30. TextLabel11 = Instance.new("TextLabel")
  31. ImageLabel12 = Instance.new("ImageLabel")
  32. TextLabel13 = Instance.new("TextLabel")
  33. Tool0.Name = "MountainDew"
  34. Tool0.Parent = mas
  35. Tool0.TextureId = "http://www.roblox.com/asset/?id=11631668"
  36. Tool0.CanBeDropped = false
  37. Part1.Name = "Handle"
  38. Part1.Parent = Tool0
  39. Part1.BrickColor = BrickColor.new("Mid gray")
  40. Part1.FormFactor = Enum.FormFactor.Plate
  41. Part1.Size = Vector3.new(1, 1.20000005, 1)
  42. Part1.CFrame = CFrame.new(-0.100000024, 2.40000367, 45.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  43. Part1.BottomSurface = Enum.SurfaceType.Smooth
  44. Part1.TopSurface = Enum.SurfaceType.Smooth
  45. Part1.Color = Color3.new(0.803922, 0.803922, 0.803922)
  46. Part1.Position = Vector3.new(-0.100000024, 2.40000367, 45.5)
  47. Part1.Color = Color3.new(0.803922, 0.803922, 0.803922)
  48. Sound2.Name = "DrinkSound"
  49. Sound2.Parent = Part1
  50. Sound2.SoundId = "http://www.roblox.com/asset/?id=10722059"
  51. Sound3.Name = "OpenSound"
  52. Sound3.Parent = Part1
  53. Sound3.SoundId = "http://www.roblox.com/asset/?id=10721950"
  54. SpecialMesh4.Parent = Part1
  55. SpecialMesh4.MeshId = "http://www.roblox.com/asset/?id=10470609"
  56. SpecialMesh4.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  57. SpecialMesh4.TextureId = "http://www.roblox.com/asset/?id=10550002"
  58. SpecialMesh4.MeshType = Enum.MeshType.FileMesh
  59. SpecialMesh4.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  60. Sound5.Name = "MLG"
  61. Sound5.Parent = Part1
  62. Sound5.SoundId = "rbxassetid://179497874"
  63. Sound6.Name = "HitMarker"
  64. Sound6.Parent = Part1
  65. Sound6.SoundId = "rbxassetid://160432334"
  66. SpecialMesh7.Name = "Shades"
  67. SpecialMesh7.Parent = Tool0
  68. SpecialMesh7.MeshId = "http://www.roblox.com/asset/?id=121910245 "
  69. SpecialMesh7.Scale = Vector3.new(0.699999988, 0.5, 0.699999988)
  70. SpecialMesh7.TextureId = "http://www.roblox.com/asset/?id=121947422 "
  71. SpecialMesh7.MeshType = Enum.MeshType.FileMesh
  72. SpecialMesh7.Scale = Vector3.new(0.699999988, 0.5, 0.699999988)
  73. SpecialMesh8.Name = "Hat"
  74. SpecialMesh8.Parent = Tool0
  75. SpecialMesh8.MeshId = "http://www.roblox.com/asset/?id=13030731"
  76. SpecialMesh8.Scale = Vector3.new(0.949999988, 0.949999988, 0.949999988)
  77. SpecialMesh8.TextureId = "http://www.roblox.com/asset/?id=70262300"
  78. SpecialMesh8.MeshType = Enum.MeshType.FileMesh
  79. SpecialMesh8.Scale = Vector3.new(0.949999988, 0.949999988, 0.949999988)
  80. LocalScript9.Name = "Drink"
  81. LocalScript9.Parent = Tool0
  82. table.insert(cors,sandbox(LocalScript9,function()
  83. local Tool = script.Parent;
  84. local plr = game.Players.LocalPlayer
  85. local cam = workspace.CurrentCamera
  86. local mlg = false
  87. local sp = script.Parent:WaitForChild("gui")
  88.  
  89. enabled = true
  90.  
  91. local txtz={"360 noscope","lenny","no","lens flare","DAYUMMM","Sample Text","shrekt","yolo","GET NOSCOPED","NOOOO","WOMBO COMBO","doritos","mountain dew","mlg","get rekt","420"}
  92. local imgz={"119713452","131395855","113671547","84334015","162381293","179012130","154169320","34395075","162595515", "30877733", "30877733", "30877733"}
  93.  
  94. for i=1,#imgz do game.ContentProvider:Preload("rbxassetid://"..imgz[i]) end
  95.  
  96. function random(table)
  97. return table[math.random(#table)]
  98. end
  99.  
  100. function rt(g)
  101. local cl=sp.txt:clone()
  102. cl.Parent=g
  103. cl.Text=random(txtz)
  104. cl.TextColor3=Color3.new(math.random(),math.random(),math.random())
  105. cl.TextStrokeColor3=Color3.new(math.random(),math.random(),math.random())
  106. cl.TextTransparency=math.random()
  107. cl.TextStrokeTransparency=math.random()
  108. if math.random() > 0.5 then cl.Rotation=math.cos(tick()*2.094)*9+math.random(1,9) else cl.Rotation=math.cos(tick()*2.094)*9-math.random(1,9) end
  109. cl.Position=UDim2.new(math.random(),0,math.random(),0)
  110. cl.Visible=true
  111. game.Debris:AddItem(cl,math.random()+0.2)
  112. end
  113.  
  114. function ri(g, s)
  115. local cl=sp.img:clone()
  116. cl.Parent=g
  117. local img = random(imgz)
  118. cl.Image="rbxassetid://"..img
  119. if img == "30877733" then
  120. s:Play()
  121. end
  122. if math.random() > 0.5 then cl.Rotation=math.cos(tick()*2.094)*9+math.random(1,9) else cl.Rotation=math.cos(tick()*2.094)*9-math.random(1,9) end
  123. cl.Position=UDim2.new(math.random(),0,math.random(),0)
  124. cl.Visible=true
  125. game.Debris:AddItem(cl,math.random()+0.2)
  126. end
  127.  
  128. function mlgMode(g)
  129. g.back.BackgroundTransparency = 0.5
  130. local sound2 = script.Parent.Handle.HitMarker:clone()
  131. sound2.Parent = plr.Character.Torso
  132. for i = 1, 520 do
  133. if mlg then
  134. cam.FieldOfView = math.abs(70+(math.cos(tick()*2))*50)
  135. game:GetService("RunService").RenderStepped:wait()
  136. ri(g, sound2)
  137. rt(g)
  138. g.back.BackgroundColor3 = Color3.new(math.random(),math.random(),math.random())
  139. end
  140. end
  141. sound2.Parent = nil
  142. g.back.BackgroundTransparency = 1
  143. cam.FieldOfView = 70
  144. end
  145.  
  146. function onActivated()
  147. if not enabled then
  148. return
  149. end
  150.  
  151. local char = script.Parent.Parent
  152. local hum = char:WaitForChild("Humanoid")
  153.  
  154. enabled = false
  155. Tool.GripForward = Vector3.new(0,-.759,-.651)
  156. Tool.GripPos = Vector3.new(1.5,-.5,.3)
  157. Tool.GripRight = Vector3.new(1,0,0)
  158. Tool.GripUp = Vector3.new(0,.651,-.759)
  159.  
  160. --game.StarterGui:SetCoreGuiEnabled("All",false)
  161. local cl=sp:clone()
  162. cl.Parent=plr.PlayerGui
  163.  
  164. Tool.Handle.DrinkSound:Play()
  165.  
  166. wait(3)
  167.  
  168. Tool.GripForward = Vector3.new(-.976,0,-0.217)
  169. Tool.GripPos = Vector3.new(0.03,0,0)
  170. Tool.GripRight = Vector3.new(.217,0,-.976)
  171. Tool.GripUp = Vector3.new(0,1,0)
  172.  
  173. local p = char:GetChildren()
  174. for i = 1, #p do
  175. if p[i].className == "Hat" then
  176. p[i].Parent = nil
  177. end
  178. end
  179.  
  180. local h = Instance.new("Hat")
  181. local p = Instance.new("Part")
  182. h.Name = "Obey"
  183. p.Parent = h
  184. p.Position = char:findFirstChild("Head").Position
  185. p.Name = "Handle"
  186. p.formFactor = 0
  187. p.Size = Vector3.new(1, 0.4, 1)
  188. p.BottomSurface = 0
  189. p.TopSurface = 0
  190. p.CanCollide = false
  191. script.Parent.Hat:clone().Parent = p
  192. h.Parent = char
  193. --h.AttachmentForward = Vector3.new (0.148, -0.195, 0.97)
  194. h.AttachmentPos = Vector3.new(0, -0.15, 0)
  195. --h.AttachmentRight = Vector3.new (-0.989, -0.0292, 0.145)
  196. --h.AttachmentUp = Vector3.new (-7.2e-007, 0.98, 0.197)
  197.  
  198. local h2 = Instance.new("Hat")
  199. local p2 = Instance.new("Part")
  200. h2.Name = "Shades"
  201. p2.Parent = h2
  202. p2.Position = char:findFirstChild("Head").Position
  203. p2.Name = "Handle"
  204. p2.formFactor = 0
  205. p2.Size = Vector3.new(1, 0.4, 1)
  206. p2.BottomSurface = 0
  207. p2.TopSurface = 0
  208. p2.CanCollide = false
  209. script.Parent.Shades:clone().Parent = p2
  210. h2.Parent = char
  211. --h2.AttachmentForward = Vector3.new (0, 0, -1)
  212. h2.AttachmentPos = Vector3.new(0, -1, 0.1)
  213. --h2.AttachmentRight = Vector3.new (1, 0, 0)
  214. --h2.AttachmentUp = Vector3.new (0, 1, 0)
  215. for i = 1, 30 do
  216. wait()
  217. h2.AttachmentPos = h2.AttachmentPos + Vector3.new(0, 0.046, 0)
  218. end
  219. local sound = script.Parent.Handle.MLG:clone()
  220. sound.Parent = char.Torso
  221. sound:Play()
  222.  
  223. hum.Died:connect(function()
  224. mlg = false
  225. cam.FieldOfView = 70
  226. --game.StarterGui:SetCoreGuiEnabled("All",true)
  227. sound:Stop()
  228. sound.Parent = nil
  229. end)
  230.  
  231. mlg = true
  232. mlgMode(cl)
  233. sound.Parent = nil
  234. mlg = false
  235. --game.StarterGui:SetCoreGuiEnabled("All",true)
  236. cl.Parent = nil
  237. enabled = true
  238. end
  239.  
  240. function onEquipped()
  241. Tool.Handle.OpenSound:play()
  242. end
  243.  
  244. script.Parent.Activated:connect(onActivated)
  245. script.Parent.Equipped:connect(onEquipped)
  246. end))
  247. ScreenGui10.Name = "gui"
  248. ScreenGui10.Parent = Tool0
  249. TextLabel11.Name = "back"
  250. TextLabel11.Parent = ScreenGui10
  251. TextLabel11.Transparency = 1
  252. TextLabel11.Size = UDim2.new(1, 0, 1, 0)
  253. TextLabel11.Text = ""
  254. TextLabel11.BackgroundColor3 = Color3.new(1, 1, 1)
  255. TextLabel11.BackgroundTransparency = 1
  256. TextLabel11.Font = Enum.Font.SourceSans
  257. TextLabel11.FontSize = Enum.FontSize.Size14
  258. ImageLabel12.Name = "img"
  259. ImageLabel12.Parent = ScreenGui10
  260. ImageLabel12.Transparency = 1
  261. ImageLabel12.Size = UDim2.new(0, 150, 0, 150)
  262. ImageLabel12.Visible = false
  263. ImageLabel12.BackgroundColor3 = Color3.new(1, 1, 1)
  264. ImageLabel12.BackgroundTransparency = 1
  265. ImageLabel12.ZIndex = 2
  266. TextLabel13.Name = "txt"
  267. TextLabel13.Parent = ScreenGui10
  268. TextLabel13.Transparency = 1
  269. TextLabel13.Size = UDim2.new(0, 200, 0, 100)
  270. TextLabel13.Visible = false
  271. TextLabel13.BackgroundColor3 = Color3.new(1, 1, 1)
  272. TextLabel13.BackgroundTransparency = 1
  273. TextLabel13.ZIndex = 2
  274. TextLabel13.Font = Enum.Font.SourceSansBold
  275. TextLabel13.FontSize = Enum.FontSize.Size14
  276. TextLabel13.TextColor3 = Color3.new(1, 1, 0)
  277. TextLabel13.TextScaled = true
  278. TextLabel13.TextStrokeTransparency = 0
  279. TextLabel13.TextWrapped = true
  280. for i,v in pairs(mas:GetChildren()) do
  281. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  282. pcall(function() v:MakeJoints() end)
  283. end
  284. mas:Destroy()
  285. for i,v in pairs(cors) do
  286. spawn(function()
  287. pcall(v)
  288. end)
  289. end
Add Comment
Please, Sign In to add comment