ADVERTISEMENTREMOVE ADS

Fluent Ui Library Mobile Toggle

Baseplate
3 months ago
Script preview thumbnail
Script Preview

Description

Not my usual posts, this was originally going to be in my Fluent Interface post but it was not working until I fixed the issue. Basically this showcases a button you tap to hide/unhide fluent (admins are gonna reject this fr fr)

Features:

  • Mobile Toggle for Fluent
ADVERTISEMENTREMOVE ADS
45 Lines • 2.01 KiB
Raw
repeat task.wait(0.25) until game:IsLoaded();
getgenv().Image = "rbxassetid://95816097006870"; -- put a asset id in here to make it work, default is mspaint logo
getgenv().ToggleUI = "E" -- Make sure this matches with Fluent Minimize Keybind or it will not work
task.spawn(function()
if not getgenv().LoadedMobileUI == true then getgenv().LoadedMobileUI = true
local OpenUI = Instance.new("ScreenGui");
local ImageButton = Instance.new("ImageButton");
local UICorner = Instance.new("UICorner");
OpenUI.Name = "OpenUI";
OpenUI.Parent = game:GetService("CoreGui");
OpenUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling;
ImageButton.Parent = OpenUI;
ImageButton.BackgroundColor3 = Color3.fromRGB(105,105,105);
ImageButton.BackgroundTransparency = 0.8
ImageButton.Position = UDim2.new(0.9,0,0.1,0);
ImageButton.Size = UDim2.new(0,50,0,50);
ImageButton.Image = getgenv().Image;
ImageButton.Draggable = true;
ImageButton.Transparency = 1;
UICorner.CornerRadius = UDim.new(0,200);
UICorner.Parent = ImageButton;
ImageButton.MouseButton1Click:Connect(function()
game:GetService("VirtualInputManager"):SendKeyEvent(true,getgenv().ToggleUI,false,game);
end)
end
end)
local Fluent = loadstring(game:HttpGet("https://github.com/dawid-scripts/Fluent/releases/latest/download/main.lua"))()
local Window = Fluent:CreateWindow({
Title = "Fluent " .. Fluent.Version,
SubTitle = "by Zeta",
TabWidth = 160,
Size = UDim2.fromOffset(580, 460),
Acrylic = true, -- The blur may be detectable, setting this to false disables blur entirely
Theme = "Dark",
MinimizeKey = Enum.KeyCode.E -- Used when theres no MinimizeKeybind
})
Main = Window:AddTab({ Title = "Main", Icon = "" })
Main:AddParagraph({
Title = "Hello!",
Content = "This is the example for window to showcase this, of course, you can use it for your own scripts"
})
ADVERTISEMENTREMOVE ADS

Comments

3 comments
to add a comment
zx

IgnoreGuiInset plz

0
0
Ze

@zxcv what is that

0
0
cl

@Zeta0 https://devforum.roblox.com/t/how-to-use-ignoreguiinset/593834

0
0
ADVERTISEMENTREMOVE ADS