Render a Outfit ID in a Roblox Game?

I want to render a Outfit ID in a Roblox Game. So, is that possible to create in Roblox Studio?

use view port frame…

1 Like

No, I want it to be rendered in a Roblox Game not Roblox Studio.

Hello again!
Do you mean loading a player’s OutfitId onto their character?

If so, you can use GetHumanoidDescriptionFromOutfitId:

local desc = player:GetHumanoidDescriptionFromOutfitId(id)

And then apply the description:

player.Character.Humanoid:ApplyDescription(desc)
1 Like

Oh, hey and yes, I think so. 30 characters

1 Like

Do you know how to do that? 30 Characters Bypass…

I’m not sure what you’re asking.

1 Like

@return_end1 I’m trying to make a Roblox Game where you can render any Roblox outfit’s by having the Outfit’s ID.

Did you get what I’m trying to ask?

I’m trying to make a request to a player whose outfits to render in my roblox game.

So you mean like entering a OutfitId into a TextBox and then applying it to the player’s character?

1 Like

Yes, finally you know what I’m trying to say!!!

So, is that possible??
30 Characters Bypass.

I know how to get the Outfit ID but, what I don’t know is how to create a OutfitId into a TextBox and then applying it to the player’s character as you said.

I’m not certain if an OutfidId which belongs to another user will load, however you can try it.

For the main functionality of the TextBox all you’ll need to do is fire a RemoteEvent on FocusLost with the Text as an argument:

local replStore = game:GetService("ReplicatedStorage")
local textBox = script.Parent

textBox.FocusLost:Connect(function()
     replStore.RemoteEvent:FireServer(textBox.Text)   
end)

Which then you connect on the server an apply it to the character:

local replStore = game:GetService("ReplicatedStorage")

replStore.RemoteEvent.OnServerEvent:Connect(function(player, id)
    local desc = player:GetHumanoidDescriptionFromOutfidId(id)
    player.Character.Humanoid:ApplyDescrition(desc)
end)

Obviously they could enter in something which ain’t an id, for that you’ll need to find ways to check that it’s a correct id - I’ll leave that to you though.

1 Like

This Lua code must be a Script together in ServerScriptService. Also, ReplicatedStorage must contain RemoteEvent. Right?

All Scripts, which belong to the server, should go in preferably ServerScriptService.

Anywhere which isn’t ReplicatedStorage/ServerStorage is a viable option however it’s best to organise them in the service specifically built for holding them.


The top should be a LocalScript as we’re awaiting player input, and that’s always client sided.

The bottom should be a Script as we’re connecting OnServerEvent and getting/applying the HumanoidDescription to replicate to other clients.

1 Like