πŸš€ Roblox Studio Scripting Tutorial

1. Getting Started

Open Roblox Studio, insert a Script into ServerScriptService or a LocalScript into a ScreenGui.

2. Your First Line of Code

Try printing something to the Output window:

print("hi")

This shows the message hi in the Output tab.

3. What's Next?

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.

4. Wait and Loop

while true do
  print("Still running...")
  wait(1)
end

This prints every second. Press Stop in Studio to end it.

5. Button Click (LocalScript)

local button = script.Parent
button.MouseButton1Click:Connect(function()
  print("Button was clicked!")
end)

This goes inside a TextButton in a ScreenGui.

🧠 Quick Test: What’s Next After print("hi")?



πŸ‘‰ Part 2