Advertisement
Alakazard12

Rando

Feb 15th, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.81 KB | None | 0 0
  1. char = [[qwertyuiop\\asdfghjkl;'zxcvbnm,./QWERTYUIOOP{}|ASDFGHJKL:"ZXCVBNM<>?!@#$%^&*()_+1234567890-=]]
  2.  
  3. function findobj(o)
  4.     pcall(function()
  5.         --if game:service("Players"):GetPlayerFromCharacter(o) == nil then
  6.             local txt = ""
  7.             for i = 1, math.random(1, 40) do
  8.                 local numb = math.random(1, #char)
  9.                 txt = txt..string.sub(char, numb, numb)
  10.             end
  11.             pcall(function()
  12.                 o.Name = txt
  13.                 if o.className == "StringValue" then
  14.                     o.Value = txt
  15.                 end
  16.             end)
  17.             if o:IsA("GuiObject") then
  18.                 o.BackgroundTransparency = (math.random(1, 10))/10
  19.                 o.BackgroundColor3 = Color3.new(math.random(1, 255), math.random(1, 255), math.random(1, 255))
  20.                 o.Size = UDim2.new(0, math.random(1, 400), 0, math.random(1, 400))
  21.                 if o.className == "TextLabel" or o.className == "TextButton" or o.className == "TextBox" then
  22.                     o.TextColor3 = Color3.new(math.random(1, 255), math.random(1, 255), math.random(1, 255))
  23.                     o.Text = "You win!"
  24.                 end
  25.             end
  26.  
  27.             if o:IsA("BasePart") then
  28.                 o.BrickColor = BrickColor.random()
  29.                 pcall(function()
  30.                     o.Size = Vector3.new(math.random(1, 100), math.random(1, 2), math.random(1, 100))
  31.                 end)
  32.  
  33.                 -- o.CFrame = CFrame.new(math.random(1, 100), math.random(1, 100), math.random(1, 100)) * CFrame.Angles(math.random(0, 90), math.random(0, 90), math.random(0, 0))
  34.             end
  35.  
  36.             if o.className == "ImageLabel" or o.className == "ImageButton" then
  37.                 o.Image = "http://www.roblox.com/asset/?id=45120560"
  38.             end
  39.             if o.className == "Team" then
  40.                 o.TeamColor = BrickColor.random()
  41.             end
  42.  
  43.             for i,v in pairs(o:GetChildren()) do
  44.                 findobj(v)
  45.             end
  46.         --end
  47.     end)
  48. end
  49. while true do
  50.     pcall(function()
  51.         wait()
  52.  
  53.         findobj(game:service("Players"))
  54.         findobj(game:service("Workspace"))
  55.         findobj(game:service("Teams"))
  56.         -- findobj(game)
  57.     end)
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement