princeofheaven

Despairus

Jun 3rd, 2015
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. --[[ UNREMOVABLE COLORS SCRIPT ]]
  2. --[[ Inserts a ROBLOX-made/ROBLOX-approved model of a television set
  3. with a fresh, clean, unsandboxed color-changing script in it. It then clones it
  4. to all parts for unremovable rainbow everywhere! :) ]]
  5. ws = game:GetService("Workspace")
  6. x=game:GetService("InsertService"):LoadAsset(28471)
  7. local scr = nil
  8.  
  9. function scan(location)
  10. for _,v in pairs(location:GetChildren()) do
  11. if (v:IsA("BasePart")) then
  12. --[[ uncomment if u want to make everything grey and laggy /and/ unremovable ;-) ]]
  13. --for i = 1,40 do
  14. --delay(i*.04, function()
  15. scr:Clone().Parent = v
  16. --end)
  17. --end
  18. elseif (v.ClassName == "Model") then
  19. scan(v)
  20. end
  21. end
  22. end
  23.  
  24. for _,v in pairs(x["Entertainment Cabnet"]:GetChildren()) do
  25. local _s = v:FindFirstChild("Script")
  26. if _s ~= nil then
  27. scr = _s
  28. end
  29. end
  30.  
  31. if scr == nil then
  32. error("script not found");
  33. else
  34. scan(ws)
  35. end
  36.  
  37. x:Destroy() --[[ clean up our remains ]]
Advertisement
Add Comment
Please, Sign In to add comment