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

Is this script in StarterGui possible?

So I have a question. Is it possible to manipulate the print feature.. Like something in this sort of way.

if print = ¨something i put here¨ then
script.Parent.ScreenGui.Textlabel.Visible = false
end

Can someone tell me if this is a thing i can do. If so, where did i go wrong?

5 comments

0

Idk if a thing but if you compare then don't use =, use ==

0

And i don't think it is a thing...you could find another way to do it

0

Unfortunately, io.read() wasn’t included within the ROBLOX embedment of Lua. The print() function can only write lines to the console, and will raise an exception being included within a conditional. May I ask, what is your goal?

0

If you want to pass information between games, you can use MessagingService, or supply TeleportData when being transferred to a different place, and modify the GUI respectfully.

0

okay

2 answers

✓ Accepted answer
text == "something I put there"
print(text)
if text == "something I put there" then
	script.Parent.ScreenGui.Textlabel.Visible = false
	end

Print() is only used to, well, print things in the console. What is it you're trying to do anyways?

2 comments

0

im trying to send data from game 2 to game 1 that turns a gui in game 1 invisible when telepoted from game 2 to 1

0

hope that made sense

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