mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 21:10:36 +00:00
18 lines
651 B
Lua
18 lines
651 B
Lua
|
local roblox = require("@lune/roblox") :: any
|
||
|
local Instance = roblox.Instance
|
||
|
|
||
|
local game = Instance.new("DataModel")
|
||
|
local workspace = game:GetService("Workspace")
|
||
|
|
||
|
-- Terrain should always exist as a "Terrain" property, or be created when accessed
|
||
|
|
||
|
assert(workspace.Terrain ~= nil)
|
||
|
assert(workspace.Terrain:IsA("Terrain"))
|
||
|
assert(workspace.Terrain == workspace:FindFirstChildOfClass("Terrain"))
|
||
|
|
||
|
-- Camera should always exist as a "CurrentCamera" property, or be created when accessed
|
||
|
|
||
|
assert(workspace.CurrentCamera ~= nil)
|
||
|
assert(workspace.CurrentCamera:IsA("Camera"))
|
||
|
assert(workspace.CurrentCamera == workspace:FindFirstChildOfClass("Camera"))
|