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

How do you make it so if you touch a block it will give you a T-Shirt?

Sooo yea so when you touch a Part then it will give you a T-Shirt.

2 comments

0

T-Shirt or Shirt?

0

A T-Shirt

1 answer

T-Shirt:

--Put this inside the brick. Also put the T-shirt decal inside the brick
script.Parent.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("HumanoidRootPart") then
		local cloned = script.Parent.Decal:Clone() --Change Decal to the T-Shirt's name
		cloned.Parent = hit.Parent.UpperTorso --Change this to Torso if the game is R6
	end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.