Action Data (Keybind)
Valid action types;
Press
Singular action, for example: Biting, shooting, etc.
Hold
Hold action, for example: Sprinting
Toggle
Toggle an action on/off, for example: Eye color effect
Press Data
{
lastDebounce = tick(): int -- last tick
}Hold Data
{
on = boolean
}Toggle Data
{
on = boolean
}Reduce Network Activity
Adding DoNotCallbackServer = true to the action data will have the client stop its self from having the server call the event on its side.
Example
{
actions = {
[Enum.KeyCode.Q] = {
Tip = "Quit actor class",
ActionType = "Press",
Cooldown = 1,
Callback = function(Actor)
if RunService:IsClient() then
Actor.Event:InvokeServer("Destroy")
end
return Actor
end,
},
}
}Last updated