You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some code may be designed to run on both Roblox and on Lune. Right now the cleanest way to determine if the script is running on Lune is to do something like if pcall(require, "@lune/fs") then which is what I'm doing now, but this seems a bit messy.
The text was updated successfully, but these errors were encountered:
The next release of Lune will have the standard _VERSION global, in this format: Lune x.y.z+luau
so the current version would be: Lune 0.6.5+567
meaning you will be able to check using something like this:
iftype(_VERSION) =="string" andstring.sub(_VERSION, 1, 4) ==="Lune" then-- Running in Luneelse-- Running in Robloxend
Some code may be designed to run on both Roblox and on Lune. Right now the cleanest way to determine if the script is running on Lune is to do something like
if pcall(require, "@lune/fs") then
which is what I'm doing now, but this seems a bit messy.The text was updated successfully, but these errors were encountered: