while UIS:IsKeyDown(Enum.KeyCode.R) do
rotate()
wait()
end
And whenever I put that block of code into a function, studio just crashes. I have no idea what could be causing this, but it’s really frustrating. It happens every single time I try to put it into a function
I inserted a Script in a baseplate in Workspace, added a reference to UserInputService, added an empty function “rotate” and “crash”, and did what you said in OP. I cannot reproduce the crash:
This means that your bug report isn’t specific enough, because I followed your steps and I did not see this bug. If you need help on what to put in your bug report, please see here: https://devforum.roblox.com/t/steps-to-report-a-bug/24388
A full (minimal) repro would probably be appreciated here.
The only plugin I have is Crazyman32’s Lines of Code and the only settings I’ve edited is the script editor colors and autosave interval. I reset all the settings and uninstalled all plugins and it’s still happening.
The next time this crashes for you, please send me the dump file (Roblox folder/logs, should be the most recent .dmp file). Also, what Studio version are you using?
Thank you for submitting this report. We are currently reviewing all bug reports to ensure we have not overlooked any ongoing issues. Since this issue was reported over two years ago, can you please confirm you are still experiencing the problem? If so, please respond to this thread, and we will investigate. If we do not receive any response within 30 days, we will consider this matter resolved. Thank you.