To give a map owner to a player in Roblox, store the owner on the map with a value object or an attribute, then set it to that player when they claim or create the map. Roblox’s current experience ownership transfer flow is separate from in-game plot ownership, and Roblox Studio/Creator Hub only supports transferring the whole experience to a user or group through the ownership transfer settings.

For in-game map ownership

A common setup is:

  1. Put an ObjectValue or StringValue inside the map.
  2. Name it something like Owner.
  3. Set its value when the player takes ownership.
  4. Check that value later when you need to verify who owns the map.

Example pattern:

lua

local ownerValue = map:FindFirstChild("Owner") or Instance.new("ObjectValue")
ownerValue.Name = "Owner"
ownerValue.Parent = map
ownerValue.Value = player

If you prefer a string instead, store player.Name or player.UserId rather than the Player instance. Community Roblox scripting guidance commonly recommends assigning one plot per player and using a value like Occupied or plotOwner to track ownership.

If you mean the whole game

You cannot just “give” a published Roblox experience to another player inside the game itself. Roblox’s official ownership transfer process is done in the Creator Hub: open the experience, go to Settings, and use Initiate ownership transfer.

Best practice

  • Use ObjectValue if you want to reference the actual player object.
  • Use UserId if you want ownership to survive reconnects.
  • Put the ownership logic on the server, not the client.
  • Clear ownership when the player leaves, if the map should become free again.

Simple example

If your game is a tycoon or plot system, you can do:

lua

plot.Owner.Value = player
plot:SetAttribute("OwnerUserId", player.UserId)

Then later:

lua

if plot.Owner.Value == player then
    -- allow building, editing, teleporting, etc.
end

TL;DR: for a map inside your game, store the owner on the map with an ObjectValue, StringValue, or attribute; for the actual Roblox experience, use Creator Hub’s ownership transfer feature.