Hello, I'm trying to make a "cloak" button that makes you transparent when you click that button. It works, but the problem is it's supposed to be slow, and not fast. I thought putting "for i = 0,1,0.01" would make it slow, but it's like the speed of light.
local sd = game.Players.LocalPlayer.CharacterAdded:wait()
script.Parent.MouseButton1Click:connect(function(hi)
for i = 0,1,0.01 do
for i,v in pairs(sd:GetChildren()) do
if v:IsA("Part") then
v.Transparency = v.Transparency + i
end
end
end
end)
GIF: https://gyazo.com/f2e4507926de4a1d437a121c5db0eefct
How can I make this script slow?

2 comments
Use wait(time)
add waits such as wait(.1)