I am trying to make a part change color if player touches it, but it won't work. I am new scripter so can someone describe me about how will this script work?
part.Tocuehd:connect(function(hit)
humanoid=hit.Parent:FindFirstChild("Humanoid")
if humanoid ~=nil then
game.Workspace.carpet.BrickColor=BrickColor.Color3.new(117,0,0)
end
end)

3 comments
1.In your first line part is unknown the script cant know what does the part mean, so use script.Parent.Touched:connect(function(hit)
also you spelt Touched wrong
2.Also you wrote the Touched event wrong (you wrote"Tocuehd",your must write"Touched").The script is very sensetive your script should be very clear so the script can read it.