Hi! I am a NEW scripter and i want to learn how to scripting.Can u answer my question?
is the print thing helpfull? Like does it do some thing? example: print("Hello")
3 answers
It creates a message to the output and the developer console, which you can read from either of those. The developer console is accessed with F9.
E.G. if you do
print("Hello world!") -- this is the code that you always see when you create a script
you will get in the developer console what is shown in the following link:
Click here to see what u get in dev console
This is helpful for when you need to debug a script that's not working properly and need help pointing yourself in the right direction.
######don't you dare not accept this if it's helpful
The print function is extremely helpful. It's like your flashlight in a dark room. Without it you'll bump into things, stub your toes, walk into a wall, etc...
In short, programming is painful without a print. You can do things like
print("Script ran through here. All good.")
print("Script ran through here. Not good.")
print("What is this? " .. part)
for _,child in pairs(object:GetChildren()) do
print("What is child? " .. child)
end
It's basically like the things that see if one function goes about and is able to do it's thing. For example:
if workspace.Baseplate then
print'there is a baseplate'
end
That kind of thing, it's easy once you understand it :)
Anyways, hmu on Roblox if you want to learn code, my ign is trycode.
This discussion is preserved as it was. New answers, comments, and votes are closed.
