generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: XP and Level System, please? :(

Previous Thread :: Next Thread 
EvolutionPower is not online. EvolutionPower
Joined: 16 Dec 2013
Total Posts: 873
19 Aug 2016 12:11 PM
Can anyone please make me an XP and Level System, please?
I got the stats like this:
h t t p : / / p r n t . s c / c 7 t d j z
The stats are located in game.Players.LocalPlayer

If u can do this, i will really appreciate it.


R$18
Report Abuse
Zawie is not online. Zawie
Joined: 04 Jul 2010
Total Posts: 6338
19 Aug 2016 12:21 PM
no
Report Abuse
Badandy11 is not online. Badandy11
Joined: 02 Jul 2009
Total Posts: 1861
19 Aug 2016 12:33 PM
If storing in the player, do you also have FilteringEnabled active?
Report Abuse
EvolutionPower is not online. EvolutionPower
Joined: 16 Dec 2013
Total Posts: 873
19 Aug 2016 12:35 PM
No.


R$18
Report Abuse
Badandy11 is not online. Badandy11
Joined: 02 Jul 2009
Total Posts: 1861
19 Aug 2016 12:36 PM
You better activate it or an exploiter could easily change their money to 900000 or something and it would replicate to the server.
Report Abuse
Objectly is not online. Objectly
Joined: 18 Jul 2016
Total Posts: 210
19 Aug 2016 12:37 PM
Stop asking for free scripts and learn how to code.
Report Abuse
Badandy11 is not online. Badandy11
Joined: 02 Jul 2009
Total Posts: 1861
19 Aug 2016 12:39 PM
Fyi @EvolutionPower

I'm not here to make you a script but walk you through the steps so you can learn how to make it yourself.
Report Abuse
EvolutionPower is not online. EvolutionPower
Joined: 16 Dec 2013
Total Posts: 873
19 Aug 2016 12:59 PM
Do not worry, i got anti hack scripts that prevent stuff like ass hax, rc7 and more


R$18
Report Abuse
Real_Edgy is not online. Real_Edgy
Joined: 23 Oct 2013
Total Posts: 1212
19 Aug 2016 01:00 PM
use filteringenabled you primitive boy
Report Abuse
Badandy11 is not online. Badandy11
Joined: 02 Jul 2009
Total Posts: 1861
19 Aug 2016 01:10 PM
Anti-hack scripts are rubbish compared to FilteringEnabled . Just do FilteringEnabled and save a headache.
Report Abuse
EvolutionPower is not online. EvolutionPower
Joined: 16 Dec 2013
Total Posts: 873
19 Aug 2016 01:15 PM
Done. What's next?


R$18
Report Abuse
Badandy11 is not online. Badandy11
Joined: 02 Jul 2009
Total Posts: 1861
19 Aug 2016 01:17 PM
Do you have already weapons or anything that interacts with the client? If you flip FilteringEnabled on, it may break certain things in your game that communicate between the client and server like ClickDetectors
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
19 Aug 2016 01:17 PM
"Done, what's next?"

lol

inb4WHYEVERYTHINGBREAK


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
alij12 is not online. alij12
Joined: 03 Oct 2011
Total Posts: 1204
19 Aug 2016 01:18 PM
inb4WHYEVERYTHINGBREAK[2]
Report Abuse
EvolutionPower is not online. EvolutionPower
Joined: 16 Dec 2013
Total Posts: 873
19 Aug 2016 01:35 PM
Is this a good xp and level system?
function onXPChanged(player, XP, level)
if XP.Value>=level.Value * 20 then
XP.Value = XP.Value - level.Value * 20
level.Value = level.Value + 1
end
end

function onLevelUp(player, XP, level)
end

function onPlayerRespawned(player)
end

function onPlayerEntered(newPlayer)

local stats = game.Players.LocalPlayer:WaitForChild 'Stats'
local XP = stats.XP
local level = stats.Level

stats.Parent = newPlayer


XP.Changed:connect(function() onXPChanged(newPlayer, XP, level) end)
level.Changed:connect(function() onLevelUp(newPlayer, XP, level) end)

while true do
wait(2)
XP.Value = XP.Value + 5
end


newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end

function onPlayerRemoving(player)
end
game.Players.PlayerRemoving:connect(onPlayerRemoving)
game.Players.ChildAdded:connect(onPlayerEntered)


R$32
Report Abuse
EvolutionPower is not online. EvolutionPower
Joined: 16 Dec 2013
Total Posts: 873
19 Aug 2016 01:38 PM
Sorry, i changed it again.
function onXPChanged(player, XP, level)
if XP.Value>=level.Value * 20 then
XP.Value = XP.Value - level.Value * 20
level.Value = level.Value + 1
end
end

function onLevelUp(player, XP, level)
end

function onPlayerRespawned(player)
end


local stats = game.Players.LocalPlayer:WaitForChild 'Stats'
local XP = stats.XP
local level = stats.Level

newPlayer = game.Players.LocalPlayer

XP.Changed:connect(function() onXPChanged(newPlayer, XP, level) end)
level.Changed:connect(function() onLevelUp(newPlayer, XP, level) end)

while true do
wait(2)
XP.Value = XP.Value + 5
end


newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)

function onPlayerRemoving(player)
end
game.Players.PlayerRemoving:connect(onPlayerRemoving)
game.Players.ChildAdded:connect(onPlayerEntered)


R$32
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image