Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function RollDice(side)
- if side = 1 then
- return "1"
- end
- elseif side = 2 then
- return "2"
- end
- elseif side = 3 then
- return "3"
- end
- elseif side = 4 then
- return "4"
- end
- elseif side = 5 then
- return "5"
- end
- elseif side = 6 then
- return "6"
- print(RollDice(math.random(1,6)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement