Roblox studio crashing after trying to type .primarypart (Fixed)

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

i tried multiple times but it keeps crashing

yes i used copilot but i am also a programmer so i checked the code this is just a studio bug

3 Likes

Maybe at the very very top type --!nonstrict

1 Like

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

Dont have the beta type solver enabled and still have this problem.

Disabling autocomplete fixes the problem, so its almost certainly to do with that.

Where did you find the code shown at the end? I have suspicions you are using ChatGPT for this, if you are then stop. Don’t trust ChatGPT to code your game because he sucks at doing just that.

i can script but i first want a working system before coding it myself to see if it is possible

My point still stands. AI can’t porgram at all.

i checked the code and it was copilot i coded the first like 20% then game it to ai then improved that code and repeat i just want to make a simple test game to make sure people like the game before actually recoding.

half true but it was just a studio bug

I agree, I tried using AI and ultimately failed

It has its uses for a programmer, but it can’t dream.

Nor can it make good code.

(character limit)

1 Like

how is it possible that ai makes my game more optimized and helped me make this game faster so players can play it while i am recoding the game.

maybe you did not give a good prompt that can be a reason why ai works perfectly for me

Most likely cause you used a different AI or just asked it to code simpler code.

i completely removed it for now i used copilot for this intire code but that is not what this is about this is about a studio bug not an ai that made a mistake