I have been fiddling with 2 scripts, one which i know can work but I don't want it working in that the way it is and another I don't think is gonna work at all the way it is. I'll post the 2nd after the 1st is finished 
1st Script -- Finished
2nd Script -- This script is SUPPOSED to check to see if the player exists(Player's name typed in when codebox appears) then checks to see if the Player trying to teleport is in a party with that person. But it gets to the Codebox, you type in the name and nothing happens.
Code:
if code == plr:GetName() and plr:IsGroupedWith() then -- Checks to see if player exists and if player is in the same party
local tX = code:GetX() -- Gets party member's X Cord
local tY = code:GetY() -- Gets party member's Y Cord
local tZ = code:GetZ() -- Gets party member's Z Cord
local tO = code:GetO() -- Gets party member's Orientation
plr:Teleport(tX, tY, tZ, tO) -- Teleport