# Misc

## \<function/string> loadstring(\<string> scr, \<string?> chunk = "Nigga")

Translates scr to an LClosure and returns it with the chunk name being the second argument is provided. Returns string if it errors.

## \<bool> checkcaller(\<void>)

{% hint style="danger" %}
This does not check the stack of the function. If you call a game function and it calls checkcaller, it **will** return true.
{% endhint %}

Returns true if the thread if a Fluxus thread.

## \<bool> islclosure(\<function> obj)

Returns true if first argument is an LClosure, false other wise.

## \<bool> iscclosure(\<function> obj)

Exact opposite of islclosure.&#x20;

## \<void> setclipboard(\<string> scr)

Sets the users clipboard to scr.

## \<void> setfflag(\<string> fflag, \<string> val)

Sets fflag value to val. Will error if the fflag does not exist.

## \<string> getfflag(\<string> fflag)

Returns fflag value.

## \<void> getnamecallmethod(\<void>)

Returns the namecall method, or nil if there is none.

## \<?> getcustomasset(\<string> path)

Returns a content string that can used as a fake asset id.

## \<void> saveinstance(\<void>)

{% hint style="danger" %}
Will **not** save scripts.
{% endhint %}

Saves the games map.

## \<string> randomstring(\<int> len)

Returns a random string with the length being len.

## \<bool> setfpscap(\<double?> cap)

Sets ROBLOX fps cap to cap, if nil, it'll be inf.

## \<int> request(\<table> options)

Performs a http request. Fingerprint header is "Flux-Fingerprint"


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fluxusrbx.gitbook.io/fluxus/misc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
