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

How can i save the bool in the player?

Asked by 6 years ago

Hello, I am making car buy system. Everything is working perfect but there's a problem I created the bool in the player for remain forever but I don't know how to save it.

if Func == "Buy1" then
    Cash.Value = Cash.Value - 800000
    plr.Car1.Value = true -- I want to save Car1 value.
end

Thanks in advance!

0
You would have to use Data Stores. This wiki page has information about data stores: http://wiki.roblox.com/index.php/Data_store saSlol2436 716 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

DataStores

Use DataStore.SetAsync to save that the car is bought, and then use DataStore.GetAsync to load it when they join.

Ad

Answer this question