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

Question to long read desc?

i couldn't fit my qustion to long)

Why does the part change color when another part touches it i specified Humanoid can someone explain why it dosn't work?

script.Parent.Touched:Connect(function() script.Parent:FindFirstChild("Humanoid") script.Parent.BrickColor = BrickColor.new("Baby blue") end)

5 comments

0

can you put it into code format

0

dont fred I solved it i hope sure

0

Oh thanks

0

were u trying to put the entire question in the title :thonk:

2 answers

✓ Accepted answer

ur code wrong is wrong code Freddan I will use the limited information u give me to construct try and build code Freddan:

script.Parent.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") then
		script.Parent.BrickColor = BrickColor.new("Baby blue")
	end
end)

4 comments

0

thats why i asked for formatting

0

You didn't need to make this answer, tony already answered his question in a comment, plus while his code now works, but you have not explained what he did wrong or give any other useful information.

0

yee

0

dont feel offended sometimes u just want cheap rep

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