No damage to the player

I entered the verse code according to the lesson, but the player does not get 50.0 damage. How should I change the chord?

https://dev.epicgames.com/documentation/en-us/uefn/learn-code-basics-5-practice-time-in-verse

using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Playspaces }
using { /Verse.org/Simulation }
using { /Verse.org/Verse }

hello_world_device := class(creative_device):

    # Runs when the device is started in a running game
    OnBegin<override>()<suspends>:void=
	
        Playspace: fort_playspace = GetPlayspace()
        AllPlayers: []player = Playspace.GetPlayers()
        if (FirstPlayer : player = AllPlayers[0]):
            if (FortniteCharacter : fort_character = FirstPlayer.GetFortCharacter[]):
                FortniteCharacter.Damage(50.0)
1 Like

I’ve been having this same issue, have you been able to find any solutions?

Actually, I was able to figure it out by myself, make sure under User Options - Game Settings you have Invincibility set to false.

1 Like

Complementing the previous answer. If you are extremely new to Fortnite like I am and is trying to learn verse. Make sure you started your session and you are in Edit Mode (it shows on the upper left side of the screen), hit Esc → My Island → Settings → Invincibility OFF