Change the Avatars Shirt.ShirtTemplate?
Asked by
3 years ago Edited 3 years ago
So I am trying to make it so a player can enter an ID for a clothing/ shirt and then that will get put on an avatar// dummy r15
I get no errors but It wont change the apperance of the shirt
Local Script
1 | local RepS = game:GetService( "ReplicatedStorage" ) |
3 | local TextBox = script.Parent.TextBox |
4 | local TextButton = script.Parent.TextButton |
6 | TextButton.MouseButton 1 Click:Connect( function () |
8 | RepS.SendOverId:FireServer(TextBox.Text) |
Server Script
1 | local RepS = game:GetService( "ReplicatedStorage" ) |
3 | local Shirt = script.Parent.Shirt |
5 | RepS.SendOverId.OnServerEvent:Connect( function (player, id) |
7 | Shirt.ShirtTemplate = id |
https://ibb.co/SBnGrWD
it will change the id but not add rbxasset or sum