function inputDataToPlayer(player, dataTable)
if dataTable ~= nil then
for alldata,currentdata in pairs (dataTable) do
local Part = game.ServerStorage.Part:Clone()
Part.Parent = game.Workspace.PlayerBase.Objects
Part.Name = (currentdata["Name"])
Part.Position = (Vector3.new( currentdata["PositionX"],currentdata["PositionY"],currentdata["PositionZ"]))
Part.BrickColor = (BrickColor.new((currentdata["Color"])))
Part.Material = (string.sub(currentdata["Material"],15,-1))
print (string.sub(currentdata["Material"],15,-1))
end
end
I fixed it!
for some reason i cant create a Vector3 out of one Position Value i have to use PositionX,Y and Z

3 comments
When you do variable = 1, 2, 3. The '2, 3' are discarded, and variable is assigned to 1.
just use vector3 and color3 values for color and position
You cannot store userdata in data stores. Or maybe not directly, however I don't think you can at all