How would I make a button that teleports the player to another scene/game?

I trying to make a main menu for my game but I can't find a way to teleport the player to the main game from the main menu, can anyone help?

Follow the Steps Below:

  1. First Create a Ui Button
  2. Create a Script on Client Context
  3. Now Inside the Script, Put this Script
  4. Create a Target Object [On this Object, we will be Teleporting the Player, It can be a Cube or anything you want and turn visibility force off ]
local yourButton = theButton
local player = Game.GetLocalPlayer()
local target = yourTargetObject

Hope it Helps :slight_smile: and If you want any Further Help, then Let Me Know!

Thanks for the help.