I want to make a disguise system where if you click something, your shirt id is replaced with the one in the script therefore disguising you. Please could someone provide a script that does that?
When the NPC is dead, they will be ragdolled and you can click the upper torso. What should happen is your character's shirt id will be replaced by the NPC's shirt id (and pants) therefore disguising you. I will also add a line that disables the trespassing value (this is located in Player scripts).
I've had a go by using this code:
local humanoid = --I have no idea how to get character from click detector
function Click()
--"http://www.roblox.com/asset/?id=1972067" Shirt
--"http://www.roblox.com/asset/?id=1960214" Pants
local description = humanoid:GetAppliedDescription()
description.Shirt = "http://www.roblox.com/asset/?id=1972067"
humanoid:ApplyDescription(description)
end
script.Parent.ClickDetector.MouseClick:Connect(Click)
Any help is appreciated.

1 comment
I updated my post