What would I put in my pastebin to add new codes whenever I wanted?

This is in the client script so in the pastebin it’s supposed to get the correct text written from the textbox from roblox

Events.Codes:InvokeServer(Player, Content.CodesFrame.TextBox.Text)

Im not too familiar with using httpservice, currently I have this in the server script,

local Events = game:GetService(“ReplicatedStorage”):WaitForChild(“Remotes”)

local HTTPService = game:GetService(“HttpService”)

local CodesURL = “https://pastebin.com/raw/
local CodesDebounce = false

Events.Codes.OnServerInvoke = function(Player, TextBoxCode)
if CodesDebounce == false then
CodesDebounce = true
local Success, Err = pcall(function()
local CodeJSON = HTTPService:GetAsync(CodesURL) – Get the JSON formatted codes
print(CodeJSON)
local CodeList = HTTPService:JSONDecode(CodeJSON) – Decode the JSON
local Code = Instance.new(“IntValue”, Player.Codes)
Code.Name = “Code”
Code.Value = CodeJSON
end)

  if not Success then
  	return nil -- Error occurred
  end
  delay(1, function()
  	CodesDebounce = false
  end)

end
end