[Script Editor] Studio crash

Unsure whether this is directly tied to the Script Editor itself or linked to another component of the engine, so the tag might be incorrect.

When pasting the following code into any script type

function _functions.isStunned(self: typeDefs.sharedCharacter<typeof(setmetatable({}:: typeDefs.client | typeDefs.server, {}))>) 
    return self.character == nil or (self.character:GetAttribute("Stunned") or 0) > 0 
end

Adding --!strict to the document makes the engine crash. When attempting to rejoin the engine will continuously crash, making it problematic to remove it.
After some testing, it seems that only --!strict is causing this issue.

Visual Aid

External Media

System Information
AMD Ryzen 7 8700F 8-Core Processor
NVIDIA GeForce RTX 5060
16GB DDR5

Beta Features
Live Animation Creator

A private message is associated with this bug report

2 Likes