This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
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 |