I have this code
local Agent = {}
Agent.__index = Agent
function Agent.new(plr,meleeAnimations)
local newAgent = {}
setmetatable(newAgent,Agent)
newAgent.player = plr
newAgent.meleeAnimation = meleeAnimations -- this is supposed to be an array IN CHRONOLOGICAL ORDER OF HOW THE ANIMATIONS ARE RAN
newAgent.canMove = true
newAgent.canUseAbility = true
return newAgent
end
-- metamethods, "they're so... meta"
return Agent
I want the booleans listed like canmove and canuseability have a timer that can be activated at anytime. This timer would change the booleans from true to false and at the end of the timer false to true. Normally this wouldn't be an issue however I want to allow this "Timer" to be spam able but I don't know how I would achieve this
** You are now Level 5! **