Simple Random Number Script


#1
function OnPlayerChat(player,text)
if text:find("!rng:") then
    rndm = text:sub(6,text:len())
    number = GetRandomNumber(0,rndm)
    cmsg = "^3"..player.." rolled a "..number
    ConsoleMessageAllPlayers(cmsg)
    AbortEvent()
end
end

do !rng:(Number) to generate a number between that number and 0.
Example:
!rng:29 = gets a random number 0-29.


#2

Ok, I’m going to input so many scrips in the world TESTING SCRIPT, I think that’s what it’s called


#3

you’re compiling scripts?


#4

Screenshot_2018-11-18-09-17-28-1


#5

#6

Tf u bring back my old park back for?


#7

I feel like people will use this for a casino :thinking: but cool script tho