AI Chat Panel

The AI chat panel is your intelligent coding assistant, ready to help you with code generation, debugging, explanations, and more.

Opening the Chat Panel

The chat panel is available in several ways:

  • Keyboard: Press Cmd/Ctrl + Shift + L to toggle
  • Menu: View → AI Chat Panel
  • Default: Opens automatically on first launch

Basic Usage

Asking Questions

Simply type your question in the input field and press Enter:

How do I create a part in Roblox?

The AI will provide a detailed answer with code examples:

-- Create a new part
local part = Instance.new("Part")
part.Size = Vector3.new(4, 1, 2)
part.Position = Vector3.new(0, 5, 0)
part.BrickColor = BrickColor.new("Bright red")
part.Parent = workspace

Generating Code

Ask the AI to generate specific code:

Write a function that teleports a player to a random location

Debugging Help

Share error messages or problematic code:

I'm getting "attempt to index nil" error in this code:
[paste your code]

Advanced Features

Context-Aware Assistance

The AI can see your currently open file and provide context-aware suggestions:

Explain what this function does

Code Snippets

Generate reusable code snippets:

Create a tween service helper that tweens a part's size smoothly

Best Practices

Get advice on Roblox development patterns:

What's the best way to handle data persistence in my game?

Chat Commands

Use special commands for specific actions:

  • /clear - Clear chat history
  • /export - Export conversation to file
  • /context - View current context (files, selection)

Examples

Example 1: Creating a GUI

You:

Create a simple shop GUI with a title and buy button

AI:

-- Create ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

-- Create Frame
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 300, 0, 200)
frame.Position = UDim2.new(0.5, -150, 0.5, -100)
frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
frame.Parent = screenGui

-- Create Title
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, 0, 0, 50)
title.Text = "Shop"
title.TextSize = 24
title.Parent = frame

-- Create Buy Button
local button = Instance.new("TextButton")
button.Size = UDim2.new(0, 200, 0, 50)
button.Position = UDim2.new(0.5, -100, 0.7, 0)
button.Text = "Buy"
button.Parent = frame

Example 2: Debugging

You:

This tween isn't working:
local tween = TweenService:Create(part, info, {Position = Vector3.new(10, 0, 0)})
tween:Play()

AI:

The issue is that TweenInfo isn't defined. Here's the corrected code:

local TweenService = game:GetService("TweenService")
local info = TweenInfo.new(
    2, -- Duration
    Enum.EasingStyle.Quad,
    Enum.EasingDirection.Out
)
local tween = TweenService:Create(part, info, {Position = Vector3.new(10, 0, 0)})
tween:Play()

Tips for Better Results

  1. Be Specific: "Create a red part at 0,10,0" is better than "make a part"
  2. Provide Context: Share relevant code or error messages
  3. Ask Follow-ups: Build on previous answers in the conversation
  4. Use Examples: "Like X but with Y" helps the AI understand your intent

Privacy and Data

  • Conversations are stored locally
  • Only your prompts and code context are sent to AI servers
  • No personal data or game assets are transmitted
  • See Data Handling for details

Next Steps