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

How do I make an on touch script that will change a players clothing?

How do I make an on touch script that will change a players clothing? Pls help. I do not know how to script.

1 comment

2

incoming this is not a request site

1 answer

Create a regular script inside a brick, Then Copy and paste the following code into that script.

script.Parent.touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("Pants") ~= nil then
		hit.Parent.Pants.PantsTemplate = "Texture ID" -- Set the texture ID here
	end
	if hit.Parent:FindFirstChild("Shirt") ~= nil then
		hit.Parent.Shirt.ShirtTemplate= "Texture ID" -- Set the texture ID here
	end
end)

Also, You shouldn't ask for help like this because this site is for people who need help with scripting, Like bugs or glitches that might ruin your code. If you want to get started scripting the easiest solution would be to watch tutorials on Youtube or any other platform.

1 comment

0

and also dont spoonfeed him code

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