Refactor arena modes and add objective event feed

This commit is contained in:
Leshyi committed 2026-11-29 23:06:14 +05:00
1 parent df6ab8efe1
commit b87a3770a1
26 files changed
+1221 -654

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
--!strict
return function(scoring: any)
local state = Instance.new("Folder")
local observed: number? = nil
local score = scoring.new(state, function(side: string, points: number, reason: string)
assert(side == "Blue" and reason == "Test")
observed = points
end)
assert(state:GetAttribute("BlueScore") == 0 and state:GetAttribute("OrangeScore") == 0)
score.add("Blue", 3, "Test")
assert(observed == 3 and score.get("Blue") == 3 and state:GetAttribute("BlueScore") == 3)
assert(score.get("Orange") == 0 and state:GetAttribute("OrangeScore") == 0)
state:Destroy()
end