I spent hours making this Sword Customizer now I just need this save script please some one fix it!!! the end part is what needs to be edited
game.Players.PlayerRemoving:connect(function(p)
if p:findFirstChild("Inventory") then
for i,e in pairs(Inventory:GetChildren()) do
p:SaveInstance("SavedStatPNum"..i,v)
end
end
end)
game.Players.PlayerAdded:connect(function(p)
for k = 1, 2, 0.03 do
wait()
if p:findFirstChild("Inventory") and p.DataReady then break end
end
local Loaded = nil
local inv = game.Players.LocalPlayer.Inventory
if p:findFirstChild("Inventory") and pcall(function() Loaded = p:LoadInstance("SavedStatPNum"..tostring(game.PlaceId)) end) then
for j,v in pairs(Loaded:GetChildren()) do
HERE THIS PART!!!!
end
end
end) |