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
local RepS = game:GetService("ReplicatedStorage") local TextBox = script.Parent.TextBox local TextButton = script.Parent.TextButton TextButton.MouseButton1Click:Connect(function() RepS.SendOverId:FireServer(TextBox.Text) -- this will send over the id the person typed in the textbox end)
Server Script
local RepS = game:GetService("ReplicatedStorage") local Shirt = script.Parent.Shirt RepS.SendOverId.OnServerEvent:Connect(function(player, id) Shirt.ShirtTemplate = id -- sets the shirt id to the id that the player entered in the local script. end)
https://ibb.co/SBnGrWD it will change the id but not add rbxasset or sum
for server script:
shirt.ShirtTemplate = " local RepS = game:GetService("ReplicatedStorage") local Shirt = script.Parent.Shirt RepS.SendOverId.OnServerEvent:Connect(function(player, id) Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=".. id end)