Text going out of TextBox

Ok, here is it.
File: ScaledSFrameToText.rbxm (5.8 KB)
Code:

local TextB = script.Parent
local ScrollingF = TextB.Parent
local RunS = game:GetService("RunService")


TextB.Focused:Connect(function()
	local Heartbeat = RunS.Heartbeat:Connect(function()
		ScrollingF.CanvasSize = UDim2.new(0,TextB.TextBounds.X, 0, TextB.TextBounds.Y)
	end)
	TextB.FocusLost:Wait()
	Heartbeat:Disconnect()
end)

Parenting Structure:
image
Posdata: I tested it and it works.

1 Like

There’ s an issue with the frame not resizing. How do i fix that?

For me it worked, can you send screenshot?

Structure:

structure

Issue screenshot:

2

ScrollingFrame has a property called ScrollingDirection. You can set the property to XY if you want the frame to scroll on both axis.

Weird, for me it worked. Are you sure of that you are writing in the correct textBox, I mean, I see 2 diferent ones.
robloxapp-20230330-1613081.wmv (661.8 KB)
Try using the file I sent. Custmize it as you want with transperency and those things and say what happends

1 Like

I’ ll just use this and edit this, thank you very much

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.