{"id":819,"date":"2025-03-19T06:46:13","date_gmt":"2025-03-19T10:46:13","guid":{"rendered":"https:\/\/kushaltimsina.com\/blog\/?p=819"},"modified":"2025-03-19T06:46:13","modified_gmt":"2025-03-19T10:46:13","slug":"how-to-make-a-part-change-color-when-touched-in-roblox","status":"publish","type":"post","link":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/","title":{"rendered":"How to Make a Part Change Color When Touched in Roblox"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"728\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102-1024x728.png\" alt=\"\" class=\"wp-image-837\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102-1024x728.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102-300x213.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102-768x546.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102.png 1438w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Making a Part change color when touched in Roblox is actually very simple, believe it or not. In this article, you&#8217;ll learn exactly how to make a Part change its color when it&#8217;s touched in Roblox.<\/p>\n\n\n\n<p>Now, to do so, you&#8217;ll need to use a Script, as scripts allow you to tell Roblox to do stuff.  <\/p>\n\n\n\n<p>If you&#8217;ve never heard of a script before, please <a href=\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/13\/what-is-roblox-lua-the-easiest-way-to-understand-it\/\">check this article on Roblox Lua<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Make a Part Change Color When Touched in Roblox<\/strong><\/h2>\n\n\n\n<p>Start by <a href=\"https:\/\/kushaltimsina.com\/blog\/2025\/02\/05\/how-to-download-roblox-studio\/\">downloading Roblox Studio<\/a> and making sure that you can view the <a href=\"https:\/\/kushaltimsina.com\/blog\/2025\/02\/28\/what-is-the-explorer-window-in-roblox-studio\/\">Explorer<\/a> and <a href=\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/03\/what-is-the-properties-window-in-roblox-studio\/\">Properties<\/a> windows.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Create a Part<\/strong><\/h3>\n\n\n\n<p>The first thing we&#8217;ll have to do is create a Part in Roblox.<\/p>\n\n\n\n<p>If you&#8217;re using the Baseplate template, you should be seeing a screen that&#8217;s similar to this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"589\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/02\/image-81-1024x589.png\" alt=\"Baseplate in Roblox Studio\" class=\"wp-image-580\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/02\/image-81-1024x589.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/02\/image-81-300x172.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/02\/image-81-768x441.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/02\/image-81-1536x883.png 1536w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/02\/image-81-2048x1177.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now, I&#8217;m going to remove the SpawnLocation (the small light gray block with a swirly design). <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"286\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-92.png\" alt=\"\" class=\"wp-image-821\" style=\"width:300px\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-92.png 576w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-92-300x149.png 300w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/figure>\n\n\n\n<p>You can do so by clicking on it on the Explorer and clicking the delete key on your keyboard.<\/p>\n\n\n\n<p>Boom! It&#8217;s gone.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"511\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-93-1024x511.png\" alt=\"\" class=\"wp-image-822\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-93-1024x511.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-93-300x150.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-93-768x383.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-93-1536x766.png 1536w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-93-2048x1021.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now, we have to add a Part. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"523\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-94-1024x523.png\" alt=\"\" class=\"wp-image-823\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-94-1024x523.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-94-300x153.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-94-768x392.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-94-1536x784.png 1536w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-94-2048x1046.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>To do so, you can click on the Home tab on the top of Roblox Studio and click on the Part button to add a new Part.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"503\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-95-1024x503.png\" alt=\"A new Part has been added into Roblox Studio.\" class=\"wp-image-824\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-95-1024x503.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-95-300x147.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-95-768x377.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-95-1536x755.png 1536w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-95-2048x1006.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">A new Part has been added into Roblox Studio.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Define the Part<\/strong><\/h3>\n\n\n\n<p>Now, we need to tell Roblox:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&#8220;I want <strong>this Part<\/strong> to change its color when it&#8217;s touched by something.&#8221;<\/p>\n<\/blockquote>\n\n\n\n<p>The first part of that is &#8220;I want this Part.&#8221;<\/p>\n\n\n\n<p>We need to tell Roblox what &#8220;this part&#8221; is referring to.<\/p>\n\n\n\n<p>Start by adding a new Script inside of the Part.<\/p>\n\n\n\n<p>Click on the plus button next to the Part in the Explorer and look for the word &#8220;Script&#8221; and add it in.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"498\" height=\"270\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-97.png\" alt=\"\" class=\"wp-image-826\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-97.png 498w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-97-300x163.png 300w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/><\/figure>\n\n\n\n<p>Now, you should be greeted with a script that says:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"189\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-98-1024x189.png\" alt=\"\" class=\"wp-image-827\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-98-1024x189.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-98-300x55.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-98-768x142.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-98.png 1106w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This is a line of code that Roblox scripts have by default. <\/p>\n\n\n\n<p>We won&#8217;t need it for this tutorial, so you can delete it. <\/p>\n\n\n\n<p>If you are interested in learning more about that line of code, check out this article on <a href=\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/12\/how-to-start-scripting-in-roblox-as-a-complete-beginner\/\">how to start scripting on Roblox as a complete beginner<\/a>.<\/p>\n\n\n\n<p>Now, back to our main idea, we need to tell Roblox:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&#8220;I want <strong>this Part<\/strong> to change its color when it&#8217;s touched by something.&#8221;<\/p>\n<\/blockquote>\n\n\n\n<p>We need to tell the Script exactly what <strong>this Part<\/strong> is referring to. <\/p>\n\n\n\n<p>It&#8217;s actually pretty easy!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"422\" height=\"288\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-99.png\" alt=\"\" class=\"wp-image-828\" style=\"width:300px\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-99.png 422w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-99-300x205.png 300w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/figure>\n\n\n\n<p>Remember how we inserted the Script inside of the Part itself?<\/p>\n\n\n\n<p>Because of this fact..<\/p>\n\n\n\n<p>In scripting, the Part is called the <strong>Parent<\/strong> of the script, and the Script is considered to be the <strong>child<\/strong> of the Part.<\/p>\n\n\n\n<p>If you&#8217;d like to learn more about parents and children in the context of scripts, and you want to learn Roblox scripting itself from the beginning, <a href=\"http:\/\/kushaltimsina.com\/book\">check out this book, the Beginner&#8217;s Guide to Roblox Scripting<\/a>, which explains everything in this article, and loads more in an easy to understand way<\/p>\n\n\n\n<p>So, since the Part is the Parent of the script, that&#8217;s the first thing we have to tell Roblox.<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:lua decode:true \" >local part = script.Parent<\/pre><\/div>\n\n\n\n<p>The <code>local myPart =<\/code> means &#8220;Let myPart be equal to&#8221; and &#8220;script.Parent&#8221; means the actual Part itself, which is the Parent of the script.<\/p>\n\n\n\n<p>In other words, from now on in our script, <code>myPart<\/code> is referring to the Part we added to Workspace.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"394\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-100.png\" alt=\"myPart in our script is now referring to the Part we added into Workspace.\" class=\"wp-image-830\" style=\"width:400px\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-100.png 788w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-100-300x150.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-100-768x384.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><figcaption class=\"wp-element-caption\">myPart is now referring to the Part we added into Workspace<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Add the Touched Event<\/strong><\/h3>\n\n\n\n<p>Now, we&#8217;re going to tell Roblox to detect when something touches it.<\/p>\n\n\n\n<p>We have to do the touched event before the color change because we only want the Part to change its color after it&#8217;s been touched by something.<\/p>\n\n\n\n<p>So, we&#8217;re going to now handle the <strong>touched by something<\/strong> part.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&#8220;I want this Part to change its color when it&#8217;s <strong>touched by something.<\/strong>&#8220;<\/p>\n<\/blockquote>\n\n\n\n<p>To do this, we can use a Touched Event.<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:lua decode:true \" >local myPart = script.Parent\n\nmyPart.Touched:Connect(function(thingThatTouchedIt)\n\t\nend)<\/pre><\/div>\n\n\n\n<p>This code basically says &#8220;When myPart gets Touched, connect it into a function, where <code>thingThatTouchedIt<\/code> is going to refer to whatever object touches it.&#8221;<\/p>\n\n\n\n<p>If you want to learn more about the Touched event, and events in particular, the <a href=\"http:\/\/kushaltimsina.com\/book\">Beginner&#8217;s Guide to Roblox Scripting book<\/a> explains them in full detail.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Change the Part&#8217;s BrickColor<\/strong><\/h3>\n\n\n\n<p>Now, we have to change the Part&#8217;s <a href=\"https:\/\/create.roblox.com\/docs\/reference\/engine\/datatypes\/BrickColor\">BrickColor<\/a>.<\/p>\n\n\n\n<p>In other words, we&#8217;re now handling this part:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&#8220;I want this Part to <strong>change its color<\/strong> when it&#8217;s touched by something.&#8221;<\/p>\n<\/blockquote>\n\n\n\n<p>For this tutorial, let&#8217;s make the Part change its color to a random color.<\/p>\n\n\n\n<p>We can do this by changing its <code>BrickColor<\/code> to <code>BrickColor.Random()<\/code>.<\/p>\n\n\n\n<p>If you are unfamiliar with properties and using scripts to change the BrickColor, please view this free video I created for you:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"This video will find you when you&#039;re ready to learn scripting.\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/OhkS2odKSOY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>At this point, our script looks like this.<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:lua decode:true \" >local myPart = script.Parent\n\nmyPart.Touched:Connect(function(thingThatTouchedIt)\n\tmyPart.BrickColor = BrickColor.Random()\nend)<\/pre><\/div>\n\n\n\n<p>And we&#8217;re done!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Test Your Game Out<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"275\" src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-101-1024x275.png\" alt=\"\" class=\"wp-image-835\" srcset=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-101-1024x275.png 1024w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-101-300x80.png 300w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-101-768x206.png 768w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-101-1536x412.png 1536w, https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-101.png 1902w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>At this point, you can test your game out by clicking on the blue play button at the top.<\/p>\n\n\n\n<p>And, when you touch the Part, it&#8217;ll be a different color:<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls loop muted src=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/2025-03-19-06-33-49.mov\"><\/video><figcaption class=\"wp-element-caption\">When you touch the part, it will now change its color!<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Where to Learn More Roblox Scripting?<\/strong><\/h2>\n\n\n\n<p>Great job following through with the tutorial!<\/p>\n\n\n\n<p>You can learn more scripting through articles like this one at my blog, <a href=\"http:\/\/kushaltimsina.com\/blog\">which you can find here at kushaltimsina.com\/blog<\/a>.<\/p>\n\n\n\n<p>If you want to learn Roblox scripting from the ground up, <a href=\"http:\/\/kushaltimsina.com\/book\">the best place would be with the Beginner&#8217;s Guide to Roblox Scripting<\/a>.<\/p>\n\n\n\n<p>And if you&#8217;re looking for personalized help, where you can hop on a 1-1 call with me, where I&#8217;ll answer all your questions, you can <a href=\"http:\/\/kushaltimsina.com\/coaching\">check out my coaching page<\/a>.<\/p>\n\n\n\n<p>Thanks for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Making a Part change color when touched in Roblox is actually very simple, believe it or not. In this article, you&#8217;ll learn exactly how to make a Part change its color when it&#8217;s touched in Roblox. Now, to do so, you&#8217;ll need to use a Script, as scripts allow you to tell Roblox to do [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":837,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[14],"class_list":["post-819","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-roblox-scripting-tutorials","tag-roblox-scripting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Make a Part Change Color When Touched in Roblox - Kushal Writes<\/title>\n<meta name=\"description\" content=\"Making a Part change its color when touched is super easy and fun! In this article, I&#039;ll teach you how you can do that on Roblox.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Make a Part Change Color When Touched in Roblox - Kushal Writes\" \/>\n<meta property=\"og:description\" content=\"Making a Part change its color when touched is super easy and fun! In this article, I&#039;ll teach you how you can do that on Roblox.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/\" \/>\n<meta property=\"og:site_name\" content=\"Kushal Writes\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-19T10:46:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1438\" \/>\n\t<meta property=\"og:image:height\" content=\"1022\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"kushal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kushal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/\"},\"author\":{\"name\":\"kushal\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f\"},\"headline\":\"How to Make a Part Change Color When Touched in Roblox\",\"datePublished\":\"2025-03-19T10:46:13+00:00\",\"dateModified\":\"2025-03-19T10:46:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/\"},\"wordCount\":952,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f\"},\"image\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102.png\",\"keywords\":[\"roblox scripting\"],\"articleSection\":[\"Roblox Scripting Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/\",\"url\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/\",\"name\":\"How to Make a Part Change Color When Touched in Roblox - Kushal Writes\",\"isPartOf\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102.png\",\"datePublished\":\"2025-03-19T10:46:13+00:00\",\"dateModified\":\"2025-03-19T10:46:13+00:00\",\"description\":\"Making a Part change its color when touched is super easy and fun! In this article, I'll teach you how you can do that on Roblox.\",\"breadcrumb\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#primaryimage\",\"url\":\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102.png\",\"contentUrl\":\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102.png\",\"width\":1438,\"height\":1022},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kushaltimsina.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Make a Part Change Color When Touched in Roblox\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#website\",\"url\":\"https:\/\/kushaltimsina.com\/blog\/\",\"name\":\"Kushal Timsina\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kushaltimsina.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f\",\"name\":\"kushal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2024\/11\/tempImage75F1Sw-edited.jpg\",\"contentUrl\":\"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2024\/11\/tempImage75F1Sw-edited.jpg\",\"width\":1274,\"height\":849,\"caption\":\"kushal\"},\"logo\":{\"@id\":\"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kushal Timsina has been developing Roblox games since 2016, played 40,000,000+ times, teaches Roblox scripting on YouTube to 1,000,000+ views, and is the author of the Beginner's Guide to Roblox Scripting book.\",\"sameAs\":[\"https:\/\/kushaltimsina.com\/blog\"],\"url\":\"https:\/\/kushaltimsina.com\/blog\/author\/kushal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Make a Part Change Color When Touched in Roblox - Kushal Writes","description":"Making a Part change its color when touched is super easy and fun! In this article, I'll teach you how you can do that on Roblox.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/","og_locale":"en_US","og_type":"article","og_title":"How to Make a Part Change Color When Touched in Roblox - Kushal Writes","og_description":"Making a Part change its color when touched is super easy and fun! In this article, I'll teach you how you can do that on Roblox.","og_url":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/","og_site_name":"Kushal Writes","article_published_time":"2025-03-19T10:46:13+00:00","og_image":[{"width":1438,"height":1022,"url":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102.png","type":"image\/png"}],"author":"kushal","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kushal","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#article","isPartOf":{"@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/"},"author":{"name":"kushal","@id":"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f"},"headline":"How to Make a Part Change Color When Touched in Roblox","datePublished":"2025-03-19T10:46:13+00:00","dateModified":"2025-03-19T10:46:13+00:00","mainEntityOfPage":{"@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/"},"wordCount":952,"commentCount":0,"publisher":{"@id":"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f"},"image":{"@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#primaryimage"},"thumbnailUrl":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102.png","keywords":["roblox scripting"],"articleSection":["Roblox Scripting Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/","url":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/","name":"How to Make a Part Change Color When Touched in Roblox - Kushal Writes","isPartOf":{"@id":"https:\/\/kushaltimsina.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#primaryimage"},"image":{"@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#primaryimage"},"thumbnailUrl":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102.png","datePublished":"2025-03-19T10:46:13+00:00","dateModified":"2025-03-19T10:46:13+00:00","description":"Making a Part change its color when touched is super easy and fun! In this article, I'll teach you how you can do that on Roblox.","breadcrumb":{"@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#primaryimage","url":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102.png","contentUrl":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2025\/03\/image-102.png","width":1438,"height":1022},{"@type":"BreadcrumbList","@id":"https:\/\/kushaltimsina.com\/blog\/2025\/03\/19\/how-to-make-a-part-change-color-when-touched-in-roblox\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kushaltimsina.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Make a Part Change Color When Touched in Roblox"}]},{"@type":"WebSite","@id":"https:\/\/kushaltimsina.com\/blog\/#website","url":"https:\/\/kushaltimsina.com\/blog\/","name":"Kushal Timsina","description":"","publisher":{"@id":"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kushaltimsina.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/9ae64ce30587c804d89b1eef21ba5d2f","name":"kushal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2024\/11\/tempImage75F1Sw-edited.jpg","contentUrl":"https:\/\/kushaltimsina.com\/blog\/wp-content\/uploads\/2024\/11\/tempImage75F1Sw-edited.jpg","width":1274,"height":849,"caption":"kushal"},"logo":{"@id":"https:\/\/kushaltimsina.com\/blog\/#\/schema\/person\/image\/"},"description":"Kushal Timsina has been developing Roblox games since 2016, played 40,000,000+ times, teaches Roblox scripting on YouTube to 1,000,000+ views, and is the author of the Beginner's Guide to Roblox Scripting book.","sameAs":["https:\/\/kushaltimsina.com\/blog"],"url":"https:\/\/kushaltimsina.com\/blog\/author\/kushal\/"}]}},"_links":{"self":[{"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/posts\/819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/comments?post=819"}],"version-history":[{"count":6,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/posts\/819\/revisions"}],"predecessor-version":[{"id":838,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/posts\/819\/revisions\/838"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/media\/837"}],"wp:attachment":[{"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/media?parent=819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/categories?post=819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kushaltimsina.com\/blog\/wp-json\/wp\/v2\/tags?post=819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}