konichiwa, im D3vBhavesh. so i have a quick question with coding on roblox today. how can i have things printed out into GUIs on roblox? to be more precise here's a script:
local m = 5 local c = 2 print(m+c)
this is just a small example. im going for something a bit more difficult and more structured than this, but this is just a quick example of a block of code. now, i want m+c to be printed onto a textLabel on a frame in a screen GUI on Roblox.
i would like to know how i can do this. what exact library do I need to use? if anyone has like a... bit of api reference to share with me for this so i can do this or a block of code to test out myself and tweak, that would be awesome. thank you for your time.
arigato & sayonara. :)
You can use LogService's .MessageOut
RBXScriptSignal:
game:GetService("LogService").MessageOut:Connect(print)
You would have it formatted like
local m = 5 local c = 2 script.Parent.Text = m+c
assuming you're doing this inside a textlabel, textbutton, etc.