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