
so it’s pretty simple. As I type, I want a UI label to follow where the text is NOT the cursor, but the front of the text. I don’t see any position values that pertain to this, so I’m not 100% sure how you would make this happen.
i noticed jailbreak somehow managed to do it.

TextBounds potentially could work if you use the X value. This does assume that each line would use a different label, so I’m not sure if this would work in your case.
May i see an example of how that might work. It would only use one text label that I want to follow the text position.
I attempted to create this in my own place just now and I had a bad realization - I see no way to
remove the default cursor. I think that what you want might require making custom text input, which has the potential to be rather difficult.
how do you think they mightve done it in jailbreak then… because it doesn’t appear to be that complicated honestly. i feel like I’m missing something.
if you wanna check it out join jailbreak and press ` it’ll open the console
Ah, I think I entirely misundertood what you were asking. I thought what you meant was could you create an entirely custom cursor for the TextBox. Do you think you could maybe explain it for me in different words?
Yeah, no, that’s not what I was saying.
what I’m asking is for a text label to follow this thing:

so let’s imagine that I was typing what I wanted to happen is:

I want this red box to follow the letter cursor (not sure what its term is). I do not want it to follow the mouse. The red box should follow the first letter in the string as it continually updates.
Hopefully, that makes sense?
you can make a TextBox
and make it AutomaticSize (do not make AutomaticSize to None, and do not make it TextScaled to true) if TextBounds is not what you’re looking for. then add a label inside the textbox then position it’s scale to UDim2.fromScale(1,1)
. if you don’t want the size to go mess up, you can add a frame, set its position to UDim2.fromScale(1,1)
, and size to UDim2.fromScale(0,0)
, then add a textlabel on the parent of the textbox or whatever, then make a script that sets the position of the Textlabel to the AbsolutePosition of the Frame
Here’s a video if you don’t get it(i mean it’s just a preview)
robloxapp-20220522-1340102.wmv (466.4 KB)
and here’s the script
while wait() do
script.Parent.TextLabel.Position = UDim2.fromOffset(script.Parent.TextBox.Frame.AbsolutePosition.X,script.Parent.TextBox.Frame.AbsolutePosition.Y)
end
2 Likes
Yup looks like this could work. it might be a little more complicated with the frame I’m working with but definitely a step in the right direction! Tysm.
Although i must ask if this would be possible with a frame? originally the idea was to have a frame with a scrolling frame in it follow the text but if not I could make do with this.
ye i believe, you can do it. since TextLabel and Frame is a same gui
i wasnt exactly able to get it to work tbh. mind showing me the explorer model of the UI?

The scrolling frame is the one where you put the list
The textbox is where the player will put the command
The frame is the one who will tell the script on which position the scrolling frame will be.
1 Like
Alright ill have to try and apply this to what I’m doing tomorrow, ill let you know how it goes and any questions I have. For now I’m gonna mark this as unsolved just till I actually get it so the thread doesn’t seem redundant.
update @InvalidRaycast i got it to work with what i was trying to do. thank you so so much, you were a big help!
1 Like