Try on feature not working/characters not having clothes

Hey there,

I am making a try on gui for a clothing store.

When a player trys on a piece of clothing in the gui, it fires a remote event to change the players clothing. However, it makes that clothing blank. I have tried everything to fix this.

EventFolder.TryOn.OnServerEvent:Connect(function(Player, ShirtId)
	Player.Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="..ShirtId
end)
1 Like

Perhaps try

Player.Character.Shirt.ShirtTemplate = "rbxassetid://"..ShirtId

And if that doesn’t work either, may I see the script that fires the RemoteEvent

2 Likes
		EventFolder:WaitForChild("TryOn"):FireServer(MainClothingFrame:WaitForChild("Purchasing"):WaitForChild("Buy").ClothingId.Value)

Here you go

I may need to see the full script to see what may be going on, what happens if you print MainClothingFrame:WaitForChild("Purchasing"):WaitForChild("Buy").ClothingId.Value?

It prints the right value when I print it. And it changed the shirt value, but it doesnt show the shirt

Hmm, I think it well may be an issue with how the url you gave, maybe try the change I had suggested in my first post?

Already tried that. I have no idea why it isnt working.

Maybe try putting the result of MainClothingFrame:WaitForChild("Purchasing"):WaitForChild("Buy").ClothingId.Value in a variable and firing that into the remoteevent?

If that doesn’t work either, may I see the full client sided code?

I dont really feel comfertable putting it out there, can u add me on discord? drew#3779

If not I can just add it here

I have sent a friend request, accept it whenever you’re able to

What is your username? I have a couple pending requests

You can tell it’s me because on Discord I go by Embat as well

1 Like

Issue has been resolved, @TotallyDrew was using the id you see when looking at the shirt on the catalog/asset id, not the ShirtTemplate Id. It was fixed by using the Id given by the ShirtTemplate when putting it on a character instead of the Id given in the catalog

If you have anymore issues Drew don’t be afraid to make another post!

1 Like