#UI adjustment
1 messages · Page 1 of 1 (latest)
i made a quick client plugin which lets you change the position via a UDim2 you're able to change which should suit what you're looking for:
--[[
Name: Client-MoveHelpButton.luau
Descripton: Client plugin to allow people to easily move the HelpButton utilizing `UI.Get`, change the BUTTON_POSITION variable in order to modify the position of where the HelpButton will be
]]
local BUTTON_POSITION = UDim2.new(0.035, -45, 1, -45);
return function(Vargs)
local client, service = Vargs.Client, Vargs.Service
local UI = client.UI
local LocalPlayer: Player = service.Players.LocalPlayer
local PlayerGui: PlayerGui = LocalPlayer.PlayerGui
local function scanHelpButton(instance: Instance)
if instance ~= nil and instance.ClassName ~= "ScreenGui" then return end
local HelpButtons = UI.Get("HelpButton")
if type(HelpButtons) == "table" then
for _, HelpButton in HelpButtons do
local object: ScreenGui = HelpButton.Object
if object and object:FindFirstChild("Toggle") then
object.Toggle.Position = BUTTON_POSITION
end
end
end
end
scanHelpButton()
PlayerGui.ChildAdded:Connect(scanHelpButton)
end