How to make parts transparent when touched

would this code go to StarterPlayerScripts? I tried it and it didn’t work.

yes i am a beginner thank you for helping me

1 Like

@Cxdious @Pixelctrl none of the code works when i touch the part nothing happens

1 Like

try changing the first 5 lines to

local Part = game.Workspace.GuessParts

Debounce = false

for i, parts in pairs(Part:GetDescendants()) do

I tested it. It works for me on my end.

Console? I haven’t tested mine yet.

Also no, it doesn’t go there, it goes where the folder is. Trying to put it in starterplayerscripts just tries to get everything in that instance instead of the folder.

Drag it into the parts folder.

Ignore that, just realized it already goes into the workspace instead of parent

Try putting it into serverscriptservice, it probably doesn’t run it in starterplayerscripts.

I think it isn’t parts. I think he’s using models, meshes or something else, our code works. I’ve tested it.

the code works but it changes all of the parts transparent i just want the part that is touched to turn transparent and i wanted it done locally

so that means i would need something to put in StarterPlayerScripts right?

nevermind i fixed it lol i put the solution’s code in StarterPlayerScripts

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.