Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My clothing not able to become an asset?

Asked by 6 years ago
Edited 6 years ago

Hi I got a Group clothing giver from my friend but my clothes will not become assets!

main = {
    id=3603531,
    ranks = {
    [0] = {425223476,425028637},  --Teamed Guest
    [1] = {1225267773,1225178150},  --Enlist
    [2] = {1225267773,1225178150}, --Private
    [3] = {1225267773,1225271910}, --Corpral
    [4] = {1228718312,471554449},  --Sergeant
    [5] = {1228718312,471554870},  --First Sergeant
    [6] = {51228718312,586623064}, --Quarter Master Sergeant 
    [7] = {1228718312,586623623},  --Sergeant-Major
    [8] = {1228718312,586623623},  --2nd Lt
    [9] = {471554129,471554981},   --1st Lt
    [10] = {471554129,471554981},  --Captain
    [11] = {471554129,471554981}, --Major
    [12] = {519364333,471554981}, --Lt Col
    [13] = {519370914,519370767}, --Col
    [14] = {519370914,519370767}, --Genreal
    [255] = {1225267773,397864779}, --Genreal Of the Army
    }
}

setup = {
[3203434] = {
    check = 3603531,
    [2] = {409835582,409835004},
    [3] = {409835582,409835004},
    [4] = {409835582,409835047},
    [5] = {409835582,409835097},
    [6] = {409835582,409835159},
    [7] = {409835624,409835228},
    [8] = {409835624,409835275},
    [9] = {409835624,409835389},
    [10] = {409835624,409835450},
    [11] = {409835624,409835511},
    [12] = {409835624,409835549},
    [13] = {409835624,409835549},
    [14] = {409835624,409835549},
},
[3208004] = {
    check = 3603531,
    [2] = {423403799,423403079},
    [3] = {423403799,423403079},
    [4] = {423403799,423403117},
    [5] = {423403922,423403261},
    [6] = {423403984,423403298},
    [7] = {423419559,423403489},
    [8] = {423419559,423403489},
    [9] = {423419559,423403528},
    [10] = {423419559,423403612},
    [11] = {423419559,423403676},
    [12] = {423419559,423403699}
},
[3061671] = {
    check = 3603531,
    [2] = {513740141,513740439},
    [3] = {513740141,513740439},
    [4] = {513740141,513740706},
    [5] = {513740141,513740706},
    [6] = {513740141,513740706},
    [7] = {513740141,513740934},
    [8] = {513740141,513741100},
    [9] = {513740141,513741252},
    [10] = {513740141,513741511},
    [11] = {513740141,513741622},
    [12] = {513740141,513741692}
},
[3210870] = {
    check = 3603531,
    [2] = {417786466,417784914},
    [3] = {417786466,417784914},
    [4] = {417786466,417785165},
    [5] = {417786466,417785338},
    [6] = {417786466,417785445},
    [7] = {417786567,417785562},
    [8] = {417786567,417785827},
    [9] = {417786567,417785947},
    [10] = {417786567,417786078},
    [11] = {417786567,417786177},
    [12] = {417786567,417786334}
},
[3054442] = {
    check = 3603531,
    [2] = {423388472,423387966},
    [3] = {423388472,423387966},
    [4] = {423388472,423388007},
    [5] = {423388568,423388056},
    [6] = {423388590,423388113},
    [7] = {423388617,423388177},
    [8] = {423388617,423388177},
    [9] = {423388617,423388233},
    [10] = {423388617,423388290},
    [11] = {423388617,423388332},
    [12] = {423388617,423388399},
    [13] = {423388617,423388399},
},
[3217033] = {
    check = 3603531,
    [2] = {1130993948,1130997207},
    [3] = {1130993948,1130997207},
    [4] = {1130993948,1130998159},
    [5] = {1130993948,1130999035},
    [6] = {1130993948,1130999845},
    [7] = {1130993948,1131000693},
    [8] = {1130993948,1131000693},
    [9] = {1130993948,1131002777},
    [10] = {1130993948,1131003515},
    [11] = {1130993948,1131004295},
    [12] = {1130993948,1131004295},
},
[3452911] = {
    check = 3603531,
    [2] = {1021309112,1021312370},
    [3] = {1021309112,1021312370},
    [4] = {1021309112,1021315793},
    [5] = {1021309112,1021316678},
    [6] = {1021320291,1021321435},
    [7] = {1021320291,1021323143},
    [8] = {1021320291,1021323143},
    [9] = {1021325174,1021326042},
    [10] = {1021325174,1021327017},
    [121] = {1021325174,1021327952},
    [122] = {1021329022,1021327952},
}
}

function give(char,pants,shirt)
ypcall(function()
repeat wait() until char:FindFirstChild("Torso") and char:FindFirstChild("Humanoid")
wait(2)
for _,v in pairs(char:children()) do if v:IsA("Shirt") or v:IsA("Pants") then v:destroy() end end
local p = Instance.new("Pants",char)
local s = Instance.new("Shirt",char)
p.PantsTemplate = "http://www.roblox.com/asset/?id="..pants-1
s.ShirtTemplate = "http://www.roblox.com/asset/?id="..shirt-1
for _,v in pairs(char:children()) do if v:IsA("CharacterMesh") then v:Destroy() end end
end)
end

game.Players.PlayerAdded:connect(function(np)
np.CharacterAdded:connect(function(nc)
if np.TeamColor == game.Teams["CSA"].TeamColor and np.Name ~= {"OurCulture",} then
------------------
if np:GetRankInGroup(497586) < 0 then
give(nc,431059060,431058963)
end

for i,v in pairs(main.ranks) do
if np:GetRankInGroup(main.id) == i then
give(nc,v[1],v[2])
end
end

------------------
for MemGroupID,Table in pairs(setup) do
if np:IsInGroup(MemGroupID) then
for i,v in pairs(Table) do
if i ~= "check" then
if np:GetRankInGroup(Table.check) == i then
give(nc,v[1],v[2])
end
end
end
end
end
end
end)
end)

I know the script works with other shirts that actually can become assets just not mine any tips?

0
Check them / Repost them / Wait atleast 24 hours for the shirt and pants to configer? matthew2017_2019 -5 — 6y

Answer this question