if (Input.GetButtonDown("Fire1")) Shoot();

void Update()

Debug.Log(isHeadshot ? "HEADSHOT!" : "Hit");

It sounds like you’re looking for a (likely for a game engine like Roblox Lua, Unity C#, or Unreal) that handles a head hitbox — typically for detecting headshots, applying extra damage, or triggering specific effects.

RaycastHit hit; if (Physics.Raycast(fpsCam.transform.position, fpsCam.transform.forward, out hit, range)) Health targetHealth = hit.collider.GetComponent<Health>(); if (targetHealth != null) bool isHeadshot = hit.collider.CompareTag("Head"); int finalDamage = isHeadshot ? headshotDamage : normalDamage; targetHealth.TakeDamage(finalDamage);

void Shoot()

-- Place this script inside the weapon's handle or a server script local tool = script.Parent local handle = tool:WaitForChild("Handle")

-- Tool activation (example: on click) tool.Activated:Connect(function() local character = tool.Parent local humanoid = character and character:FindFirstChild("Humanoid") if not humanoid then return end