AI-Powered Code Help

Hello, Developers! I’m really psyched about the new AI-Powered Code beta-feature, but I’m having trouble seeing it in action.

My issue is I’m not seeing the AI-Powered Code write anything at all, and I have the feature enabled


I’m also using comments to prompt the AI with writing code.

I’ve tried solutions such as allowing HTTP Requests, and Studio API Services but none of them are working!

If there is something I’m missing, or doing wrong, please tell me! I’m really trying to see if this is a really useful tool.

2 Likes

You need to wait a, what I do, is press tab then tab out for a bit then come back.

Would it show a press tab prompt in the script editor? Because I’ve tried pressing Tab and it didn’t generate anything at all.

Press tab, then tab out of studio, after a while come back.

Alright, I’ll keep you updated if it works or not. Thanks!

Any updates? Having the same issue here.

Yeah I still got nothing, Wish Roblox made it easier to use this feature

Yeah I’m still not getting anything from the AI, any other reasons why? Or do I press enter then tab

I kinda got it, so you gotta make a comment and then press enter and then wait a while…

Really? Everyone is saying to press tab and stuff. Thanks!

It stopped working for me lol idk why

Try ChatGPT or OpenAI Codex as an alternative to AI-Powered Code.

So pressing enter and waiting doesn’t work?

that is not the point, roblox is realising beta feature of AI that you can command to do

It started working for me… i just uninstalled studio, i went to a Public and a Published game, and it worked.

Alright, I’ll try re-installing studio. I’ll keep you updated!

Sometimes, stuff like this happens:

--make a part that explodes when touched
local part = Instance.new("Part")
part.Parent = workspace
part.Touched:Connect(function()
	part:Destroy()
end)

It misunderstands the prompt, but I guess the AI learns from our comments?

I’m pretty sure it does, and it also is trained from models on the toolbox.

And then this…

--make a door which opens by a certain code
local door = workspace.Door
local code = "1234"
game:GetService("UserInputService").InputBegan:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.E then
		local answer = game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.Frame.TextBox.Text
		if answer == code then
			door:Destroy()
		end
	end
end)

It looks like it can generate pretty decent code as it is still in very early beta. Does it work?