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)
