Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a leveling up system with sword kills?

Asked by 6 years ago

I would like to make a leveling up system in ROBLOX so when you kill someone with a sword you get like 50xp then when you reach like 300xp you level up. I’m quite new to Lua and just need some help with this.

Thanks :)

0
This site is for helping people with their code. We don't give out code for users asking for it. Please attempt on your own and then come back to us with any issues you come up with. xPolarium 1388 — 6y
0
If you would really want to know how i think you should watch this video: https://www.youtube.com/watch?v=1vQ1UiwLTP0 Cmonlol135 5 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

I think you should make a IntValue to check how much XP the player has, and then try something like this:

if XP > number1 then
    Level = Level + 1
    -- Add level to the player
else
    wait()
end
Ad

Answer this question