Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to get a line of a string and the max len of the line?

I am Making a Plugin Like ToDo List But i was doing when we are on a script it finds the "-- >>" and detect the max len of the line how i could do that?

thanks

3 comments

0

I'd be more than happy to answer your question but I don't understand what your aiming to achieve here.

0

i mean how could i get a line that have a "-- >>" on it and get the max size of the text

0

You need to describe the problem you're having and provide a script of which we can help you with. This is a help site, not a request site.

2 answers

ok this is the code of the plugin

while wait(5) do
	if game.StudioService.ActiveScript then
		print(game.StudioService.ActiveScript.Source)
	end
end

and this is the script we would detect -- >> on it

-- >> LOL Just For A Test

2 comments

0

Your trying to find "-->>" on a sentence?

0

yes and the lentgh of the line

A Tip

I would recommend looking at some of my former posts that have a lot more detail and is categorized. Use it as a guide to make post for the future, your post lacks information and the script you need. There is an edit button under your post, near the Delete button. Use that to edit your posts.


What I understand.

If you're trying to make it so your print has the -->>, here's how you'd do it. To record data in a script, I don't see why you'd want to do that as there's no need for it.


Script

while wait(5) do
    if game.StudioService.ActiveScript then
        print("-->>"..game.StudioService.ActiveScript.Source)
    end
end

2 comments

0

lol that's not what he wants to do, he wants to get all lines in Source which have -->> and "get length of them" whatever it means

0

Interesting.

This discussion is preserved as it was. New answers, comments, and votes are closed.