Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I give a player a T-Shirt?

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?

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)

1 comment

0

Thank you!

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.