Insource Systems
  • Intro
  • Change Log
  • API Reference
  • Insource Bot
    • Getting Started
    • Commands
      • Settings
      • Moderation
      • Info
      • Account
      • InStore
  • InStore
    • Getting Started
      • Linking Your Account
      • Create Your Store
      • Create a Product
    • Framework
      • RemoteEvent
        • Alert
        • LaunchProduct
      • RemoteFunction
        • GetCurrentUser
        • GetProductById
        • GetProducts
        • RequestPromptPurchase
      • Resources
        • Configuration
        • Product
        • Theme
        • User
      • Utils
        • TeleportToAccount
        • TimeStringToEpoch
    • API Resources
      • License
      • Product
      • Store
  • API Resources
    • User
Powered by GitBook
On this page

Was this helpful?

  1. InStore
  2. Framework
  3. Utils

TeleportToAccount

InStore util to teleport the user to the account center.

Utils.TeleportToAccount

function (Player)

Teleport a user to the Insource Account Center. Returns nil. This will fail if Third Party Teleports is not enabled in Game Settings.

Arguments

Field
Type
Description

Player

Player

the player object to teleport

Example Script

local Player = game.Players.LocalPlayer;
local RS = game.ReplicatedStorage:WaitForChild('InStore');
local TeleportToAccount = require(RS.Utils.TeleportToAccount);

TeleportToAccount(Player); --> Teleports the user to the account center
PreviousUtilsNextTimeStringToEpoch

Last updated 1 year ago

Was this helpful?