mirror of
https://github.com/lune-org/lune.git
synced 2024-12-13 13:30:38 +00:00
17 lines
651 B
Lua
17 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"))
|