I am working on a GUI that allows players to enter IDs for shirts and pants. I’m a little stuck on how to go about letting players paste in IDs without having to search for the shirt/pant’s asset id? Here’s what I have so far…
local shirtid = game.Players.LocalPlayer.ClosetHandler.Popups.EvPopup.ShirtInput
function GiveShirtID(plr)
local char = plr.Character
local shirt = char.Shirt
shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=".. shirtid.Text
end
game.ReplicatedStorage.ShirtID.OnServerEvent:Connect(GiveShirtID)
If this were Roblox maybe 4 years ago, I could just subtract 1 off the input. Unfortunately, that just doesn’t work anymore due to how many people upload on Roblox these days.
I tried searching for similar posts to this but I don’t really know how to describe this so if there is already a post about this I apologize