How to add and subtract xp from 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 comminuty!

    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!

20Spaces

Member
Apr 26, 2024
29
3
3
14
Hello! This is kinda a stupid and basic question but I can't find the answer for the life of me. So I want to add and subtract xp from a player
I tried:
Code:
add 10 to player's xp

However I think this requires the TuSke add-on and I would prefer to use Skript syntax if this exist. I would also prefer to subtract Levels from the player instead of just XP
 

You can't remove xp but you can remove levels

give 10 xp to player
remove 4 levels from player etc