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

How do i add part properties to tables?

Asked by 6 years ago

It doesn't work when I do this

coding = {}
for i,v in pairs(workspace.LOL["Left Leg"]:GetChildren())do
    table.insert(coding,"local weld"..i.." = Instance.new(\"Weld\",game.Players.LocalPlayer.Character)")
    table.insert(coding,"weld"..i..".Part0 = game.Players.LocalPlayer.Character[\"Left Leg\"]")
    table.insert(coding,"weld"..i..".Part1 = game.Players.LocalPlayer.Character[\""..v.Part1.."\"]")
    table.insert(coding,"weld"..i..".C0 = "..v.C0)
    table.insert(coding,"weld"..i..".C1 = "..v.C1)
end
print(table.concat(coding," "))

I tried different ways but it still didn't work. Is roblox dying because we're too smart?

Answer this question