Created
October 17, 2023 05:47
-
-
Save TheNextGuy32/61ae2678f781b4380d7a711966ae5de8 to your computer and use it in GitHub Desktop.
An example of roblox code
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
local Utility = game.ReplicatedStorage:WaitForChild("Utility") | |
local GetReplicatedStorage = require(Utility:WaitForChild("GetReplicatedStorage")) | |
local Get = require(GetReplicatedStorage("Get", Utility)) | |
local class = Get("Lib/middleclass") | |
local ECS = Get("Lib/ECS") | |
local ViolentAI = class("ViolentAI", ECS.Component) | |
function ViolentAI:initialize() | |
self.name = "ViolentAI" | |
end | |
function ViolentAI.desc() | |
return "Enables AI to use violence." | |
end | |
return ViolentAI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment