Rscripts
Real ai(Open Source)
Views: 12Executions: 14

Real ai(Open Source)

  • Keyless
  • Mobile untested
Copy it, then tell others if it worked.

Advertisement

Advertisement

About this script

Real AI Agent Ultimate — In-Game AI Assistant with Tool Calling for Roblox

A full-featured, open-source AI assistant that lives inside your Roblox executor. Powered by DeepSeek or OpenAI, it doesn't just chat — it executes actions in-game via function calling (tools): moves your character, flies, noclips, copies builds, sends keyboard/mouse input, and runs custom Luau code on demand.

No external servers, no proxies — direct API calls from the client with your own key.

🎯 What it is

Real AI Agent Ultimate is a chat-driven automation layer for Roblox. You type or dictate what you want — the AI decides which tool to call and executes it. Under the hood it's a proper agentic loop: the model receives a list of tools, picks one, returns a tool_call, the script runs it in-game, feeds the result back, and iterates until it can answer.

This isn't a wrapper around a chat endpoint. It's a tool-calling agent runtime built on top of the OpenAI-compatible API.

✨ Features

AI Providers

  • DeepSeek (deepseek-chat + deepseek-reasoner for reasoning mode)

  • OpenAI (gpt-4o-mini)

  • Auto-fallback, per-provider API keys, persistent storage via writefile (falls back to in-memory if no fs)

  • Reasoning mode — uses the reasoner model, strips <thinking> tags from final output

Player Control Tools

The AI can directly control your character through tool calls:

  • set_walkspeed — change movement speed

  • set_jumppower — change jump height

  • set_gravity — modify workspace gravity

  • teleport — move to XYZ coordinates

  • toggle_fly — WASD flight with configurable speed

  • toggle_noclip — walk through anything

  • toggle_godmode — HP regen lock

  • toggle_esp — highlight + name/distance/HP billboards

Input Simulation Tools

Full virtual input layer for automating the client:

  • click_at — LMB/RMB at absolute screen coords

  • hold_key / press_key — send keypresses via VirtualInputManager or keypress/keyrelease

  • move_mouse — relative cursor movement

  • scroll_mouse — wheel scrolling

  • click_ui_button — find a TextButton/ImageButton by name in PlayerGui/CoreGui and click its center

Build Copy Tools (BABFT)

  • copy_build — snapshot another player's base block-by-block

  • paste_build — reconstruct the copied base on your own plot with correct relative CFrames

Code Execution

  • execute_luau — the AI can write and run arbitrary Luau in your environment (loadstring + pcall), with markdown-fence stripping

UI / UX

  • Custom RayField-free native GUI (ScreenGui) — dark theme, sidebar with chat list, draggable, resizable-friendly

  • Multi-chat — create, switch, and delete conversations; persisted to file per provider

  • Markdown rendering — code blocks are extracted into syntax-styled TextBox frames with a Copy button; text is wrapped in chat bubbles (left = AI, right = user)

  • Mode toggles — 🌐 Search, 🧠 Reason, 🖼️ Vision (per-message toggles in the bottom bar)

  • ⚡ Features panel — all player controls, fly speed, ESP, BABFT copy/paste as clickable buttons

  • ⚙ Settings panel — provider switcher, API key input, custom rules (injected into system prompt), save/delete

  • Vision support — pass an image URL with your message (OpenAI provider only)

  • Clipboard copy — setclipboard / toclipboard support on every code block

System Prompt

Configurable, in Russian, with a clear rule set:

Be brief, use Russian, never write code in chat when a tool exists, obey custom user rules, use <thinking> when Reasoning is on.

You can override it entirely from the Settings → Правила для ИИ field.

🛠 How it works (technical)

Agent loop

text

user message → append to messages
→ call_model(messages, tools_payload)
→ if response.tool_calls: for each call:
     run_tool(name, arguments_json)
     append { role="tool", tool_call_id, content=result }
     loop again
→ else: strip <thinking>, print, done
(max 15 iterations)

Tool schema

Every tool is registered via addTool(name, desc, properties, required, handler) and serialized into OpenAI's tools array format (type: "function", function: { name, description, parameters }). Note the ["function"] bracket-access on tool_calls and tools entries — because function is a reserved word in Luau.

Input abstraction

Falls back gracefully across executors:

  • VirtualInputManager:SendKeyEvent → keypress/keyrelease → keyclick

  • mousemoveabs / mousemoverel / mouse1click / mouse2click / mousescroll

  • iswindowactive() guard so actions don't fire when Roblox is unfocused

Persistence

  • Keys: real_ai_<provider>.key (or genv.RealAI_KeyStore)

  • Chats: real_ai_chats.json

  • Uses syn.request / http.request / request for HTTP, whichever the executor exposes

📖 Usage

lua

loadstring(game:HttpGet("YOUR_RAW_URL_HERE"))()

Then:

  1. Open ⚙ Settings → pick provider → paste API key → Save

  2. (Optional) write custom rules in the same panel

  3. Type in the input box — or use ⚡ Features for direct buttons

  4. Examples:

    • "взлети и поставь скорость 100" → toggle_fly + set_walkspeed

    • "телепортируй меня на 0, 50, 0" → teleport

    • "скопируй базу у Steve и поставь на мою" → copy_build + paste_build

    • "включи ESP и покажи дистанцию" → toggle_esp

    • "напиши скрипт, который крутит камеру и запусти его" → execute_luau

⚠️ Limitations & notes

  • Requires request — syn.request, http.request, or request must exist (asserted at top)

  • Roblox must be focused for input tools to work (iswindowactive guard)

  • Kill ESP heuristic uses name matching only

  • BABFT tools only work in Build A Boat For Treasure (workspace.Blocks must exist)

  • Vision mode currently only routes through OpenAI — DeepSeek does not support image inputs in this config

  • No streaming — responses arrive whole

  • Token usage — the agent loop can burn through tokens fast with many tool calls (15-iteration cap protects you)

  • API keys are stored in plaintext on disk if writefile is available — treat them as you would any local config

🔒 Safety

The execute_luau tool gives the AI arbitrary code execution in your client. It is powerful and dangerous:

  • The AI can only run what the model produces — but it can produce anything

  • Keep custom rules tight if you're worried ("never run execute_luau unless I say 'run'")

  • Don't paste untrusted images/URLs in Vision mode

  • Every tool is opt-in via the model's own decision — you see results in chat

This script is not for use on accounts you care about. Same as any executor — assume the risk.

🧩 Extending it

Add a new tool in 6 lines:

lua

addTool("my_tool", "What it does.", 
  { arg1 = { type = "string" } }, { "arg1" },
  function(a) 
    -- do stuff
    return "result string"
  end)

The tool is auto-registered in the payload on the next call. The AI picks it up immediately — no restart required.

Fully open source. Fork it, strip the system prompt, swap providers, add tools — whatever you need.

Made for executors with request support. Tested on Real / Synapse-class environments.

Features

  • AI Integration
  • Open Source
  • AI Providers
  • Player Control Tools
  • Input Simulation Tools
  • Build Copy Tools
  • Code Execution
  • Custom GUI
  • Multi-chat
  • Markdown Rendering
  • Mode Toggles
  • Vision Support
  • Clipboard Copy
  • Configurable System Prompt

Tags

real aiai assistanttool callingroblox automationdeepseekopenaiinput simulationbuild copy