/roll command and an engine system code

Hello If you could help me with a code that makes a car start up when pressing a button?

And a /roll

EX roll: /roll
(name) rolled 60

rolls from 0-100

Im not very good with lua so help would be appreciated.
Im just learning

hook.Add("PlayerSay", "roll", function(ply, txt, team)
  if txt == "!roll" then 
     local randRoll = tostring(math.Round(math.Rand(0, 100)))
     for k,v in pairs(player.GetAll()) do
          v:ChatPrint(ply:Nick().." rolled ", randRoll)
end )

Or you could do it the sane way…
hook.Add(“PlayerSay”, “!roll command”, function(ply, txt, isteam) – call our function whenever a player sends a chat message
if string.find(txt, “^[!/]roll”) then – find if the message starts with (what ^ does) either !roll or /roll (it can be either because we put the ! and / inside )
local high = string.match(txt, “^[!/]roll (.+)$”) or 100 – get a match containing a number that they want to be the max of their roll. if they didn’t specify one, use 100
local result = math.random(1, high) – generate a random number between 1 and high
PrintMessage(HUD_PRINTTALK, ply:Nick() … " rolled a " … result … “!”) – print the message in chat that <name> rolled a <result>!