I know there's a simpler way to do this, but I don't know what to search to get an answer. Here's my script:
local base = game.Workspace.Part while true do base.Transparency = 0 wait(.1) base.Transparency = 0.25 wait(.1) base.Transparency = 0.5 wait(.1) base.Transparency = 0.75 wait(.1) base.Transparency = 1 wait(.1) base.Transparency = 0.75 wait(.1) base.Transparency = 0.5 wait(.1) base.Transparency = 0.25 wait(.1) end
How can I make this shorter and give it a smoother transition?
TweenService is the probably the best option as far as smoothness
well if you wanna make it shorter and smoother you can do:
local base = game.Workspace.Part repeat base.Transparency = base.Transparency + 0.1 wait() until base.Transparency >= 1 wait(However long) repeat base.Transparency = base.Transparency - 0.1 wait() until base.Transparency <= 1