local hs = game:GetService("HttpService")
while wait(2) do --1
local pteam = player.Team
local furns = workspace[tostring(pteam)]:GetChildren()
-- 2
local array = {}
local encode
for i,v in pairs(furns) do
if v.ClassName == "Model" then
local pp = v:FindFirstChild("PrimaryPart")
array[i] = {v.Name,pp.Position.X,pp.Position.Y,pp.Position.Z,1}
end
end
local encode = hs:JSONEncode(array)
print(encode)
end
After I turn on the code, I get an error: Cannot convert mixed or non-array tables: keys must be strings . Whats wrong?
