Roblox Physics and Hit Checks
Fixes Roblox parts that jitter or fall through, sets up reliable raycasts and keeps hit checks safe from exploits.
Claude's review
8/10 Clear mechanism choice table, filtered raycast and overlap patterns, ownership and exploit notes and a symptom table for common Roblox physics bugs.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
Roblox physics and spatial queries: assemblies, constraints, collision groups, Raycast and Shapecast, and network ownership. Use when parts fall through or jitter, Touched is unreliable, a ray hits the shooter, or BodyMovers need replacing. Not for hit legitimacy (`roblox-networking`), Humanoid movement (`roblox-characters`) or engine-neutral tuning (`physics-tuning`).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: roblox-physics
description: >
Roblox physics and spatial queries: assemblies, constraints, collision groups, Raycast and
Shapecast, and network ownership. Use when parts fall through or jitter, Touched is unreliable,
a ray hits the shooter, or BodyMovers need replacing. Not for hit legitimacy
(`roblox-networking`), Humanoid movement (`roblox-characters`) or engine-neutral tuning
(`physics-tuning`).
---
# Roblox physics
Simulation, character control, hit detection and visual-only motion are different jobs. Pick the
mechanism first, then the API. Whether a hit counts is a server validation decision owned by
`roblox-networking`; this skill supplies the queries it uses.
## Decide the mechanism
| Goal | Mechanism |
|---|---|
| sustained physical interaction | unanchored assembly plus modern constraints or forces |
| one-off physical change | `ApplyImpulse` / `ApplyAngularImpulse` |
| kinematic platform or path | scripted pivot or CFrame with an explicit passenger policy |
| character locomotion | Humanoid or Character Controller Library (`roblox-characters`) |
| hit test | server raycast, shapecast, or overlap with explicit filters |
| cosmetic trail or recoil | local visual motion; no gameplay authority |
## Workflow
1. **Inspect the mechanism.** In Studio, turn on the assembly, constraint and network-owner
visualizations; or read `part.AssemblyRootPart`, `part.AssemblyMass`, `part.Anchored` and
`part:GetNetworkOwner()` from code. Identify the assembly root and who should own it.
2. **Write the interaction policy.** A collision-group matrix, then `CanCollide`, `CanTouch` and
`CanQuery` decided separately per role. Register groups once with
`Workspace:RegisterCollisionGroup()` and `CollisionGroupSetCollidable()` (or the Collision
Groups editor), from a single script so assignment never races registration.
3. **Choose simulation or query.** A ray for a line, a shapecast for a moving volume, an overlap for
a static volume, and simulation contacts only when a physical response is wanted. `.Touched` is
neither reliable nor secure as a hit detector.
4. **Apply motion at assembly level.** Forces on any part act on the whole assembly. Use
...From gamedev-skills's repository, Apache-2.0 licence.
Related skills
-
Checked
Roblox Luau scripting
Writes well structured Roblox Luau scripts and fixes common errors like LocalScripts that never run.
8/101 credit -
Checked
Roblox simulator economy
Designs upgrade costs, income rates, rebirth pacing and egg odds for Roblox simulator and tycoon games.
8/101 credit -
Checked
Roblox Studio editing
Edits a Roblox place or Rojo project safely and proves each change with the right test before reporting.
7/101 credit -
Checked
Roblox Game Structure
Helps you organise a Roblox game's client and server code, data flow and streaming so it stays secure.
7/101 credit -
Checked
Roblox monetisation
Adds Robux purchases, passes and subscriptions to a Roblox game without losing or double granting sales.
7/101 credit -
Checked
Roblox Physics and Raycasts
Helps you build Roblox hit detection, vehicles and projectiles with modern physics APIs and no jitter or flinging.
7/101 credit