Advertisement
Scriptorz5

idea generator

May 6th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. objects = {"kitten", "pillow", "laser", "dog", "tank", "bomb", "rocket", "water gun", "gun", "kick",
  2. "poo", "dagger", "sword", "clock", "notepad", "medieval", "epic face", "bike", "skateboard",
  3. "umbrella", "computer", "camera", "fox", "wolf", "roblox", "speaker", "human", "robloxian",
  4. "screen", "plate", "fork", "knife", "magnifying glass", "tix", "robux", "card", "phone",
  5. "banana", "apple", "orange", "red vs. Blue", "rubik's cube", "light bulb", "lamp", "jet",
  6. "plane", "tree", "treehouse", "trampoline", "parkour", "poster", "paper", "scissor", "rock",
  7. "desk", "fail", "iron man", "roflcopter", "helicopter", "troll", "cool face", "trollface",
  8. "narbfaic", "noob", "superman", "Donald Duck", "Disney", "pirates vs. walrus", "martian",
  9. "cup", "piano", "bottle", "safecrack", "money", "bed", "closet"
  10. }
  11.  
  12. gametypes = {"wars", "chase", "tag", "obby", "survival", "roleplay", "race", "arena", "tycoon",
  13. "battle", "ship battle", "build", "live", "mining", "RPG", "defence", "flight", "attack",
  14. "fights", "park", "water park", "draw", "guess", "puzzle", "generator"
  15. }
  16.  
  17. places = {"on land", "in sky", "in forest", "on desert", "in a lab", "on baseplate", "in heights", "on a hill", "on a lake", "on a sea",
  18. "in ocean", "in space", "in Earth", "in Mars", "in Jupiter", "in a watchtower", "on a bridge",
  19. "in a house", "on a table", "on a field", "in a casino", "in a ranch", "in a ship", "in a car",
  20. "in organs", "on a piano", "on a bed", "in kitchen"}
  21.  
  22. Instance.new("Hint",workspace).Text = #objects*#gametypes*#places.." choices in atu1000's idea generator!"
  23. function cap(word)
  24. return word:sub(1,1):upper()..word:sub(2)
  25. end
  26.  
  27. function makeidea()
  28. local a = cap(objects[math.random(1,#objects)].." "..gametypes[math.random(1,#gametypes)].." "..places[math.random(1,#places)])
  29. return a
  30. end
  31.  
  32. function chat(msg, p)
  33. if msg == "idea" then
  34. local lolz, idea = p.Name.." got a new idea!", makeidea()
  35. local hint = Instance.new("Hint",workspace)
  36. hint.Text = lolz
  37. wait(1)
  38. hint.Text = "The idea is....."
  39. wait(0.5)
  40. hint.Text = idea.."!"
  41. wait(7)
  42. hint:remove()
  43. end
  44. end
  45. for i,v in pairs(game.Players:GetPlayers()) do
  46. v.Chatted:connect(function(msg) chat(msg, v) end)
  47. end
  48. game.Players.PlayerAdded:connect(function(v)
  49. v.Chatted:connect(function(msg) chat(msg, v) end)
  50. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement