Hello! I need help I want to add this rabbithole effect where like the gui leaves in like a circle. Here is my code:
script.Parent:WaitForChild("BlackoutEvent").OnClientEvent:Connect(function()
print("blackout")
if db == false then
db = true
for i = 0, 20 do
script.Parent.Blackout.BackgroundTransparency = script.Parent.Blackout.BackgroundTransparency -0.05
wait(0.01)
end
wait(0.5)
script.Parent["Baseball Bat Swing 6 (SFX)"]:Play()
for i = 0, 20 do
script.Parent.Blackout.BackgroundTransparency = script.Parent.Blackout.BackgroundTransparency +0.05
wait(0.01)
end
db = false
end
end)```
Does anyone have advice or is there a tweening style?