Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a script that will make my part go visible to not visible?

I'm trying to make a part that will go transparent and then go visible again.. Whats wrong with it?

while true do
	script.Parent.Transparency = 0
	wait(1)
	script.Parent.Transparency = 1
end

6 comments

0

This should work. If you have put the script in the part

0

It is in the part.. But it aint working..

0

nothing's wrong.

0

Errors?

1

Local or server script?

0

while true do wait(1) script.Parent.Transparency = 0 wait(1) script.Parent.Transparency = 1 end

2 answers

I tested your original script and it really did not work so you need to add one more wait

while true do
	wait(1)
	script.Parent.Transparency = 0
	wait(1)
	script.Parent.Transparency = 1
end

and if you want to start with transparency 0 first, then you will have to set the part's transparency to 1 first, or you can use this script below

while true do
	script.Parent.Transparency = 1
	wait(1)
	script.Parent.Transparency = 0
end

The script you should be using should be a server script inside ServerScriptService. Here is the code you should put in

while true do
	wait(1)
	workspace["YourPart"].Transparency = 1
	wait(1)
	workspace["YourPart"].Transparency = 0
end

This discussion is preserved as it was. New answers, comments, and votes are closed.