title: <name> expected near 'end' error
body: <p>when I ran my lua code I got the error 'name' expected near 'end' | Line 12</p>
  
  <p>Here's the code:</p>
  
  <pre><code>local i = 1
  local plr = game.Players.LocalPlayer
  
  
  function start()
  repeat
      wait()
      game.ReplicatedStorage.addpoints:FireServer()
  until i == 2
  end
  
  function end()
  i = 2
  end
  
  plr.Chatted:connect(function(message)
  if message == "start" then
      start()
  elseif message == "end" then
      end()
  end
  end)
  </code></pre>
  
  <p>Any fix?</p>