Guest User

code

a guest
Jan 18th, 2017
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. local menuChoices = {"one scoop of vanilla please", "I want one one scoop of chocolate",
  2. "gimmie two scoops of vanilla"
  3. }
  4. local IceCreamChoice = script.Parent.StringValue
  5.  
  6. local chosenMenuChoice = menuChoices[math.random(1, #menuChoices)]
  7.  
  8. brick.Name = chosenMenuChoice
  9.  
  10. if string.find("one", chosenMenuChoice) then
  11. print("if this prints this means it works")
  12. if string.find(chosenMenuChoice, "vanilla") then
  13. print("if this prints this means it works")
  14. iceCreamChoice.Value = "osv"
  15. elseif string.find(chosenMenuChoice, "chocolate") then
  16. print("if this prints this means it tworks")
  17. iceCreamChoice.Value = "osc"
  18. elseif string.find(chosenMenuChoice, "mint") then
  19. print("if this prints this means it works")
  20. iceCreamChoice.Value = "osm"
  21. end
  22. elseif string.find("two", chosenMenuChoice) then
  23. print("if this prints this means it tworks")
  24. if string.find(chosenMenuChoice, "vanilla") then
  25. print("if this prints this means it works")
  26. iceCreamChoice.Value = "tsv"
  27. elseif string.find(chosenMenuChoice, "chocolate") then
  28. print("if this prints this means it works")
  29. iceCreamChoice.Value = "tsc"
  30. elseif string.find(chosenMenuChoice, "mint") then
  31. print("if this prints this means it works")
  32. iceCreamChoice.Value = "tsm"
  33. end
  34. end
Advertisement
Add Comment
Please, Sign In to add comment