Skip to content

Commit

Permalink
Small optimization (Epix-Incorporated#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccuser44 authored Nov 27, 2024
1 parent 8830fec commit fb864de
Showing 1 changed file with 7 additions and 11 deletions.
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

0 comments on commit fb864de

Please sign in to comment.