The game crashes when the foo
function is called. This function is bound to an action using BindAction
. I suspect that the game crashes because the foo
function is being called recursively. The crash occurs almost immediately after invoking foo
.
I’ve tested this issue on the following platforms:
- Roblox Studio
- Mobile
- Roblox web browser
Replication Steps:
To replicate the crash, follow these steps:
- Create a
LocalScript
. - Add the code below to the
LocalScript
: - Put the
LocalScript
inside of StarterCharacterScripts or StarterPlayerScripts. - Play the game and it’ll crash.
Or you can download this place where I’ve already setup the script.
crash.rbxl (56.6 KB)
local ContextActionService = game:GetService("ContextActionService")
local function foo()
ContextActionService:BindAction("foo", foo, true, Enum.KeyCode.X)
end
foo()
Studio.
Roblox web browser. By the way ‘Hi’ is a TextButton.
Unfortunately, I didn’t record the crash on mobile.