How to damage as a player

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

wither?

Member
Jun 20, 2021
4
0
1
Code:
on right click:
    if player's tool is iron sword named "&6Hyperion":
        loop 8 times:
            if block 1 in front of player is air, void air, cave air , water, kelp, grass or tall grass:
                teleport player 1 block in front of player
            else:
                stop loop
        teleport player 1 block above player
        create a fake explosion 1 meter above the player
        create a fake explosion 1 meter in front of the player
        damage all entities in radius 10 of player by 50
        set {hyperion.%player%} to 1
        wait 0.1 seconds
        set {hyperion.%player%} to 0

so i have this code and i have other code that checks if the damage taken is by a player so is there a way to make it like
Code:
damage all entities in radius 10 of player by 50 as player
or a addon that i need to get?