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

How to replace a torso with a model?

Asked by 4 years ago

I'm getting the error, "object expected got table"

contestants = (game.Players:GetPlayers())
beast = contestants[math.random(1,#contestants)]
local newtorso = game.Workspace.newtorso
    local torso = beast:GetChildren("UpperTorso")
    newtorso.Parent = torso
end
0
should be beast["UpperTorso"] royaltoe 5144 — 4y
0
and i dont think you can replace, but you can look into welding parts/models to the player? royaltoe 5144 — 4y

1 answer

Log in to vote
0
Answered by
niroqeo 123
4 years ago

Saying "GetChildren()" will return a table.

Ad

Answer this question