Skip to content

Instantly share code, notes, and snippets.

@TheNextGuy32
Created October 17, 2023 05:47
Show Gist options
  • Save TheNextGuy32/61ae2678f781b4380d7a711966ae5de8 to your computer and use it in GitHub Desktop.
Save TheNextGuy32/61ae2678f781b4380d7a711966ae5de8 to your computer and use it in GitHub Desktop.
An example of roblox code
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