Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local menuChoices = {"one scoop of vanilla please", "I want one one scoop of chocolate",
- "gimmie two scoops of vanilla"
- }
- local IceCreamChoice = script.Parent.StringValue
- local chosenMenuChoice = menuChoices[math.random(1, #menuChoices)]
- brick.Name = chosenMenuChoice
- if string.find("one", chosenMenuChoice) then
- print("if this prints this means it works")
- if string.find(chosenMenuChoice, "vanilla") then
- print("if this prints this means it works")
- iceCreamChoice.Value = "osv"
- elseif string.find(chosenMenuChoice, "chocolate") then
- print("if this prints this means it tworks")
- iceCreamChoice.Value = "osc"
- elseif string.find(chosenMenuChoice, "mint") then
- print("if this prints this means it works")
- iceCreamChoice.Value = "osm"
- end
- elseif string.find("two", chosenMenuChoice) then
- print("if this prints this means it tworks")
- if string.find(chosenMenuChoice, "vanilla") then
- print("if this prints this means it works")
- iceCreamChoice.Value = "tsv"
- elseif string.find(chosenMenuChoice, "chocolate") then
- print("if this prints this means it works")
- iceCreamChoice.Value = "tsc"
- elseif string.find(chosenMenuChoice, "mint") then
- print("if this prints this means it works")
- iceCreamChoice.Value = "tsm"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment