of     1   

Lua_Basics
#185931376Thursday, March 24, 2016 1:43 AM GMT

Script: local DataStore = game:GetService("DataStoreService"):GetDataStore("PointsStorage") game.Players.PlayerAdded:connect(function(player) local stats = Instance.new("IntValue", player) stats.Name = "leaderstats" --///////////////////////////////////////////////////////////////////////////// local yo = Instance.new("IntValue", player.PlayerGui) yo.Name = "Speed" local yoo = Instance.new("IntValue", player.PlayerGui) yoo.Name = "Health" --///////////////////////////////////////////////////////////////////////////// local Points = Instance.new("IntValue" , stats) Points.Name = "Points" local rk = Instance.new("IntValue" , stats) rk.Name = "Rank" local xp = Instance.new("IntValue" , stats) xp.Name = "Experience" local Key = "user-"..player.userId local SavePoints = DataStore:GetAsync(Key) if SavePoints then Points.Value = SavePoints[1] rk.Value = SavePoints[1] xp.Value = SavePoints[1] yo.Value = SavePoints[1] yoo.Value = SavePoints[1] else local ValuesToSave = {Points.Value, rk.Value, xp.Value, yo.Value, yoo.Value} DataStore:SetAsync(Key, ValuesToSave) end --level up system, kinda hacky--/////////////////////////////////////////////////////////////////////////// local StartLevelup=250 local Multiply= 1.5 xp.Changed:connect(function() local Level=xp.Parent.Rank if (Level ~=nil) and (xp.Value>= StartLevelup * Multiply) then -- Slow Rise in needed Exp xp.Value = xp.Value-(StartLevelup * Multiply) Level.Value = Level.Value + 1 Level.Parent.Parent.PlayerGui.ScreenGui.Frame.AgilityPlus.Speed.Value = Level.Parent.Parent.PlayerGui.ScreenGui.Frame.AgilityPlus.Speed.Value + 1 Level.Parent.Parent.PlayerGui.ScreenGui.Frame.JumpPowerPlus.JumpPower.Value = Level.Parent.Parent.PlayerGui.ScreenGui.Frame.JumpPowerPlus.JumpPower.Value + 1 Multiply=Multiply+.05 end end) --level up system, kinda hacky--/////////////////////////////////////////////////////////////////////////// end)
Lua_Basics
#185931558Thursday, March 24, 2016 1:46 AM GMT

bump
Lua_Basics
#185931582Thursday, March 24, 2016 1:47 AM GMT

Server Script, ServerScriptService.
TimeTicks
#185931674Thursday, March 24, 2016 1:48 AM GMT

looks really ugly
Lua_Basics
#185931824Thursday, March 24, 2016 1:51 AM GMT

I Feel stupid, I just released my fully working DataStore level up system thats Server sided. gg btw its not ugly its simple af, it is basically all you would ever need for a leader board. (rpg wise)
Meed
#185931827Thursday, March 24, 2016 1:51 AM GMT

It would help if you could first test this and then provide any errors by putting another post here, that way, we don't have to figure out your script, re-create it in-game and test it, de-bug it and then give you the fixed version.
Lua_Basics
#185931930Thursday, March 24, 2016 1:53 AM GMT

It is fixed, I accidentally released it, it was my side where i messed up forgot to remove one line in another script.

    of     1