I don't know what print does all i use for it is for fun.Can you please help?
print()
prints a string into the Output, for example, if I were to make a script like this;
-- Sorry if this wasn't helpful --
if not workspace:FindFirstChild("TheeDeathCaster")then repeat wait(0)until workspace:FindFirstChild("TheeDeathCaster") print("Cool Story Bro.") end
The Output would bring up Cool Story Bro.
You can use print()
to make sure things work like let's say.
val = 1 game.Players.PlayerAdded:connect(function(plr) if val == 1 then print(plr.Name) -- Print's player name end end)
In that case I use to check if my if statements work or other pieces of script, Remember print() is only used for output.
The print shows the message you put inside of the "print("")" on the output. So if I put
print("Hello there ROBLOX")
The output would show "Hello there ROBLOX". You can also make it print in certain circumstances like this.
if 2*2 == 4 then print("All is right in the world!") else if 2*2 ~= 4 then print("Something has gone wrong GRAB A HELMET!") end
I hope this helped :) Remember to check wiki.Roblox.com!