KKiteforge
Workflows

How to script on Roblox with an AI agent at your side

03
Built around your game

One feature, four steps, every change visible

This is how most people work with Kiteforge: small, clear requests, a diff after each one, and a playtest before moving on. It is also a gentle way to learn how to code in Roblox, because every change comes with a short explanation.

01

Open your project folder

Choose the folder that holds your game's .luau files as the chat's working folder.

02

Describe the result

Say what should happen in the game, in plain words, one feature at a time.

03

Review in Ask first

Read the plan and each diff; accept, reject or ask for a change.

04

Sync and playtest

Let your file-sync plugin bring the files into Studio, press Play and check the Output window.

A starting point you can read line by line

Door.server.luau
local door = script.Parent
local isOpen = false

door.Touched:Connect(function(hit)
	local character = hit.Parent
	local humanoid = character:FindFirstChildOfClass("Humanoid")
	if not humanoid or isOpen then
		return
	end
	isOpen = true
	door.Transparency = 0.7
	door.CanCollide = false
	task.wait(3)
	door.Transparency = 0
	door.CanCollide = true
	isOpen = false
end)

A server Script inside a door part. The isOpen flag works as a debounce, so the door does not react to every touch while it is already open.

Roblox scripting tutorial: two walkthroughs

A door that opens when a player touches it

This is a good first Roblox Studio script. Ask Kiteforge for a door that opens when a player walks into it and closes three seconds later. It explains the plan first: a server Script, because the door must open for everyone, not only on one player's device; the Touched event, which fires whenever something hits the part; and a debounce flag, so the door ignores extra touches while it is open. Then it writes Door.server.luau with write_file and shows you the diff. Read it next to the explanation, accept it, sync, press Play and walk into the door. If it opens for a falling ball too, ask Kiteforge to check for a Humanoid first, as in the example above.

Saving coins between sessions

Once players can earn coins, they expect to keep them. Ask Kiteforge to save coins when a player leaves and load them on join. It first reads the DataStoreService page in the official Roblox documentation with http_get, then finds where your coins live with grep. The ModuleScript it writes saves through UpdateAsync, wraps each call in pcall and retries a failed save a few times. Before the edit lands you see the diff in Ask first. Test it in Studio with API access enabled for your place, leave, rejoin and check the number. Keep the change only when the coins come back.

Kiteforge for Windows

Script your next feature with Kiteforge

Download Kiteforge ↗