Using _VERSION isn't a good idea, the code might be written in Luau outside of Roblox. I simply checked if the value of game is nil or not. There isn't a variable named game in the code, so using it would make sense.
Another way of doing this would be adding:
Vector3 and type(Vector3) == "table" and type(Vector3.new) == "function" and type(Vector3.new()) == "vector"
Using _VERSION isn't a good idea, the code might be written in Luau outside of Roblox. I simply checked if the value of
game
is nil or not. There isn't a variable namedgame
in the code, so using it would make sense.Another way of doing this would be adding:
thanks to an update, but that is unnecessary.