Is there any way to make a part transparent then became visible, and repeat forever?

Hey I’m making this object do the thing as mentioned in the title

Here’s my script:

local invisibility = script.Parent

while wait() do
if invisibility.Transparency == 0 then
for i = 0,100 do
wait(0.01)
invisibility.Transparency = invisibility.Transparency + .01
wait()
if invisibility.Transparency == 1 then
invisibility.Transparency = invisibility.Transparency + .01
end
end
end
end

The thing is I’m not experienced, and while wait() do is not the correct use
as it, in this case, the script will be struggling with itself hahaha…

I’m pretty sure I need tween service with this, and if yes, may I get a hand?

I don’t know the process, and I’m requesting posts every time to try understand the scripting :frowning:

dont post screenshots of code/errors. Copy and paste.

1 Like

Nevermind I fixed it xd smhhhhhh