Title explains it all. Very bad in scripting beginner here.
✓ ANSWER ACCEPTED
How to make player wear T-Shirt after they touch a block?
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
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Got it working. Thanks!