Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[hail subfare but dummiez more
- You can set your settings for the leaderboard here. Simply leave this 'HighScore' Model in the Workspace,
- and do not touch the Config unless you know what you're doing!
- ]]
- ----------------------------------------------------------------------------------------------------------------------------
- -- Edit stuff here
- DATA_STORE = "Tradslots" --< Name of the Data store values will be saved in
- SCORE_UPDATE = 30 --< How often you want the leaderboards to update in seconds (no less than 30)
- PLAYER_UPDATE = 30 --< How often you want the player's current stat to save in seconds (no less than 30)
- PLAYER_SAVE = "leaderstats" --< Do not change unless you are using something that is not leaderstats
- NAME_OF_STAT = "Credits" --< Name of the stat you want to save (HAS to be inside 'leaderstats' or whatever PLAYER_SAVE is)
- -- When you're done make sure to uncheck the 'Disabled' behaviour on this script under Properties!
- ----------------------------------------------------------------------------------------------------------------------------
- -- Stuff (do not edit below)
- local configModel = script.Parent.Config
- local scoreBlock = script.Parent.ScoreBlock
- local uS = configModel.UploadScore
- local rS = configModel.RemoteScore
- local lSU = configModel.LocalScoreUpdate
- uS.Refresh.Value = SCORE_UPDATE
- rS.Score.Value = NAME_OF_STAT
- rS.Original.Value = PLAYER_SAVE
- rS.DataStore.Value = DATA_STORE
- lSU.Refresh.Value = PLAYER_UPDATE
- uS.Parent = game.ServerScriptService
- uS.Disabled = false
- rS.Parent = game.Workspace
- rS.Disabled = false
- lSU.Parent = game.StarterGui
- lSU.Disabled = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement