I need to patch a bug on my GUI when the scroll is too long for all the text
Issue :
I’m not trying anything because I don’t really know how to do it
This is the script i created for that
local BindableEvent = game.ReplicatedStorage:WaitForChild("MedStudio"):WaitForChild("MedStudioAddLog")
BindableEvent.Event:Connect(function(UserName, theCommand)
local StartCords = script.StartCords.Value -- 003
local StartCanvas = script.StartCanvas.Value -- 10
local TextSetNumber = script.TextSetNumber.Value -- is 10 is 18
local item = script.TextLabel:Clone()
item.Name = TextSetNumber
item.Text = UserName.." | "..theCommand
item.Position = UDim2.new(0,003,0,tonumber(StartCords))
item.Parent = script.Parent.Frame.ScrollingFrame
script.Parent.Frame.ScrollingFrame.CanvasSize = UDim2.new(0,0,StartCanvas,0)
script.StartCords.Value = tonumber(script.StartCords.Value + 28)
script.TextSetNumber.Value = script.TextSetNumber.Value + 1
if TextSetNumber > 18 then
script.StartCanvas.Value = script.StartCanvas.Value + 0.5
end
end)
--game.ReplicatedStorage.MedStudioAddLog:Fire("Med367367","test")
The GUI
MyLogsGUI.rbxm (10,0 Ko)
*I have the same problem for my Admin Cmd Gui