This Is Pretty Self Explainitory, Basically I Wana Know If There Is An Easier Way To Store Data Such As Different Barns And Cars That Are Obtained.
game.Players.PlayerAdded:Connect(function(Plr)
local Invis = Instance.new("Folder")
Invis.Parent = Plr
Invis.Name = "InvisStats"
local Barns = Instance.new("Folder")
Barns.Parent = Plr
Barns.Name = "Barns"
local Cars = Instance.new("Folder")
Cars.Parent = Plr
Cars.Name = "Cars"
local RedBarnFound = Instance.new("BoolValue")
RedBarnFound.Parent = Barns
RedBarnFound.Name = "RedBarnFound"
RedBarnFound.Value = true
local GreenBarnFound = Instance.new("BoolValue")
GreenBarnFound.Parent = Barns
GreenBarnFound.Name = "GreenBarnFound"
GreenBarnFound.Value = false
local BlueBarnFound = Instance.new("BoolValue")
BlueBarnFound.Parent = Barns
BlueBarnFound.Name = "BlueBarnFound"
BlueBarnFound.Value = false
local YellowBarnFound = Instance.new("BoolValue")
YellowBarnFound.Parent = Barns
YellowBarnFound.Name = "YellowBarnFound"
YellowBarnFound.Value = false
local Car1Found = Instance.new("BoolValue")
Car1Found.Parent = Cars
Car1Found.Name = "Car1Found"
Car1Found.Value = true
local Car2Found = Instance.new("BoolValue")
Car2Found.Parent = Cars
Car2Found.Name = "Car2Found"
Car2Found.Value = false
local Car3Found = Instance.new("BoolValue")
Car3Found.Parent = Cars
Car3Found.Name = "Car3Found"
Car3Found.Value = false
local Car4Found = Instance.new("BoolValue")
Car4Found.Parent = Cars
Car4Found.Name = "Car4Found"
Car4Found.Value = false
end)
Just A Bunch Of Code For Not That Much Data, Also The Game Would Have Way More Cars And Stuff Like That.
Thanks For Any Help!