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: Safe Place to store data?

Previous Thread :: Next Thread 
derfvb123 is not online. derfvb123
Joined: 23 Oct 2011
Total Posts: 704
26 May 2016 02:07 PM
(Relating to datastores)

Is it safe to store the leaderstats inside a player or would it be safer in lets say server storage?

or does putting it elsewhere matter?
As my friend said this:
[19:58:30]: Like making the value in the players model/gui
[19:58:47]: Because you can hack it if it's client side
[19:59:50]: Please use server storage and or a server sided folder


Would his method be better...?


--[[Insert Siggy Here]]--
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
26 May 2016 02:11 PM
his method is better but not the way you should be dealing with it.


this is how you should do it if you are not storing it in the player.


stats = {}

game.Players.PlayerAdded:connect(function(pl)
stats[pl] = {}

local f = Instance.new("Folder",pl)
f.Name = "leaderstats"
local v = Instance.new("IntValue",f)
v.Name = "Cash"
v = stats[pl].Cash or 0

while wait() and pl and pl.Parent do
v.Value = stats[pl].Cash or 0
end
end)
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
26 May 2016 02:12 PM
then you can pass around the stats[pl].Cash and set it accordingly.
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
26 May 2016 02:13 PM
just don't make silly mistakes like me and replace
"v = stats[pl].Cash or 0"
with
"v.Value = stats[pl].Cash or 0"
Report Abuse
derfvb123 is not online. derfvb123
Joined: 23 Oct 2011
Total Posts: 704
26 May 2016 02:33 PM
I need help incorporating this into my datastore, could someone help?

(by this I mean speedyseats suggestion)



--[[Insert Siggy Here]]--
Report Abuse
derfvb123 is not online. derfvb123
Joined: 23 Oct 2011
Total Posts: 704
26 May 2016 02:52 PM
B


--[[Insert Siggy Here]]--
Report Abuse
derfvb123 is not online. derfvb123
Joined: 23 Oct 2011
Total Posts: 704
26 May 2016 03:04 PM
Actually is it safe enough where it is inside the player?


--[[Insert Siggy Here]]--
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
26 May 2016 03:06 PM
no. You can use Cheat Engine in a server to change that number.
Report Abuse
derfvb123 is not online. derfvb123
Joined: 23 Oct 2011
Total Posts: 704
26 May 2016 03:07 PM
Well does your method make it safer?

because i'm not sure how to implement it into my datastore ):


--[[Insert Siggy Here]]--
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
26 May 2016 03:09 PM
Yes and unfortunately player stats are not very easy to make.

I can quickly setup an api for that if you want
Report Abuse
derfvb123 is not online. derfvb123
Joined: 23 Oct 2011
Total Posts: 704
26 May 2016 03:10 PM
If I show you my Datastore do you think you could implement it?

I think it would be easier then you creating a API





--[[Insert Siggy Here]]--
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
26 May 2016 03:12 PM
probably not as you cant show a datastore.

>.>
Report Abuse
derfvb123 is not online. derfvb123
Joined: 23 Oct 2011
Total Posts: 704
26 May 2016 03:12 PM
I'm talking about the datastore script.


--[[Insert Siggy Here]]--
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
26 May 2016 03:15 PM
yes providing that would probably be helpful.

but i want to make an API anyways so you can wait for that or post your code here.
Report Abuse
derfvb123 is not online. derfvb123
Joined: 23 Oct 2011
Total Posts: 704
26 May 2016 03:16 PM
Allright. Well i'll pm you the datastore.


--[[Insert Siggy Here]]--
Report Abuse
derfvb123 is not online. derfvb123
Joined: 23 Oct 2011
Total Posts: 704
26 May 2016 03:18 PM
PMED the datastore.


--[[Insert Siggy Here]]--
Report Abuse
spinywind is online. spinywind
Joined: 26 Jan 2012
Total Posts: 3580
26 May 2016 04:17 PM
Server Storage.


Report Abuse
derfvb123 is not online. derfvb123
Joined: 23 Oct 2011
Total Posts: 704
26 May 2016 06:33 PM
As Speedy's API may take some time, anyone know any alternate ways?




--[[Insert Siggy Here]]--
Report Abuse
SpeedySeat is online. SpeedySeat
Joined: 06 Jul 2011
Total Posts: 3048
26 May 2016 08:07 PM
Here you go. Hopefully you will have a lot less problems with this:

https://www.roblox.com/Leaderboard-API-item?id=420706961

I've even tried rewriting your example code. Feel free to tamper with it, I've tried making it as user-friendly as possible.
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