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 :)
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 :)
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
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.
If you would really want to know how i think you should watch this video: https://www.youtube.com/watch?v=1vQ1UiwLTP0