i am trying to learn verse and I have a question, the code in the 5th lesson exercise does not damage the player i dont understand why

resim
it says damage done but it doesn’t

can you take a picture of the code from the lesson in your project?

Hey there @NL_dexiio

This is due to the SpawnImmunity that occurs when a minigame begins.

I’d recommend adding a delay before your code during the OnBegin method

Something like this should work for you

OnBegin<override>()<suspends>:void=
        Sleep(3.0)
        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