Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ran = math.random(1,6)
- player = getLocalPlayer()
- name = getPlayerName(player)
- function rollDice()
- if ran == 1
- outputChatBox(name.." rolled one!")
- elseif ran == 2
- outputChatBox(name.." rolled two!")
- elseif ran == 3
- outputChatBox(name.."rolled three!")
- elseif ran == 4
- outputChatBox(name.."rolled four!")
- elseif ran == 5
- outputChatBox(name.."rolled five!")
- else outputChatBox(name.."rolled six!")
- end
- end
- addCommandHandler("roll",rollDice)
Advertisement
Add Comment
Please, Sign In to add comment