This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --!strict | |
| local ChangeHistoryService = game:GetService("ChangeHistoryService") | |
| local InsertService = game:GetService("InsertService") | |
| local Selection = game:GetService("Selection") | |
| local props = { | |
| "Name", | |
| "Color", | |
| "CFrame", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --!strict | |
| local UserInputService = game:GetService("UserInputService") | |
| local GuiService = game:GetService("GuiService") | |
| local RunService = game:GetService("RunService") | |
| local VRService = game:GetService("VRService") | |
| local isEdit = false | |
| local isServer = RunService:IsServer() | |
| local isClient = RunService:IsClient() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Create a new DynamicMesh instance | |
| local dynamicMesh = Instance.new("DynamicMesh") | |
| -- Function to get perlin noise | |
| local function perlinNoise(x, y, scale, height) | |
| return math.noise(x * scale, y * scale) * height | |
| end | |
| local size = 50 -- Size of the terrain | |
| local scale = 0.1 -- Scale factor for Perlin noise |