so i’m trying to make a RP game about zombies and i want to be able to change the morphs’ and the players’ torso into female one by clicking on a part through a prompt like in be dead forever simulator but i’m new to coding and has zero idea on how to do this, the AI assistant doesn’t really help either.
In HumanoidDescription.BodyParts and Find Torso and change it’s id to female torso or torso (this doesn’t need id, you can set 0 and it will be in default torso) by ID-assest.
Hey! If you want to change the player’s torso (or morph) when clicking a part, one of the easiest ways is by using a ProximityPrompt (or a ClickDetector).
When the player interacts with the part, you can either apply a new HumanoidDescription (for catalog assets) or replace the torso with a custom model.
Here’s a simple example using HumanoidDescription with a ProximityPrompt:
local part = script.Parent
local ProximityPrompt = part:WaitForChild("ProximityPrompt")
ProximityPrompt.Triggered:Connect(function(player)
local character = player.Character
if character then
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
local description = humanoid:GetAppliedDescription()
description.Torso = 123456789
humanoid:ApplyDescription(description)
end
end
end)