It says "attempt to index nil with ‘ShirtTemplate’"
Id is a IntValue with the shirt Id (Yes, I made sure the Id is correct)
Thanks for any help! LOCAL SCRIPT
local Event = game.ReplicatedStorage.RemoteEvents.AvatarSystem.WearShirt
script.Parent.MouseButton1Click:Connect(function()
Event:FireServer(script.Parent.Id.Value)
end)
SERVER SCRIPT
local Event = game.ReplicatedStorage.RemoteEvents.AvatarSystem.WearShirt
Event.OnServerEvent:Connect(function(player,Value)
player:FindFirstChild("Shirt").ShirtTemplate = "rbxassetid://" ..Value
end)
If you’ve tried the other post’s solutions and it still did not work, make sure that the shirt id is actually a template. On the roblox main page go to “Create” at the top of your screen then “Library” then click on any model. At the url link at the top of the page, you’ll see a spot with numbers. Replace that with your asset id and make sure the shirt is a template.