Roblox studio crashing after trying to type .primarypart

hello i am trying to code my game and uhh this happens

i tried multiple times but it keeps crashing

3 Likes

Maybe at the very very top type --!nonstrict

Up top here you’re waiting for “Race”… later you’re waiting for the part (spot), then checking if spot is there. As long as this script isn’t running right when the game starts all you need there is FindFirstChild() and the rest of that script is set up perfectly for that.

Don’t use AI to learn how to script… it is horrible at scripting. Research, fail, figure it out. This is the way.

I’ve had the same issue in the past while the “New Luau type solver” beta feature was enabled. Disabling it fixed the issue for me. Do you happen to have this enabled and does the issue persist after disabling?

same after I enabled the beta type solver whenever I typed some certain words studio would immediately crash so i disabled it
now studio crashes for me when i just enable the beta type solver without even writing a single word in a script