Logic API
About
The Logic API contains all functions related to game mechanics.
getDuo
Returns the player which is in duo or in team with the local player. In case the client is not in the duos gamemode, this function always returns
false
.
hasKnife
Returns the given player's or the local player's knife.
isSit
Returns whether the given player or the local player is sitting.
isInGlass
Returns whether a
Instance
type or aVector3
is inside of the glass. Returnsnil
if the object given is neither.
hasWon
Returns whether or not the local player has won the game.
throw
Throws the knife at the given CoordinateFrame. (
CFrame
)
slash
Fires the stab handler inside of the client script.
isThrowing
Returns whether or not the local player is in cooldown.
allow
Returns whether or not a
Character
can be attacked.