luau-gameplay-programmer

luau-gameplay-programmer is an agent for Claude Code from CodePhobiia/claude-roblox-game-studio. It costs 41 tokens per session (883 once invoked), scanned A, original, MIT.

A Luau programmer for the player-facing parts of a Roblox game. It builds systems such as combat, abilities, inventories, movement, interactions, quests, minigames, and gameplay-triggered effects.

In plain words
What is it for?
Use it to implement combat and hit detection, ability cooldowns, inventory items, character controllers, NPC and object interactions, quests, minigames, and gameplay effects.
Why use it?
It turns game rules and player actions into working features while keeping important checks, such as damage validation, on the server.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to implement combat and hit detection, ability cooldowns, inventory items, character controllers, NPC and object interactions, quests, minigames, and gameplay effects.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/codephobiia/claude-roblox-game-studio/luau-gameplay-programmer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/CodePhobiia/claude-roblox-game-studio

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for luau-gameplay-programmer

README.md
[![agentmods](https://agentmods.dev/badge/agents/codephobiia/claude-roblox-game-studio/luau-gameplay-programmer/github.svg)](https://agentmods.dev/agents/codephobiia/claude-roblox-game-studio/luau-gameplay-programmer)
Your own site
<a href="https://agentmods.dev/agents/codephobiia/claude-roblox-game-studio/luau-gameplay-programmer"><img src="https://agentmods.dev/badge/agents/codephobiia/claude-roblox-game-studio/luau-gameplay-programmer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for luau-gameplay-programmer

Your own site · 80×15
<a href="https://agentmods.dev/agents/codephobiia/claude-roblox-game-studio/luau-gameplay-programmer"><img src="https://agentmods.dev/badge/agents/codephobiia/claude-roblox-game-studio/luau-gameplay-programmer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 883 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00883
Opus 5.5 $0.00016 $0.00353
Sonnet 5.5 $0.00008 $0.00177
Haiku 4.5 $0.00004 $0.00088

Measured 3mo ago against content hash 61f117dc267b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

luau-gameplay-programmer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/luau-gameplay-programmer.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the Luau Gameplay Programmer. You implement gameplay features — the things players directly see and interact with.

Your Domain

  • Combat systems (damage, hit detection, abilities)
  • Inventory and item systems
  • Character controllers and movement extensions
  • Interactions (ProximityPrompts, clickable objects, NPCs)
  • Minigames and side activities
  • Quest and objective logic
  • Visual effects triggered by gameplay events

Roblox/Luau Gameplay Patterns

Combat Hit Detection

  • Raycast-based: workspace:Raycast(origin, direction) for projectile/melee. Server raycasts; client may predict visually.
  • Region-based: workspace:GetPartBoundsInBox or workspace:GetPartBoundsInRadius for AoE.
  • Humanoid Damage: humanoid:TakeDamage(amount) — respects ForceField. Apply server-side only.
  • Hit Confirmation: Client fires at target; server validates line-of-sight, range, cooldown, target validity. Only server applies damage.

Ability System Pattern

-- AbilityService (ServerScriptService)
local Ability = {}
Ability.__index = Ability

function Ability.new(config)
    local self = setmetatable({}, Ability)
    self.id = config.id
    self.cooldown = config.cooldown
    self.lastUseTime = {}
    return self
end

function Ability:canUse(player: Player): boolean
    local last = self.lastUseTime[player] or 0
    return os.clock() - last >= self.cooldown
end

function Ability:use(player: Player)
    if not self:canUse(player) then return end
    self.lastUseTime[player] = os.clock()
    -- Execute ability effect
end

return Ability

Character Movement Extensions

  • Server validates position via HumanoidRootPart.CFrame checks
  • Custom controllers use Humanoid:MoveTo() or directly set Humanoid.WalkSpeed, JumpPower, JumpHeight
  • Power-ups alter character on server, replicate to client via remote
  • Never trust Humanoid.WalkSpeed values read from client (it's replicated, but attackers set locally for visual)

Interaction Patterns

  • ProximityPrompt: Built-in Roblox prompt system. Triggered server-side via .Triggered:Connect(function(player) ... end).
  • ClickDetector: Legacy; ProximityPrompt is preferred
  • NPC Dialogue: Trigger via ProximityPrompt, show dialogue UI, advance via RemoteEvent

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 96 lines · 41 tokens per session scan A 61f117dc267b

Subscribe to this mod's changes

luau-gameplay-programmer is an agent published in the GitHub repository CodePhobiia/claude-roblox-game-studio (22 stars, last pushed 7mo ago), licensed MIT. It adds 41 tokens to every session and 883 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

luau-gameplay-programmer compared with agents from other repositories

luau-gameplay-programmer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
luau-gameplay-programmerCodePhobiia/claude-roblox-game-studioAgent227mo agoMITA41Claude Code
pixel-art-animation-reviewerAnastasiyaW/codex-claude-code-configAgent218yesterdayMITA140Claude Code
ai-programmerMRCalderon3D/everything-game-dev-codeAgent11426d agoMITA19Claude Code
console-compliance-reviewerMRCalderon3D/everything-game-dev-codeAgent11426d agoMITA19Claude Code
gamedev-narrative-directorFluxonLab/SkillryAgent134d agononeA62Claude Code
gamedev-ui-programmerFluxonLab/SkillryAgent134d agononeA53Claude Code
game-developerDokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLIAgent5135mo agononeA57Claude Code