Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Mannequin tryon script (shirt isnt loading?)

script.Parent.MouseButton1Click:connect(function() local plr = script.Parent.Parent.Parent.Parent local char = plr.Character if char:FindFirstChild("Shirt") ~= nil then char.Shirt.ShirtTemplate = "rbxassetid://"..script.Parent.Parent.ClothingID.Value elseif char:FindFirstChild("Shirt") == nil then local shirt = Instance.new("Shirt",char) shirt.ShirtTemplate = "rbxassetid://"..script.Parent.Parent.ClothingID.Value end end)

no errors and fe enabled

1 answer

script.Parent.MouseButton1Click:connect(function()
	local plr = script.Parent.Parent.Parent.Parent
	local char = plr.Character
	if char:FindFirstChild("Shirt") ~= nil then
		char.Shirt.ShirtTemplate = "rbxassetid://"..script.Parent.Parent.ClothingID.Value
	elseif char:FindFirstChild("Shirt") == nil then
		local shirt = Instance.new("Shirt",char)
		shirt.ShirtTemplate = "rbxassetid://"..script.Parent.Parent.ClothingID.Value
	end
end)


no errors and fe enabled

This discussion is preserved as it was. New answers, comments, and votes are closed.