Cant put a shirt on a dummy trought a script

  1. What do you want to achieve?
    I want to make when is given an Id of a shirt we can put it on a dummy and the dummy weares it.

  2. What is the issue?
    When I run the code, it appears on the shirt object but it when I look to the dummy he is not wearing it.

http://www.roblox.com/asset/?id=ShirtId
  1. What solutions have you tried so far?
    I tried almost everything, since module scripts to script but I cant find any solution.

here is the script:

	local Shirt = Instance.new("Shirt")
	Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="..tostring(dummy.ItemID.Value)
	Shirt.Parent = dummy.Statue

The Id is right, I have checked many times and the Statue is the name of the dummy and the dummy is a model that groups the dummy and others parts.

1 Like

you dont need to use tostring for this

also try using :FindFirstChild in some places

1 Like

I already solved it, I used InsertService

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.