Open Roblox Studio, insert a Script
into ServerScriptService or a LocalScript
into a ScreenGui.
Try printing something to the Output window:
print("hi")
This shows the message hi
in the Output tab.
Now let's do something more useful β changing a part's color.
local part = workspace.Part
part.BrickColor = BrickColor.new("Bright red")
Make sure you have a part in the Workspace named Part
.
while true do
print("Still running...")
wait(1)
end
This prints every second. Press Stop in Studio to end it.
local button = script.Parent
button.MouseButton1Click:Connect(function()
print("Button was clicked!")
end)
This goes inside a TextButton
in a ScreenGui
.
print("hi")
?