Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a script that changed transparency of a part? [closed]

Asked by 6 years ago

I am making a script that changed transparency of a part but I dont know where to start.

Closed as Not Constructive by User#1007 and ImageLabel

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
1
Answered by
Rinextel 291 Moderation Voter
6 years ago
Edited 6 years ago

NOTE: This is a website for HELPING not making scripts, next time how anout you try before asking how to do it

game.Workspace.Part.Transparency = (What transparency you want) 
Ad
Log in to vote
2
Answered by
Bisoph 5
6 years ago

In each base part (regular Part, mesh Part, e.t.c.), there is a property called Transparency

For instance, there is a part in the Workspace named "Part"

To make it half-transparent, you will use this line of code:

workspace.Part.Transparency = 0.5

The value for every transparency property is in a percentage (100% = 1; 50% = 0.5) so you'll have to use it that way.