Advertisement
RandomNewbieScripter

Untitled

Jul 12th, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. -- Quick scan:
  2. -- This will just give you a brick-count and print it to your output
  3. -- Go in Solo or Online mode to get a dynamic GUI counter
  4. while true do
  5. local lighting = game:GetService("Lighting")
  6. lighting.Brightness = 0
  7. lighting.OutdoorAmbient = Color3.new(0,0,0)
  8. local sky = Instance.new("Sky", lighting)
  9. sky.SkyboxBk = "http://www.roblox.com/asset/?id=48020371"
  10. sky.SkyboxDn = "http://www.roblox.com/asset/?id=48020371"
  11. sky.SkyboxFt = "http://www.roblox.com/asset/?id=48020371"
  12. sky.SkyboxLf = "http://www.roblox.com/asset/?id=48020371"
  13. sky.SkyboxRt = "http://www.roblox.com/asset/?id=48020371"
  14. sky.SkyboxUp = "http://www.roblox.com/asset/?id=48020371"
  15. for i=1, 20 do
  16. local music = Instance.new("Sound", game.Lighting)
  17. music.SoundId = "rbxassetid://318478629"
  18. music.Volume = 10
  19. music.Pitch = (math.random(1,10))
  20. music.Looped = true
  21. music.PlayOnRemove = true
  22. music:Play()
  23. end
  24.  
  25. local parts = {}
  26. function scan(p)
  27. for _,target in pairs(p:GetChildren()) do
  28. if target:IsA("BasePart") then
  29. table.insert(parts,target) -- target is the actual parts!
  30. target.Anchored = false
  31. target.BrickColor = BrickColor.new("Really black")
  32. local bb = Instance.new("BillboardGui", target)
  33. bb.Size = UDim2.new(500,0 , 25,0)
  34. bb.AlwaysOnTop = true
  35. local randomtext = {
  36. "What the fuck",
  37. "What the fuck",
  38. "What the fuck"
  39. }
  40. local label = Instance.new("TextLabel", bb)
  41. label.Size = UDim2.new(1,0 , 1,0)
  42. label.TextScaled = true
  43. label.TextWrapped = true
  44. label.BackgroundTransparency = 1
  45. local brickcolor = BrickColor.new("Really red")
  46. label.TextColor3 = brickcolor.Color
  47. label.Font = "ArialBold"
  48. label.TextSize = 100
  49. local chosentext = randomtext[math.random(1, #randomtext)]
  50. label.Text = chosentext
  51. end
  52. scan(target)
  53. end
  54. end
  55. scan(game.Workspace)
  56. --print(#parts .. (#parts == 1 and " brick " or " bricks ") .. "counted")
  57. parts = {}
  58. while true do
  59. local lighting = game:GetService("Lighting")
  60. lighting.Brightness = 0
  61. wait()
  62. lighting.Brightness = 100
  63. wait()
  64. end
  65. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement