Why does my code have script editor errors but works fine in game?

My code works fine and all but the script editor thinks there is an error, I tried to declare the variable but it does not work how do I fix this?

image

It looks like the script editor is just advising you to make it a local variable. It shows this “warning” when a global variable in used in scopes where a local variable can access them the same.

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.