
415 Views
53 Executions
talk to ai and play roblox
Universal Script 📌
gavinthesigmaPublished 5
7 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
um bro the same talk to ai duh
local HttpService = game:GetService("HttpService")
local function talkToAI(message)
local url = "https://your-server-url.com/chat"
local data = {
msg = message
}
local response = HttpService:PostAsync(
url,
HttpService:JSONEncode(data),
Enum.HttpContentType.ApplicationJson
)
local decoded = HttpService:JSONDecode(response)
return decoded.reply
endfrom flask import Flask, request, jsonify
from openai import OpenAI
app = Flask(__name__)
client = OpenAI(api_key="YOUR_API_KEY")
@app.route("/chat", methods=["POST"])
def chat():
data = request.json
msg = data["msg"]
response = client.chat.completions.create(
model="gpt-5.3",
messages=[{"role": "user", "content": msg}]
)
return jsonify({
"reply": response.choices[0].message.content
})
app.run()









like what
[deleted]
@ashdevera153 what the hell do you mean like I know what it means but why did you say that