frame.Load.MouseButton1Down:connect(function()
if ds:getAsync(player.Name.."Race") and ds:getAsync(player.Name.."Race") ~= "" or ds:getAsync(player.Name.."Race") ~= 0 then
frame.New.Active = false
frame.Load.Active = false
local stats=Instance.new("Model")
local beli = Instance.new("NumberValue")
beli.Parent = stats
beli.Name = "Beli"
local bounty = Instance.new("NumberValue")
bounty.Parent = stats
bounty.Name = "Bounty"
local race = Instance.new("StringValue")
race.Name = "Race"
race.Parent = stats
local weapon = Instance.new("NumberValue")
weapon.Name = "WeaponLevel"
weapon.Value=1
weapon.Parent = stats
local job=Instance.new("StringValue")
job.Name="Faction"
job.Parent=stats
job.Value="Pirate"
local df=Instance.new("StringValue")
df.Name="DF"
df.Value=""
df.Parent=stats
stats.Parent = player
for i,v in pairs(stats:getChildren()) do
v.Value=ds:getAsync(player.Name..v.Name)
end
player:LoadCharacter()
else
load.Text = "You have no data!"
wait(2)
load.Text = "Load"
end
end)
When I click "Load" in the frame, it is supposed to get my stats from the Global Data Store but the output says on line 55(which in the sample is line 29), a string is expected. What does that mean?

1 comment
Thank you