Prompt · Combat tools · Updated November 2026
Raycast gun with server validation
A hitscan gun: the client sends the aim, the server raycasts from the head, checks fire rate and ammo, applies damage and broadcasts tracers.
The prompt
Build a raycast gun Tool: on Activated the client sends the origin and aim direction on a Fire remote; the server checks the origin is within 10 studs of the player's head, the fire rate (0.15 s) and ammo in PlayerData, raycasts 300 studs excluding the shooter, applies 15 damage (30 on a head hit) and FireAllClients a tracer and hit effect that each client draws with ForgeFX. Reload on R or a mobile button with a 1.5-second timer. Ammo and a crosshair on the HUD. Playtest on a dummy and screenshot.The button opens Forge with this prompt already in the message box. Nothing is sent until you press Send, and the credit price shows first. Forge needs a Windows PC with Roblox Studio and the free Forge Bridge; Mac support is planned.
What Forge builds
- A Fire remote where the server does its own raycast; the client's ray is a request, not a result.
- Origin, fire rate and ammo validated on the server.
- Tracers and impact effects drawn on every client from one broadcast.
- Reload on keyboard and a touch button through ContextActionService.
- Kill credit and team checks for the kill feed.
Typical credits
On Sonnet 5.5 this prompt usually runs 120 to 450 credits ($1.20–4.50), more if the playtest catches mistakes that need fixing. One credit is one cent, the price is shown before each message, and credits never expire. Opus 5.5 and Fable 5.2 cost more per message and are worth it for a stubborn bug, not for a first build.
| What you ask for | Typical credits |
|---|---|
| This prompt | 120–450 |
| One build step (a button, a HUD fix, a lighting pass) | 20–150 credits ($0.20–1.50) |
| One game system (a shop, saving, a round loop) | 100–600 credits ($1–6) |
| A complete game, following a guide's full sequence | 2,500–6,000 credits ($25–60) |
Full ranges, packs and the optional membership are on the pricing page. New accounts get free trial credits when they first pair the Bridge (Roblox accounts older than 30 days). No card is needed.
How to run it
- Open your place in Roblox Studio and turn on Assistant ▸ ⋯ ▸ Manage MCP Servers ▸ Enable Studio as MCP server.
- Run the Forge Bridge on the same PC and confirm the pairing in the Forge web app; the sidebar shows your place name in green.
- Press Build this in Forge above (or copy the prompt and paste it), read the price, press Send.
- Forge reads your place first, builds, playtests, reads the console and sends a screenshot. Reply with changes; it remembers your place between messages.
Questions
Why validate the origin?
Without it a client can fire from anywhere on the map. The playbook keeps the origin within a few studs of the head.
What about projectiles with travel time?
Ask for a projectile weapon; Forge simulates it on the server with Heartbeat steps and raycasts between them, no physics parts.
Related prompts and guides
- Melee weapon tool with server hits: A sword tool: client animation and swing request, server cone check, cooldown, damage, kill credit, spawn protection.
- Global top-10 leaderboard board: An OrderedDataStore leaderboard on a SurfaceGui, refreshed every 60 seconds with cached names, plus a weekly reset option.
- 2x Coins game pass: A permanent doubler checked on join and granted the moment it is bought, applied inside the economy module and shown on the HUD.
- How to make a Roblox RPG with AI: the full step-by-step sequence this prompt belongs to.
- Pricing: packs from $10, what a whole game costs, membership perks.
- All prompts: every genre and system in the library.