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
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
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.
6 comments
This should work. If you have put the script in the part
It is in the part.. But it aint working..
nothing's wrong.
Errors?
Local or server script?
while true do wait(1) script.Parent.Transparency = 0 wait(1) script.Parent.Transparency = 1 end