Recently I've been using a method that allows scripts to give T-Shirts to people. But now I've forgotten. Can you help me?
✓ ANSWER ACCEPTED
How do I give a player a T-Shirt?
2 answers
✓ Accepted answer
Try this:
--Put your T-Shirt ID here
local TshirtId = "T-shirt ID goes here"
--Shows the buy T-Shirt GUI
script.Parent.ClickDetector.MouseClick:connect(function(player)
game:GetService("MarketplaceService"):PromptPurchase(player, TshirtId)
end)
this should give your character a T-shirt when they spawn:
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
local TShirt = Instance.new("ShirtGraphic", Character)
end)
end)
1 comment
0
I need something that actually gives it from the store, like making someone buy a t-shirt.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thank you!