- Keyless
- Mobile untested
Advertisement
About this script
π€ SunAI β Roblox AI Chatbot
SunAI is a smart Roblox AI chatbot that generates short, natural conversations in-game using the OpenRouter API. It listens to chat messages, understands nearby players, and responds dynamically while triggering character emotes for immersive interactions.
β¨ Features
π€ AI Chat Responses
SunAI listens to player chat and generates quick, natural responses using AI models.
π‘ Proximity Awareness
The bot detects nearby players and only responds when players are within a configurable radius.
π§ Context-Aware Conversations
Nearby players and distances are included in the AI prompt so responses feel more natural.
π AI Emote System
The AI can trigger animations like:
[WAVE] [DANCE] [DANCE2] [DANCE3] [LAUGH] [POINT] [CHEER]
When these appear in a reply, the script automatically plays the animation on your character.
π¬ Conversation Memory
SunAI stores recent messages so the AI remembers context and maintains a flowing conversation.
π« Roblox Chat Filter Awareness
If Roblox filters a message (####), the AI is informed and will adjust wording in future responses.
π Private AI Chat Mode
Talk to the AI privately through the UI without sending messages to the public game chat.
π Fully Customizable Personality
Edit the system prompt to control how the AI behaves, talks, and reacts.
π₯ Built-In Control Panel
Powered by Rayfield UI with settings for:
Enable / Disable bot
Response cooldown
Detection radius
Temperature
Max tokens
Memory clearing
π API Error Handling
Automatic retry logic for rate limits, downtime, or model overload.
βοΈ Requirements
π OpenRouter API Key
π Roblox executor with HTTP requests enabled
π Setup 1οΈβ£ Get an API Key
Create an account at https://openrouter.ai and generate an API key.
2οΈβ£ Run the Script
Execute the script in Roblox with your preferred executor.
3οΈβ£ Configure the Bot
Open the Personality tab and paste your API key.
4οΈβ£ Start Chatting
Enable the bot in the Controls tab and interact with players.
π§© Example Interaction
Player:
hey sun whats up
SunAI:
Just vibin in the server π [WAVE]
π Customization
You can easily modify:
AI personality
response length
temperature (creativity)
chat radius
cooldown time
All directly from the built-in UI.
If you have any questions or concerns, I am unable to help you as I do not have a Discord server or anything.




