Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is this script in StarterGui possible?

Asked by 4 years ago

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?

0
Idk if a thing but if you compare then don't use =, use == Nguyenlegiahung 1091 — 4y
0
And i don't think it is a thing...you could find another way to do it Nguyenlegiahung 1091 — 4y
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? Ziffixture 6913 — 4y
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. Ziffixture 6913 — 4y
0
okay D0CTOR_CHIL 21 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago
text == "something I put there"
print(text)
if text == "something I put there" then
    script.Parent.ScreenGui.Textlabel.Visible = false
    end

Ad
Log in to vote
0
Answered by 4 years ago

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

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 D0CTOR_CHIL 21 — 4y
0
hope that made sense D0CTOR_CHIL 21 — 4y

Answer this question