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

Why is my rig not changing appearances?

Asked by 2 years ago
Edited 2 years ago

I am trying to make a textbox that when inputting a players name it will change a dummies appearance. But it doesn't seem to do that.

Here is my code (only included the ones that was part of changing the rigs appearance) It is in a Local Script in StarterGUI.

local userbox = script.Parent.Username -- Text Box
local rig = game.Workspace.Rig -- Dummy
local players = game:GetService("Players") -- Player Service
local id = players:GetUserIdFromNameAsync(userbox.Text) -- ID

local function rigchanger(UserID, Dummy)
    local Appearance = players:GetHumanoidDescriptionFromUserId(UserID)
    Dummy.Humanoid:ApplyDescription(Appearance)
end

userbox:GetPropertyChangedSignal("Text"):Connect(function()
    rigchanger(id, rig)
end)

Answer this question