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

Why doesn't a simple part.Visible=false not work?

Asked by 6 years ago

part = script.parent part.Visible=false is there something i am missing out?

0
part.Transparency = 0 iddash 45 — 6y
0
0 is completly visible while 1 is invisible iddash 45 — 6y
0
ik i got mixed up GIassWindows 141 — 6y

3 answers

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Visible isn't a property.

Try:

part = script.Parent
part.Transparency = 0
0
u should have just commented wth iddash 45 — 6y
0
well this is an answer. not a comment is it? GIassWindows 141 — 6y
0
shows ur doing it for the reputation i guess? iddash 45 — 6y
0
jk jk that is kinda rude iddash 45 — 6y
View all comments (2 more)
0
no point answering if its smth really simple iddash 45 — 6y
0
Ohh okay, well there is a checkbox in the properties that is names ''Visible''. I thought everything in the properties can be changed through script. DzoJung 2 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

I read your comment, there is no check box for a parts visibility, you were probably looking at a GUI but in this case, you can use transparency.

local part = script.Parent
while wait() do
part.Transparency = 0
wait(1)
part.Transparency = 1
end
Log in to vote
0
Answered by 6 years ago

Part.Visible is not a valid property so use Transparency instead.

Answer this question