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

How to make player wear T-Shirt after they touch a block?

Title explains it all. Very bad in scripting beginner here.

1 answer

✓ Accepted answer

script won't work. gives an example of how you could do it.

touched:Connect(function(hit) -- not completed. do touch function
	if hit.Parent:FindFirstChild'Humanoid' then -- checks to see if player
		local character = hit.Parent
		if character:FindFirstChild'Shirt' then -- if they find a shirt in the player 
			character.Shirt.Id = 000000 -- dont know exact name, think its ShirtId or PantsId. i just left as Id, you can find yourself.
		else -- no shirt in player
			local newShirt = Instance.new('Shirt', character) -- makes shirt cos ther no shirt to change
			newShirt.Id = 0000000 -- again idk what id is or your shirtId that you want
		-- finish script with ends

1 comment

0

Got it working. Thanks!

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