Advertisement
antgame11

Untitled

Mar 26th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. local Player = game:GetService("Players").Aslanking2
  2. local Mouse,mouse,UserInputService,ContextActionService
  3. do
  4. script.Parent = Player.Character
  5. local CAS = {Actions={}}
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput_Event"
  8. Event.Parent = Player.Character
  9. local fakeEvent = function()
  10. local t = {_fakeEvent=true}
  11. t.Connect = function(self,f)self.Function=f end
  12. t.connect = t.Connect
  13. return t
  14. end
  15. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  16. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  17. function CAS:BindAction(name,fun,touch,...)
  18. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  19. end
  20. function CAS:UnbindAction(name)
  21. CAS.Actions[name] = nil
  22. end
  23. local function te(self,ev,...)
  24. local t = m[ev]
  25. if t and t._fakeEvent and t.Function then
  26. t.Function(...)
  27. end
  28. end
  29. m.TrigEvent = te
  30. UIS.TrigEvent = te
  31. Event.OnServerEvent:Connect(function(plr,io)
  32. if plr~=Player then return end
  33. if io.isMouse then
  34. m.Target = io.Target
  35. m.Hit = io.Hit
  36. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  37. if io.UserInputState == Enum.UserInputState.Begin then
  38. m:TrigEvent("Button1Down")
  39. else
  40. m:TrigEvent("Button1Up")
  41. end
  42. else
  43. for n,t in pairs(CAS.Actions) do
  44. for _,k in pairs(t.Keys) do
  45. if k==io.KeyCode then
  46. t.Function(t.Name,io.UserInputState,io)
  47. end
  48. end
  49. end
  50. if io.UserInputState == Enum.UserInputState.Begin then
  51. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  52. UIS:TrigEvent("InputBegan",io,false)
  53. else
  54. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent("InputEnded",io,false)
  56. end
  57. end
  58. end)
  59. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  60. end
  61.  
  62. wait(1)
  63. math.randomseed(tick() % 1 * 1e6)
  64. sky = coroutine.create(function()
  65. while wait(0.3) do
  66. s = Instance.new("Sky",game.Lighting)
  67. s.SkyboxBk,s.SkyboxDn,s.SkyboxFt,s.SkyboxLf,s.SkyboxRt,s.SkyboxUp = "rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408"
  68. s.CelestialBodiesShown = false
  69. end
  70. end)
  71.  
  72.  
  73. del = coroutine.create(function()
  74. while wait(0.3) do
  75. for i,v in pairs(workspace:GetChildren()) do
  76. if v:IsA("Model") then
  77. v:Destroy()
  78. end
  79. end
  80. end
  81. end)
  82.  
  83.  
  84.  
  85. for i,v in pairs(game.Players:GetChildren()) do
  86. end
  87.  
  88. noises = {'rbxassetid://230287740','rbxassetid://271787597','rbxassetid://153752123','rbxassetid://271787503'}
  89.  
  90. sound = coroutine.create(function()
  91. a = Instance.new("Sound",workspace)
  92. a.SoundId = "rbxassetid://141509625"
  93. a.Name = "RAINING MEN"
  94. a.Volume = 58359
  95. a.Looped = true
  96. a:Play()
  97. while wait(0.2) do
  98. rainin = workspace:FindFirstChild("RAINING MEN")
  99. if not rainin then
  100. a = Instance.new("Sound",workspace)
  101. a.SoundId = "rbxassetid://141509625"
  102. a.Name = "RAINING MEN"
  103. a.Volume = 58359
  104. a.Looped = true
  105. a:Play()
  106. end
  107. end
  108. end)
  109.  
  110. msg = coroutine.create(function()
  111. while wait(0.4) do
  112. msg = Instance.new("Message",workspace)
  113. msg.Text = "Get toadroasted you bacon-haired bozos. (GO QUIT FUCKED SHIT NIGGER XD FELIXMAYERKIDS IS A HACKER)"
  114. wait(0.4)
  115. msg:Destroy()
  116. end
  117. end)
  118.  
  119.  
  120. rain = coroutine.create(function()
  121. while wait(10 % 1 * 1e2) do
  122. part = Instance.new("Part",workspace)
  123. part.Name = "Toad"
  124.  
  125. mesh = Instance.new("SpecialMesh",part)
  126.  
  127. sound = Instance.new("Sound",workspace)
  128.  
  129. part.CanCollide = false
  130. part.Size = Vector3.new(440,530,380)
  131. part.Position = Vector3.new(math.random(-3000,1000),math.random(1,3000),math.random(-3000,3000))
  132.  
  133. sound.SoundId = noises[math.random(1,#noises)]
  134. sound:Play()
  135. sound.Ended:connect(function()
  136. sound:Destroy()
  137. end)
  138.  
  139.  
  140. mesh.MeshType = "FileMesh"
  141. mesh.MeshId = "rbxassetid://430210147"
  142. mesh.TextureId = "rbxassetid://430210159"
  143. end
  144. end)
  145. coroutine.resume(sky)
  146. coroutine.resume(del)
  147. coroutine.resume(sound)
  148. coroutine.resume(msg)
  149. coroutine.resume(rain)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement