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: Hide leaderstats

Previous Thread :: Next Thread 
RickGrimes97 is not online. RickGrimes97
Joined: 23 Oct 2013
Total Posts: 190
01 Jul 2017 01:12 PM
this kind of speaks for itself, but i have a leaderstats chart that shows the players name and their credits, how do i hide it just so no one can see others credits
Report Abuse
RickGrimes97 is not online. RickGrimes97
Joined: 23 Oct 2013
Total Posts: 190
01 Jul 2017 01:12 PM
local DSService = game:GetService('DataStoreService'):GetDataStore('Whatev')
game.Players.PlayerAdded:connect(function(plr)
local uniquekey = 'id-'..plr.userId
local leaderstats = Instance.new('IntValue',plr)
local savevalue = Instance.new('IntValue')
leaderstats.Name = 'leaderstats'
savevalue.Parent = leaderstats
savevalue.Name = 'Credits'

local GetSaved = DSService:GetAsync(uniquekey)
if GetSaved then
savevalue.Value = GetSaved[1]
else
local NumbersForSaving = {savevalue.Value}
DSService:SetAsync(uniquekey, NumbersForSaving)
end
end)

game.Players.PlayerRemoving:connect(function(plr)
local uniquekey = 'id-'..plr.userId
local Savetable = {plr.leaderstats.Credits.Value}
DSService:SetAsync(uniquekey, Savetable)
end)
Report Abuse
Dr_Memez is online. Dr_Memez
Joined: 13 Nov 2015
Total Posts: 269
01 Jul 2017 01:39 PM
wait(0.01)
while true do
local StarterGui = game:GetService('StarterGui')

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
wait(30)
end



- Dr_Memez
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