
506 Views
241 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
You can now code with JavaScript in chat because why not. Made with multiple AIs to the point where I forgot their specific models. EX Code: js: c.l(4) prints to console 4 ^
-- SINGLE-LINE JS INTERPRETER WITH LIVE MODE & CLEARLL (evaluator fix)
local PREFIX = "js:"
local UNLOAD_KEY = Enum.KeyCode.M
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
-- FULL UNLOAD OLD COPY
if _G.JSInterpreterLoaded then
if _G.JSUnloadFunc then _G.JSUnloadFunc() end
end
_G.JSInterpreterLoaded = true
-- Interpreter state
local codeBuffer = {}
local variables = {}
local functions = {}
local running = false
local enabled = true
local chatConn, inputConn
-- CONSOLE / CHAT API
local console = {}
local c = console
function console.log(msg)
print("[JS]", tostring(msg))
end
function console.chat(msg)
if ReplicatedStorage:FindFirstChild("DefaultChatSystemChatEvents") then
pcall(function()
ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(tostring(msg),"All")
end)
else
if player then
pcall(function() player:Chat(tostring(msg)) end)
else










sawdwad