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
Hello again, MageMasterHD!
You don't need to do nothing with the datas(if you didn't changed the script)
function inputDataToPlayer(player, dataTable) if dataTable ~= nil then for data,currentdata in pairs (dataTable) do local Part = game.ServerStorage.Part:Clone() Part.Parent = game.Workspace.PlayerBase.Objects Part.Name = currentdata[data]["Name"] --This is a String Part.Position = currentdata[data]["Position"] --This is a Vector3 Part.Color = currentdata[data]["Color"] --This is a Color3 Part.Material = currentdata[data]["Material"] --This is a Material end end
You also forgot to add the index...
Next question, please add all the scripts related to it, like the data saving one
Good Luck with your games