Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small optimization #1773

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions MainModule/Client/UI/Default/Effect.luau
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,18 @@ return function(data, env)
pcall(function() if v ~= gui then v:Destroy() end end)
end

local blur = service.New("BlurEffect", {
Name = "Adonis_FadeOut_Blur";
Parent = service.Lighting;
Size = 0;
})

local bg = service.New("Frame", {
service.TweenService:Create(service.New("Frame", {
Parent = gui;
BackgroundTransparency = 1;
BackgroundColor3 = Color3.new(0, 0, 0);
Size = UDim2.new(2, 0, 2, 0);
Position = UDim2.new(-1, 0, -1, 0);
})

service.TweenService:Create(bg, TweenInfo.new((1 / 0.01) * 0.1), { BackgroundTransparency = 0 }):Play()
service.TweenService:Create(blur, TweenInfo.new((1 / 0.01) * 0.1), { Size = (1 / 0.01) * 5.6 }):Play()
}), TweenInfo.new((1 / 0.01) * 0.1), { BackgroundTransparency = 0 }):Play()
service.TweenService:Create(service.New("BlurEffect", {
Name = "Adonis_FadeOut_Blur";
Parent = service.Lighting;
Size = 0;
}), TweenInfo.new((1 / 0.01) * 0.1), { Size = (1 / 0.01) * 5.6 }):Play()
elseif mode == "Trippy" then
local v = service.Player
local bg = Instance.new("Frame")
Expand Down
Loading