Skip to content

Instantly share code, notes, and snippets.

View Scriptaeofficial's full-sized avatar

Scriptaeofficial

  • Joined Oct 11, 2025
View GitHub Profile
--[[
Combat Dummy NPC Controller
Author: <YourNameHere> -- <- replace with your username for submission
Description:
Human-written Luau script to control a single NPC "Dummy" in Workspace.
- Patrols inside a radius
- Detects players and chases them using humanoid MoveTo and Pathfinding fallback
- Uses raycasting for line-of-sight before dealing damage
- Uses physics impulses (BodyVelocity/BodyGyro) to simulate attack impact
- Uses metatable-based class for clear organization