The game removes letters from my script (read the description to know more exactly what I'm talking about)

Hello, I have a very strange problem, it turns out that I have a script that has to execute something, this already happened to me once, I couldn’t fix it and I had to change the script, that’s how I managed to “solve” the error, but now it’s back. What happens is that a letter is deleted from the “directory” that has to be executed, specifically the last letter or letters, in this case “GetPlayers”, the error only shows “GetPlaye”, the same thing happened to me with another code . . which said “MovetoFinished”. which I only represent as “MoveToFinishe” and then it says that that does not exist, I don’t know if I explained it well, anyway here I leave you some images that show it better

This error
image

Real script

Please if anyone knows why this is happening could you help me fix it?

4 Likes

This seems very odd, have you attempted to disable all plugins? I would reinstall studio as well.

1 Like

But what does the studio or the plugins have to do with this? the error appears in the game (normal roblox), ¿Are you saying it could be a virus or something?

This is definitely not the result of a studio virus, seems kind of ridiculous that somebody would suggest this to begin with.

You’re either forgetting to publish your game after you make changes to your script, or have team create enabled and are not committing your drafts.

1 Like

Your ending string is probably too long. Try not to bury your remote events so deep with such long names. See if that helps.

1 Like

I saved the changes, wrote the entire script at the same time, then saved it and published the Place, after that I went to test the game in normal Roblox and that error appeared

I’d recommend adding a print on the line before the missing letter appears and see if it’s actually updating.

1 Like

Are you talking about the fact that the game may have some kind of “lag” and the game tries to read the code so fast that it can’t read it completely?

Impossible, the compiler wouldn’t read code improperly

1 Like

I’ll try to do it, I hope it gets solved

It’s not necessarily a studio virus that could happen, I think it’s a plugin that has script permission. Nothing else could explain this other than the uncommitted changes that OP has already explained

1 Like

I’d turn off all your plugins if I were you, one of them probably has script permissions and for some reason is messing up your code.

1 Like

I only have 2 plugins with script injection, Roundify and DataStore

Is the Datastore plugin original - the paid one? There’s ton of other datastore plugin clones that are resold for free, and are tampered with.

1 Like

i have this
image

Oh, weird.

Hit CTRL SHIFT F
then type in GetPlaye

You could have another script which is causing that error.

1 Like

I experience this a few times a week — it’s just a bug with the script editor. My solution is usually to publish the game, then close and reopen Studio. The actual script will then show up this time.

2 Likes

Ok, i did it but there is nothing to interfere with the event that runs this script or anything related to this script, but i typed “print” like Sub_millimeter said and it worked, thank you all for helping me!

image

No, apparently there is a charter limit.

1 Like

Thanks too, I’ll try that trick next time the error occurs