Files

20 lines
481 B
Luau

--!strict
local Common = require(script.Parent.Common)
export type Rig = {show: () -> (), hide: () -> (), capture: () -> ()}
local Effects = {}
function Effects.new(mark: Common.Marker): Rig
local function hide()
mark.body:SetAttribute("ObjectiveArrowHidden", true)
mark.body.Parent = nil
end
return {
hide = hide,
show = function()
mark.body:SetAttribute("ObjectiveArrowHidden", nil)
Common.paint(mark, Common.gold)
end,
capture = hide,
}
end
return Effects