Shocker130000

Anti Toad

May 28th, 2018
11,624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. --//================\\
  2. --||Made by Humanoid||
  3. --\\================//
  4.  
  5. local toadsound = {'rbxassetid://230287740','rbxassetid://271787597','rbxassetid://153752123','rbxassetid://271787503','rbxassetid://141509625','rbxassetid://141509625'}
  6. local Lighting = game:GetService("Lighting")
  7. local Workspace = game:GetService("Workspace")
  8.  
  9. function FindTable(Table, Name)
  10. for i,v in pairs(Table) do
  11. if v == Name then
  12. return true
  13. end end
  14. return false
  15. end
  16.  
  17. game:GetService('RunService').RenderStepped:connect(function()
  18. for i,v in pairs(Workspace:GetDescendants()) do
  19. if v:IsA("Part") and v.Name == "Toad" then
  20. v:Destroy()
  21. end
  22. end
  23.  
  24. for i,c in pairs(Workspace:GetDescendants()) do
  25. if c:IsA("Sound") then
  26. if FindTable(toadsound, c.SoundId) then
  27. c:Destroy()
  28. end
  29. end
  30. end
  31.  
  32. for i,v in pairs(Lighting:GetDescendants()) do
  33. if v:IsA("Sky") then
  34. v:Destroy()
  35. end
  36. end
  37. end)
Add Comment
Please, Sign In to add comment