Hello!
So I have a script that needs to make 4 parts in the same model change their transparency in an order. The script does this but sometimes it a part doesn't change its transparency at all, sometimes it happens fast and smooth, sometimes it happens slow and rough. Can someone help me make it work better?
Script:
local CapeSpeed = 0.2
local NotUsed = script.Parent:WaitForChild("Chest1"):FindFirstChild("NotUsed")
local Use1 = script.Parent:WaitForChild("Chest1"):FindFirstChild("Use1")
local Use2 = script.Parent:WaitForChild("Chest1"):FindFirstChild("Use2")
local Used = script.Parent:WaitForChild("Chest1"):FindFirstChild("Used")
function CapeBegin()
NotUsed.Transparency = 1
Use1.Transparency = 0
wait(CapeSpeed)
Use1.Transparency = 1
Use2.Transparency = 0
wait(CapeSpeed)
Use2.Transparency = 1
Used.Transparency = 0
end
function CapeEnd()
Used.Transparency = 1
Use2.Transparency = 0
wait(CapeSpeed)
Use2.Transparency = 1
Use1.Transparency = 0
wait(CapeSpeed)
Use1.Transparency = 1
NotUsed.Transparency = 0
end
while true do
wait(1)
CapeBegin()
wait(1)
CapeEnd()
end
