for example:
print ("hi")
but it prints that in the output not the screen
for example:
print ("hi")
but it prints that in the output not the screen
Make this a server script.
game.Players.PlayerAdded:Connect(function(player)
local gui = Instance.new("ScreenGui",player.PlayerGui)
local text = Instance.new("TextLabel",gui)
gui.ResetOnSpawn = false
text.Size = UDim2.new(1,0,1,0)
text.BackgroundTransparency = 1
text.Font = Enum.Font.Code
text.TextXAlignment = Enum.TextXAlignment.Left
text.TextYAlignment = Enum.TextYAlignment.Bottom
text.TextSize = 14
text.Text = ""
local log = game:GetService("LogService")
log.MessageOut:Connect(function(m,t)
text.Text = text.Text .. "\n["..string.sub(tostring(t),string.len("Enum.MessageType."),string.len(tostring(t))).."]" .. m
end)
end)
Just make this a serverr scrript
paste this into a server script
shouldn't have errored; don't know why it did that
try putting it in workspace
how do you make it a different position
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
It's supposed to print in the output.
You can actually do it by learning how to script :)
but how do you make it print on the screen?
Hmm by Creating a Gui and create a textlabel inside it and set it to the text you want it to be