PurchaseCar.MouseButton1Click:Connect(function()
local car = ReplicatedStorage.ShowcaseCars:FindFirstChild(CurrId)
local CarDS = DataStore2(CurrId, Player)
local CurrStatus = CarDS:Get(false)
if CurrStatus then
print("Player owns car!")
else
CarDS:Set(true)
print("Players purchased car!")
end
end)
All of my cars are labelled by IDs for the car selection menu, I'm trying to see whether or not a player owns that car by checking if the datastore exists, but I'm very lost as you can see.
I'm trying to create an individual datastore for each car and if they own it, it's true, if they don't, it's false.

1 comment
Same here, but I'm not sure if you can some other stuff rather than just numbers using datastore2. I'm also trying to figure this out as well