Skill Check
Interactive skill check minigame that tests player timing.
Exports
| Export | Parameters | Returns |
|---|---|---|
SkillCheck | (difficulty, inputs, options) | boolean — true if passed, false if failed |
SkillCheckActive | () | boolean |
CancelSkillCheck | () | — |
SkillCheck Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
difficulty | string or table | Yes | Difficulty level(s): 'easy', 'medium', 'hard' |
inputs | table | No | Input keys for the skill check |
options | table | No | Additional options |
Usage
Basic Skill Check
local success = exports['flux-ui-pack']:SkillCheck('easy')
if success then
print('Passed!')
else
print('Failed!')
endMultiple Difficulty Levels
local success = exports['flux-ui-pack']:SkillCheck({'easy', 'medium', 'hard'})Check if Active
if exports['flux-ui-pack']:SkillCheckActive() then
print('A skill check is running')
endCancel Skill Check
exports['flux-ui-pack']:CancelSkillCheck()Last updated on