# The assignment's left hand expression type \`player\` cannot be assigned to (WEIRD)

**URL:** <https://forums.unrealengine.com/t/the-assignments-left-hand-expression-type-player-cannot-be-assigned-to-weird/1588048>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [January 4, 2024, 5:53pm UTC](https://forums.unrealengine.com/t/the-assignments-left-hand-expression-type-player-cannot-be-assigned-to-weird/1588048 "2024-01-04T17:53:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Plzwork1234](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Plzwork1234](https://forums.unrealengine.com/u/Plzwork1234)\
**Post date:** [January 4, 2024, 5:53pm UTC](https://forums.unrealengine.com/t/the-assignments-left-hand-expression-type-player-cannot-be-assigned-to-weird/1588048/1 "2024-01-04T17:53:36Z")

</div>

Very strange issue here…

```auto
MM_device := class(creative_device):

    @editable
    MasterDevRef:master_device = master_device{}

    @editable
    var LobbyDevArray:[]lobby_device=array{}

    @editable
    TelePlayerTrigger:trigger_device:=trigger_device{}

    #Logic is if team is full/complete(true) array is chars on team
    var TeamMap: [int]tuple(logic,[]player) = map{}

    OnBegin<override>()<suspends>:void=
        TelePlayerTrigger.TriggeredEvent.Subscribe(TelePlayer)

    TelePlayer(Agent:?agent):void=
        if (Player := player[Agent?], Agent2:=Agent?):
            if(pIndex:=MasterDevRef.PInfoMap[Player]?.PlayerIndex):
                if(telep:=LobbyDevArray[pIndex].TeleporterArray[0], list:=LobbyDevArray[pIndex].PlayerList):
----> if(set list[0] = Player):
                        telep.Teleport(Agent2)

```

im getting the error on the line with the arrow. Thing is, this is the array variable:

```auto
var PlayerList:[]player = array{}

```

i have var…

Considering ive literally done this exact thing in other projects with no problems, I Really need help with this one.

---

<div class="post-metadata">

**Author:** ![Gankable](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gankable](https://forums.unrealengine.com/u/Gankable)\
**Post date:** [January 6, 2024, 12:43am UTC](https://forums.unrealengine.com/t/the-assignments-left-hand-expression-type-player-cannot-be-assigned-to-weird/1588048/2 "2024-01-06T00:43:01Z")

</div>

The ‘list’ variable you are using to assign the list to is a constant, regardless of the mutability of the underlying array variable. You might be better off setting it directly like:  
`set LobbyDevArray[pIndex].PlayerList[0] = Player`  
When I get home, I will double check that to make sure.
