Hi, im trying to make a custom command for adonis. This command is a jail command which is meant to teleport the player chosen to the certain point on the map. I can't get it to work and i have given up, any help will be greatly appreciated.

server.Commands.Jail = {
		Prefix = server.Settings.Prefix;	-- Prefix to use for command
		Commands = {"jail"};	-- Commands
		Args = {"player", "reason"};	-- Command arguments
		Description = "Sends Customer to Jail";	-- Command Description
		Hidden = true; -- Is it hidden from the command list?
		Fun = false;	-- Is it fun?
		AdminLevel = "Admins";	    -- Admin level; If using settings.CustomRanks set this to the custom rank name (eg. "Baristas")
		Function = function(plr: Player, args: {string})
			assert(args[1], "Missing player name, follow the format of :jail username reason")
			assert(args[2], "Missing reason, follow the format of :jail username reason")
			for _, v in ipairs(service.GetPlayers(plr, args[1])) do
				local player = args[1]
				player.Character:SetPrimaryPartCFrame(CFrame.new(Vector3.new(187.8, 4.4, 376.3)))
			end
		end