Raptor Strike Resources
  • Welcome
  • Roblox Scripts
    • XP System
      • Installation
      • Extra Information
      • Settings File
    • Emote Menu
      • Installation
      • Extra Information
      • Settings File
  • Roblox Game Setups
    • Obby Template
      • Installation
      • Extra Information
      • Settings File
Powered by GitBook
On this page
  1. Roblox Scripts
  2. XP System

Extra Information

Extra information about the XP System script.

Adding XP to a player

To add XP to a player, use the following function on server side scripts:

LevelsConfig.addXP(playerObject, xpToAdd)
-- (Where playerObject is the object of the player, and xpToAdd is an integer of XP to add to a player)

You will also need to impo rt the LevelsConfig at the top of your script:

local LevelsConfig = require(ServerScriptService.Levels)
PreviousInstallationNextSettings File

Last updated 2 months ago