This makes no sense. Tables are not instances, Meaning they do not inherit The Parent property, because they are tables that store information, and not Instances.
Heres how you use use them (With using a dictionary, which is a certain type of table):
--Heres how to access one item:
print(TrailTypes["White"])
--or
print(TrailTypes.White)
--both print out false; their value
--Heres how to write an item:
TrailTypes["White"] = "ReWritten"
--or
TrailTypes.White = "ReWritten"
--When printed like the first method of accessing an item, prints "ReWritten"
--Here is how to access all items at once
for item, value in TrailTypes do
print(item, value)
end
--prints the following:
Blue false
Red false
Green false
Orange false
Purple false
Pink false
Black false
White false
I know that, and this doesn’t really solve my problem, because I need to be able to access this table from other local scripts which is why I want to store it on the player
Well then you could turn it into a folder. Your other option is to use Remote Events / Bindable Events / Module scripts and have the Scripts request this information (I am offering this because ik you said you didn’t want a folder, but the most simple route for sharing this info is by, making this a folder; and this folder comes with other perks like you being able to use :GetPropertyChangedSignal() on the values ). If you would like to go this route, let me know (and what type of method), but, simply you could do this, with the methods I showed you above for; “making a folder”:
local Folder = Instance.new("Folder")
Folder.Name = "TrailTypes"
Folder.Parent = player
for item, value in TrailTypes do
local BoolenValue = Instance.new("BoolValue")
BoolenValue.Name = item
BoolenValue.Value = value
BoolenValue.Parent = Folder
end
I mean you can do other things. Again as I did mention you could use Remote / Bindable events, or module scripts. For something like a shop system though, Its often common to store them in folders for easy access, and the ability to use :GetPropertyChangedSignal() on those values