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 5 years ago

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

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

1 answer

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

Saying "GetChildren()" will return a table.

Ad

Answer this question