I’ve tested my game on Roblox Studio, and it works completely fine, but after I published it, I started getting errors in the real game that don’t exist while testing in Roblox Studio.
The error:
Incomplete statement: expected assignment or a function call
There doesn’t seem to be any problems with this script. Judging by the error you got in the console, the error was on line 2 of a script, but this one has nothing on line 2.
You absolutely can assign properties to variables. In addition, the error is a syntax error unrelated to whether the variables work or not, and it’s also unrelated to this script unless I’m missing something.
The way it related to the script in this context was “local mannequin” was equal to the value of what I’m assuming is some kind of StringValue. I proposed “local mannequin” should equal the StringValue itself and pass mannequin.Value through the event instead.
By the output it looks like the script in your game is different from the one in studio, make sure that you have published the latest version in studio to roblox.
part exists at the time of reference, since it can output the full path of the part.
I have only been able to get this to popup once, but I have been getting other frequent odd behavior with Instance.new("ProximityPrompt") creating duplicate instances.