Roblox_Xploits

Green m8

Aug 25th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. game.Lighting.TimeOfDay = 0
  2. colors = {"Really red"}
  3. tran = 0.5
  4. material = "Plastic"
  5.  
  6. function col(brick)
  7. brick.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
  8. brick.Transparency = tran
  9. if brick.Material ~= material then
  10. brick.Material = material
  11. end
  12. for _,v in pairs(brick:GetChildren()) do
  13. if v:IsA("SpecialMesh") or v:IsA("FileMesh") then
  14. if v.Parent.Name ~= "Head" then
  15. v.TextureId = "Clear"
  16. end
  17. end
  18. end
  19. brick.Changed:connect(function(prop)
  20. brick.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
  21. brick.Transparency = tran
  22. brick.Material = material
  23. wait(1)
  24. brick.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
  25. brick.Transparency = tran
  26. brick.Material = material
  27. wait(1)
  28. brick.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
  29. brick.Transparency = tran
  30. brick.Material = material
  31. end)
  32. end
  33.  
  34. function goin(where)
  35. if where:IsA("BasePart") then
  36. coroutine.resume(coroutine.create(function()
  37. col(where)
  38. end))
  39. end
  40. where.ChildAdded:connect(function(object)
  41. goin(object)
  42. end)
  43. for _,v in pairs(where:GetChildren()) do
  44. goin(v)
  45. v.ChildAdded:connect(function(object)
  46. goin(object)
  47. end)
  48. if v:IsA("BasePart") then
  49. coroutine.resume(coroutine.create(function()
  50. col(v)
  51. end))
  52. end
  53. end
  54. end
  55.  
  56. for _,v in pairs(workspace:GetChildren()) do
  57. goin(v)
  58. end
  59.  
  60. workspace.ChildAdded:connect(function(obj)
  61. goin(obj)
  62. end)
  63.  
  64. game.Lighting.Changed:connect(function(prop)
  65. if prop == "TimeOfDay" then
  66. game.Lighting.TimeOfDay = 0
  67. end
  68. end)
Add Comment
Please, Sign In to add comment