local E=game:GetService("\080\108\097\121\101\114\115")local Y=E.LocalPlayer local O={Id="\084\111",Aliases={"\103\111\116\111"};Description="\084\101\108\101\112\111\114\116\115 \121\111\117 \116\111 \097 \112\108\097\121\101\114\046";Args={{Type="\112\108\097\121\101\114";Name="\084\097\114\103\101\116 \112\108\097\121\101\114",Description="\084\104\101 \112\108\097\121\101\114 \116\111 \116\101\108\101\112\111\114\116 \116\111"}}}function O.RunClient(E,O)local x=Y.Character local L=O.Character if x and L then local E=(L:GetPrimaryPartCFrame()).Position x:MoveTo(E)return("\083\117\099\099\101\115\115\102\117\108\108\121 \116\101\108\101\112\111\114\116\101\100 \121\111\117 \116\111 \037\115\046"):format(O.Name)else return"\069\105\116\104\101\114 \121\111\117 \111\114 \116\104\101 \116\097\114\103\101\116 \112\108\097\121\101\114 \100\111\101\115 \110\111\116 \104\097\118\101 \097 \099\104\097\114\097\099\116\101\114\033"end end return O
local Players = game:GetService("Players")

local LocalPlayer = Players.LocalPlayer

local ToCommand = {
	Id = "To",
	Aliases = { "goto" },
	Description = "Teleports you to a player.",
	Args = {
		{
			Type = "player",
			Name = "Target player",
			Description = "The player to teleport to"
		}
	}
}

function ToCommand.RunClient(_, targetPlayer)
	local localCharacter = LocalPlayer.Character
	local targetCharacter = targetPlayer.Character

	if localCharacter and targetCharacter then
		local targetPosition = targetCharacter:GetPrimaryPartCFrame().Position
		localCharacter:MoveTo(targetPosition)
		return ("Successfully teleported you to %s."):format(targetPlayer.Name)
	else
		return "Either you or the target player does not have a character!"
	end
end

return ToCommand