Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make values Save that arent in the leader board?

Asked by
proo34 41
5 years ago

I understand that there are data store and things but I'm not understanding completely. When you do the point system in the corner, it shows on the leaderboard. How do I make values save without them appearing in the corner?

--Examples of what I'm trying to do

*Make a GUI that lets you decide how your gun looks *Something that remembers what gun picks you chose so when you rejoin you don't have to re-pick them *Things bout in the shop

Thanks!

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Right now your points are a parent of the "leaderstats". Make a diffrent folder name it for example "statistic" and make a new value in there and just parent it with the new folder. Then use datastore to save that value. It wont be displayed in the leaderboard and will be hidden.

If you want some code examples answer me. or if this helped you then accept my answer!

SECOND ANSWER:

So this would be a value that you save without it showing on the leaderboard

In a normal script

local function onPlayerJoin(player)
            local leaderstats = Instance.new("Folder")
            leaderstats.Name = "Stats"
            leaderstats.Parent = player

            local stamina = Instance.new("IntValue")
            stamina.Name = "Stamina"
            stamina.Value = 100
            stamina.Parent = leaderstats
        end

    game.Players.PlayerAdded:Connect(onPlayerJoin)

This would function the same as normal leaderstats but its not parented to "leaderstats", instead I made a new folder called "Stats" which doesnt show the elements inside on the top right corner (I think its ugly uhh). If you know how to make Data saving etc. then you should be good to go :)) If not, here is a link that might help you https://developer.roblox.com/articles/Data-store

1
Thanks so much!! Please may you provide some example scripts to help me? proo34 41 — 5y
0
Yipyip Give me a second Paintertable 171 — 5y
0
I edited my script for an example :)) Paintertable 171 — 5y
Ad

Answer this question