Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a leveling up system with sword kills?

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 :)

2 comments

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.

0

If you would really want to know how i think you should watch this video: https://www.youtube.com/watch?v=1vQ1UiwLTP0

1 answer

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.